diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2019-12-04 14:34:35 +0100 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2019-12-05 16:31:55 +0100 |
commit | c0826f40c2255960983410e66a1ee44c43a524cd (patch) | |
tree | e74af171bdd7550f54642ed82dac79b6b597094b /drivers/gpu/drm/mgag200 | |
parent | 9623ecb07f17b009e4021990b424bf9bbc5e199c (diff) | |
download | linux-c0826f40c2255960983410e66a1ee44c43a524cd.tar.gz linux-c0826f40c2255960983410e66a1ee44c43a524cd.tar.bz2 linux-c0826f40c2255960983410e66a1ee44c43a524cd.zip |
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: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191204133435.17462-1-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/mgag200')
-rw-r--r-- | drivers/gpu/drm/mgag200/mgag200_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_main.c b/drivers/gpu/drm/mgag200/mgag200_main.c index e1f900d78483..470fa641451a 100644 --- a/drivers/gpu/drm/mgag200/mgag200_main.c +++ b/drivers/gpu/drm/mgag200/mgag200_main.c @@ -118,8 +118,11 @@ static int mgag200_device_init(struct drm_device *dev, return -ENOMEM; /* stash G200 SE model number for later use */ - if (IS_G200_SE(mdev)) + if (IS_G200_SE(mdev)) { 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); if (ret) |