drm/amdgpu: also print the pci revision when printing the pci ids
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Jun 2015 19:04:33 +0000 (15:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Jun 2015 01:42:53 +0000 (21:42 -0400)
The driver makes use of this information so print if to aid in
debugging.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Samuel Li <samuel.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 36be03ce76c25eaeea3861f666ff173522f9e632..fec487d1c870ae27ea586ddda2def8b6c45272e4 100644 (file)
@@ -1388,9 +1388,9 @@ int amdgpu_device_init(struct amdgpu_device *adev,
        adev->audio_endpt_rreg = &amdgpu_block_invalid_rreg;
        adev->audio_endpt_wreg = &amdgpu_block_invalid_wreg;
 
-       DRM_INFO("initializing kernel modesetting (%s 0x%04X:0x%04X 0x%04X:0x%04X).\n",
-               amdgpu_asic_name[adev->asic_type], 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",
+                amdgpu_asic_name[adev->asic_type], 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 */