summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/mgag200/mgag200_mm.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2020-07-30 12:28:42 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2020-08-03 09:42:44 +0200
commit9053cad2f0935d3614b49926de571c677fa38528 (patch)
treec391bec5eac1b815d3caea964ea0e836aa653f87 /drivers/gpu/drm/mgag200/mgag200_mm.c
parentb9fa77ec1a59f71b0a9b79954ce2429dee434e57 (diff)
drm/mgag200: Clear <page> field during MM init
The modesetting code initialized the memory-related register CRTCEXT4. Move this code to MM initialization. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Lyude Paul <lyude@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200730102844.10995-7-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/mgag200/mgag200_mm.c')
-rw-r--r--drivers/gpu/drm/mgag200/mgag200_mm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_mm.c b/drivers/gpu/drm/mgag200/mgag200_mm.c
index 1b1918839e1e..641f1aa992be 100644
--- a/drivers/gpu/drm/mgag200/mgag200_mm.c
+++ b/drivers/gpu/drm/mgag200/mgag200_mm.c
@@ -94,6 +94,8 @@ int mgag200_mm_init(struct mga_device *mdev)
resource_size_t start, len;
int ret;
+ WREG_ECRT(0x04, 0x00);
+
misc = RREG8(MGA_MISC_IN);
misc |= MGAREG_MISC_RAMMAPEN |
MGAREG_MISC_HIGH_PG_SEL;