]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: restrict bo mapping within gpu address limits
authorRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Sat, 25 Apr 2020 05:01:12 +0000 (01:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jun 2020 17:51:38 +0000 (13:51 -0400)
commit17ed07dfc530ef8db076c2c9c43188b474da2446
tree4ef4de3111c83f76d58e887f6d99a3145fdd577e
parent5c44e7a9dcc7d0137bb11d293c9628e304007c09
drm/amdgpu: restrict bo mapping within gpu address limits

Have strict check on bo mapping since on some systems, such as A+A or
hybrid, the cpu might support 5 level paging or can address memory above
48 bits but gpu might be limited by hardware to just use 48 bits. In
general, this applies to all asics where this limitation can be checked
against their max_pfn range. This restricts the range to map bo within
pratical limits of cpu and gpu for shared virtual memory access.

Reviewed-by: Oak Zeng <oak.zeng@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c