All of lore.kernel.org
 help / color / mirror / Atom feed
From: zhangfx <zhangfx@lemote.com>
To: figo zhang <figo1802@gmail.com>
Cc: wuzhangjin@gmail.com, linux-mips@linux-mips.org, rostedt@goodmis.org
Subject: Re: Dma addr should use Kuseg1 for MIPS32?
Date: Mon, 07 Dec 2009 21:30:51 +0800	[thread overview]
Message-ID: <4B1D038B.5080801@lemote.com> (raw)
In-Reply-To: <c6ed1ac50912062352u227c28e1me2107dbf7bd8a0ea@mail.gmail.com>

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

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

[-- Attachment #2: zhangfx.vcf --]
[-- Type: text/x-vcard, Size: 511 bytes --]

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@lemote.com
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


       reply	other threads:[~2009-12-07 13:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <c6ed1ac50912062352u227c28e1me2107dbf7bd8a0ea@mail.gmail.com>
2009-12-07 13:30 ` zhangfx [this message]
2009-12-07 12:55 Dma addr should use Kuseg1 for MIPS32? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B1D038B.5080801@lemote.com \
    --to=zhangfx@lemote.com \
    --cc=figo1802@gmail.com \
    --cc=linux-mips@linux-mips.org \
    --cc=rostedt@goodmis.org \
    --cc=wuzhangjin@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.