Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Add address checking for uniras

Add address checking for uniras

Signed-off-by: Jinzhou Su <jinzhou.su@amd.com>
Reviewed-by: YiPeng Chai <YiPeng.Chai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Jinzhou Su and committed by
Alex Deucher
0621f21c dc135aa7

+6 -1
+6 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
··· 237 237 (address >= RAS_UMC_INJECT_ADDR_LIMIT)) 238 238 return -EFAULT; 239 239 240 - count = amdgpu_umc_lookup_bad_pages_in_a_row(adev, 240 + if (amdgpu_uniras_enabled(adev)) 241 + count = amdgpu_ras_mgr_lookup_bad_pages_in_a_row(adev, address, 242 + page_pfns, ARRAY_SIZE(page_pfns)); 243 + else 244 + count = amdgpu_umc_lookup_bad_pages_in_a_row(adev, 241 245 address, page_pfns, ARRAY_SIZE(page_pfns)); 246 + 242 247 if (count <= 0) 243 248 return -EPERM; 244 249