[Sound-open-firmware] [PATCH] Disable high frequent trace message in dw_dma_irq_handler().
Jie, Yang
yang.jie at intel.com
Tue Mar 20 15:51:36 CET 2018
>-----Original Message-----
>From: sound-open-firmware-bounces at alsa-project.org [mailto:sound-open-
>firmware-bounces at alsa-project.org] On Behalf Of Pierre-Louis Bossart
>Sent: Tuesday, March 20, 2018 10:49 PM
>To: yan.wang at linux.intel.com; sound-open-firmware at alsa-project.org
>Subject: Re: [Sound-open-firmware] [PATCH] Disable high frequent trace
>message in dw_dma_irq_handler().
>
>On 3/20/18 3:09 AM, yan.wang at linux.intel.com wrote:
>> From: Yan Wang <yan.wang at linux.intel.com>
>>
>> It will cause DMA trace local buffer overflow and unnecessary.
>
>it feels like it's time to add trace_ratelimited?
This will make me miss the traditional mailbox trace more. :-)
Thanks,
~Keyon
>
>>
>> Signed-off-by: Yan Wang <yan.wang at linux.intel.com>
>> ---
>> src/drivers/dw-dma.c | 7 ++++---
>> 1 file changed, 4 insertions(+), 3 deletions(-)
>>
>> diff --git a/src/drivers/dw-dma.c b/src/drivers/dw-dma.c
>> index a5717f3..2c46545 100644
>> --- a/src/drivers/dw-dma.c
>> +++ b/src/drivers/dw-dma.c
>> @@ -910,11 +910,12 @@ static void dw_dma_irq_handler(void *data)
>> int i = dma_int->channel;
>>
>> status_intr = dw_read(dma, DW_INTR_STATUS);
>> - if (!status_intr)
>> + if (!status_intr) {
>> trace_dma_error("eDI");
>> + trace_value(status_intr);
>> + }
>>
>> - trace_dma("irq");
>> - trace_value(status_intr);
>> + tracev_dma("irq");
>>
>> /* get the source of our IRQ. */
>> status_block = dw_read(dma, DW_STATUS_BLOCK);
>>
>
>_______________________________________________
>Sound-open-firmware mailing list
>Sound-open-firmware at alsa-project.org
>http://mailman.alsa-project.org/mailman/listinfo/sound-open-firmware
More information about the Sound-open-firmware
mailing list