From: Pawel Moll <pawel.moll@arm.com>
To: Dave Martin <dave.martin@linaro.org>
Cc: "devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 3/5] ARM: vexpress: Add DT support in v2m
Date: Wed, 16 Nov 2011 16:35:15 +0000 [thread overview]
Message-ID: <1321461315.3137.371.camel@hornet.cambridge.arm.com> (raw)
In-Reply-To: <20111116154402.GE2073@localhost.localdomain>
On Wed, 2011-11-16 at 15:44 +0000, Dave Martin wrote:
> > + where <model> is the the model, eg:
>
> Two "the"s.
>
> What "model" means isn't obvious to the uninitiated -- how about
> something like "where <model> is the full platform model name" ?
Ok.
> > + - for Coretile Express A5x2 (V2P-CA5s):
> > + compatible = "arm,vexpress-v2p-ca5s", "arm-vexpress";
> > + - Coretile Express A9x4 (V2P-CA9):
> > + comaptible = "arm,vexpress-v2p-ca9", "arm,vexpress-legacy", "arm-vexpress";
> > +
> > +Current Linux implementation requires a "timer" alias pointing
> > +at a SP804 timer block to be used when tile is not using local
> > +timer source.
>
> We should specify a list of all the "standard" aliases used by the
> generic motherboard code here, since these are part of the contract
> between each board-specific device tree and the motherboard code.
>
> Is "timer" the only one, or are there others?
One and only. There were more, but I got rid of them.
> > diff --git a/arch/arm/mach-vexpress/Kconfig b/arch/arm/mach-vexpress/Kconfig
> > index 9311484..4c11e90 100644
> > --- a/arch/arm/mach-vexpress/Kconfig
> > +++ b/arch/arm/mach-vexpress/Kconfig
> > @@ -9,4 +9,8 @@ config ARCH_VEXPRESS_CA9X4
> > select ARM_ERRATA_751472
> > select ARM_ERRATA_753970
> >
>
> For "non-interactive" config items, can we still please have comments
> indicating what the item means and how it should be used?
>
> Such comments can be very brief, but having at least something makes the
> configs easier to understand and maintain, in my view.
Em, what bits do you refer to? The lines you quoted are not changed...
> > diff --git a/arch/arm/mach-vexpress/v2m.c b/arch/arm/mach-vexpress/v2m.c
>
> [...]
>
> > +void __init v2m_dt_init_early(void)
> > +{
> > + struct device_node *node;
> > + const __be32 *reg;
> > + u32 dt_hbi;
> > +
> > + node = of_find_compatible_node(NULL, NULL, "arm,vexpress-sysreg");
> > + BUG_ON(!node);
> > + /* The following will become of_iomap() when possible */
> > + reg = of_get_property(node, "reg", NULL);
> > + BUG_ON(!reg);
> > + v2m_sysreg_base = V2M_PERIPH_P2V(be32_to_cpup(reg));
> > +
> > + /* Confirm board type against DT property, if available */
> > + if (of_property_read_u32(allnodes, "arm,hbi", &dt_hbi) == 0) {
> > + u32 misc = readl(v2m_sysreg_base + V2M_SYS_MISC);
> > + u32 id = readl(v2m_sysreg_base + (misc & SYS_MISC_MASTERSITE ?
> > + V2M_SYS_PROCID1 : V2M_SYS_PROCID0));
> > + u32 hbi = id & SYS_PROCIDx_HBI_MASK;
> > +
> > + if (WARN_ON(dt_hbi != hbi))
> > + pr_warning("vexpress: DT HBI (%x) is not matching "
> > + "hardware (%x)!\n", dt_hbi, hbi);
>
> Once this code is mature enough, should we panic the kernel here
> instead?
I'm not convinced. Actually the first version I wrote was panicking. But
then I thought that if it works, it works - why should I prevent this?
The use case is simple - FPGA implementations, being
mostly-exact-equivalents of the core tiles, will have the logic tile HBI
here. And to use them you would have to modify the DTS if this code
panicked. With WARN_ON you'll see the message, but if you know what are
you doing, that's fine...
Don't know, really. Any strong feelings about it?
Cheers!
Paweł
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2011-11-16 16:35 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-11 18:27 [PATCH 0/5] Versatile Express DT support, take 2 Pawel Moll
2011-11-11 18:27 ` [PATCH 1/5] ARM: vexpress: Get rid of MMIO_P2V Pawel Moll
[not found] ` <1321036026-23411-2-git-send-email-pawel.moll-5wv7dgnIgG8@public.gmane.org>
2011-11-16 15:35 ` Dave Martin
2011-11-16 16:16 ` Pawel Moll
[not found] ` <1321460205.3137.352.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-16 17:28 ` Dave Martin
2011-11-16 17:30 ` Pawel Moll
2011-11-17 7:02 ` Ryan Harkin
2011-11-17 15:43 ` Russell King - ARM Linux
2011-11-18 12:20 ` Pawel Moll
[not found] ` <1321618848.24216.322.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-18 17:44 ` Russell King - ARM Linux
2011-11-11 18:27 ` [PATCH 2/5] ARM: vexpress: Remove platform SMP functions from ct_desc Pawel Moll
[not found] ` <1321036026-23411-3-git-send-email-pawel.moll-5wv7dgnIgG8@public.gmane.org>
2011-11-17 15:31 ` Russell King - ARM Linux
2011-11-18 12:20 ` Pawel Moll
2011-11-11 18:27 ` [PATCH 3/5] ARM: vexpress: Add DT support in v2m Pawel Moll
[not found] ` <1321036026-23411-4-git-send-email-pawel.moll-5wv7dgnIgG8@public.gmane.org>
2011-11-16 15:44 ` Dave Martin
[not found] ` <20111116154402.GE2073-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2011-11-16 16:26 ` Rob Herring
2011-11-16 16:37 ` Pawel Moll
[not found] ` <1321461458.3137.374.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-16 16:59 ` Rob Herring
2011-11-16 17:07 ` Pawel Moll
2011-11-16 17:37 ` Pawel Moll
[not found] ` <1321465054.3137.386.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-16 19:14 ` Dave Martin
[not found] ` <1321463271.3137.380.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-16 17:39 ` Dave Martin
[not found] ` <20111116173945.GG2073-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2011-11-16 17:50 ` Dave Martin
2011-11-16 17:55 ` Pawel Moll
2011-11-17 15:53 ` Russell King - ARM Linux
2011-11-18 12:20 ` Pawel Moll
[not found] ` <1321618849.24216.323.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-18 17:49 ` Russell King - ARM Linux
2011-11-16 16:35 ` Pawel Moll [this message]
[not found] ` <1321461315.3137.371.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-16 17:57 ` Dave Martin
2011-11-17 13:50 ` Pawel Moll
[not found] ` <1321537813.3137.475.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-17 14:41 ` Dave Martin
2011-11-17 16:05 ` Russell King - ARM Linux
[not found] ` <20111117160536.GU9581-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2011-11-17 18:37 ` Dave Martin
[not found] ` <20111117183726.GE3044-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2011-11-18 17:52 ` Russell King - ARM Linux
2011-11-18 12:20 ` Pawel Moll
2011-11-11 18:27 ` [PATCH 4/5] ARM: vexpress: Initial RS1 memory map support Pawel Moll
[not found] ` <1321036026-23411-5-git-send-email-pawel.moll-5wv7dgnIgG8@public.gmane.org>
2011-11-16 15:42 ` Dave Martin
2011-11-16 16:28 ` Pawel Moll
[not found] ` <1321460897.3137.364.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-16 18:03 ` Dave Martin
2011-11-17 15:36 ` Russell King - ARM Linux
2011-11-18 12:20 ` Pawel Moll
[not found] ` <1321618850.24216.324.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-18 17:56 ` Russell King - ARM Linux
2011-11-11 18:27 ` [PATCH 5/5] ARM: vexpress: DT-based support for CoreTiles Express A5x2 and A9x4 Pawel Moll
[not found] ` <1321036026-23411-6-git-send-email-pawel.moll-5wv7dgnIgG8@public.gmane.org>
2011-11-11 22:30 ` Rob Herring
2011-11-11 22:54 ` Pawel Moll
2011-11-16 15:36 ` Dave Martin
2011-11-16 16:22 ` Pawel Moll
[not found] ` <1321460559.3137.358.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-11-16 18:17 ` Dave Martin
[not found] ` <1321036026-23411-1-git-send-email-pawel.moll-5wv7dgnIgG8@public.gmane.org>
2011-11-16 15:33 ` [PATCH 0/5] Versatile Express DT support, take 2 Dave Martin
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=1321461315.3137.371.camel@hornet.cambridge.arm.com \
--to=pawel.moll@arm.com \
--cc=dave.martin@linaro.org \
--cc=devicetree-discuss@lists.ozlabs.org \
--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