From: Christoph Hellwig <hch@lst.de> Date: 2018-07-30 07:38:48
There is nothing arch specific about PCI or dma-debug, so move this
call to common code just after registering the bus type.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
arch/powerpc/kernel/dma.c | 3 ---
arch/sh/drivers/pci/pci.c | 2 --
arch/x86/kernel/pci-dma.c | 3 ---
drivers/pci/pci-driver.c | 2 +-
4 files changed, 1 insertion(+), 9 deletions(-)
From: Thomas Gleixner <hidden> Date: 2018-07-30 11:55:33
On Mon, 30 Jul 2018, Christoph Hellwig wrote:
There is nothing arch specific about PCI or dma-debug, so move this
call to common code just after registering the bus type.
Signed-off-by: Christoph Hellwig <hch@lst.de>
[+cc Joerg]
On Mon, Jul 30, 2018 at 09:38:42AM +0200, Christoph Hellwig wrote:
There is nothing arch specific about PCI or dma-debug, so move this
call to common code just after registering the bus type.
I assume that previously, even if the user set CONFIG_DMA_API_DEBUG=y
we only got PCI DMA debug on powerpc, sh, and x86. And after this
patch, we'll get PCI DMA debug on *all* arches?
If that's true, I'll add a comment to that effect to the commitlog
since that new functionality might be of interest to other arches.
On Mon, Jul 30, 2018 at 04:17:13PM -0500, Bjorn Helgaas wrote:
[+cc Joerg]
On Mon, Jul 30, 2018 at 09:38:42AM +0200, Christoph Hellwig wrote:
quoted
There is nothing arch specific about PCI or dma-debug, so move this
call to common code just after registering the bus type.
I assume that previously, even if the user set CONFIG_DMA_API_DEBUG=y
we only got PCI DMA debug on powerpc, sh, and x86. And after this
patch, we'll get PCI DMA debug on *all* arches?
If that's true, I'll add a comment to that effect to the commitlog
since that new functionality might be of interest to other arches.
There should be implicit support for dma-debug for all arches that use
the generic dma_ops code. The dma_debug_add_bus() function just adds the
reporting of pending dma-allocations on driver-unload for a device.
Regards,
Joerg
From: Christoph Hellwig <hch@lst.de> Date: 2018-07-31 08:03:04
On Mon, Jul 30, 2018 at 04:17:13PM -0500, Bjorn Helgaas wrote:
[+cc Joerg]
On Mon, Jul 30, 2018 at 09:38:42AM +0200, Christoph Hellwig wrote:
quoted
There is nothing arch specific about PCI or dma-debug, so move this
call to common code just after registering the bus type.
I assume that previously, even if the user set CONFIG_DMA_API_DEBUG=y
we only got PCI DMA debug on powerpc, sh, and x86. And after this
patch, we'll get PCI DMA debug on *all* arches?
Yes. Note that this only covers the actual bus related part, that
is warning about outstanding dma mappings on unload. The rest of the
dma api debugging already is entirely generic.
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2018-07-31 09:34:22
Christoph Hellwig [off-list ref] writes:
quoted hunk
There is nothing arch specific about PCI or dma-debug, so move this
call to common code just after registering the bus type.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
arch/powerpc/kernel/dma.c | 3 ---
arch/sh/drivers/pci/pci.c | 2 --
arch/x86/kernel/pci-dma.c | 3 ---
drivers/pci/pci-driver.c | 2 +-
4 files changed, 1 insertion(+), 9 deletions(-)
On Mon, Jul 30, 2018 at 09:38:42AM +0200, Christoph Hellwig wrote:
There is nothing arch specific about PCI or dma-debug, so move this
call to common code just after registering the bus type.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Applied with acks from Thomas and Michael to pci/misc for v4.19, thanks!