[PATCH 2/5] drm/i915: Use intel_context_is_pinned in skip_ppgtt_update

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Sun Jul 4 15:05:15 UTC 2021


Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gem/i915_gem_context.c b/drivers/gpu/drm/i915/gem/i915_gem_context.c
index 7720b8c22c81..55bde628cf18 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_context.c
@@ -1266,7 +1266,7 @@ static bool skip_ppgtt_update(struct intel_context *ce, void *data)
 	if (HAS_LOGICAL_RING_CONTEXTS(ce->engine->i915))
 		return !ce->state;
 	else
-		return !atomic_read(&ce->pin_count);
+		return !intel_context_is_pinned(ce);
 }
 
 static int set_ppgtt(struct drm_i915_file_private *file_priv,
-- 
2.31.0



More information about the Intel-gfx-trybot mailing list