linux_dsm_epyc7002/drivers/gpu/drm/hisilicon/kirin
John Stultz 71f23543d3 drm: kirin: Add mode_valid logic to avoid mode clocks we can't generate
Currently the hikey dsi logic cannot generate accurate byte
clocks values for all pixel clock values. Thus if a mode clock
is selected that cannot match the calculated byte clock, the
device will boot with a blank screen.

This patch uses the new mode_valid callback (many thanks to
Jose Abreu for upstreaming it!) to ensure we don't select
modes we cannot generate.

Also, since the ade crtc code will adjust the mode in mode_set,
this patch also adds a mode_fixup callback which we use to make
sure we are validating the mode clock that will eventually be
used.

Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: David Airlie <airlied@linux.ie>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Xinliang Liu <xinliang.liu@linaro.org>
Cc: Xinliang Liu <z.liuxinliang@hisilicon.com>
Cc: Rongrong Zou <zourongrong@gmail.com>
Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com>
Cc: Chen Feng <puck.chen@hisilicon.com>
Cc: Jose Abreu <Jose.Abreu@synopsys.com>
Cc: Archit Taneja <architt@codeaurora.org>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Reviewed-by: Xinliang Liu <xinliang.liu@linaro.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2017-08-29 05:20:35 +10:00
..
dw_drm_dsi.c drm: kirin: Add mode_valid logic to avoid mode clocks we can't generate 2017-08-29 05:20:35 +10:00
dw_dsi_reg.h drm/hisilicon: Add designware dsi encoder driver 2016-04-29 16:39:13 +08:00
Kconfig drm/hisilicon: add select HISI_KIRIN_DW_DSI 2016-07-04 18:49:20 +08:00
kirin_ade_reg.h drm/hisilicon: Add crtc driver for ADE 2016-04-29 16:39:12 +08:00
kirin_drm_ade.c drm: kirin: Add mode_valid logic to avoid mode clocks we can't generate 2017-08-29 05:20:35 +10:00
kirin_drm_drv.c drm/kirin: Use .dumb_map_offset and .dumb_destroy defaults 2017-08-16 20:11:06 +02:00
kirin_drm_drv.h drm/hisilicon: fix build error without fbdev emulation 2017-07-26 13:45:09 +02:00
Makefile drm/hisilicon: Add designware dsi encoder driver 2016-04-29 16:39:13 +08:00