projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3616d49
)
drm/amdgpu: enable swiotlb for gmc 11.0
author
Aaron Liu
<aaron.liu@amd.com>
Mon, 25 Jul 2022 00:45:56 +0000
(08:45 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Mon, 25 Jul 2022 21:14:35 +0000
(17:14 -0400)
Enable swiotlb for gmc 11.0.
Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
index 503e40a903191734e1ddff065ababb77b6ae7834..1471bfb9ae38ee4c5c43b59c750ea39de9688a54 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
@@
-22,6
+22,9
@@
*/
#include <linux/firmware.h>
#include <linux/pci.h>
+
+#include <drm/drm_cache.h>
+
#include "amdgpu.h"
#include "amdgpu_atomfirmware.h"
#include "gmc_v11_0.h"
@@
-775,6
+778,8
@@
static int gmc_v11_0_sw_init(void *handle)
return r;
}
+ adev->need_swiotlb = drm_need_swiotlb(44);
+
r = gmc_v11_0_mc_init(adev);
if (r)
return r;