OpenCloudOS-Kernel/drivers/gpu/drm/mgag200
Thomas Zimmermann 931e3f3a0e drm/mgag200: Protect concurrent access to I/O registers with lock
Add a mutex lock to protect concurrent access to I/O registers
against each other. This happens between invocation of commit-
tail functions and get-mode operations. Both with use the CRTC
index registers MGA1064_GEN_IO_DATA and MGA1064_GEN_IO_CTL.
Concurrent access can lead to failed mode-setting operations.

v2:
	* fix typo in commit description (Jocelyn)
	* add comment to explain rmmio_lock

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220502142514.2174-4-tzimmermann@suse.de
2022-05-05 09:18:54 +02:00
..
Kconfig drm/mgag200: Add support for G200 desktop cards 2020-08-03 09:43:00 +02:00
Makefile drm/mgag200: Abstract pixel PLL via struct mgag200_pll 2021-08-08 20:14:05 +02:00
mgag200_drv.c drm/mgag200: Protect concurrent access to I/O registers with lock 2022-05-05 09:18:54 +02:00
mgag200_drv.h drm/mgag200: Protect concurrent access to I/O registers with lock 2022-05-05 09:18:54 +02:00
mgag200_i2c.c drm/mgag200: Remove references to struct drm_device.pdev 2021-01-06 15:43:13 +01:00
mgag200_mm.c drm/mgag200: Use managed interfaces for framebuffer write combining 2021-09-23 09:26:09 +02:00
mgag200_mode.c drm/mgag200: Protect concurrent access to I/O registers with lock 2022-05-05 09:18:54 +02:00
mgag200_pll.c drm/mgag200: Fix PLL setup for g200wb and g200ew 2022-03-13 20:35:06 +01:00
mgag200_reg.h drm/mgag200: Select clock in PLL update functions 2021-08-08 20:13:10 +02:00