From: Arnd Bergmann <arnd@arndb.de>
To: David Brown <davidb@codeaurora.org>
Cc: linux-arm-kernel@lists.infradead.org,
Stepan Moskovchenko <stepanm@codeaurora.org>,
linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
Eric Miao <eric.y.miao@gmail.com>
Subject: Re: [PATCH 1/7] msm: io: I/O register definitions for MSM8960
Date: Fri, 24 Dec 2010 14:29:28 +0100 [thread overview]
Message-ID: <201012241429.28901.arnd@arndb.de> (raw)
In-Reply-To: <20101217001658.GA5880@huya.qualcomm.com>
On Friday 17 December 2010, David Brown wrote:
> I agree with this goal, and I think I have a plan to get us there.
>
> For example, the iomap constants. To fix this, this data needs to be
> moved into platform data, or something similar. It seems to me to
> make the most sense to move the individual devices out of the iomap
> until at least the devices used so far on 8960 are all done
> dynamically. Then at least these constants aren't needed for this
> target.
This is something that would get a lot easier if we already had
device tree support, no idea if it's worth waiting for that for you.
Doing it with extensive platform data involves much of the same
work, but may be more of it.
> There are similar things that need to be done for irqs, and timer
> offsets.
Yes. Eric has spent a lot of time looking into all these issues,
he probably has a good overview of the potential problems.
> I'm not sure really what to do about PHYS_OFFSET. This is kind of the
> big thing that has kept us so far from making our SOCs multiply
> selectable. I could move this into a Kconfig option, but it would
> still need to be selected by the SOC. It is unfortunate that most of
> our SOCs have different enough memory configurations that these are
> mostly different. Even 8960/8660 will probably have future variants
> that are at different addresses.
I think there are people working on relocatable kernels already,
and we definitely need this for the other work in progress of
doing kernel binaries that work across different SoC families,
as well as for doing a single kernel that can be used both for
booting the system and for kdump.
You don't need to worry about PHYS_OFFSET at the platform level,
we'll get there in a few months for all ARM platforms.
> My question, then is, should we hold off on getting 8960 support into
> the kernel until enough things are improved to get rid of the 8960
> ifdefs? We can certainly do it that way, but it will keep the code
> out of the kernel longer.
My personal recommendation would be to fix all the places that you
can do without significant reworks of the existing code, and
just add TODO comments in the other places, so we can find them
easily. There is no reason to hold up merging the code too long for
this, but I wouldn't add code now that I know needs to be changed
soon to something that can already be done easily.
Arnd
next prev parent reply other threads:[~2010-12-25 11:57 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-15 3:49 [PATCH 0/7] msm: Support for Qualcomm MSM8960 Stepan Moskovchenko
2010-12-15 3:49 ` [PATCH 1/7] msm: io: I/O register definitions for MSM8960 Stepan Moskovchenko
2010-12-15 15:31 ` Arnd Bergmann
2010-12-15 15:35 ` David Brown
2010-12-15 16:40 ` Arnd Bergmann
2010-12-15 22:03 ` David Brown
2010-12-15 22:37 ` Arnd Bergmann
2010-12-17 0:16 ` David Brown
2010-12-24 13:29 ` Arnd Bergmann [this message]
2010-12-25 16:04 ` Nicolas Pitre
2011-01-03 0:33 ` Russell King - ARM Linux
2011-01-03 1:04 ` Nicolas Pitre
2010-12-25 18:40 ` David Brown
2010-12-15 3:49 ` [PATCH 2/7] msm: Physical offset " Stepan Moskovchenko
2010-12-15 13:17 ` Sergei Shtylyov
2010-12-15 13:55 ` David Brown
2010-12-15 14:40 ` Daniel Walker
2010-12-15 15:38 ` David Brown
2010-12-15 17:53 ` Steve Muckle
2010-12-15 17:55 ` Daniel Walker
2010-12-15 18:07 ` Steve Muckle
2010-12-15 18:21 ` Daniel Walker
2010-12-15 3:49 ` [PATCH 3/7] msm: irqs-8960: Interrupt map " Stepan Moskovchenko
2010-12-15 3:49 ` [PATCH 4/7] msm: Board file for MSM8960 simulator Stepan Moskovchenko
2010-12-15 15:36 ` Arnd Bergmann
2010-12-15 3:49 ` [PATCH 5/7] msm: timer: Timer support for MSM8960 Stepan Moskovchenko
2010-12-15 3:49 ` [PATCH 6/7] msm: Makefile cleanup Stepan Moskovchenko
2010-12-15 3:49 ` [PATCH 7/7] msm: Build support for the MSM8960 target Stepan Moskovchenko
2010-12-15 15:34 ` Arnd Bergmann
[not found] ` <1295468747-22796-1-git-send-email-davidb@codeaurora.org>
2011-01-19 20:25 ` [PATCH v2 01/11] msm: Add CPU queries David Brown
2011-01-25 0:09 ` Daniel Walker
2011-01-25 0:20 ` David Brown
2011-01-25 0:23 ` Daniel Walker
2011-01-25 0:57 ` David Brown
2011-01-25 17:35 ` Daniel Walker
2011-01-25 19:17 ` David Brown
2011-01-25 19:25 ` Daniel Walker
2011-01-25 19:45 ` David Brown
2011-01-25 20:06 ` Daniel Walker
2011-01-19 20:25 ` [PATCH v2 02/11] msm: Generalize timer register mappings David Brown
2011-01-24 22:36 ` Daniel Walker
2011-01-24 22:44 ` David Brown
2011-01-24 22:57 ` Daniel Walker
2011-01-24 23:19 ` David Brown
2011-01-26 22:12 ` Dima Zavin
2011-01-26 22:41 ` David Brown
2011-01-26 22:50 ` Dima Zavin
2011-01-26 22:46 ` Russell King - ARM Linux
2011-01-25 18:12 ` Carl Vanderlip
2011-01-25 19:18 ` David Brown
2011-01-19 20:25 ` [PATCH v2 03/11] msm: Generalize QGIC registers David Brown
2011-01-19 20:25 ` [PATCH v2 04/11] msm: io: I/O register definitions for MSM8960 David Brown
2011-01-24 20:49 ` Daniel Walker
2011-01-24 21:31 ` David Brown
2011-01-24 21:36 ` Daniel Walker
2011-01-19 20:25 ` [PATCH v2 05/11] msm: Physical offset " David Brown
2011-01-24 23:31 ` Russell King - ARM Linux
2011-01-19 20:25 ` [PATCH v2 06/11] msm: irqs-8960: Interrupt map " David Brown
2011-01-24 22:45 ` Daniel Walker
2011-01-24 22:49 ` David Brown
2011-01-19 20:25 ` [PATCH v2 07/11] msm: Add MSM 8960 cpu_is check David Brown
2011-01-24 20:46 ` Daniel Walker
2011-01-24 21:30 ` David Brown
2011-01-24 21:35 ` Daniel Walker
2011-01-24 22:13 ` David Brown
2011-01-24 22:16 ` Daniel Walker
2011-01-19 20:25 ` [PATCH v2 08/11] msm: timer: Timer support for MSM8960 David Brown
2011-01-19 20:25 ` [PATCH v2 09/11] msm: Makefile cleanup David Brown
2011-01-19 20:25 ` [PATCH v2 10/11] msm: Support for the MSM8960 Simulator target David Brown
2011-01-19 20:25 ` [PATCH v2 11/11] msm: Support for the MSM8960 RUMI3 target David Brown
2011-01-24 23:28 ` Russell King - ARM Linux
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=201012241429.28901.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=davidb@codeaurora.org \
--cc=eric.y.miao@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stepanm@codeaurora.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