]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amdgpu: replace DRM_ERROR with DRM_WARN in ras_reserve_bad_pages
authorTao Zhou <tao.zhou1@amd.com>
Thu, 12 Sep 2019 10:57:23 +0000 (18:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:10:59 +0000 (09:10 -0500)
commitae115c81ecd379aed20715c3ff98ee9f651acfce
tree8227836f7ebac15b3db7355a673402ba0b30ebc3
parent879e723df3cd0bfda4a036477b1359563406dbca
drm/amdgpu: replace DRM_ERROR with DRM_WARN in ras_reserve_bad_pages

There are two cases of reserve error should be ignored:
1) a ras bad page has been allocated (used by someone);
2) a ras bad page has been reserved (duplicate error injection for one page);

DRM_ERROR is unnecessary for the failure of bad page reserve

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