OSDN Git Service

drm/i915/dp: Allow forcing specific interfaces through enable_dpcd_backlight
authorLyude Paul <lyude@redhat.com>
Wed, 16 Sep 2020 16:31:37 +0000 (12:31 -0400)
committerLyude Paul <lyude@redhat.com>
Tue, 19 Jan 2021 17:35:52 +0000 (12:35 -0500)
commit2227816e647ae9f55935719f0ef05453eaf3fac7
treed7bb02c76555af8845d67efb6cb4160a6ea4048a
parent4a8d79901d5bed0812d272c372aa40282937b50f
drm/i915/dp: Allow forcing specific interfaces through enable_dpcd_backlight

Since we now support controlling panel backlights through DPCD using
both the standard VESA interface, and Intel's proprietary HDR backlight
interface, we should allow the user to be able to explicitly choose
between one or the other in the event that we're wrong about panels
reliably reporting support for the Intel HDR interface.

So, this commit adds support for this by introducing two new
enable_dpcd_backlight options: 2 which forces i915 to only probe for the
VESA interface, and 3 which forces i915 to only probe for the Intel
backlight interface (might be useful if we find panels in the wild that
report the VESA interface in their VBT, but actually only support the
Intel backlight interface).

v3:
* Rebase

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Cc: thaytan@noraisin.net
Cc: Vasily Khoruzhick <anarsoul@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210114221709.2261452-5-lyude@redhat.com
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
drivers/gpu/drm/i915/i915_params.c