DMA: several drivers depend on HAS_IOMEM
Subsystems (3)
cover DMA: several drivers depend on HAS_IOMEM
A few drivers in drivers/dma/ use iomap(), ioremap(), devm_ioremap(), etc. Building these drivers when CONFIG_HAS_IOMEM is not set results in build errors, so make these drivers depend on HAS_IOMEM.
[PATCH 1/4] DMA: ALTERA_MSGDMA depends on HAS_IOMEM [PATCH 2/4] DMA: QCOM_HIDMA_MGMT depends on HAS_IOMEM [PATCH 3/4] DMA: SF_PDMA depends on HAS_IOMEM [PATCH 4/4] DMA: XILINX_ZYNQMP_DPDMA depends on HAS_IOMEM
Kconfig | 4 ++++ 1 file changed, 4 insertions(+)
PATCH 1/4 DMA: ALTERA_MSGDMA depends on HAS_IOMEM
When CONFIG_HAS_IOMEM is not set/enabled, certain iomap() family functions [including ioremap(), devm_ioremap(), etc.] are not available.
Drivers that use these functions should depend on HAS_IOMEM so that they do not cause build errors.
Repairs this build error:
s390-linux-ld: drivers/dma/altera-msgdma.o: in function `request_and_map':
altera-msgdma.c:(.text+0x14b0): undefined reference to `devm_ioremap'
--- drivers/dma/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/dma/Kconfig +1 -0
@@ -59,6 +59,7 @@ config DMA_OF #devices config ALTERA_MSGDMA tristate "Altera / Intel mSGDMA Engine" + depends on HAS_IOMEM select DMA_ENGINE help Enable support for Altera / Intel mSGDMA controller.
Re: [PATCH 1/4] DMA: ALTERA_MSGDMA depends on HAS_IOMEM
Quoted 10 lines · Randy Dunlap
When
CONFIG_HAS_IOMEMis not set/enabled, certainiomap()family functions [includingioremap(),devm_ioremap(), etc.] are not available.
Drivers that use these functions should depend onHAS_IOMEMso that they do not cause build errors.Repairs this build error:
s390-linux-ld:drivers/dma/altera-msgdma.o: in function `request_and_map':
altera-msgdma.c:(.text+0x14b0): undefined reference to `devm_ioremap'
Quoted 6 lines
Fixes a85c6f1b2921 ("dmaengine: Add driver for Altera / Intel mSGDMA IP core")Signed-off-by Randy Dunlap <[email protected]>Reported-by kernel test robot <[email protected]>Cc Stefan Roese <[email protected]>Cc Vinod Koul <[email protected]>
Thanks,
Stefan
Quoted 8 lines
--- drivers/dma/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/dma/Kconfig config DMA_OF · line 65
Quoted 7 lines
drivers/dma/Kconfig +1
-0@@ -59,6 +59,7 @@ config DMA_OF #devices config ALTERA_MSGDMA tristate "Altera / Intel mSGDMA Engine" + depends on HAS_IOMEM select DMA_ENGINE help Enable support for Altera / Intel mSGDMA controller.
Viele Grüße,
Stefan
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
PATCH 2/4 DMA: QCOM_HIDMA_MGMT depends on HAS_IOMEM
In reply to Randy DunlapWhen CONFIG_HAS_IOMEM is not set/enabled, certain iomap() family functions [including ioremap(), devm_ioremap(), etc.] are not available.
Drivers that use these functions should depend on HAS_IOMEM so that they do not cause build errors.
Rectifies these build errors:
s390-linux-ld: drivers/dma/qcom/hidma_mgmt.o: in function `hidma_mgmt_probe':
hidma_mgmt.c:(.text+0x780): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/dma/qcom/hidma_mgmt.o: in function `hidma_mgmt_init':
hidma_mgmt.c:(.init.text+0x126): undefined reference to `of_address_to_resource'
s390-linux-ld: hidma_mgmt.c:(.init.text+0x16e): undefined reference to `of_address_to_resource'
--- drivers/dma/qcom/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/dma/qcom/Kconfig +1 -0
@@ -33,6 +33,7 @@ config QCOM_GPI_DMA config QCOM_HIDMA_MGMT tristate "Qualcomm Technologies HIDMA Management support" + depends on HAS_IOMEM select DMA_ENGINE help Enable support for the Qualcomm Technologies HIDMA Management.
PATCH 3/4 DMA: SF_PDMA depends on HAS_IOMEM
In reply to Randy DunlapWhen CONFIG_HAS_IOMEM is not set/enabled, certain iomap() family functions [including ioremap(), devm_ioremap(), etc.] are not available.
Drivers that use these functions should depend on HAS_IOMEM so that they do not cause build errors.
Mends this build error:
s390-linux-ld: drivers/dma/sf-pdma/sf-pdma.o: in function `sf_pdma_probe':
sf-pdma.c:(.text+0x1668): undefined reference to `devm_ioremap_resource'
--- drivers/dma/sf-pdma/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/dma/sf-pdma/Kconfig +1 -0
@@ -1,5 +1,6 @@ config SF_PDMA tristate "Sifive PDMA controller driver" + depends on HAS_IOMEM select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help
PATCH 4/4 DMA: XILINX_ZYNQMP_DPDMA depends on HAS_IOMEM
In reply to Randy DunlapWhen CONFIG_HAS_IOMEM is not set/enabled, most iomap() family functions [including ioremap(), devm_ioremap(), etc.] are not available.
Drivers that use these functions should depend on HAS_IOMEM so that they do not cause build errors.
Cures this build error:
s390-linux-ld: drivers/dma/xilinx/xilinx_dpdma.o: in function `xilinx_dpdma_probe':
xilinx_dpdma.c:(.text+0x336a): undefined reference to `devm_platform_ioremap_resource'
--- drivers/dma/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/dma/Kconfig +1 -0
@@ -702,6 +702,7 @@ config XILINX_ZYNQMP_DMA config XILINX_ZYNQMP_DPDMA tristate "Xilinx DPDMA Engine" + depends on HAS_IOMEM select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help
Re: [PATCH 4/4] DMA: XILINX_ZYNQMP_DPDMA depends on HAS_IOMEM
Hi Randy,
Thank you for the patch.
Quoted 9 lines · Randy Dunlap
When
CONFIG_HAS_IOMEMis not set/enabled, mostiomap()family functions [includingioremap(),devm_ioremap(), etc.] are not available.
Drivers that use these functions should depend onHAS_IOMEMso that they do not cause build errors.Cures this build error:
s390-linux-ld:drivers/dma/xilinx/xilinx_dpdma.o: in function `xilinx_dpdma_probe':
xilinx_dpdma.c:(.text+0x336a): undefined reference to `devm_platform_ioremap_resource'
I've previously posted
https://lore.kernel.org/dmaengine/[email protected]/T/#u
which fixes the same issue (plus an additional one).
Quoted 23 lines
Fixes 7cbb0c63de3fc ("dmaengine: xilinx: dpdma: Add the Xilinx DisplayPort DMA engine driver")Signed-off-by Randy Dunlap <[email protected]>Reported-by kernel test robot <[email protected]>Cc Vinod Koul <[email protected]>Cc Hyun Kwon <[email protected]>Cc Tejas Upadhyay <[email protected]>Cc Michal Simek <[email protected]>Cc Laurent Pinchart <[email protected]>--- drivers/dma/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/dma/Kconfig +1
-0@@ -702,6 +702,7 @@ config XILINX_ZYNQMP_DMA config XILINX_ZYNQMP_DPDMA tristate "Xilinx DPDMA Engine" + depends on HAS_IOMEM select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 4/4] DMA: XILINX_ZYNQMP_DPDMA depends on HAS_IOMEM
Quoted 11 lines · Laurent Pinchart
Hi Randy,
Thank you for the patch.
Quoted 6 lines · Randy Dunlap
When
CONFIG_HAS_IOMEMis not set/enabled, mostiomap()family functions [includingioremap(),devm_ioremap(), etc.] are not available.
Drivers that use these functions should depend onHAS_IOMEMso that they do not cause build errors.
Quoted 7 lines
Quoted 3 lines
Cures this build error:
s390-linux-ld:drivers/dma/xilinx/xilinx_dpdma.o: in function `xilinx_dpdma_probe':
xilinx_dpdma.c:(.text+0x336a): undefined reference to `devm_platform_ioremap_resource'I've previously posted
https://lore.kernel.org/dmaengine/[email protected]/T/#u
which fixes the same issue (plus an additional one).
Hi Laurent,
I didn't add a dependency on OF because OF header files _mostly_ have stubs so that they work when OF is enabled or disabled.
I did find a problem in <linux/of_address.h> where it could end up without having a stub. I will post a patch for that soon. I'm currently doing lots of randconfig builds on it.
Thanks.
Quoted 24 lines
Quoted 23 lines
Fixes 7cbb0c63de3fc ("dmaengine: xilinx: dpdma: Add the Xilinx DisplayPort DMA engine driver")Signed-off-by Randy Dunlap <[email protected]>Reported-by kernel test robot <[email protected]>Cc Vinod Koul <[email protected]>Cc Hyun Kwon <[email protected]>Cc Tejas Upadhyay <[email protected]>Cc Michal Simek <[email protected]>Cc Laurent Pinchart <[email protected]>--- drivers/dma/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/dma/Kconfig +1
-0@@ -702,6 +702,7 @@ config XILINX_ZYNQMP_DMA config XILINX_ZYNQMP_DPDMA tristate "Xilinx DPDMA Engine" + depends on HAS_IOMEM select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help
Signature · 1 line
~Randy
Laurent Pinchart
Reviewed-byRe: [PATCH 4/4] DMA: XILINX_ZYNQMP_DPDMA depends on HAS_IOMEM
Hi Randy,
Quoted 16 lines · Randy Dunlap
Quoted 7 lines · Laurent Pinchart
Quoted 6 lines · Randy Dunlap
When
CONFIG_HAS_IOMEMis not set/enabled, mostiomap()family functions [includingioremap(),devm_ioremap(), etc.] are not available.
Drivers that use these functions should depend onHAS_IOMEMso that they do not cause build errors.Quoted 7 lines
Quoted 3 lines
Cures this build error:
s390-linux-ld:drivers/dma/xilinx/xilinx_dpdma.o: in function `xilinx_dpdma_probe':
xilinx_dpdma.c:(.text+0x336a): undefined reference to `devm_platform_ioremap_resource'I've previously posted
https://lore.kernel.org/dmaengine/[email protected]/T/#u
which fixes the same issue (plus an additional one).
Quoted 8 lines
Hi Laurent,
I didn't add a dependency on OF because OF header files _mostly_ have stubs so that they work when OF is enabled or disabled.
I did find a problem in <
linux/of_address.h> where it could end up without having a stub. I will post a patch for that soon. I'm currently doing lots of randconfig builds on it.
I'm fine with eithe approach, but the patch you've posted to address the of_address.h issue has an issue itself.
If Vinod would prefer merging this patch instead of mine,
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Fixes 7cbb0c63de3fc ("dmaengine: xilinx: dpdma: Add the Xilinx DisplayPort DMA engine driver")Signed-off-by Randy Dunlap <[email protected]>Reported-by kernel test robot <[email protected]>Cc Vinod Koul <[email protected]>Cc Hyun Kwon <[email protected]>Cc Tejas Upadhyay <[email protected]>Cc Michal Simek <[email protected]>Cc Laurent Pinchart <[email protected]>--- drivers/dma/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/dma/Kconfig +1
-0@@ -702,6 +702,7 @@ config XILINX_ZYNQMP_DMA config XILINX_ZYNQMP_DPDMA tristate "Xilinx DPDMA Engine" + depends on HAS_IOMEM select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 4/4] DMA: XILINX_ZYNQMP_DPDMA depends on HAS_IOMEM
Quoted 24 lines · Laurent Pinchart
Hi Randy,
Quoted 21 lines · Randy Dunlap
Quoted 7 lines · Laurent Pinchart
Quoted 6 lines · Randy Dunlap
When
CONFIG_HAS_IOMEMis not set/enabled, mostiomap()family functions [includingioremap(),devm_ioremap(), etc.] are not available.
Drivers that use these functions should depend onHAS_IOMEMso that they do not cause build errors.Quoted 7 lines
Quoted 3 lines
Cures this build error:
s390-linux-ld:drivers/dma/xilinx/xilinx_dpdma.o: in function `xilinx_dpdma_probe':
xilinx_dpdma.c:(.text+0x336a): undefined reference to `devm_platform_ioremap_resource'I've previously posted
https://lore.kernel.org/dmaengine/[email protected]/T/#u
which fixes the same issue (plus an additional one).Hi Laurent,
I didn't add a dependency on OF because OF header files _mostly_ have stubs so that they work when OF is enabled or disabled.
Quoted 6 lines
Quoted 3 lines
I did find a problem in <
linux/of_address.h> where it could end up without having a stub. I will post a patch for that soon. I'm currently doing lots of randconfig builds on it.I'm fine with eithe approach, but the patch you've posted to address the
of_address.hissue has an issue itself.
I'm also fine with either patch.
I'm reworking the of_address.h patch now.
Thanks.
Quoted 28 lines
If Vinod would prefer merging this patch instead of mine,
Reviewed-by Laurent Pinchart <[email protected]>Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Fixes 7cbb0c63de3fc ("dmaengine: xilinx: dpdma: Add the Xilinx DisplayPort DMA engine driver")Signed-off-by Randy Dunlap <[email protected]>Reported-by kernel test robot <[email protected]>Cc Vinod Koul <[email protected]>Cc Hyun Kwon <[email protected]>Cc Tejas Upadhyay <[email protected]>Cc Michal Simek <[email protected]>Cc Laurent Pinchart <[email protected]>--- drivers/dma/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/dma/Kconfig +1
-0@@ -702,6 +702,7 @@ config XILINX_ZYNQMP_DMA config XILINX_ZYNQMP_DPDMA tristate "Xilinx DPDMA Engine" + depends on HAS_IOMEM select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help
Signature · 1 line
~Randy
Vinod Koul
maintainerRe: [PATCH 4/4] DMA: XILINX_ZYNQMP_DPDMA depends on HAS_IOMEM
Quoted 29 lines · Randy Dunlap
Quoted 28 lines · Laurent Pinchart
Hi Randy,
Quoted 24 lines · Randy Dunlap
Quoted 7 lines · Laurent Pinchart
Quoted 6 lines · Randy Dunlap
When
CONFIG_HAS_IOMEMis not set/enabled, mostiomap()family functions [includingioremap(),devm_ioremap(), etc.] are not available.
Drivers that use these functions should depend onHAS_IOMEMso that they do not cause build errors.Quoted 7 lines
Quoted 3 lines
Cures this build error:
s390-linux-ld:drivers/dma/xilinx/xilinx_dpdma.o: in function `xilinx_dpdma_probe':
xilinx_dpdma.c:(.text+0x336a): undefined reference to `devm_platform_ioremap_resource'I've previously posted
https://lore.kernel.org/dmaengine/[email protected]/T/#u
which fixes the same issue (plus an additional one).Hi Laurent,
I didn't add a dependency on OF because OF header files _mostly_ have stubs so that they work when OF is enabled or disabled.
I did find a problem in <
linux/of_address.h> where it could end up without having a stub. I will post a patch for that soon. I'm currently doing lots of randconfig builds on it.
Quoted 5 lines
Quoted 2 lines
I'm fine with eithe approach, but the patch you've posted to address the
of_address.hissue has an issue itself.I'm also fine with either patch.
I'm reworking theof_address.hpatch now.
Back from vacation and clearing inbox... I have already applied Laurents patch for this...
Thanks
Signature · 1 line
~Vinod
Vinod Koul
maintainerQuoted 3 lines · Randy Dunlap
A few drivers in
drivers/dma/useiomap(),ioremap(),devm_ioremap(), etc. Building these drivers whenCONFIG_HAS_IOMEMis not set results in build errors, so make these drivers depend onHAS_IOMEM.
Applied 1-3, thanks
Also susbsystem tag is "dmanengine:" I have fixed that up while applying
Signature · 1 line
~Vinod