linux-samsung-r9q2/drivers/gpu/drm/ast
Jocelyn Falempe 7484a5bc15 drm/ast: Fix start address computation
During the driver conversion to shmem, the start address for the
scanout buffer was set to the base PCI address.
In most cases it works because only the lower 24bits are used, and
due to alignment it was almost always 0.
But on some unlucky hardware, it's not the case, and some uninitialized
memory is displayed on the BMC.
With shmem, the primary plane is always at offset 0 in GPU memory.

 * v2: rewrite the patch to set the offset to 0. (Thomas Zimmermann)
 * v3: move the change to plane_init() and also fix the cursor plane.
       (Jammy Huang)

Tested on a sr645 affected by this bug.

Fixes: f2fa5a99ca ("drm/ast: Convert ast to SHMEM")
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jammy Huang <jammy_huang@aspeedtech.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230209094417.21630-1-jfalempe@redhat.com
2023-02-10 14:32:57 +01:00
..
ast_dp.c drm/ast: Fixed the casting issue reported by sparse 2022-06-24 09:37:32 +02:00
ast_dp501.c drm/ast: Support multiple outputs 2022-06-08 13:16:15 +02:00
ast_dram_tables.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ast_drv.c drm/fb-helper: Move generic fbdev emulation into separate source file 2022-11-05 17:12:04 +01:00
ast_drv.h drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
ast_i2c.c drm/ast: Move I2C code into separate source file 2021-12-16 12:29:22 +01:00
ast_main.c drm/ast: Convert ast to SHMEM 2022-10-16 11:16:50 +02:00
ast_mm.c drm/ast: Convert ast to SHMEM 2022-10-16 11:16:50 +02:00
ast_mode.c drm/ast: Fix start address computation 2023-02-10 14:32:57 +01:00
ast_post.c drm/ast: Support multiple outputs 2022-06-08 13:16:15 +02:00
ast_tables.h drm/ast: Add resolution support for 1152x864@75 2022-09-20 10:19:32 +02:00
Kconfig drm/ast: Convert ast to SHMEM 2022-10-16 11:16:50 +02:00
Makefile drm/ast: Create the driver for ASPEED proprietory Display-Port 2022-05-03 16:04:03 +02:00