* [PATCH] dmaengine: loongson: Use %p for pointer formatting
@ 2026-09-18 10:34 Sebastian Andrzej Siewior
2026-09-18 17:06 ` Frank Li
0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Andrzej Siewior @ 2026-09-18 10:34 UTC (permalink / raw)
To: dmaengine; +Cc: Binbin Zhou, Vinod Koul, Frank Li
The %pK format modifier was meant for /proc kind of output, not general
printk output. Since commit ad67b74d2469d ("printk: hash addresses
printed with %p") pointers are hashed by default and the behaviour can
be controller by `hash_pointers' boot argument.
The policy on %p is to not introduce new ones. This is the only pointer
output in the driver.
Remove the pointer formating from debug output.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
drivers/dma/loongson/loongson2-apb-cmc-dma.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/dma/loongson/loongson2-apb-cmc-dma.c b/drivers/dma/loongson/loongson2-apb-cmc-dma.c
index 1c9a542edc859..27f8f7a5738d9 100644
--- a/drivers/dma/loongson/loongson2-apb-cmc-dma.c
+++ b/drivers/dma/loongson/loongson2-apb-cmc-dma.c
@@ -337,7 +337,6 @@ static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan)
guard(spinlock_irqsave)(&lchan->vchan.lock);
if (vchan_issue_pending(&lchan->vchan) && !lchan->desc) {
- dev_dbg(chan2dev(lchan), "vchan %pK: issued\n", &lchan->vchan);
loongson2_cmc_dma_start_transfer(lchan);
}
}
--
2.55.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] dmaengine: loongson: Use %p for pointer formatting
2026-09-18 10:34 [PATCH] dmaengine: loongson: Use %p for pointer formatting Sebastian Andrzej Siewior
@ 2026-09-18 17:06 ` Frank Li
2026-09-18 17:17 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 4+ messages in thread
From: Frank Li @ 2026-09-18 17:06 UTC (permalink / raw)
To: Sebastian Andrzej Siewior; +Cc: dmaengine, Binbin Zhou, Vinod Koul, Frank Li
On Fri, Sep 18, 2026 at 12:34:09PM +0200, Sebastian Andrzej Siewior wrote:
> The %pK format modifier was meant for /proc kind of output, not general
> printk output. Since commit ad67b74d2469d ("printk: hash addresses
> printed with %p") pointers are hashed by default and the behaviour can
> be controller by `hash_pointers' boot argument.
> The policy on %p is to not introduce new ones. This is the only pointer
> output in the driver.
>
> Remove the pointer formating from debug output.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
> drivers/dma/loongson/loongson2-apb-cmc-dma.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/dma/loongson/loongson2-apb-cmc-dma.c b/drivers/dma/loongson/loongson2-apb-cmc-dma.c
> index 1c9a542edc859..27f8f7a5738d9 100644
> --- a/drivers/dma/loongson/loongson2-apb-cmc-dma.c
> +++ b/drivers/dma/loongson/loongson2-apb-cmc-dma.c
> @@ -337,7 +337,6 @@ static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan)
> guard(spinlock_irqsave)(&lchan->vchan.lock);
>
> if (vchan_issue_pending(&lchan->vchan) && !lchan->desc) {
> - dev_dbg(chan2dev(lchan), "vchan %pK: issued\n", &lchan->vchan);
You remove whole dev_dbg(), but commit message said Use %p
Frank
> loongson2_cmc_dma_start_transfer(lchan);
> }
> }
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] dmaengine: loongson: Use %p for pointer formatting
2026-09-18 17:06 ` Frank Li
@ 2026-09-18 17:17 ` Sebastian Andrzej Siewior
2026-09-18 19:44 ` Frank Li
0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Andrzej Siewior @ 2026-09-18 17:17 UTC (permalink / raw)
To: Frank Li; +Cc: dmaengine, Binbin Zhou, Vinod Koul, Frank Li
On 2026-09-18 12:06:41 [-0500], Frank Li wrote:
> On Fri, Sep 18, 2026 at 12:34:09PM +0200, Sebastian Andrzej Siewior wrote:
> > The %pK format modifier was meant for /proc kind of output, not general
> > printk output. Since commit ad67b74d2469d ("printk: hash addresses
> > printed with %p") pointers are hashed by default and the behaviour can
> > be controller by `hash_pointers' boot argument.
> > The policy on %p is to not introduce new ones. This is the only pointer
> > output in the driver.
> >
> > Remove the pointer formating from debug output.
> >
> > Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> > ---
> > drivers/dma/loongson/loongson2-apb-cmc-dma.c | 1 -
> > 1 file changed, 1 deletion(-)
> >
> > diff --git a/drivers/dma/loongson/loongson2-apb-cmc-dma.c b/drivers/dma/loongson/loongson2-apb-cmc-dma.c
> > index 1c9a542edc859..27f8f7a5738d9 100644
> > --- a/drivers/dma/loongson/loongson2-apb-cmc-dma.c
> > +++ b/drivers/dma/loongson/loongson2-apb-cmc-dma.c
> > @@ -337,7 +337,6 @@ static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan)
> > guard(spinlock_irqsave)(&lchan->vchan.lock);
> >
> > if (vchan_issue_pending(&lchan->vchan) && !lchan->desc) {
> > - dev_dbg(chan2dev(lchan), "vchan %pK: issued\n", &lchan->vchan);
>
> You remove whole dev_dbg(), but commit message said Use %p
I redid based on feedback before submitting and forgot to update the
subject. Are you fine with removing it?
> Frank
> > loongson2_cmc_dma_start_transfer(lchan);
> > }
> > }
Sebastian
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] dmaengine: loongson: Use %p for pointer formatting
2026-09-18 17:17 ` Sebastian Andrzej Siewior
@ 2026-09-18 19:44 ` Frank Li
0 siblings, 0 replies; 4+ messages in thread
From: Frank Li @ 2026-09-18 19:44 UTC (permalink / raw)
To: Sebastian Andrzej Siewior; +Cc: dmaengine, Binbin Zhou, Vinod Koul, Frank Li
On Fri, Sep 18, 2026 at 07:17:30PM +0200, Sebastian Andrzej Siewior wrote:
> On 2026-09-18 12:06:41 [-0500], Frank Li wrote:
> > On Fri, Sep 18, 2026 at 12:34:09PM +0200, Sebastian Andrzej Siewior wrote:
> > > The %pK format modifier was meant for /proc kind of output, not general
> > > printk output. Since commit ad67b74d2469d ("printk: hash addresses
> > > printed with %p") pointers are hashed by default and the behaviour can
> > > be controller by `hash_pointers' boot argument.
> > > The policy on %p is to not introduce new ones. This is the only pointer
> > > output in the driver.
> > >
> > > Remove the pointer formating from debug output.
> > >
> > > Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> > > ---
> > > drivers/dma/loongson/loongson2-apb-cmc-dma.c | 1 -
> > > 1 file changed, 1 deletion(-)
> > >
> > > diff --git a/drivers/dma/loongson/loongson2-apb-cmc-dma.c b/drivers/dma/loongson/loongson2-apb-cmc-dma.c
> > > index 1c9a542edc859..27f8f7a5738d9 100644
> > > --- a/drivers/dma/loongson/loongson2-apb-cmc-dma.c
> > > +++ b/drivers/dma/loongson/loongson2-apb-cmc-dma.c
> > > @@ -337,7 +337,6 @@ static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan)
> > > guard(spinlock_irqsave)(&lchan->vchan.lock);
> > >
> > > if (vchan_issue_pending(&lchan->vchan) && !lchan->desc) {
> > > - dev_dbg(chan2dev(lchan), "vchan %pK: issued\n", &lchan->vchan);
> >
> > You remove whole dev_dbg(), but commit message said Use %p
>
> I redid based on feedback before submitting and forgot to update the
> subject. Are you fine with removing it?
I am fine to remove it.
Frank
>
> > Frank
> > > loongson2_cmc_dma_start_transfer(lchan);
> > > }
> > > }
>
> Sebastian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-09-18 19:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-18 10:34 [PATCH] dmaengine: loongson: Use %p for pointer formatting Sebastian Andrzej Siewior
2026-09-18 17:06 ` Frank Li
2026-09-18 17:17 ` Sebastian Andrzej Siewior
2026-09-18 19:44 ` Frank Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox