xref: /openbmc/linux/drivers/gpu/drm/i915/Kconfig.profile (revision 7ce99d24ed7265b8f83e0213252aa4f65755f872)
1*7ce99d24SChris Wilsonconfig DRM_I915_SPIN_REQUEST
2*7ce99d24SChris Wilson	int
3*7ce99d24SChris Wilson	default 5 # microseconds
4*7ce99d24SChris Wilson	help
5*7ce99d24SChris Wilson	  Before sleeping waiting for a request (GPU operation) to complete,
6*7ce99d24SChris Wilson	  we may spend some time polling for its completion. As the IRQ may
7*7ce99d24SChris Wilson	  take a non-negligible time to setup, we do a short spin first to
8*7ce99d24SChris Wilson	  check if the request will complete in the time it would have taken
9*7ce99d24SChris Wilson	  us to enable the interrupt.
10*7ce99d24SChris Wilson
11*7ce99d24SChris Wilson	  May be 0 to disable the initial spin. In practice, we estimate
12*7ce99d24SChris Wilson	  the cost of enabling the interrupt (if currently disabled) to be
13*7ce99d24SChris Wilson	  a few microseconds.
14