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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to