Issue report DMA:PL330 Runtime PM usage count underflow!
张 宁 <[email protected]>
| Newsgroups | org.kernel.vger.dmaengine |
|---|---|
| Message-ID | <TY4PR01MB1573500CED2A1A3A8884B5F30CDA52@TY4PR01MB15735.jpnprd01.prod.outlook.com> |
Dear maintainers
I find the kernel log:
```
[123274.851401] dma-pl330 ff250000.dma-controller: Runtime PM usage count underflow!
[123421.875861] dma-pl330 ff250000.dma-controller: Runtime PM usage count underflow!
[124251.889968] dma-pl330 ff250000.dma-controller: Runtime PM usage count underflow!
```
since 6.18.X.
Today I have time to read code, and find the code:
```
pl330_terminate_all
...
list_splice_tail_init(&pch->completed_list, &pl330->desc_pool);
spin_unlock_irqrestore(&pch->lock, flags);
if (power_down)
pm_runtime_put_autosuspend(pl330->ddma.dev);
pm_runtime_put_autosuspend(pl330->ddma.dev);
```
there are 2 pm_runtime_put, I think this is why underflow.
I don't know how to fix it. thus report an issue.
I tried remove the second `pm_runtime_put_autosuspend`, and and idle overnight, the log is gone.
BR.
Ning.