mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dan Williams <dan.j.williams@gmail.com>
To: linux-arm-kernel@lists.arm.linux.org.uk, linux-kernel@vger.kernel.org
Subject: hugetlbfs on ARM / how to mmap() 36-bit PCI memory?
Date: Fri, 20 Jan 2006 10:47:39 -0700	[thread overview]
Message-ID: <e9c3a7c20601200947t1d3c1c4eybea2adb97a10c92c@mail.gmail.com> (raw)

I just went through an experiment trying to mmap a PCI resource via
the /sys/bus/pci/devices/<device name>/resource[n] on a XSC3 platform.
 I discovered, correct me if I am wrong, that remap_pfn_range only
acts on 2nd level (4K) pte's.  On this platform PCI memory is only
available at a 36-bit physical address.

In looking for an answer I found this post from Deepak in the thread:
"clean way to support >32bit addr on 32bit CPU "
http://marc.theaimsgroup.com/?t=110540164100006&r=1&w=2

<snip>
Not doable. I believe PAE allows for normal 4K pages to be used when
mapping > 32-bits. XSC3 and ARMv6 only allow for > 32 bit addresses
when using 16MB pages (supersections), so we need to instead use
the hugetlb approach.

~Deepak
</snip>

Questions
1) Currently ARM does not appear to have support for hugetlbfs, is
this in the works / any pointers to help get me started with the code?
2) Does the hugetlbfs interface support PCI memory or is it only meant for RAM?
3) Is there a better approach than hugetlb to mmap PCI space in this scenario?

Thanks,

Dan

                 reply	other threads:[~2006-01-20 17:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=e9c3a7c20601200947t1d3c1c4eybea2adb97a10c92c@mail.gmail.com \
    --to=dan.j.williams@gmail.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®