linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Dma addr should use Kuseg1 for MIPS32?
@ 2009-12-07 12:55 figo zhang
  2009-12-07 13:45 ` Ralf Baechle
  0 siblings, 1 reply; 7+ messages in thread
From: figo zhang @ 2009-12-07 12:55 UTC (permalink / raw)
  To: Ralf Baechle, David Daney, macro; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

hi,

I am writing a driver for MIPS32. i wirte this code for DMA addr:

dma_vaddr =(char*) __get_free_pages(GFP_KERNEL|
GFP_DMA, order);
dma_phy = virt_to_phy(dma_vaddr);

i write dma_phy to DMA base register, but why it cannot work? it should
write Kseg1 space to DMA register?
I remember that it is ok for ARM/X86 .


Best,
Figo.zhang

[-- Attachment #2: Type: text/html, Size: 400 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-12-09 11:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <c6ed1ac50912062352u227c28e1me2107dbf7bd8a0ea@mail.gmail.com>
2009-12-07 13:30 ` Dma addr should use Kuseg1 for MIPS32? zhangfx
2009-12-07 12:55 figo zhang
2009-12-07 13:45 ` Ralf Baechle
2009-12-08  1:49   ` figo zhang
2009-12-08 11:36     ` Sergei Shtylyov
2009-12-09 11:46       ` figo zhang
2009-12-09 11:47     ` figo zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).