--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -180,7 +180,9 @@ void amdgpu_bo_placement_from_domain(struct
amdgpu_bo *abo, u32 domain)
places[c].fpfn = 0;
places[c].lpfn = 0;
places[c].flags = TTM_PL_FLAG_SYSTEM;
- if (flags & AMDGPU_GEM_CREATE_CPU_GTT_USWC)
+ if (!IS_ENABLED(CONFIG_ARM64) &&
+ !IS_ENABLED(CONFIG_ARM) &&
+ (flags & AMDGPU_GEM_CREATE_CPU_GTT_USWC))
places[c].flags |= TTM_PL_FLAG_WC |
TTM_PL_FLAG_UNCACHED;
else
Patch fails against my mainline Linux tree. which section does it modify?
if (domain & AMDGPU_GEM_DOMAIN_GTT) {
or
if (domain & AMDGPU_GEM_DOMAIN_CPU) {
it looks like it should be the latter. You'd need similar changes to radeon as well right?