From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: Runtime patch udiv/sdiv instructions into __aeabi_{u}idiv()
Date: Fri, 11 Dec 2015 22:34:16 +0000 [thread overview]
Message-ID: <20151211223415.GY8644@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1887582.W42jA1d2lP@wuerfel>
On Fri, Dec 11, 2015 at 10:50:02PM +0100, Arnd Bergmann wrote:
> On Friday 11 December 2015 12:10:29 Nicolas Pitre wrote:
> > On Fri, 11 Dec 2015, Arnd Bergmann wrote:
> > > #ifdef CONFIG_CPU_PJ4B
> > > .type __v7_pj4b_proc_info, #object
> > > __v7_pj4b_proc_info:
> > > .long 0x560f5800
> > > .long 0xff0fff00
> > > __v7_proc __v7_pj4b_proc_info, __v7_pj4b_setup, proc_fns = pj4b_processor_functions
> > > .size __v7_pj4b_proc_info, . - __v7_pj4b_proc_info
> > > #endif
> > >
> > >
> > > Can someone have a look and tell me that I'm wrong when I read this
> > > as matching both PJ4 and PJ4B (and PJ4B-MP)?
> > >
> > > Either I'm misreading this, or we do the wrong thing in configurations
> > > that include both PJ4B (berlin, mvebu) and PJ4 (MMP2/dove).
> >
> > I don't have the relevant documentation to validate it. And I'd prefer
> > if this was sorted out in a separate patch. Maybe I should just drop
> > the PJ4 variants from this patch for now.
>
> To clarify: that point had nothing to do with your patch, I just think
> I found an existing kernel bug that will cause pj4b_processor_functions
> to be used on PJ4 (Dove, MMP2) in a kernel that includes both PJ4 and
> PJ4B (Armada 370/XP, Berlin).
It does look like it will end up matching a PJ4 CPU against the PJ4B entry
if it's enabled. I think the question that needs to be asked is why the
mask is soo loose, and the past history gives us some information. The
loosening of the mask was done by Gregory Clement a couple of years ago:
ARM: 7754/1: Fix the CPU ID and the mask associated to the PJ4B
This commit fixes the ID and mask for the PJ4B which was too
restrictive and didn't match the CPU of the Armada 370 SoC.
__v7_pj4b_proc_info:
- .long 0x562f5840
- .long 0xfffffff0
+ .long 0x560f5800
+ .long 0xff0fff00
So it was to include Armada 370. So this now brings up the question...
what is the MIDR value used in Armada 370?
--
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
next prev parent reply other threads:[~2015-12-11 22:34 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-11 6:26 [PATCH] ARM: Runtime patch udiv/sdiv instructions into __aeabi_{u}idiv() Nicolas Pitre
2015-12-11 9:24 ` Arnd Bergmann
2015-12-11 17:10 ` Nicolas Pitre
2015-12-11 17:22 ` Nicolas Pitre
2015-12-11 22:26 ` Arnd Bergmann
2015-12-11 23:57 ` Nicolas Pitre
2016-01-05 1:23 ` Stephen Boyd
2016-01-05 1:42 ` Nicolas Pitre
2016-01-08 2:44 ` Stephen Boyd
2016-01-12 19:09 ` Nicolas Pitre
2015-12-11 21:50 ` Arnd Bergmann
2015-12-11 22:00 ` Nicolas Pitre
2015-12-11 22:48 ` Arnd Bergmann
2015-12-11 22:34 ` Russell King - ARM Linux [this message]
2015-12-11 22:51 ` Arnd Bergmann
2015-12-12 0:01 ` Nicolas Pitre
2015-12-12 0:04 ` Arnd Bergmann
2015-12-12 1:17 ` Nicolas Pitre
2015-12-12 20:41 ` Arnd Bergmann
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=20151211223415.GY8644@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--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;
as well as URLs for NNTP newsgroup(s).