]> git.itanic.dy.fi Git - linux-stable/commit
drm/amdgpu: add error print when failing to add IP block(v2)
authorGuchun Chen <guchun.chen@amd.com>
Thu, 11 Nov 2021 03:15:08 +0000 (11:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Nov 2021 22:41:07 +0000 (17:41 -0500)
commit69650a879b93e7e445e7a833287701ea7f32bd3a
tree7141618f10da00746a56a934802dc9b4ac56d769
parent38a268b39182bfe694806e03974326270c1f170f
drm/amdgpu: add error print when failing to add IP block(v2)

Driver initialization is driven by IP version from IP
discovery table. So add error print when failing to add
ip block during driver initialization, this will be more
friendly to user to know which IP version is not correct.

[   40.467361] [drm] host supports REQ_INIT_DATA handshake
[   40.474076] [drm] add ip block number 0 <nv_common>
[   40.474090] [drm] add ip block number 1 <gmc_v10_0>
[   40.474101] [drm] add ip block number 2 <psp>
[   40.474103] [drm] add ip block number 3 <navi10_ih>
[   40.474114] [drm] add ip block number 4 <smu>
[   40.474119] [drm] add ip block number 5 <amdgpu_vkms>
[   40.474134] [drm] add ip block number 6 <gfx_v10_0>
[   40.474143] [drm] add ip block number 7 <sdma_v5_2>
[   40.474147] amdgpu 0000:00:08.0: amdgpu: Fatal error during GPU init
[   40.474545] amdgpu 0000:00:08.0: amdgpu: amdgpu: finishing device.

v2: use dev_err to multi-GPU system

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c