[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120918133414.GM2505@amd.com>
Date: Tue, 18 Sep 2012 15:34:14 +0200
From: Joerg Roedel <joerg.roedel@....com>
To: Shuah Khan <shuah.khan@...com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
Greg KH <greg@...ah.com>, <tglx@...utronix.de>,
<mingo@...hat.com>, <hpa@...or.com>, <rob@...dley.net>,
<akpm@...ux-foundation.org>, <bhelgaas@...gle.com>,
<stern@...land.harvard.edu>, LKML <linux-kernel@...r.kernel.org>,
<linux-doc@...r.kernel.org>, <devel@...uxdriverproject.org>,
<x86@...nel.org>, <shuahkhan@...il.com>
Subject: Re: [PATCH] dma-debug: New interfaces to debug dma mapping errors
On Mon, Sep 17, 2012 at 04:45:15PM -0600, Shuah Khan wrote:
> Yeah. I will firm up my ideas a bit and summarize in a day or two. Would
> like to hear your ideas as well at that time, so we can pick the one
> that works the best.
I think the best approach for this functionality is to add a flag to
'struct dma_debug_entry' which tells whether the address has been
checked with dma_mapping error or not. On unmap or driver unload you can
then check for that flag and print a warning when an unchecked address
is detected.
Joerg
--
AMD Operating System Research Center
Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach
General Managers: Alberto Bozzo
Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists