mirror_ubuntu-kernels/drivers/gpu/drm/mgag200
Jocelyn Falempe bfa4437fd3 drm/mgag200: Add a workaround for low-latency
We found a regression in v5.10 on real-time server, using the
rt-kernel and the mgag200 driver. It's some really specialized
workload, with <10us latency expectation on isolated core.
After the v5.10, the real time tasks missed their <10us latency
when something prints on the screen (fbcon or printk)

The regression has been bisected to 2 commits:
commit 0b34d58b6c ("drm/mgag200: Enable caching for SHMEM pages")
commit 4862ffaec5 ("drm/mgag200: Move vmap out of commit tail")

The first one changed the system memory framebuffer from Write-Combine
to the default caching.
Before the second commit, the mgag200 driver used to unmap the
framebuffer after each frame, which implicitly does a cache flush.
Both regressions are fixed by this commit, which restore WC mapping
for the framebuffer in system memory, and add a cache flush.
This is only needed on x86_64, for low-latency workload,
so the new kconfig DRM_MGAG200_IOBURST_WORKAROUND depends on
PREEMPT_RT and X86.

For more context, the whole thread can be found here [1]

Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/dri-devel/20231019135655.313759-1-jfalempe@redhat.com/ # 1
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240208095125.377908-1-jfalempe@redhat.com
2024-02-26 16:37:51 +01:00
..
Kconfig drm/mgag200: Add a workaround for low-latency 2024-02-26 16:37:51 +01:00
Makefile drm/mgag200: Provide per-device callbacks for PIXPLLC 2022-07-29 16:01:47 +02:00
mgag200_bmc.c drm/mgag200: Provide per-device callbacks for BMC synchronization 2022-07-29 16:01:47 +02:00
mgag200_drv.c drm/mgag200: Add a workaround for low-latency 2024-02-26 16:37:51 +01:00
mgag200_drv.h drm/mgag200: Fix gamma lut not initialized for G200ER, G200EV, G200SE 2023-12-20 13:26:57 +01:00
mgag200_g200.c drm/mgag200: Remove type field from struct mga_device 2022-07-29 16:01:47 +02:00
mgag200_g200eh3.c drm/mgag200: Remove type field from struct mga_device 2022-07-29 16:01:47 +02:00
mgag200_g200eh.c drm/mgag200: Remove type field from struct mga_device 2022-07-29 16:01:47 +02:00
mgag200_g200er.c drm/mgag200: Fix gamma lut not initialized for G200ER, G200EV, G200SE 2023-12-20 13:26:57 +01:00
mgag200_g200ev.c drm/mgag200: Fix gamma lut not initialized for G200ER, G200EV, G200SE 2023-12-20 13:26:57 +01:00
mgag200_g200ew3.c drm/mgag200: Remove type field from struct mga_device 2022-07-29 16:01:47 +02:00
mgag200_g200se.c drm/mgag200: Fix gamma lut not initialized for G200ER, G200EV, G200SE 2023-12-20 13:26:57 +01:00
mgag200_g200wb.c drm/mgag200: Remove type field from struct mga_device 2022-07-29 16:01:47 +02:00
mgag200_i2c.c drm: remove I2C_CLASS_DDC support 2024-01-18 21:10:41 +01:00
mgag200_mode.c drm/mgag200: Add a workaround for low-latency 2024-02-26 16:37:51 +01:00
mgag200_reg.h drm/mgag200:remove rebundant word "or" in comments 2022-07-18 18:44:01 +02:00