]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: only enable swiotlb path when need v2
authorChunming Zhou <david1.zhou@amd.com>
Fri, 9 Feb 2018 02:44:10 +0000 (10:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Feb 2018 18:35:14 +0000 (13:35 -0500)
commit4f1a58df59efd0634e68340f2e30bc7b36783409
tree007968d3f7aeda3b5be83ced24ce407023728802
parent4357374c0d64487544fe61f11d45d9d38c2ff2ad
drm/radeon: only enable swiotlb path when need v2

swiotlb expands our card accessing range, but its path always is slower
than ttm pool allocation.
So add condition to use it.
v2: move a bit 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-3-david1.zhou@amd.com
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_ttm.c