mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: mdaljeet@in.ibm.com
To: mingo@elte.hu
Cc: linux-kernel@vger.kernel.org, Pete Wyckoff <pw@osc.edu>
Subject: Re: pte_page
Date: Thu, 31 May 2001 15:27:38 +0530	[thread overview]
Message-ID: <CA256A5D.0036C6B6.00@d73mta01.au.ibm.com> (raw)

I am doing a DMA from a card to system memory. The system memory "physical
address" is '0x104000'. I am doing this on x86 with kernel version 2.4.2.
Can this address be the address of a user space buffer?

Regards,
Daljeet.


|--------+----------------------->
|        |          Ingo Molnar  |
|        |          <mingo@elte.h|
|        |          u>           |
|        |                       |
|        |          05/30/01     |
|        |          11:09 PM     |
|        |          Please       |
|        |          respond to   |
|        |          mingo        |
|        |                       |
|--------+----------------------->
  >--------------------------------------------------------|
  |                                                        |
  |       To:     Pete Wyckoff <pw@osc.edu>                |
  |       cc:     Daljeet Maini/India/IBM@IBMIN,           |
  |       linux-kernel@vger.kernel.org                     |
  |       Subject:     Re: pte_page                        |
  >--------------------------------------------------------|






On Wed, 30 May 2001, Pete Wyckoff wrote:

> > __pa(page_address(pte_page(pte))) is the address you want. [or
> > pte_val(*pte) & (PAGE_SIZE-1) on x86 but this is platform-dependent.]
>
> Does this work on x86 non-kmapped highmem user pages too?  (i.e. is
> page->virtual valid for every potential user page.)

you are right, the highmem-compatible solution is to use page-mem_map as
the physical page index.

     Ingo





             reply	other threads:[~2001-05-31 10:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-31  9:57 mdaljeet [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-05-30  8:01 pte_page mdaljeet
2001-05-30 12:26 ` pte_page Brian Gerst
2001-05-30 12:38   ` pte_page Brian Gerst
2001-05-30 14:09 ` pte_page Ingo Molnar
2001-05-30 17:08   ` pte_page Pete Wyckoff
2001-05-30 17:39     ` pte_page Ingo Molnar

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=CA256A5D.0036C6B6.00@d73mta01.au.ibm.com \
    --to=mdaljeet@in.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=pw@osc.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®