drm/radeon: print pci revision as well as pci ids on driver load
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Apr 2016 17:16:35 +0000 (13:16 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Apr 2016 15:18:35 +0000 (11:18 -0400)
The pci revision id is useful in debugging certain things as
it's part of how SKUs are defined on newer asics.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_device.c

index 4fd1a961012d8ff314386765edf72d0662660fe8..193261fee6e12b49f9c26257ab669091bb9c17d0 100644 (file)
@@ -1305,9 +1305,9 @@ int radeon_device_init(struct radeon_device *rdev,
        }
        rdev->fence_context = fence_context_alloc(RADEON_NUM_RINGS);
 
-       DRM_INFO("initializing kernel modesetting (%s 0x%04X:0x%04X 0x%04X:0x%04X).\n",
-               radeon_family_name[rdev->family], pdev->vendor, pdev->device,
-               pdev->subsystem_vendor, pdev->subsystem_device);
+       DRM_INFO("initializing kernel modesetting (%s 0x%04X:0x%04X 0x%04X:0x%04X 0x%02X).\n",
+                radeon_family_name[rdev->family], pdev->vendor, pdev->device,
+                pdev->subsystem_vendor, pdev->subsystem_device, pdev->revision);
 
        /* mutex initialization are all done here so we
         * can recall function without having locking issues */