OSDN Git Service

drm/ast: Fix modeset failed on DisplayPort
authorJammy Huang <jammy_huang@aspeedtech.com>
Thu, 1 Jun 2023 00:48:47 +0000 (08:48 +0800)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 1 Jun 2023 08:40:38 +0000 (10:40 +0200)
commit3692ababa322b4d9ffbd973865bc88018e896fcd
tree8a2b250913d1a8202942038b112844c82205836c
parentbed61c8fc7ba17d0f259c674137a5198fd2e3334
drm/ast: Fix modeset failed on DisplayPort

If we switch display and update cursor together, it could lead to
modeset failed because of concurrent access to IO registers.

Add lock protection in DP's edid access to avoid this problem.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Jammy Huang <jammy_huang@aspeedtech.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230601004847.1115-1-jammy_huang@aspeedtech.com
drivers/gpu/drm/ast/ast_mode.c