Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1589111
| From | Sebastian Ott <sebott@linux.vnet.ibm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | IB on s390 broken with commit 99db94940 "IB/core: Remove ib_device.dma_device" |
| Date | 2017-02-28 03:30 +0100 |
| Message-ID | <tfFI5-6em-1@gated-at.bofh.it> (permalink) |
| Organization | "IBM Deutschland Research & Development GmbH / Vorsitzende des Aufsichtsrats: Martina Koederitz Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294" |
Hi, commit 99db94940 "IB/core: Remove ib_device.dma_device" breaks infiniband on s390 (and I think also other archs that do something like to_pci_dev(dev) in one of their dma_ops callbacks). With this commit you use the dma_ops of the device that called ib_register_device but you call e.g. dma_map with ib_device->dev as an argument. S390's (pci specific) dma_map uses to_pci_dev(dev) to look into the pci device (and its arch specific data) and oopses. Calling dma_map with ib_device->dev.parent would work but then it wouldn't make sense to copy dma_ops and mask from ib_device->dev.parent to ib_device->dev.. Regards, Sebastian
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
IB on s390 broken with commit 99db94940 "IB/core: Remove ib_device.dma_device" Sebastian Ott <sebott@linux.vnet.ibm.com> - 2017-02-28 03:30 +0100
Re: IB on s390 broken with commit 99db94940 "IB/core: Remove ib_device.dma_device" Sebastian Ott <sebott@linux.vnet.ibm.com> - 2017-02-28 11:00 +0100
Re: IB on s390 broken with commit 99db94940 "IB/core: Remove ib_device.dma_device" Sebastian Ott <sebott@linux.vnet.ibm.com> - 2017-02-28 12:00 +0100
RE: IB on s390 broken with commit 99db94940 "IB/core: Remove ib_device.dma_device" Parav Pandit <parav@mellanox.com> - 2017-02-28 22:40 +0100
csiph-web