From: Brice Goglin Date: Wed, 7 Mar 2007 19:01:53 +0000 (+0100) Subject: myri10ge: prevent 4k rdma on SGI TIOCE chipset X-Git-Tag: v2.6.21-rc4~70^2~9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4c882dd808b907652c9a8fe4f7d345cb4dee6a92;p=linux-2.6-omap-h63xx.git myri10ge: prevent 4k rdma on SGI TIOCE chipset Do not use 4k rdma request on SGI TIOCE chipset since this bridge does not support it. Signed-off-by: Brice Goglin Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index eab9b5acd0c..68fd38b291f 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c @@ -2524,6 +2524,12 @@ static void myri10ge_select_firmware(struct myri10ge_priv *mgp) bridge->vendor, bridge->device); mgp->tx.boundary = 4096; mgp->fw_name = myri10ge_fw_aligned; + } else if (bridge && + bridge->vendor == PCI_VENDOR_ID_SGI && + bridge->device == 0x4002 /* TIOCE pcie-port */ ) { + /* this pcie bridge does not support 4K rdma request */ + mgp->tx.boundary = 2048; + mgp->fw_name = myri10ge_fw_aligned; } } else { if (myri10ge_force_firmware == 1) {