Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: Virtual addresses, ioremap, vmalloc, etc
Date: Tue, 01 Dec 2015 15:45:27 +0100	[thread overview]
Message-ID: <29001219.Rz4slfYDMi@wuerfel> (raw)
In-Reply-To: <565DB036.3010306@free.fr>

On Tuesday 01 December 2015 15:35:34 Mason wrote:
> 
> Thanks for the detailed answer.
> 
> One more thing: when I configure earlyprintk, I'm supposed to provide
> physical AND virtual address of the UART.
> 
> If I'm not using a hard-coded P2V mapping, and instead rely on ioremap,
> how am I supposed to know the virtual address of the UART?

You can pick any number that has the correct alignment. Just keep using
the same number that you get with the 0xf0000000 base, and it should be
fine, the kernel will set up a section mapping for you.

	Arnd

  reply	other threads:[~2015-12-01 14:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-01 12:08 Virtual addresses, ioremap, vmalloc, etc Mason
2015-12-01 13:15 ` Arnd Bergmann
2015-12-01 14:35   ` Mason
2015-12-01 14:45     ` Arnd Bergmann [this message]
2015-12-01 14:50     ` Sebastian Frias
2015-12-01 16:30 ` Nicolas Pitre

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=29001219.Rz4slfYDMi@wuerfel \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.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