linux-stable/drivers/gpu/drm/ast
Thomas Zimmermann 1fe1821549 drm/ast: Acquire I/O-register lock in atomic_commit_tail function
Hold I/O-register lock in atomic_commit_tail to protect all pipeline
updates at once. Protects modesetting against concurrent EDID reads.

Complex modesetting operations involve mode changes and plane updates.
These steps used to be protected individually against concurrent I/O.
Make all this atomic wrt to reading display modes via EDID. The EDID
code in the connector's get_modes helper already acquires the necessary
lock.

A similar issue was fixed in commit 2d70b9a148 ("drm/mgag200: Acquire
I/O-register lock in atomic_commit_tail function") for mgag200.

v2:
	* fix typo in commit message (Jocelyn)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Tested-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221013112923.769-2-tzimmermann@suse.de
2022-10-16 11:15:31 +02: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
ast_drv.c drm/ast: make ast_modeset static 2022-09-26 09:11:47 +02:00
ast_drv.h drm/ast: Fixed the casting issue reported by sparse 2022-06-24 09:37:32 +02: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: Support multiple outputs 2022-06-08 13:16:15 +02:00
ast_mm.c drm/ast: Use managed interfaces for framebuffer write combining 2021-09-23 09:26:09 +02:00
ast_mode.c drm/ast: Acquire I/O-register lock in atomic_commit_tail function 2022-10-16 11:15:31 +02: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/vram: fix Kconfig 2019-09-10 08:53:08 +02:00
Makefile drm/ast: Create the driver for ASPEED proprietory Display-Port 2022-05-03 16:04:03 +02:00