mirror-linux/drivers/gpu/drm/ast
René Rebe 50c26c301c drm/ast: Swap framebuffer writes on big-endian machines
Swap the pixel data when writing to framebuffer memory on big-endian
machines. Fixes incorrect output. Aspeed graphics does not appear to
support big-endian framebuffers after AST2400, although the feature
has been documented.

There's a lengthy discussion at [1].

v5:
- avoid restricted cast from __be16 (kernel test robot)

Signed-off-by: René Rebe <rene@exactco.de>
Link: https://lore.kernel.org/dri-devel/20251202.170626.2134482663677806825.rene@exactco.de/ # [1]
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20251212.210504.1355099120650239629.rene@exactco.de
2025-12-21 21:44:35 +01:00
..
Kconfig PCI: Add CONFIG_MMU dependency 2025-04-23 15:40:30 -05:00
Makefile drm/ast: Remove generic device initialization 2025-09-29 13:28:16 +02:00
ast_2000.c drm/ast: Store CRTC memory request threshold in device quirks 2025-10-15 09:59:43 +02:00
ast_2100.c drm/ast: Store CRTC memory request threshold in device quirks 2025-10-15 09:59:43 +02:00
ast_2200.c drm/ast: Store CRTC memory request threshold in device quirks 2025-10-15 09:59:43 +02:00
ast_2300.c drm/ast: Store CRTC memory request threshold in device quirks 2025-10-15 09:59:43 +02:00
ast_2400.c drm/ast: Store CRTC memory request threshold in device quirks 2025-10-15 09:59:43 +02:00
ast_2500.c drm/ast: Store precatch settings in struct ast_device_quirks 2025-10-15 09:59:44 +02:00
ast_2600.c drm/ast: Store HSync adjustment in device quirks 2025-10-15 09:59:47 +02:00
ast_cursor.c drm/ast: Swap framebuffer writes on big-endian machines 2025-12-21 21:44:35 +01:00
ast_ddc.c
ast_ddc.h
ast_dp.c drm/ast: Use msleep instead of mdelay for edid read 2025-09-19 08:46:33 +02:00
ast_dp501.c
ast_drv.c drm/ast: Support device quirks 2025-10-15 09:59:41 +02:00
ast_drv.h Linux 6.18-rc6 2025-11-21 08:55:08 +10:00
ast_mm.c drm/ast: Remove vram_fb_available from struct ast_device 2025-03-12 08:38:12 +01:00
ast_mode.c drm/ast: Swap framebuffer writes on big-endian machines 2025-12-21 21:44:35 +01:00
ast_post.c drm/ast: Split ast_set_def_ext_reg() by chip generation 2025-07-09 14:36:21 +02:00
ast_post.h drm/ast: Gen7: Switch default registers to gen4+ state 2025-07-09 14:36:23 +02:00
ast_reg.h drm/ast: Blank with VGACR17 sync enable, always clear VGACRB6 sync off 2025-10-15 09:55:35 +02:00
ast_sil164.c Backmerge v6.12-rc6 of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into drm-next 2024-11-04 14:25:33 +10:00
ast_tables.h drm/ast: Move display-clock tables to per-Gen source files 2025-09-29 13:28:07 +02:00
ast_vbios.c drm/ast: Add helpers for VBIOS mode lookup 2025-02-03 14:01:12 +01:00
ast_vbios.h drm/ast: Add helpers for VBIOS mode lookup 2025-02-03 14:01:12 +01:00
ast_vga.c Backmerge v6.12-rc6 of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into drm-next 2024-11-04 14:25:33 +10:00