Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/nouveau: Disable AGP on PowerPC again.

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>

authored by

Francisco Jerez and committed by
Ben Skeggs
650e1203 65b5f42e

+12
+12
drivers/gpu/drm/nouveau/nouveau_agp.c
··· 47 47 if (drm->agp.stat == UNKNOWN) { 48 48 if (!nouveau_agpmode) 49 49 return false; 50 + #ifdef __powerpc__ 51 + /* Disable AGP by default on all PowerPC machines for 52 + * now -- At least some UniNorth-2 AGP bridges are 53 + * known to be broken: DMA from the host to the card 54 + * works just fine, but writeback from the card to the 55 + * host goes straight to memory untranslated bypassing 56 + * the GATT somehow, making them quite painful to deal 57 + * with... 58 + */ 59 + if (nouveau_agpmode == -1) 60 + return false; 61 + #endif 50 62 return true; 51 63 } 52 64