[PATCH] 2.6.10 Altix : virtual DMA channel mod

From: Pat Gefre <pfg_at_sgi.com>
Date: 2004-10-20 10:37:30
Mod to allow functions other than zero to use virtual channel 1.


Signed-off-by: Patrick Gefre <pfg@sgi.com>
Acked-by: Patrick Gefre <pfg@sgi.com>


-- 

Patrick Gefre
Silicon Graphics, Inc.                     (E-Mail)  pfg@sgi.com
2750 Blue Water Rd                         (Voice)   (651) 683-3127
Eagan, MN 55121-1400                       (FAX)     (651) 683-3054



# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/10/19 19:27:10-05:00 pfg@sgi.com 
#   arch/ia64/sn/pci/pcibr/pcibr_dma.c
#       In PCI mode, we want functions other than zero to use virtual DMA channel
#       one so we don't thrash the read-response buffers
# 
# arch/ia64/sn/pci/pcibr/pcibr_dma.c
#   2004/10/19 19:27:00-05:00 pfg@sgi.com +4 -0
#   In PCI mode, we want functions other than zero to use virtual DMA channel
#   one so we don't thrash the read-response buffers
# 
diff -Nru a/arch/ia64/sn/pci/pcibr/pcibr_dma.c b/arch/ia64/sn/pci/pcibr/pcibr_dma.c
--- a/arch/ia64/sn/pci/pcibr/pcibr_dma.c	2004-10-19 19:27:48 -05:00
+++ b/arch/ia64/sn/pci/pcibr/pcibr_dma.c	2004-10-19 19:27:49 -05:00
@@ -133,6 +133,10 @@
 	} else
 		pci_addr |= TIOCP_PCI64_CMDTYPE_MEM;
 
+	/* If PCI mode, func zero uses VCHAN0, every other func uses VCHAN1 */
+	if (!IS_PCIX(pcibus_info) && PCI_FUNC(info->pdi_linux_pcidev->devfn))
+		pci_addr |= PCI64_ATTR_VIRTUAL;
+
 	return pci_addr;
 
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Oct 19 23:08:10 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:31 EST