Re: [PATCH 2/3] arm: introduce IRQ stacks

2020-11-10 Thread Tony Lindgren
* Arnd Bergmann [201110 13:35]: > On Tue, Nov 10, 2020 at 1:06 PM Tony Lindgren wrote: > > > > Are these actually ARMv6? Most ARM11 cores you'd come across > > > in practice are ARMv6K (ARM1136r1, ARM1167, ARM11MPCore), > > > in particular every SoC that has any mainline support except for > > >

Re: [PATCH 2/3] arm: introduce IRQ stacks

2020-11-10 Thread Arnd Bergmann
On Tue, Nov 10, 2020 at 1:06 PM Tony Lindgren wrote: > > Are these actually ARMv6? Most ARM11 cores you'd come across > > in practice are ARMv6K (ARM1136r1, ARM1167, ARM11MPCore), > > in particular every SoC that has any mainline support except for > > the ARM1136r0 based OMAP2 and i.MX3. > > I'v

Re: [PATCH 2/3] arm: introduce IRQ stacks

2020-11-10 Thread Tony Lindgren
* Arnd Bergmann [201110 10:04]: > On Tue, Nov 10, 2020 at 10:19 AM Tony Lindgren wrote: > > * Arnd Bergmann [201109 19:10]: > > > On Mon, Nov 9, 2020 at 3:45 PM Tony Lindgren wrote: > > > > > > I know it works, my point was that I'm not sure anyone cares > > > any more ;-) > > > > Well for exam

Re: [PATCH 2/3] arm: introduce IRQ stacks

2020-11-10 Thread Arnd Bergmann
On Tue, Nov 10, 2020 at 10:19 AM Tony Lindgren wrote: > * Arnd Bergmann [201109 19:10]: > > On Mon, Nov 9, 2020 at 3:45 PM Tony Lindgren wrote: > > > > I know it works, my point was that I'm not sure anyone cares > > any more ;-) > > Well for example whatever Linux running ARMv6 LTE modems out t

Re: [PATCH 2/3] arm: introduce IRQ stacks

2020-11-10 Thread Tony Lindgren
* Arnd Bergmann [201109 19:10]: > On Mon, Nov 9, 2020 at 3:45 PM Tony Lindgren wrote: > > > > > > As discussed on IRC, I think it can still be done in one of these > > > ways, though admittedly none of them are perfect: > > > > > > a) add runtime patching for __my_cpu_offset() when > > > CONFIG

Re: [PATCH 2/3] arm: introduce IRQ stacks

2020-11-09 Thread Arnd Bergmann
On Mon, Nov 9, 2020 at 3:45 PM Tony Lindgren wrote: > > > > As discussed on IRC, I think it can still be done in one of these > > ways, though admittedly none of them are perfect: > > > > a) add runtime patching for __my_cpu_offset() when > > CONFIG_SMP_ON_UP is set. This adds complexity but avo

Re: [PATCH 2/3] arm: introduce IRQ stacks

2020-11-09 Thread Tony Lindgren
* Arnd Bergmann [201021 16:07]: > On Wed, Oct 21, 2020 at 2:57 PM Russell King - ARM Linux admin > wrote: > > On Wed, Oct 21, 2020 at 01:45:42PM +0100, Russell King - ARM Linux admin > > wrote: > > > > > - define 'current' as 'this_cpu_read_stable(current_task);' > > > > > - convert to CONFIG_TH

Re: [PATCH 2/3] arm: introduce IRQ stacks

2020-10-21 Thread Arnd Bergmann
On Wed, Oct 21, 2020 at 2:57 PM Russell King - ARM Linux admin wrote: > On Wed, Oct 21, 2020 at 01:45:42PM +0100, Russell King - ARM Linux admin > wrote: > > > > - define 'current' as 'this_cpu_read_stable(current_task);' > > > > - convert to CONFIG_THREAD_INFO_IN_TASK > > > > That means we need

RE: [PATCH 2/3] arm: introduce IRQ stacks

2020-10-21 Thread Vaneet Narang
Hi Russel & Arnd, > > > - define 'current' as 'this_cpu_read_stable(current_task);' > > > - convert to CONFIG_THREAD_INFO_IN_TASK > unlike ARM64 ARM doesn't suport dedicated register like "sp_el0", so arm still stores thread info on stack and fetches using current task using stack pointer (SP) s

Re: [PATCH 2/3] arm: introduce IRQ stacks

2020-10-21 Thread Russell King - ARM Linux admin
On Wed, Oct 21, 2020 at 01:45:42PM +0100, Russell King - ARM Linux admin wrote: > On Wed, Oct 21, 2020 at 02:42:48PM +0200, Arnd Bergmann wrote: > > (also resending this reply from @kernel.org) > > > > On Fri, Oct 16, 2020 at 12:19 PM Arnd Bergmann wrote: > > > On Thu, Oct 8, 2020 at 9:20 AM Mani

Re: [PATCH 2/3] arm: introduce IRQ stacks

2020-10-21 Thread Arnd Bergmann
On Wed, Oct 21, 2020 at 2:45 PM Russell King - ARM Linux admin wrote: > On Wed, Oct 21, 2020 at 02:42:48PM +0200, Arnd Bergmann wrote: > > > > > > - define 'current' as 'this_cpu_read_stable(current_task);' > > > - convert to CONFIG_THREAD_INFO_IN_TASK > > That means we need to also code that up i

Re: [PATCH 2/3] arm: introduce IRQ stacks

2020-10-21 Thread Russell King - ARM Linux admin
On Wed, Oct 21, 2020 at 02:42:48PM +0200, Arnd Bergmann wrote: > (also resending this reply from @kernel.org) > > On Fri, Oct 16, 2020 at 12:19 PM Arnd Bergmann wrote: > > On Thu, Oct 8, 2020 at 9:20 AM Maninder Singh > > wrote: > > > > > > This patch adds code for switching to IRQ stack. > > >

Re: [PATCH 2/3] arm: introduce IRQ stacks

2020-10-21 Thread Arnd Bergmann
(also resending this reply from @kernel.org) On Fri, Oct 16, 2020 at 12:19 PM Arnd Bergmann wrote: > On Thu, Oct 8, 2020 at 9:20 AM Maninder Singh wrote: > > > > This patch adds code for switching to IRQ stack. > > IRQ stack and Kernel SVC stack have below design. > > > > IRQ STACK:- > >