[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191118125540.GW25745@shell.armlinux.org.uk>
Date: Mon, 18 Nov 2019 12:55:40 +0000
From: Russell King - ARM Linux admin <linux@...linux.org.uk>
To: Nicolas Saenz Julienne <nsaenzjulienne@...e.de>
Cc: linux-kernel@...r.kernel.org, f.fainelli@...il.com,
"kernelci.org bot" <bot@...nelci.org>, wahrenst@....net,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v2] ARM: dt: check MPIDR on MP devices built without SMP
On Mon, Nov 18, 2019 at 12:49:04PM +0100, Nicolas Saenz Julienne wrote:
> On Fri, 2019-10-04 at 17:52 +0200, Nicolas Saenz Julienne wrote:
> > On SMP builds, in order to properly link CPU devices with their
> > respective DT nodes we start by matching the boot CPU. This is achieved
> > by comparing the 'reg' property on each of the CPU DT nodes with the
> > MPIDR. The association is necessary as to validate the whole CPU logical
> > map, which ultimately links CPU devices and their DT nodes.
No, that is not the primary purpose of the CPU logical map. The CPU
logical map is there to map the CPU logical number to a hardware number,
necessary for programming hardware.
> > On setups built without SMP, no MPIDR read is performed. The only thing
> > expected is for the 'reg' property in the CPU DT node to contain the
> > value 0x0.
> >
> > This causes problems on MP setups built without SMP. As their boot CPU
> > DT node contains the relevant MPIDR as opposed to 0x0. No match is then
> > possible. This causes troubles further down the line as drivers are
> > unable to get the CPU's DT node.
So the DT is incorrect for the platform - it is not describing the
hardware. Why can't the DT be fixed? Clearly, it would have never
worked with the mainline kernel today.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up
Powered by blists - more mailing lists