]> Gentwo Git Trees - linux/.git/commit
drm/i915/frontbuffer: Split fb_tracking.lock into two
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 16 Oct 2025 18:54:04 +0000 (21:54 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 7 Nov 2025 15:38:02 +0000 (17:38 +0200)
commit3afef438eee38947ba7e8bb9b23d56d77c25f14b
tree61b081933a2640544bfff2ae15f7e568caa40880
parent65417489541fcef7f14104f3a0292e479f08f72b
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>
drivers/gpu/drm/i915/display/intel_display_core.h
drivers/gpu/drm/i915/display/intel_display_driver.c
drivers/gpu/drm/i915/display/intel_frontbuffer.c
drivers/gpu/drm/i915/gem/i915_gem_object_frontbuffer.h