Commit c0826f40 authored by Thomas Zimmermann's avatar Thomas Zimmermann

drm/mgag200: Debug-print unique revisions id on G200 SE

The behavior of MGA G200 SE depends on the rev id. Print the id when
debugging is enabled.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Acked-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191204133435.17462-1-tzimmermann@suse.de
parent 9623ecb0
...@@ -118,8 +118,11 @@ static int mgag200_device_init(struct drm_device *dev, ...@@ -118,8 +118,11 @@ static int mgag200_device_init(struct drm_device *dev,
return -ENOMEM; return -ENOMEM;
/* stash G200 SE model number for later use */ /* stash G200 SE model number for later use */
if (IS_G200_SE(mdev)) if (IS_G200_SE(mdev)) {
mdev->unique_rev_id = RREG32(0x1e24); mdev->unique_rev_id = RREG32(0x1e24);
DRM_DEBUG("G200 SE unique revision id is 0x%x\n",
mdev->unique_rev_id);
}
ret = mga_vram_init(mdev); ret = mga_vram_init(mdev);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment