Groups | Search | Server Info | Login | Register
Groups > comp.os.linux.development.system > #207
| From | Pavel Borzenkov <pavel@devio.us> |
|---|---|
| Newsgroups | comp.os.linux.development.system |
| Subject | Re: mmap dma buffer |
| Date | 2011-07-07 10:02 +0000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <slrnj1b122.6ff.pavel@wolfman.devio.us> (permalink) |
| References | <b1c8cc05-4b93-4b07-a041-c8a597965aa7@b39g2000prd.googlegroups.com> <slrnj1b0sk.6ff.pavel@wolfman.devio.us> |
On 2011-07-07, Pavel Borzenkov <pavel@devio.us> wrote: > > You can't convert address returned by pci_alloc_consistent() using > virt_to_phys() macro. This macro correctly works only for the kernel virtual > addresses. And this is not needed, actually, because pci_alloc_consistent() > function returns physical address of the allocated memory in its third > argument. > Sorry. virt_to_phys() works correctly only for kernel *logical* addresses, not virtual. -- Pavel
Back to comp.os.linux.development.system | Previous | Next — Previous in thread | Next in thread | Find similar
mmap dma buffer new <luvraghu@gmail.com> - 2011-07-06 08:12 -0700
Re: mmap dma buffer Pavel Borzenkov <pavel@devio.us> - 2011-07-07 09:59 +0000
Re: mmap dma buffer Pavel Borzenkov <pavel@devio.us> - 2011-07-07 10:02 +0000
Re: mmap dma buffer new <luvraghu@gmail.com> - 2011-07-07 05:42 -0700
Re: mmap dma buffer Pavel Borzenkov <pavel@devio.us> - 2011-07-07 13:27 +0000
Re: mmap dma buffer new <luvraghu@gmail.com> - 2011-07-07 07:46 -0700
Re: mmap dma buffer Pavel Borzenkov <pavel@devio.us> - 2011-07-08 07:01 +0000
Re: mmap dma buffer new <luvraghu@gmail.com> - 2011-07-08 03:31 -0700
csiph-web