From: Suniel Mahesh <sunil.m@techveda.org>
To: linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk,
Linux kernel mailing list <linux-kernel@vger.kernel.org>
Cc: thomas.petazzoni@free-electrons.com
Subject: Machine specific static mappings iotable_init(), are they required ?
Date: Tue, 6 Aug 2019 18:49:52 +0530 [thread overview]
Message-ID: <a0d03054-b583-2d6b-aa32-e0f453767b88@techveda.org> (raw)
Hi,
I am trying to port a machine based on arm926 with MMU, having 64MB of RAM.
I am trying to understand the difference between:
machine specific static I/O mappings which are done via iotable_init()
(done via callback .map_io in DT_MACHINE_START) and
dynamic I/O mappings done via ioremap()
In the kernel docs/mailing list, I have encountered a statement which states:
"with machine specific static I/O mappings which are done via iotable_init(),
registers can be mapped at the upper end of vmalloc area so that one can use as
little of the VA space as possible so vmalloc and friends have a better chance of
getting memory"
I am writing board initialization C file and got stuck at .map_io callback function,
whether to define it or not. If yes, under what scenario should I do it
now-a-days I think less boards are using iotable_init(). (is this defunct) ?
I might be wrong here
Can't I use ioremap and do dynamic mappings when ever required via device tree ?
If I do so will I encounter any problems with vmalloc area.
Thanks & Regards
--
Suniel Mahesh
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
reply other threads:[~2019-08-06 13:20 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=a0d03054-b583-2d6b-aa32-e0f453767b88@techveda.org \
--to=sunil.m@techveda.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=thomas.petazzoni@free-electrons.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox