]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/ast: Gen2: Fix open-coded register access
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 27 Mar 2026 13:33:03 +0000 (14:33 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 8 Apr 2026 09:04:49 +0000 (11:04 +0200)
commitfe727ff281239eeefea4e9d2ffb9544b82d7c46f
treedccb86746d98bfc3885d25ee9660d3de65750809
parentd467bcab7b8a8c4494290f830bd6c3b6830a8ebf
drm/ast: Gen2: Fix open-coded register access

Replace all open-coded access to MCR and SCU registers in Gen2 with the
appropriate calls to ast_moutdwm() and ast_mindwm(). Use MCR and SCU
register constants. Name variables according to registers.

The values in MCR04 that control VRAM allocation do not look correct.
Leave a FIXME comment for later investigation.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patch.msgid.link/20260327133532.79696-12-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_2100.c