linux-stable/drivers/gpu/drm/hisilicon/hibmc
John Garry 88ad6b6d8f drm/hisilicon: hibmc: Don't overwrite fb helper surface depth
[ Upstream commit 0ff9f49646 ]

Currently the driver overwrites the surface depth provided by the fb
helper to give an invalid bpp/surface depth combination.

This has been exposed by commit 70109354fe ("drm: Reject unknown legacy
bpp and depth for drm_mode_addfb ioctl"), which now causes the driver to
fail to probe.

Fix by not overwriting the surface depth.

Fixes: d1667b8679 ("drm/hisilicon/hibmc: Add support for frame buffer")
Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Xinliang Liu <z.liuxinliang@hisilicon.com>
Signed-off-by: Xinliang Liu <z.liuxinliang@hisilicon.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:49:55 +01:00
..
hibmc_drm_de.c drm: Nuke drm_atomic_helper_plane_set_property 2017-08-08 14:45:16 +02:00
hibmc_drm_drv.c drm/hisilicon: hibmc: Use the drm_driver.dumb_destroy default 2017-07-29 14:02:52 +02:00
hibmc_drm_drv.h
hibmc_drm_fbdev.c drm/hisilicon: hibmc: Don't overwrite fb helper surface depth 2020-01-27 14:49:55 +01:00
hibmc_drm_regs.h
hibmc_drm_vdac.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
hibmc_ttm.c drm/ttm: add bo as parameter to the ttm_tt_create callback 2018-03-14 14:38:27 -05:00
Kconfig
Makefile