add interworking support to Thumb2 kernel
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 2 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] add interworking support to Thumb2 kernel
Quoted 5 lines · Ard Biesheuvel
No, that is not the point. The point is to lift the requirement that a Thumb2 kernel must implement all its exported or modularised functions in Thumb2, not only in the core kernel but also in modules themselves. For example, the crypto modules I contributed contain .S core implementations, and building those in Thumb2 requires tweaking the
Quoted 8 lines
implementations so that the assembler accepts it as Thumb2 code. There are examples in the tree (sha1-v4 and aes-v4) where we had to add ugly workarounds so that the code would build (and it was still broken for a while). So in general, it would be preferable to have a single ARM implementation for both modes. Also, it will become less likely for the
multi_v7_defconfigto break inadvertently due to the addition of low level platform code with asm components that turn out not to build in Thumb2.
Right, so we're talking _purely_ about assembly level stuff here.
However, what I would point out is that some people will want to build their kernel as definitely ARM-only or definitely Thumb2-only. While A-class accepts either, other class CPUs do not. If we allow interworking, then we start breaking that.
We do already support CPUs that only enter the kernel in Thumb2 mode or only enter in ARM mode, because the CPU has no support for the other instruction set.
Quoted 4 lines
So with these patches, it is no longer necessary for core helper routines coded in assembler (or built in ARM mode for other reasons) to go out of their way so that the assembler can turn them in both ARM and Thumb2 code.
I'm not sure what "core helper routines" you're referring to - all C functions will be built according to whether we want ARM mode or Thumb2 mode. We aren't going to end up with a mixture for C functions within the kernel.
Quoted 10 lines
I think there may be a performance benefit in some cases as well, although this is anecdotal hearsay. The primary benefit of Thumb2 is code size, and
multi_v7_defconfigis a couple of MBs smaller when built in Thumb2. In any case, lifting the restriction only affects configurations that setCONFIG_THUMB2_KERNELglobally, and THUMB2 modules can still only be loaded into a THUMB2 kernel (due to the THUMB2 tag in the version string).Oh, and the first patch is arguably a bugfix. An exported ARM function will not be rejected atm, but called in Thumb2 mode.
Sorry, I don't see it as a bug fix at all - I see it as a regression causing change for those classes of CPU which only accept one or other of the ISAs.
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.