OSDN Git Service

drm/i915/opregion: early exit from encoder notify if SWSCI isn't there
authorJani Nikula <jani.nikula@intel.com>
Thu, 10 Feb 2022 10:36:44 +0000 (12:36 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 11 Feb 2022 07:54:38 +0000 (09:54 +0200)
commit66b09ddd8b323547e24871ec05fc63c44a557877
treea01bf8d283dc9e7026290e681b4b87c882784e28
parent73144c0ce4e9d69c8d0de4078b6bcdbc55f79db8
drm/i915/opregion: early exit from encoder notify if SWSCI isn't there

Newer platforms aren't supposed to have mailbox #2 or SWSCI
support. Bail out early from encoder notify if that is the case,
skipping the out-of-bounds checks and debug messages.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/82f63313057ed2d96856b3f8d76536826a897bc7.1644489329.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_opregion.c