Skip to contentSkip to conversation

device/pci: set as non-CPU-coherent on ARM64

PATCH Superseded Alexandre Courbot 1 participant 1 message Mar 3, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 device/pci: set as non-CPU-coherent on ARM64

Without this buffer inconsistencies may appear between the CPU and GPU when using a PCI GPU on an ARM64 board.

---
 drm/nouveau/nvkm/engine/device/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drm/nouveau/nvkm/engine/device/pci.c +1 -1
index 62ad0300cfa5..18fab3973ce5 100644
@@ -1614,7 +1614,7 @@ nvkm_device_pci_func = {
 	.fini = nvkm_device_pci_fini,
 	.resource_addr = nvkm_device_pci_resource_addr,
 	.resource_size = nvkm_device_pci_resource_size,
-	.cpu_coherent = !IS_ENABLED(CONFIG_ARM),
+	.cpu_coherent = !IS_ENABLED(CONFIG_ARM) && !IS_ENABLED(CONFIG_ARM64),
 };
 
 int
Signature · 6 lines
2.7.2

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau