drm/i915: Force DPCD backlight mode for some Dell CML 2020 panels
authorLyude Paul <lyude@redhat.com>
Tue, 11 Feb 2020 18:33:48 +0000 (13:33 -0500)
committerLyude Paul <lyude@redhat.com>
Wed, 4 Mar 2020 01:34:36 +0000 (20:34 -0500)
commitba518bbd3f3c265419fa8c3702940cb7c642c6a5
tree19a089c54ab8f44aa6095f6c6ad6bcfb1a22af3c
parent17f5d57915be108b4967b7770c9ea87c493b30a7
drm/i915: Force DPCD backlight mode for some Dell CML 2020 panels

According to Dell, trying to match their panels via OUI is not reliable
enough and we've been told that we should check against the EDID
instead. As well, Dell seems to have some panels that are actually
intended to switch between using PWM for backlight controls and DPCD for
backlight controls depending on whether or not the panel is in HDR or
SDR mode. Yikes.

Regardless, we need to add quirks for these so that DPCD backlight
controls get enabled by default, since without additional driver support
that's the only form of brightness control that will work. Hopefully in
the future we can remove these quirks once we have a better way of
probing for this.

Changes since v1:
* Add one more EDID per Dell's request
* Remove model number (which is possibly wrong) and replace with Dell
  CML 2020 systems

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200211183358.157448-4-lyude@redhat.com
Reviewed-by: Adam Jackson <ajax@redhat.com>
drivers/gpu/drm/drm_dp_helper.c