[Intel-gfx] [PATCH 05/24] drm/i915/selftests: Ignore self-preemption suppression under gvt

Zhenyu Wang zhenyuw at linux.intel.com
Mon Jul 15 09:11:54 UTC 2019


On 2019.07.15 09:09:27 +0100, Chris Wilson wrote:
> GVT forces single port submission of individual requests. We do not
> enjoy the context amalgamation that the test depends upon for setting up
> the test (where port 0 has a large number of requests with a priority
> change somewhere in the middle). Under single request submission of gvt
> it is quite able for the preemption event to occur while another context
> is active and so there be a real need to act upon that preemption.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> Cc: Zhenyu Wang <zhenyuw at linux.intel.com>
> ---
>  drivers/gpu/drm/i915/gt/selftest_lrc.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/gt/selftest_lrc.c b/drivers/gpu/drm/i915/gt/selftest_lrc.c
> index bde0164551b1..071e21c0ac15 100644
> --- a/drivers/gpu/drm/i915/gt/selftest_lrc.c
> +++ b/drivers/gpu/drm/i915/gt/selftest_lrc.c
> @@ -854,6 +854,9 @@ static int live_suppress_self_preempt(void *arg)
>  	if (USES_GUC_SUBMISSION(i915))
>  		return 0; /* presume black blox */
>  
> +	if (intel_vgpu_active(i915))
> +		return 0; /* GVT forces single port & request submission */
> +
>  	mutex_lock(&i915->drm.struct_mutex);
>  	wakeref = intel_runtime_pm_get(&i915->runtime_pm);
>  

Acked-by: Zhenyu Wang <zhenyuw at linux.intel.com>

-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20190715/33383e1d/attachment-0001.sig>


More information about the Intel-gfx mailing list