public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@engr.sgi.com>
To: linux-ia64@vger.kernel.org
Subject: virtual memmap and page_address
Date: Wed, 15 Dec 2004 17:53:32 +0000	[thread overview]
Message-ID: <200412150953.32812.jbarnes@engr.sgi.com> (raw)

I've been messing around with some of the drm drivers lately, and in some 
cases they'll call pci_map_single on an address returned from page_address().  
When virtual memmaps are enabled, page_address will return a region 5 
pointer.  It looks like all of the ia64 iommu code (swiotlb, sba_iommu and 
sn2's pci_dma) assume that the address passed in is an identity mapped 
address since they use __pa to get the physical address.  This is fast, but 
also incorrect when the routines are handed a region 5 address.  So we either 
have to fix our iommu mapping routines or change some other assumptions 
(either about what page_address should return or what __va in general means 
for example).  Turning on WANT_PAGE_VIRTUAL and populating page->virtual with 
an identity mapped address is another option, probably less expensive than 
switching to ia64_tpa in the mapping routines.

Comments?

Thanks,
Jesse

             reply	other threads:[~2004-12-15 17:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-15 17:53 Jesse Barnes [this message]
2004-12-15 18:07 ` virtual memmap and page_address Luck, Tony
2004-12-15 18:09 ` David Mosberger
2004-12-15 18:11 ` Jesse Barnes

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=200412150953.32812.jbarnes@engr.sgi.com \
    --to=jbarnes@engr.sgi.com \
    --cc=linux-ia64@vger.kernel.org \
    /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