[Nouveau] [PATCH] copy: don't bother trying to create copy on pre-nva3

Ilia Mirkin imirkin at alum.mit.edu
Thu Sep 4 12:27:53 PDT 2014


Only the NVA3/5/8/F tesla chips have a copy engine. Don't bother trying
to create one on earlier tesla chips (and thus printing an error on
failure).

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
 src/nouveau_copy.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/nouveau_copy.c b/src/nouveau_copy.c
index f46f0c3..3202121 100644
--- a/src/nouveau_copy.c
+++ b/src/nouveau_copy.c
@@ -61,6 +61,10 @@ nouveau_copy_init(ScreenPtr pScreen)
 
 	switch (pNv->Architecture) {
 	case NV_TESLA:
+		if (pNv->dev->chipset < 0xa3 ||
+		    pNv->dev->chipset == 0xaa ||
+		    pNv->dev->chipset == 0xac)
+			return FALSE;
 		data = &(struct nv04_fifo) {
 			.vram = NvDmaFB,
 			.gart = NvDmaTT,
-- 
1.8.5.5



More information about the Nouveau mailing list