Re: [PATCH] dma-debug: prevent an error message from causing runtime problems

2021-09-10 Thread Robin Murphy
On 2021-09-10 13:05, Hamza Mahfooz wrote: For some drivers, that call add_dma_entry() from somewhere down the call stack. Nit: strictly, drivers don't call add_dma_entry(). Drivers only call the DMA API functions, and it is the DMA API internals which take a detour through dma-debug when desi

[PATCH] dma-debug: prevent an error message from causing runtime problems

2021-09-10 Thread Hamza Mahfooz
For some drivers, that call add_dma_entry() from somewhere down the call stack. If this error condition is triggered once, it causes the error message to spam the kernel's printk buffer and bring the CPU usage up to 100%. Also, since there is at least one driver that is in the mainline and suffers