drm/hisilicon: Enforce 128-byte stride alignment to fix the hardware limitation
authorTian Tao <tiantao6@hisilicon.com>
Fri, 6 Mar 2020 03:43:01 +0000 (11:43 +0800)
committerXinliang Liu <xinliang.liu@linaro.org>
Fri, 3 Apr 2020 01:56:31 +0000 (01:56 +0000)
commit9c9a8468de21895abc43f45fc86346467217c986
tree56586f664d255fb894fe788ea3b99fd464ec2e93
parentb812e5b4aaed827f3d0691543a8c48846db45152
drm/hisilicon: Enforce 128-byte stride alignment to fix the hardware limitation

because the hardware limitation,The initial color depth must set to 32bpp
and must set the FB Offset of the display hardware to 128Byte alignment,
which is used to solve the display problem at 800x600 and 1440x900
resolution under 16bpp.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Gong junjie <gongjunjie2@huawei.com>
Acked-by: Xinliang Liu <xinliang.liu@linaro.org>
Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1583466184-7060-4-git-send-email-tiantao6@hisilicon.com
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c