Re: Dma addr should use Kuseg1 for MIPS32?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



physical address (address comes out of the CPU bus to memory) can be different with bus address(used by DMA) in MIPS boards.

figo zhang 写道:
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
begin:vcard
fn;quoted-printable:=E5=BC=A0=E7=A6=8F=E6=96=B0
n;quoted-printable;quoted-printable:=E5=BC=A0;=E7=A6=8F=E6=96=B0
org;quoted-printable:;=E7=AE=A1=E7=90=86=E9=83=A8
adr;quoted-printable;dom:;;=E6=B1=9F=E8=8B=8F=E7=9C=81=E5=B8=B8=E7=86=9F=E5=B8=82=E8=99=9E=E5=B1=B1=E9=
	=95=87=E6=A2=A6=E5=85=B0=E5=B7=A5=E4=B8=9A=E5=9B=AD;;;215500
email;internet:zhangfx@xxxxxxxxxx
title;quoted-printable:=E6=80=BB=E7=BB=8F=E7=90=86
tel;work:0512-52308679
url:http://www.lemote.com
version:2.1
end:vcard


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux