linux-next: build failure after merge of the slave-dma tree
Subsystems (3)
Hi all,
After merging the slave-dma tree, today's linux-next build (x86_64 allmodconfig) failed like this:
ERROR: "of_irq_count" [drivers/dma/fsl-edma.ko] undefined!
Caused by commit
7144afd025b2 ("dmaengine: fsl-edma: add i.mx7ulp edma2 version support")
I have reverted that commit for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen,
That's caused by 'of_irq_count' NOT export to global symbol, and I'm curious why it has been
here for so long since Zhangfei found it in 2015. https://patchwork.kernel.org/patch/7404681/
Hi Rob,
Is there something I miss so that Zhangfei's patch not accepted finally?
Quoted 17 lines · On 04-07-19, 15:31 Stephen Rothwell <[email protected]> wrote:
Hi all,
After merging the slave-dma tree, today's linux-next build (
x86_64allmodconfig) failed like this:ERROR: "
of_irq_count" [drivers/dma/fsl-edma.ko] undefined!Caused by commit
7144afd025b2("dmaengine: fsl-edma: add i.mx7ulp edma2 version
support")I have reverted that commit for today.
--
Cheers,
Stephen Rothwell
Vinod Koul
maintainerQuoted 1 line · Robin Gong
Hi Stephen,
Please **do not** top post!
Quoted 2 lines
That's caused by '
of_irq_count' NOT export to global symbol, and I'm curious why it has been
here for so long since Zhangfei found it in 2015. https://patchwork.kernel.org/patch/7404681/
Yes this does not seem to be applied, perhaps Rob can explain why. But this was not exported how did you test it?
Quoted 2 lines
Hi Rob,
Is there something I miss so that Zhangfei's patch not accepted finally?
Rob, the commit in question is [1] and uses of_irq_count. Should it use that if not what is the alternate?
Quoted 10 lines · On 04-07-19, 15:31 Stephen Rothwell <[email protected]> wrote:
Quoted 9 lines
Hi all,
After merging the slave-dma tree, today's linux-next build (
x86_64allmodconfig) failed like this:ERROR: "
of_irq_count" [drivers/dma/fsl-edma.ko] undefined!Caused by commit
Quoted 8 lines
Quoted 8 lines
7144afd025b2("dmaengine: fsl-edma: add i.mx7ulp edma2 version
support")I have reverted that commit for today.
--
Cheers,
Stephen Rothwell
Signature · 1 line
~Vinod
Hi Stephen,
That's caused by 'of_irq_count' NOT export to global symbol, and I'm curious why it has been
here for so long since Zhangfei found it in 2015. https://patchwork.kernel.org/patch/7404681/
Hi Rob,
Is there something I miss so that Zhangfei's patch not accepted finally?
Quoted 17 lines · On 04-07-19, 15:31 Stephen Rothwell <[email protected]> wrote:
Hi all,
After merging the slave-dma tree, today's linux-next build (
x86_64allmodconfig) failed like this:ERROR: "
of_irq_count" [drivers/dma/fsl-edma.ko] undefined!Caused by commit
7144afd025b2("dmaengine: fsl-edma: add i.mx7ulp edma2 version
support")I have reverted that commit for today.
--
Cheers,
Stephen Rothwell
Quoted 11 lines · Vinod Koul
Quoted 5 lines
That's caused by '
of_irq_count' NOT export to global symbol, and I'm
curious why it has been here for so long since Zhangfei found it in 2015.
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F7404681%2F&data=02%7C01%7Cyibin.gon g%40
Quoted 1 line
nxp.com%7C6172242dfadd4f71c09a08d70220bf6f%7C686ea1d3bc2b4c6fa92 cd99c5
Quoted 1 line
Quoted 6 lines
c301635%7C0%7C0%7C636980211986259586&sdata=L8v%2B1o5zfgIAS go4qr3pu
Quoted 1 line
cQ%2Byox1irANsvRv5ZNLlLM%3D&reserved=0
Yes this does not seem to be applied, perhaps Rob can explain why. But this was not exported how did you test it?
I had no such issue because I built in fsl-edma instead of Stephen's config with building module.
Hi, Robin
Quoted 7 lines · Robin Gong
Hi Stephen,
That's caused by 'of_irq_count' NOT export to global symbol, and I'm curious why it has been
here for so long since Zhangfei found it in 2015. https://patchwork.kernel.org/patch/7404681/
Hi Rob,
Is there something I miss so that Zhangfei's patch not accepted finally?
I remembered Rob suggested us not using of_irq_count and use platform_get_irq etc.
https://lkml.org/lkml/2015/11/18/466
So we remove of_irq_count
commit 8c77dca011125b795bfa1c86f85a80132feee578
Author: John Garry <[email protected]>
Date: Thu Nov 19 20:23:59 2015 +0800
hisi_sas: Remove dependency on of_irq_count
Thanks
Vinod Koul
maintainerQuoted 12 lines · Robin Gong
Quoted 11 lines · Vinod Koul
Quoted 5 lines
That's caused by '
of_irq_count' NOT export to global symbol, and I'm
curious why it has been here for so long since Zhangfei found it in 2015.
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F7404681%2F&data=02%7C01%7Cyibin.gon g%40
Quoted 1 line
nxp.com%7C6172242dfadd4f71c09a08d70220bf6f%7C686ea1d3bc2b4c6fa92 cd99c5
Quoted 1 line
Quoted 7 lines
Quoted 6 lines
c301635%7C0%7C0%7C636980211986259586&sdata=L8v%2B1o5zfgIAS go4qr3pu
Quoted 1 line
cQ%2Byox1irANsvRv5ZNLlLM%3D&reserved=0
Yes this does not seem to be applied, perhaps Rob can explain why. But this was not exported how did you test it?
I had no such issue because I built in fsl-edma instead of Stephen's config with building module.
But you support it as a module, right? I am inclined to revert the patch now!
Signature · 1 line
~Vinod
Vinod Koul
maintainerQuoted 11 lines · zhangfei
Hi, Robin
Quoted 7 lines · Robin Gong
Hi Stephen,
That's caused by 'of_irq_count' NOT export to global symbol, and I'm curious why it has been
here for so long since Zhangfei found it in 2015. https://patchwork.kernel.org/patch/7404681/
Hi Rob,
Is there something I miss so that Zhangfei's patch not accepted finally?
Quoted 3 lines
I remembered Rob suggested us not using
of_irq_countand useplatform_get_irqetc.
https://lkml.org/lkml/2015/11/18/466
The explanation looks sane to me, so it makes sense to revert the commit for now. Reverted now
-- >8 --
From 5c274ca4cfb22a455e880f61536b1894fa29fd17 Mon Sep 17 00:00:00 2001
From: Vinod Koul <[email protected]>
Date: Mon, 8 Jul 2019 09:42:55 +0530
Subject: [PATCH] dmaengine: Revert "dmaengine: fsl-edma: add i.mx7ulp edma2
version support"
This reverts commit 7144afd025b2 ("dmaengine: fsl-edma: add i.mx7ulp edma2 version support") as this fails to build with module option due to usage of of_irq_count() which is not an exported symbol as kernel drivers are *not* expected to use it (rightly so).
--- drivers/dma/fsl-edma-common.c | 18 +--------- drivers/dma/fsl-edma-common.h | 4 --- drivers/dma/fsl-edma.c | 66 ----------------------------------- 3 files changed, 1 insertion(+), 87 deletions(-)
drivers/dma/fsl-edma-common.c +1 -17
@@ -90,19 +90,6 @@ static void mux_configure8(struct fsl_edma_chan *fsl_chan, void __iomem *addr,iowrite8 (val8, addr + off); } -void mux_configure32 (struct fsl_edma_chan *fsl_chan,void __iomem *addr, -u32 off,u32 slot,bool enable) -{ -u32 val; - -if (enable) - val =EDMAMUX_CHCFG_ENBL <<24 | slot; -else - val =EDMAMUX_CHCFG_DIS ; - -iowrite32 (val, addr + off *4 ); -} -void fsl_edma_chan_mux (struct fsl_edma_chan *fsl_chan,unsigned int slot,bool enable) {
@@ -116,10 +103,7 @@ void fsl_edma_chan_mux(struct fsl_edma_chan *fsl_chan, muxaddr = fsl_chan->edma->muxbase[ch / chans_per_mux]; slot =EDMAMUX_CHCFG_SOURCE (slot); -if (fsl_chan->edma->drvdata->version == v3) -mux_configure32 (fsl_chan, muxaddr, ch_off, slot, enable); -else -mux_configure8 (fsl_chan, muxaddr, ch_off, slot, enable); +mux_configure8 (fsl_chan, muxaddr, ch_off, slot, enable); }EXPORT_SYMBOL_GPL (fsl_edma_chan_mux);
drivers/dma/fsl-edma-common.h +0 -4
@@ -125,7 +125,6 @@ struct fsl_edma_chan {dma_addr_t dma_dev_addr;u32 dma_dev_size;enum dma_data_direction dma_dir; -char chan_name[16 ]; };struct fsl_edma_desc {
@@ -140,13 +139,11 @@ struct fsl_edma_desc {enum edma_version { v1,/* 32ch, Vybrid, mpc57x, etc */ v2,/* 64ch Coldfire */ - v3,/* 32ch, i.mx7ulp */ };struct fsl_edma_drvdata {enum edma_version version;u32 dmamuxs; -bool has_dmaclk;int (*setup_irq)(struct platform_device *pdev,struct fsl_edma_engine *fsl_edma); };
@@ -156,7 +153,6 @@ struct fsl_edma_engine {void __iomem *membase;void __iomem *muxbase[DMAMUX_NR ];struct clk *muxclk[DMAMUX_NR ]; -struct clk *dmaclk;struct mutex fsl_edma_mutex;const struct fsl_edma_drvdata *drvdata;u32 n_chans;
drivers/dma/fsl-edma.c +0 -5
@@ -166,50 +166,6 @@ fsl_edma_irq_init(struct platform_device *pdev, struct fsl_edma_engine *fsl_edmareturn 0 ; } -static int -fsl_edma2_irq_init (struct platform_device *pdev, -struct fsl_edma_engine *fsl_edma) -{ --
~Vinod
Quoted 31 lines · zhangfei
Hi, Robin
Quoted 6 lines · Robin Gong
Hi Stephen,
That's caused by 'of_irq_count' NOT export to global symbol, and I'm
curious why it has been here for so long since Zhangfei found it in 2015.
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.kernel.org%2Fpatch%2F7404681%2F&data=02%7C01%7Cyibin.gon g%40
Quoted 1 line
nxp.com%7C5917e41babe84d562d4708d703514ed8%7C686ea1d3bc2b4c6fa
92cd99c5Quoted 1 line
c301635%7C0%7C0%7C636981520060417930&sdata=QwPjifxeCEJmlrk0 2Ne71Bb
Quoted 5 lines
hSgsZNLLgx7PnO81MHmA%3D&reserved=0
Hi Rob,
Is there something I miss so that Zhangfei's patch not accepted finally?I remembered Rob suggested us not using
of_irq_countand useplatform_get_irqetc.
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flkml.org
%2Flkml%2F2015%2F11%2F18%2F466&data=02%7C01%7Cyibin.gong%4 0nxp.com%7C5917e41babe84d562d4708d703514ed8%7C686ea1d3bc2b4c6f a92cd99c5c301635%7C0%7C0%7C636981520060417930&sdata=g2mNB 33%2Ba09JIpXot6j0w%2FV30grSVCt1GxZJCHyEgiM%3D&reserved=0
Quoted 8 lines
So we remove
of_irq_count
commit8c77dca011125b795bfa1c86f85a80132feee578
Author: John Garry <[email protected]>
Date: Thu Nov 19 20:23:59 2015 +0800
hisi_sas: Remove dependency onof_irq_countThanks
Thank Fei for your kind information:)
Quoted 14 lines · On 2019/7/8 12:17 Vinod Koul <[email protected]> wrote:
Quoted 11 lines · zhangfei
Hi, Robin
Quoted 4 lines · Robin Gong
Hi Stephen,
That's caused by 'of_irq_count' NOT export to global symbol, and
I'm curious why it has been here for so long since Zhangfei found it in 2015.I remembered Rob suggested us not using
of_irq_countand useplatform_get_irqetc.
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flkml
.org%2Flkml%2F2015%2F11%2F18%2F466&data=02%7C01%7Cyibin.gong%40nxp
Quoted 1 line
.com%7Cb6d84a6976d7457dc34408d7035baaf5%7C686ea1d3bc2b4c6fa92
Quoted 8 lines
cd99c5c30Quoted 1 line
1635%7C0%7C0%7C636981564557143537&sdata=jEgFnB3YNkVtsigfbN6 XGJojlb
Quoted 1 line
JAyOi8kiGd5JHJEcM%3D&reserved=0
The explanation looks sane to me, so it makes sense to revert the commit for now. Reverted now
Ok, I will send v6 with the fix.