Commit 43fbcde0 authored by Michel Dänzer's avatar Michel Dänzer Committed by Alex Deucher

drm/amdgpu: Downgrade DRM_ERROR to DRM_DEBUG in amdgpu_queue_mgr_map

Prevent buggy userspace from spamming dmesg.
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5b565e0e
...@@ -225,7 +225,7 @@ int amdgpu_queue_mgr_map(struct amdgpu_device *adev, ...@@ -225,7 +225,7 @@ int amdgpu_queue_mgr_map(struct amdgpu_device *adev,
/* Right now all IPs have only one instance - multiple rings. */ /* Right now all IPs have only one instance - multiple rings. */
if (instance != 0) { if (instance != 0) {
DRM_ERROR("invalid ip instance: %d\n", instance); DRM_DEBUG("invalid ip instance: %d\n", instance);
return -EINVAL; return -EINVAL;
} }
...@@ -255,12 +255,12 @@ int amdgpu_queue_mgr_map(struct amdgpu_device *adev, ...@@ -255,12 +255,12 @@ int amdgpu_queue_mgr_map(struct amdgpu_device *adev,
ip_num_rings = adev->vcn.num_enc_rings; ip_num_rings = adev->vcn.num_enc_rings;
break; break;
default: default:
DRM_ERROR("unknown ip type: %d\n", hw_ip); DRM_DEBUG("unknown ip type: %d\n", hw_ip);
return -EINVAL; return -EINVAL;
} }
if (ring >= ip_num_rings) { if (ring >= ip_num_rings) {
DRM_ERROR("Ring index:%d exceeds maximum:%d for ip:%d\n", DRM_DEBUG("Ring index:%d exceeds maximum:%d for ip:%d\n",
ring, ip_num_rings, hw_ip); ring, ip_num_rings, hw_ip);
return -EINVAL; return -EINVAL;
} }
...@@ -292,7 +292,7 @@ int amdgpu_queue_mgr_map(struct amdgpu_device *adev, ...@@ -292,7 +292,7 @@ int amdgpu_queue_mgr_map(struct amdgpu_device *adev,
default: default:
*out_ring = NULL; *out_ring = NULL;
r = -EINVAL; r = -EINVAL;
DRM_ERROR("unknown HW IP type: %d\n", mapper->hw_ip); DRM_DEBUG("unknown HW IP type: %d\n", mapper->hw_ip);
} }
out_unlock: out_unlock:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment