* [PATCH 0/1] ARM: thumb: Fix thumb mode compilation problems.
@ 2011-05-13 19:58 Vadim Bendebury
2011-05-16 10:38 ` Dave Martin
2011-05-16 15:08 ` Dave Martin
0 siblings, 2 replies; 5+ messages in thread
From: Vadim Bendebury @ 2011-05-13 19:58 UTC (permalink / raw)
To: linux-arm-kernel
This patch won't necessarily apply as it has not been verified on
a real hardware, so this is more of an RFC.
Vadim Bendebury (1):
ARM: thumb: Fix thumb mode compilation problems.
arch/arm/kernel/fiq.c | 34 ++++++++++++++++++++++++++--------
arch/arm/mach-tegra/headsmp.S | 3 ++-
2 files changed, 28 insertions(+), 9 deletions(-)
--
1.7.3.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 0/1] ARM: thumb: Fix thumb mode compilation problems.
2011-05-13 19:58 [PATCH 0/1] ARM: thumb: Fix thumb mode compilation problems Vadim Bendebury
@ 2011-05-16 10:38 ` Dave Martin
2011-05-16 16:06 ` Colin Cross
2011-05-16 15:08 ` Dave Martin
1 sibling, 1 reply; 5+ messages in thread
From: Dave Martin @ 2011-05-16 10:38 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, May 13, 2011 at 12:58:45PM -0700, Vadim Bendebury wrote:
>
> This patch won't necessarily apply as it has not been verified on
> a real hardware, so this is more of an RFC.
>
> Vadim Bendebury (1):
> ARM: thumb: Fix thumb mode compilation problems.
>
> arch/arm/kernel/fiq.c | 34 ++++++++++++++++++++++++++--------
> arch/arm/mach-tegra/headsmp.S | 3 ++-
> 2 files changed, 28 insertions(+), 9 deletions(-)
>
> --
> 1.7.3.1
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
A different patch for this has already been discussed:
http://thread.gmane.org/gmane.linux.ports.arm.kernel/112864
It's a bit stalled on my side because I don't have a suitable platform
to test it on. As some have suggested, in my case (imx51) the inclusion
of code was inherited from from an older subarch tree and is no longer
appropriate -- so my problem is actually solved just by not building
this code.
If the code is really used in your kernel (not just built) it would
be really useful if you could test this patch.
However you should definitely check whether the code is really used at
all on tegra.
There's a fair chance that it's not used: FIQ is not much used by linux
on armv7 and above: unless you make use of cache+TLB lockdown / SRAM etc.,
FIQ is unlikely to be significantly faster than IRQ on recent CPUs. FIQ
may also get reserved for use by TrustZone on some platforms, complicating
the picture further.
Cheers
---Dave
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 0/1] ARM: thumb: Fix thumb mode compilation problems.
2011-05-13 19:58 [PATCH 0/1] ARM: thumb: Fix thumb mode compilation problems Vadim Bendebury
2011-05-16 10:38 ` Dave Martin
@ 2011-05-16 15:08 ` Dave Martin
1 sibling, 0 replies; 5+ messages in thread
From: Dave Martin @ 2011-05-16 15:08 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, May 13, 2011 at 12:58:45PM -0700, Vadim Bendebury wrote:
>
> This patch won't necessarily apply as it has not been verified on
> a real hardware, so this is more of an RFC.
>
> Vadim Bendebury (1):
> ARM: thumb: Fix thumb mode compilation problems.
>
> arch/arm/kernel/fiq.c | 34 ++++++++++++++++++++++++++--------
> arch/arm/mach-tegra/headsmp.S | 3 ++-
> 2 files changed, 28 insertions(+), 9 deletions(-)
>
As a side note, I'm happy to be CC'd if you have Thumb-2 kernel problems
since I've been working on this recently, and would like to get it working
across the broadest range of platforms possible.
I'm definitely interested if you hit any non-platform-specific issues, since
I'm not too familiar with tegra.
So far, omap was the most "interesting" target: if you have problems, the
following commits for omap may contain examples of things you need to fix:
git log -i --grep=thumb -- arch/arm/mach-omap2 arch/arm/plat-omap
dd31394 ARM: omap3: Thumb-2 compatibility for sleep34xx.S
ef7a87d ARM: omap3: Thumb-2 compatibility for sram34xx.S
76d5001 ARM: omap3: Remove hand-encoded SMC instructions
f96bdfa ARM: omap4: Convert END() to ENDPROC() for correct linkage with CONFIG_THUMB2_KERNEL
85243a7 ARM: omap4: Provide do_wfi() for Thumb-2
b6338bd ARM: 6649/1: omap: use fncpy to copy the PM code functions to SRAM
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 0/1] ARM: thumb: Fix thumb mode compilation problems.
2011-05-16 10:38 ` Dave Martin
@ 2011-05-16 16:06 ` Colin Cross
2011-05-16 16:31 ` Dave Martin
0 siblings, 1 reply; 5+ messages in thread
From: Colin Cross @ 2011-05-16 16:06 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, May 16, 2011 at 3:38 AM, Dave Martin <dave.martin@linaro.org> wrote:
> On Fri, May 13, 2011 at 12:58:45PM -0700, Vadim Bendebury wrote:
>>
>> This patch won't necessarily apply as it has not been verified on
>> a real hardware, so this is more of an RFC.
>>
>> Vadim Bendebury (1):
>> ? ARM: thumb: Fix thumb mode compilation problems.
>>
>> ?arch/arm/kernel/fiq.c ? ? ? ? | ? 34 ++++++++++++++++++++++++++--------
>> ?arch/arm/mach-tegra/headsmp.S | ? ?3 ++-
>> ?2 files changed, 28 insertions(+), 9 deletions(-)
>>
>> --
>> 1.7.3.1
>>
>>
>> _______________________________________________
>> linux-arm-kernel mailing list
>> linux-arm-kernel at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
> A different patch for this has already been discussed:
>
> http://thread.gmane.org/gmane.linux.ports.arm.kernel/112864
>
> It's a bit stalled on my side because I don't have a suitable platform
> to test it on. ?As some have suggested, in my case (imx51) the inclusion
> of code was inherited from from an older subarch tree and is no longer
> appropriate -- so my problem is actually solved just by not building
> this code.
>
> If the code is really used in your kernel (not just built) it would
> be really useful if you could test this patch.
>
> However you should definitely check whether the code is really used at
> all on tegra.
>
> There's a fair chance that it's not used: FIQ is not much used by linux
> on armv7 and above: unless you make use of cache+TLB lockdown / SRAM etc.,
> FIQ is unlikely to be significantly faster than IRQ on recent CPUs. ?FIQ
> may also get reserved for use by TrustZone on some platforms, complicating
> the picture further.
Most Android kernels, including on Tegra, use the FIQ handler for a
simple debugger on the serial console. Sending a break will enter
debugger mode, which can dump backtraces from FIQ context, even if the
CPU is stuck in an IRQ, or with IRQs off.
We've never used a Thumb2 kernel though.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 0/1] ARM: thumb: Fix thumb mode compilation problems.
2011-05-16 16:06 ` Colin Cross
@ 2011-05-16 16:31 ` Dave Martin
0 siblings, 0 replies; 5+ messages in thread
From: Dave Martin @ 2011-05-16 16:31 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, May 16, 2011 at 09:06:26AM -0700, Colin Cross wrote:
> On Mon, May 16, 2011 at 3:38 AM, Dave Martin <dave.martin@linaro.org> wrote:
> > On Fri, May 13, 2011 at 12:58:45PM -0700, Vadim Bendebury wrote:
> >>
> >> This patch won't necessarily apply as it has not been verified on
> >> a real hardware, so this is more of an RFC.
> >>
> >> Vadim Bendebury (1):
> >> ? ARM: thumb: Fix thumb mode compilation problems.
> >>
> >> ?arch/arm/kernel/fiq.c ? ? ? ? | ? 34 ++++++++++++++++++++++++++--------
> >> ?arch/arm/mach-tegra/headsmp.S | ? ?3 ++-
> >> ?2 files changed, 28 insertions(+), 9 deletions(-)
> >>
> >> --
> >> 1.7.3.1
> >>
> >>
> >> _______________________________________________
> >> linux-arm-kernel mailing list
> >> linux-arm-kernel at lists.infradead.org
> >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> >
> > A different patch for this has already been discussed:
> >
> > http://thread.gmane.org/gmane.linux.ports.arm.kernel/112864
> >
> > It's a bit stalled on my side because I don't have a suitable platform
> > to test it on. ?As some have suggested, in my case (imx51) the inclusion
> > of code was inherited from from an older subarch tree and is no longer
> > appropriate -- so my problem is actually solved just by not building
> > this code.
> >
> > If the code is really used in your kernel (not just built) it would
> > be really useful if you could test this patch.
> >
> > However you should definitely check whether the code is really used at
> > all on tegra.
> >
> > There's a fair chance that it's not used: FIQ is not much used by linux
> > on armv7 and above: unless you make use of cache+TLB lockdown / SRAM etc.,
> > FIQ is unlikely to be significantly faster than IRQ on recent CPUs. ?FIQ
> > may also get reserved for use by TrustZone on some platforms, complicating
> > the picture further.
>
> Most Android kernels, including on Tegra, use the FIQ handler for a
> simple debugger on the serial console. Sending a break will enter
> debugger mode, which can dump backtraces from FIQ context, even if the
> CPU is stuck in an IRQ, or with IRQs off.
>
> We've never used a Thumb2 kernel though.
Fair enough -- in that case I guess it may be needed.
Sounds like entering the debugger will help in testing this; I don't have
the board myself though.
---Dave
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-05-16 16:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-13 19:58 [PATCH 0/1] ARM: thumb: Fix thumb mode compilation problems Vadim Bendebury
2011-05-16 10:38 ` Dave Martin
2011-05-16 16:06 ` Colin Cross
2011-05-16 16:31 ` Dave Martin
2011-05-16 15:08 ` Dave Martin
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).