drm/amdgpu: add ip block number prints
authorHuang Rui <ray.huang@amd.com>
Wed, 3 May 2017 01:52:06 +0000 (09:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Jun 2017 20:59:23 +0000 (16:59 -0400)
User is able to follow the ip block number to write the ip_block_mask for
selecting the one which user would like to enable.

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 e3ca67e3fca7958af4a8136c022063814819ec25..0296c9efc3566f2c3ed7d557d117788c2ff0f308 100644 (file)
@@ -1347,6 +1347,9 @@ int amdgpu_ip_block_add(struct amdgpu_device *adev,
        if (!ip_block_version)
                return -EINVAL;
 
+       DRM_DEBUG("add ip block number %d <%s>\n", adev->num_ip_blocks,
+                 ip_block_version->funcs->name);
+
        adev->ip_blocks[adev->num_ip_blocks++].version = ip_block_version;
 
        return 0;