On 09/01/2019 21:10, Ard Biesheuvel wrote:
--- 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?

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.