Skip to contentSkip to conversation

Unmapping pages from the linear addressing without HIGHMEM support

DISCUSSION Gerhard Pircher 1 participant 1 message Mar 10, 2006 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 9 lines

--- Ursprüngliche Nachricht ---
Von: Dan Malek <[email protected]>
An: "Gerhard Pircher" <[email protected]>
Kopie: [email protected], [email protected], Benjamin Herrenschmidt <[email protected]>
Betreff: Re: Unmapping pages from the linear addressing without HIGHMEM support
Datum: Fri, 10 Mar 2006 07:59:33 -0500

Quoted 7 lines
Quoted 1 line · Gerhard Pircher

That would mean I cannot reuse the code in dma-mapping.c, right?

Sure you can. All you need to do is turn of BAT mapping, which is as easy as using the 'nobats' command line parameter and all of this code should just work for you.

Yes, that was the solution I would have used. The other solution is to reserve a physical memory area for DMA operations that is not mapped by the BATs (AFAIU nor by any page tables setup by the kernel). Therefore I doubt that I can simply reuse the dma-mapping.c code for the latter approach!? Do I mix something up here?

Quoted 4 lines
Quoted 2 lines

... but I guess I have to setup my own page table for the reserved
DMA memory area and implement my own alloc_pages() function!?

No, that's already done for you behind all of these functions.

But only, if the whole BAT mapping is killed, right?

Thanks!

Gerhard

Signature · 2 lines
"Feel free" mit GMX FreeMail!
Monat für Monat 10 FreeSMS inklusive! http://www.gmx.net