mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 07:38:25 +07:00
662884a9ad
For eDP panels, it appears it's expected that so long as the panel is in DPCD control mode that the brightness value is never set to 0. Instead, if the desired effect is to set the panel's backlight to 0 we're expected to simply turn off the backlight through the DP_EDP_DISPLAY_CONTROL_REGISTER. We already do the latter correctly in intel_dp_aux_disable_backlight(). But, we make the mistake of writing the DPCD registers in the wrong order when enabling the backlight in intel_dp_aux_enable_backlight() since we currently enable the backlight through DP_EDP_DISPLAY_CONTROL_REGISTER before writing the brightness level. On the X1 Extreme 2nd Generation, this appears to have the potential of confusing the panel in such a way that further attempts to set the brightness don't actually change the backlight as expected and leave it off. Presumably, this happens because the incorrect register writing order briefly leaves the panel with DPCD mode enabled and a 0 brightness level set. So, reverse the order we write the DPCD registers when enabling the panel backlight so that we write the brightness value first, and enable the backlight second. This fix appears to be the final bit needed to get the backlight on the ThinkPad X1 Extreme 2nd Generation's AMOLED screen working. Tested-by: AceLan Kao <acelan.kao@canonical.com> Tested-by: Perry Yuan <pyuan@redhat.com> Signed-off-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200116211623.53799-4-lyude@redhat.com |
||
---|---|---|
.. | ||
dvo_ch7xxx.c | ||
dvo_ch7017.c | ||
dvo_ivch.c | ||
dvo_ns2501.c | ||
dvo_sil164.c | ||
dvo_tfp410.c | ||
icl_dsi.c | ||
intel_acpi.c | ||
intel_acpi.h | ||
intel_atomic_plane.c | ||
intel_atomic_plane.h | ||
intel_atomic.c | ||
intel_atomic.h | ||
intel_audio.c | ||
intel_audio.h | ||
intel_bios.c | ||
intel_bios.h | ||
intel_bw.c | ||
intel_bw.h | ||
intel_cdclk.c | ||
intel_cdclk.h | ||
intel_color.c | ||
intel_color.h | ||
intel_combo_phy.c | ||
intel_combo_phy.h | ||
intel_connector.c | ||
intel_connector.h | ||
intel_crt.c | ||
intel_crt.h | ||
intel_ddi.c | ||
intel_ddi.h | ||
intel_display_power.c | ||
intel_display_power.h | ||
intel_display_types.h | ||
intel_display.c | ||
intel_display.h | ||
intel_dp_aux_backlight.c | ||
intel_dp_aux_backlight.h | ||
intel_dp_link_training.c | ||
intel_dp_link_training.h | ||
intel_dp_mst.c | ||
intel_dp_mst.h | ||
intel_dp.c | ||
intel_dp.h | ||
intel_dpio_phy.c | ||
intel_dpio_phy.h | ||
intel_dpll_mgr.c | ||
intel_dpll_mgr.h | ||
intel_dsb.c | ||
intel_dsb.h | ||
intel_dsi_dcs_backlight.c | ||
intel_dsi_dcs_backlight.h | ||
intel_dsi_vbt.c | ||
intel_dsi.c | ||
intel_dsi.h | ||
intel_dvo_dev.h | ||
intel_dvo.c | ||
intel_dvo.h | ||
intel_fbc.c | ||
intel_fbc.h | ||
intel_fbdev.c | ||
intel_fbdev.h | ||
intel_fifo_underrun.c | ||
intel_fifo_underrun.h | ||
intel_frontbuffer.c | ||
intel_frontbuffer.h | ||
intel_gmbus.c | ||
intel_gmbus.h | ||
intel_hdcp.c | ||
intel_hdcp.h | ||
intel_hdmi.c | ||
intel_hdmi.h | ||
intel_hotplug.c | ||
intel_hotplug.h | ||
intel_lpe_audio.c | ||
intel_lpe_audio.h | ||
intel_lspcon.c | ||
intel_lspcon.h | ||
intel_lvds.c | ||
intel_lvds.h | ||
intel_opregion.c | ||
intel_opregion.h | ||
intel_overlay.c | ||
intel_overlay.h | ||
intel_panel.c | ||
intel_panel.h | ||
intel_pipe_crc.c | ||
intel_pipe_crc.h | ||
intel_psr.c | ||
intel_psr.h | ||
intel_quirks.c | ||
intel_quirks.h | ||
intel_sdvo_regs.h | ||
intel_sdvo.c | ||
intel_sdvo.h | ||
intel_sprite.c | ||
intel_sprite.h | ||
intel_tc.c | ||
intel_tc.h | ||
intel_tv.c | ||
intel_tv.h | ||
intel_vbt_defs.h | ||
intel_vdsc.c | ||
intel_vdsc.h | ||
intel_vga.c | ||
intel_vga.h | ||
vlv_dsi_pll.c | ||
vlv_dsi.c |