]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/ttm: optimize vram access in amdgpu_ttm_access_memory()
authorKevin Wang <kevin1.wang@amd.com>
Fri, 16 Jul 2021 18:03:08 +0000 (14:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Jul 2021 18:03:29 +0000 (14:03 -0400)
commit89b8b83b9d2a46339766789c89c4cc41750fed6d
treed4d038b29e2eab3dfb93a9cdb1dee27e14a36b71
parent1830cabde0f222a003f270a5332c32f2938226a8
drm/amdgpu/ttm: optimize vram access in amdgpu_ttm_access_memory()

1. using vram aper to access vram if possible
2. avoid MM_INDEX/MM_DATA is not working when mmio protect feature is
enabled.

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c