]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: break driver init process when it's bad GPU(v5)
authorGuchun Chen <guchun.chen@amd.com>
Thu, 23 Jul 2020 07:42:19 +0000 (15:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Aug 2020 21:26:31 +0000 (17:26 -0400)
commitb82e65a93510465cb4c203c938245f137a4e95dc
tree82187ca76db2ab385bf2369fe162b4c3f020be59
parent1d6a9d122d2c7817ad1bae0e59c8a29450c2b14d
drm/amdgpu: break driver init process when it's bad GPU(v5)

When retrieving bad gpu tag from eeprom, GPU init should
fail as the GPU needs to be retired for further check.

v2: Fix spelling typo, correct the condition to detect
    bad gpu tag and refine error message.

v3: Refine function argument name.

v4: Fix missing check of returning value of i2c
    initialization error case.

v5: Use dev_err to print PCI information in dmesg instead
    of DRM_ERROR.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.h