drm/amdgpu: revert "reserve backup pages for bad page retirment"
authorChristian König <christian.koenig@amd.com>
Thu, 18 Mar 2021 13:04:06 +0000 (14:04 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:40:06 +0000 (23:40 -0400)
commite5c04edfcde373b093d2a07322873b3ce1c5b88e
treee8eb34a03fa13a26c8568206987e31d7e0244ae8
parent6b44b667e24cf89603ebdaa31b939c034d425162
drm/amdgpu: revert "reserve backup pages for bad page retirment"

As noted during the review this approach doesn't make sense at all.

We should not apply any limitation on the VRAM applications can use inside the kernel.

If an application or end user wants to reserve a certain amount of VRAM for bad pages handling we should do this in the upper layer.

This reverts commit f89b881c81d9a6481fc17b46b351ca38f5dd6f3a.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c