OSDN Git Service

drm/i915/uncore: fix race around i915->params.mmio_debug
authorJani Nikula <jani.nikula@intel.com>
Tue, 1 Aug 2023 12:32:50 +0000 (15:32 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 1 Aug 2023 16:39:17 +0000 (19:39 +0300)
commitd823445b09a2f1c43877b87a55fc699c3a836fc2
tree94ed46fe1e36495ce41e21d775698a922f02ccff
parent7afe2340641dc006aad8f356665b1f157509fd3a
drm/i915/uncore: fix race around i915->params.mmio_debug

Only check the conditions for unclaimed reg debug once to avoid locking
problems when i915->params.mmio_debug changes between header and footer.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/8749
Cc: Lee Shawn C <shawn.c.lee@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/a53fb0fd84c4627398ccd4304b35db05603b89b6.1690886109.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_uncore.c