[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <45C845AA.3010702@s5r6.in-berlin.de>
Date: Tue, 06 Feb 2007 10:08:58 +0100
From: Stefan Richter <stefanr@...6.in-berlin.de>
To: Andi Kleen <ak@...e.de>
CC: Andrew Morton <akpm@...ux-foundation.org>,
David Moore <dcm@....edu>,
linux-kernel <linux-kernel@...r.kernel.org>, discuss@...-64.org,
linux1394-devel <linux1394-devel@...ts.sourceforge.net>,
Jan Beulich <jbeulich@...ell.com>
Subject: Re: [PATCH] Missing critical phys_to_virt in lib/swiotlb.c
I wrote:
> Unfortunately an author of lib/swiotlb.c chose to call many variables
> holding *virtual* addresses "dma_addr". Note how that file at the same
> time contains variables like "dma_addr_t dma_handle".
And there is even one occurrence of a "dma_addr" holding a physical
address/ bus address, unlike the other dma_addr's:
int
swiotlb_dma_mapping_error(dma_addr_t dma_addr)
{
return (dma_addr == virt_to_phys(io_tlb_overflow_buffer));
}
--
Stefan Richter
-=====-=-=== --=- --==-
http://arcgraph.de/sr/
-
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