]> git.baikalelectronics.ru Git - kernel.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)
commit1af0bf8b7fb5622c10069e07b02849c5fa372f62
tree8227836f7ebac15b3db7355a673402ba0b30ebc3
parent4c8635a2eee157e2c5c21cbb432ae991f6166724
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