[Intel-xe] [RFC PATCH 16/20] drm/i915/display: Use drm_gem_object_get/put
Jouni Högander
jouni.hogander at intel.com
Fri May 5 08:29:52 UTC 2023
Use drm_gem_object_ge/put directly instead of i915_gem_object_get/put.
Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
drivers/gpu/drm/i915/display/intel_frontbuffer.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/display/intel_frontbuffer.c b/drivers/gpu/drm/i915/display/intel_frontbuffer.c
index f44a36b3af3b..5eb46991185c 100644
--- a/drivers/gpu/drm/i915/display/intel_frontbuffer.c
+++ b/drivers/gpu/drm/i915/display/intel_frontbuffer.c
@@ -237,7 +237,8 @@ static void frontbuffer_release(struct kref *ref)
i915_active_fini(&front->write);
- i915_gem_object_put(obj);
+ drm_gem_object_put(&intel_bo_to_drm_bo(obj));
+
kfree_rcu(front, rcu);
}
@@ -269,7 +270,7 @@ intel_frontbuffer_get(struct drm_i915_gem_object *obj)
front = rcu_dereference_protected(obj->frontbuffer, true);
kref_get(&front->ref);
} else {
- i915_gem_object_get(obj);
+ drm_gem_object_get(&intel_bo_to_drm_bo(obj));
rcu_assign_pointer(obj->frontbuffer, front);
}
spin_unlock(&i915->display.fb_tracking.lock);
--
2.34.1
More information about the Intel-xe
mailing list