]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: only enable swiotlb alloc when need v2
authorChunming Zhou <david1.zhou@amd.com>
Fri, 9 Feb 2018 02:44:09 +0000 (10:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Feb 2018 18:33:32 +0000 (13:33 -0500)
commit6fe50d28b4514f731947ab3e0ee26bcfd356a2a4
tree3eff145418a91d1fd03a226763c122dee882bb15
parent0de65182e793e77dd1cac450cc4716323ed3e6c1
drm/amdgpu: only enable swiotlb alloc when need v2

get the max io mapping address of system memory to see if it is over
our card accessing range.
v2: move checking later

Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180209024410.1469-2-david1.zhou@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c