drm/amdgpu: add ip name print for selecting ips with ip_block_mask
authorHuang Rui <ray.huang@amd.com>
Wed, 3 May 2017 01:40:17 +0000 (09:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Jun 2017 20:59:16 +0000 (16:59 -0400)
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 383a943..e3ca67e 100644 (file)
@@ -1572,7 +1572,8 @@ static int amdgpu_early_init(struct amdgpu_device *adev)
 
        for (i = 0; i < adev->num_ip_blocks; i++) {
                if ((amdgpu_ip_block_mask & (1 << i)) == 0) {
-                       DRM_ERROR("disabled ip block: %d\n", i);
+                       DRM_ERROR("disabled ip block: %d <%s>\n",
+                                 i, adev->ip_blocks[i].version->funcs->name);
                        adev->ip_blocks[i].status.valid = false;
                } else {
                        if (adev->ip_blocks[i].version->funcs->early_init) {