mirror of
https://github.com/torvalds/linux.git
synced 2026-04-28 11:32:28 -04:00
drm/i915/frontbuffer: Split fb_tracking.lock into two
Our fb_tracking.lock is serving a double duty: - protects fb_tracking.busy_bits - provides the write-side protection for obj->frontbuffer Split obj->frontbuffer role into a separate lock so that we can clean up the current mess with the frontbuffer lifetime management. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/20251016185408.22735-7-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
@@ -77,7 +77,7 @@ i915_gem_object_get_frontbuffer(const struct drm_i915_gem_object *obj)
|
||||
* Set object's frontbuffer pointer. If frontbuffer is already set for the
|
||||
* object keep it and return it's pointer to the caller. Please note that RCU
|
||||
* mechanism is used to handle e.g. ongoing removal of frontbuffer pointer. This
|
||||
* function is protected by i915->display->fb_tracking.lock
|
||||
* function is protected by i915->display->fb_tracking.frontbuffer_lock
|
||||
*
|
||||
* Return: pointer to frontbuffer which was set.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user