From: Alex Deucher Date: Fri, 5 Jun 2015 19:04:33 +0000 (-0400) Subject: drm/amdgpu: also print the pci revision when printing the pci ids X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~12009^2~23^2~15 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=3e39ab90833b20eb7fbc4e472726000274739538;p=mirror_ubuntu-focal-kernel.git drm/amdgpu: also print the pci revision when printing the pci ids The driver makes use of this information so print if to aid in debugging. Reviewed-by: Christian König Reviewed-by: Samuel Li Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 36be03ce76c2..fec487d1c870 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -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 */