]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Sprinkle a few missing locks around shared DDI clock registers
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 5 Feb 2021 21:46:28 +0000 (23:46 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 16 Feb 2021 12:35:33 +0000 (14:35 +0200)
commit775c33ff76faaa5cd5792230f65ff0920bb65573
tree587776489b8c9fcb531cc8322825f37ca45e5eb4
parentc9c98650ab467243716658b00e8b51d97b84e1e0
drm/i915: Sprinkle a few missing locks around shared DDI clock registers

The current code attempts to protect the RMWs into global
clock routing registers with a mutex, but forgets to do so
in a few places. Let's remedy that.

Note that at the moment we serialize all modesets onto single
wq, so this shouldn't actually matter. But maybe one day we
wish to attempt parallel modesets again...

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210205214634.19341-10-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_ddi.c