Re: Allocating non-contigious memory

2001-06-27 Thread Alan Cox
> Would it be useful to turn that particular code into a subroutine that > is called from each driver, or would that cause other problems? It would but then I suspect Linus wouldnt want to take it as it might encourage people to use it 8) - To unsubscribe from this list: send the line

Re: Allocating non-contigious memory

2001-06-27 Thread Riley Williams
Hi Alan. >> What is the Right Way[tm] as of 2.4.6 to allocate 16Mb as 4K >> pages and get the pci bus address for each page? Bonus points >> is they're virtually contiguous, but that's not necessary. >> IIRC, the old vmalloc-then-walk-the-pagetables trick is >> considered out-of-bounds

Re: Allocating non-contigious memory

2001-06-27 Thread Alan Cox
> What is the Right Way[tm] as of 2.4.6 to allocate 16Mb as 4K pages and > get the pci bus address for each page? Bonus points is they're > virtually contiguous, but that's not necessary. IIRC, the old > vmalloc-then-walk-the-pagetables trick is considered out-of-bounds > nowadays. If you want

Allocating non-contigious memory

2001-06-27 Thread Olivier Galibert
What is the Right Way[tm] as of 2.4.6 to allocate 16Mb as 4K pages and get the pci bus address for each page? Bonus points is they're virtually contiguous, but that's not necessary. IIRC, the old vmalloc-then-walk-the-pagetables trick is considered out-of-bounds nowadays. OG. - To

Allocating non-contigious memory

2001-06-27 Thread Olivier Galibert
What is the Right Way[tm] as of 2.4.6 to allocate 16Mb as 4K pages and get the pci bus address for each page? Bonus points is they're virtually contiguous, but that's not necessary. IIRC, the old vmalloc-then-walk-the-pagetables trick is considered out-of-bounds nowadays. OG. - To

Re: Allocating non-contigious memory

2001-06-27 Thread Alan Cox
What is the Right Way[tm] as of 2.4.6 to allocate 16Mb as 4K pages and get the pci bus address for each page? Bonus points is they're virtually contiguous, but that's not necessary. IIRC, the old vmalloc-then-walk-the-pagetables trick is considered out-of-bounds nowadays. If you want it

Re: Allocating non-contigious memory

2001-06-27 Thread Alan Cox
Would it be useful to turn that particular code into a subroutine that is called from each driver, or would that cause other problems? It would but then I suspect Linus wouldnt want to take it as it might encourage people to use it 8) - To unsubscribe from this list: send the line unsubscribe

Re: Allocating non-contigious memory

2001-06-27 Thread Riley Williams
Hi Alan. What is the Right Way[tm] as of 2.4.6 to allocate 16Mb as 4K pages and get the pci bus address for each page? Bonus points is they're virtually contiguous, but that's not necessary. IIRC, the old vmalloc-then-walk-the-pagetables trick is considered out-of-bounds nowadays.