]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: fix comments and error message for ipdump
authorSunil Khatri <sunil.khatri@amd.com>
Fri, 31 May 2024 07:07:39 +0000 (12:37 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Jun 2024 15:02:09 +0000 (11:02 -0400)
Fix comments and error messages to rightly represent
the information.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index 56f594ad557ef183dca01368a5c3903ac4cbd2f4..3b0d8d3af58aa783d5007d1c84a4ce18cfa5fb98 100644 (file)
@@ -4650,7 +4650,7 @@ static void gfx_v10_0_alloc_ip_dump(struct amdgpu_device *adev)
 
        ptr = kcalloc(reg_count, sizeof(uint32_t), GFP_KERNEL);
        if (ptr == NULL) {
-               DRM_ERROR("Failed to allocate memory for IP Dump\n");
+               DRM_ERROR("Failed to allocate memory for GFX IP Dump\n");
                adev->gfx.ip_dump_core = NULL;
        } else {
                adev->gfx.ip_dump_core = ptr;
@@ -4663,7 +4663,7 @@ static void gfx_v10_0_alloc_ip_dump(struct amdgpu_device *adev)
 
        ptr = kcalloc(reg_count * inst, sizeof(uint32_t), GFP_KERNEL);
        if (ptr == NULL) {
-               DRM_ERROR("Failed to allocate memory for GFX CP IP Dump\n");
+               DRM_ERROR("Failed to allocate memory for Compute Queues IP Dump\n");
                adev->gfx.ip_dump_compute_queues = NULL;
        } else {
                adev->gfx.ip_dump_compute_queues = ptr;
@@ -4676,7 +4676,7 @@ static void gfx_v10_0_alloc_ip_dump(struct amdgpu_device *adev)
 
        ptr = kcalloc(reg_count * inst, sizeof(uint32_t), GFP_KERNEL);
        if (ptr == NULL) {
-               DRM_ERROR("Failed to allocate memory for GFX CP IP Dump\n");
+               DRM_ERROR("Failed to allocate memory for GFX Queues IP Dump\n");
                adev->gfx.ip_dump_gfx_queues = NULL;
        } else {
                adev->gfx.ip_dump_gfx_queues = ptr;
index e4e669d91a57ffdb0f469c719610ede6a8c3aaf1..0a9cbb550194cb068182dc23147ba7a146add324 100644 (file)
@@ -1482,7 +1482,7 @@ static void gfx_v11_0_alloc_ip_dump(struct amdgpu_device *adev)
 
        ptr = kcalloc(reg_count, sizeof(uint32_t), GFP_KERNEL);
        if (ptr == NULL) {
-               DRM_ERROR("Failed to allocate memory for IP Dump\n");
+               DRM_ERROR("Failed to allocate memory for GFX IP Dump\n");
                adev->gfx.ip_dump_core = NULL;
        } else {
                adev->gfx.ip_dump_core = ptr;
@@ -1495,7 +1495,7 @@ static void gfx_v11_0_alloc_ip_dump(struct amdgpu_device *adev)
 
        ptr = kcalloc(reg_count * inst, sizeof(uint32_t), GFP_KERNEL);
        if (ptr == NULL) {
-               DRM_ERROR("Failed to allocate memory for GFX CP IP Dump\n");
+               DRM_ERROR("Failed to allocate memory for Compute Queues IP Dump\n");
                adev->gfx.ip_dump_compute_queues = NULL;
        } else {
                adev->gfx.ip_dump_compute_queues = ptr;
@@ -1508,7 +1508,7 @@ static void gfx_v11_0_alloc_ip_dump(struct amdgpu_device *adev)
 
        ptr = kcalloc(reg_count * inst, sizeof(uint32_t), GFP_KERNEL);
        if (ptr == NULL) {
-               DRM_ERROR("Failed to allocate memory for GFX CP IP Dump\n");
+               DRM_ERROR("Failed to allocate memory for GFX Queues IP Dump\n");
                adev->gfx.ip_dump_gfx_queues = NULL;
        } else {
                adev->gfx.ip_dump_gfx_queues = ptr;
index 6180e7a9d89e0d70072ce67e395f30d37390de91..ad99ee10fd4a01fe6de1b90ab1a101480fc9e562 100644 (file)
@@ -2131,7 +2131,7 @@ static void gfx_v9_0_alloc_ip_dump(struct amdgpu_device *adev)
 
        ptr = kcalloc(reg_count, sizeof(uint32_t), GFP_KERNEL);
        if (ptr == NULL) {
-               DRM_ERROR("Failed to allocate memory for IP Dump\n");
+               DRM_ERROR("Failed to allocate memory for GFX IP Dump\n");
                adev->gfx.ip_dump_core = NULL;
        } else {
                adev->gfx.ip_dump_core = ptr;
@@ -2144,7 +2144,7 @@ static void gfx_v9_0_alloc_ip_dump(struct amdgpu_device *adev)
 
        ptr = kcalloc(reg_count * inst, sizeof(uint32_t), GFP_KERNEL);
        if (ptr == NULL) {
-               DRM_ERROR("Failed to allocate memory for GFX CP IP Dump\n");
+               DRM_ERROR("Failed to allocate memory for Compute Queues IP Dump\n");
                adev->gfx.ip_dump_compute_queues = NULL;
        } else {
                adev->gfx.ip_dump_compute_queues = ptr;