lkml.org 
[lkml]   [2013]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] dma-debug: enhance dma_debug_device_change() to check for mapping errors
On 11/12/2013 02:20 PM, Shuah Khan wrote:
> On 11/12/2013 03:12 PM, Alexander Duyck wrote:
>> I think this might be overdoing the error checking by a bit. I would
>> much rather have the DMA leaked error be visible than have it buried
>> under messages about the failure to check for DMA errors. In my mind
>> the DMA buffer leak is much more serious than the failure to check for
>> mapping errors.
>>
>
> I agree DMA leak message is more important. Would you like to see just
> one message if mapping errors are found? Instead of printing the
> entire stacktrace like it does now, it could just do warn.
>
> -- Shuah
>
>

I think only one message would be preferred. If nothing else you might
update the function so that it only dumps the DMA mapping error check on
the first one found and then goes quiet after that. There is no point
in displaying the same error message multiple times since that is likely
what we would see.

Thanks,

Alex


\
 
 \ /
  Last update: 2013-11-13 01:41    [W:0.074 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site