Return-Path: linux-nfs-owner@vger.kernel.org Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:57177 "EHLO e06smtp10.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753540Ab2E3Mqu (ORCPT ); Wed, 30 May 2012 08:46:50 -0400 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 30 May 2012 13:46:48 +0100 In-Reply-To: <20120530122858.GB29006@nautica> References: <20120530114338.GA28445@nautica> <20120530122858.GB29006@nautica> Subject: Re: NFS/RDMA - client crash on mount To: Dominique Martinet Cc: linux-nfs@vger.kernel.org, linux-rdma@vger.kernel.org, linux-rdma-owner@vger.kernel.org Message-ID: From: Bernard Metzler Date: Wed, 30 May 2012 14:46:33 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Sender: linux-nfs-owner@vger.kernel.org List-ID: For siw, the dma_device->bus is currently not set, which will cause the crash. As we were testing NFS/RDMA we just disabled that fix for some Mellanox device. I agree I probably have to find a more consistent way to fake real dma hardware. Any suggestions? Thanks, Bernard. linux-rdma-owner@vger.kernel.org wrote on 05/30/2012 02:28:58 PM: > From: Dominique Martinet > To: linux-nfs@vger.kernel.org, linux-rdma@vger.kernel.org, > Date: 05/30/2012 02:29 PM > Subject: Re: NFS/RDMA - client crash on mount > Sent by: linux-rdma-owner@vger.kernel.org > > Hi, > > Well don't mind me, it was soft-iwarp related afterall. > It would look like siw doesn't like 2K MTU like a few other devices, > adding it in the list in net/sunrpc/xprtrdma/verbs.c around line 880 > made the crash just disappear. > > It's not something easy to patch though given siw is out of tree, why is > the MTU 2k by default? Isn't there a way to get capatibilities out of > the devices, other than an hard-coded list like this? > > (this: > /* XXX Tavor device performs badly with 2K MTU! */ > if (strnicmp(ia->ri_id->device->dma_device->bus->name, "pci", 3) == 0) > { > struct pci_dev *pcid = to_pci_dev(ia->ri_id->device->dma_device); > if (pcid->device == PCI_DEVICE_ID_MELLANOX_TAVOR && > (pcid->vendor == PCI_VENDOR_ID_MELLANOX || > pcid->vendor == PCI_VENDOR_ID_TOPSPIN)) { > struct ib_qp_attr attr = { > .path_mtu = IB_MTU_1024 > }; > rc = ib_modify_qp(ia->ri_id->qp, &attr, IB_QP_PATH_MTU); > } > }) > > > Sorry for the noise then, thanks to everyone who bothered to read my > mail. > > -- > Dominique Martinet > > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >