Re: [RFC PATCH] xen/arm: arm32: Enable smpboot on Arm32 based systems

2023-05-10 Thread Julien Grall
Hi Ayan, On 04/05/2023 09:57, Ayan Kumar Halder wrote: On 03/05/2023 18:43, Julien Grall wrote: Hi Ayan, Hi Julien, On 03/05/2023 17:49, Ayan Kumar Halder wrote: On 03/05/2023 08:40, Julien Grall wrote: Hi, Hi Julien, Title: Did you mean "Enable spin table"? Yes, that would be more c

Re: [RFC PATCH] xen/arm: arm32: Enable smpboot on Arm32 based systems

2023-05-04 Thread Ayan Kumar Halder
On 03/05/2023 18:43, Julien Grall wrote: Hi Ayan, Hi Julien, On 03/05/2023 17:49, Ayan Kumar Halder wrote: On 03/05/2023 08:40, Julien Grall wrote: Hi, Hi Julien, Title: Did you mean "Enable spin table"? Yes, that would be more concrete. On 02/05/2023 11:58, Ayan Kumar Halder wrote:

Re: [RFC PATCH] xen/arm: arm32: Enable smpboot on Arm32 based systems

2023-05-03 Thread Stefano Stabellini
On Wed, 3 May 2023, Julien Grall wrote: > Hi Stefano, > > On 03/05/2023 18:54, Stefano Stabellini wrote: > > On Wed, 3 May 2023, Julien Grall wrote: > > > Hi Stefano, > > > > > > On 03/05/2023 00:55, Stefano Stabellini wrote: > > > > > +{ > > > > > +printk("CPU%d: No release addr\n",

Re: [RFC PATCH] xen/arm: arm32: Enable smpboot on Arm32 based systems

2023-05-03 Thread Julien Grall
Hi Stefano, On 03/05/2023 18:54, Stefano Stabellini wrote: On Wed, 3 May 2023, Julien Grall wrote: Hi Stefano, On 03/05/2023 00:55, Stefano Stabellini wrote: +{ +printk("CPU%d: No release addr\n", cpu); +return -ENODEV; +} + +release = ioremap_nocache(cpu_release_a

Re: [RFC PATCH] xen/arm: arm32: Enable smpboot on Arm32 based systems

2023-05-03 Thread Stefano Stabellini
On Wed, 3 May 2023, Julien Grall wrote: > Hi Stefano, > > On 03/05/2023 00:55, Stefano Stabellini wrote: > > > +{ > > > +printk("CPU%d: No release addr\n", cpu); > > > +return -ENODEV; > > > +} > > > + > > > +release = ioremap_nocache(cpu_release_addr[cpu], 4); > > > +

Re: [RFC PATCH] xen/arm: arm32: Enable smpboot on Arm32 based systems

2023-05-03 Thread Julien Grall
Hi Ayan, On 03/05/2023 17:49, Ayan Kumar Halder wrote: On 03/05/2023 08:40, Julien Grall wrote: Hi, Hi Julien, Title: Did you mean "Enable spin table"? Yes, that would be more concrete. On 02/05/2023 11:58, Ayan Kumar Halder wrote: On some of the Arm32 based systems (eg Cortex-R52), smpb

Re: [RFC PATCH] xen/arm: arm32: Enable smpboot on Arm32 based systems

2023-05-03 Thread Ayan Kumar Halder
On 03/05/2023 08:40, Julien Grall wrote: Hi, Hi Julien, Title: Did you mean "Enable spin table"? Yes, that would be more concrete. On 02/05/2023 11:58, Ayan Kumar Halder wrote: On some of the Arm32 based systems (eg Cortex-R52), smpboot is supported. Same here. Yes In these systems

Re: [RFC PATCH] xen/arm: arm32: Enable smpboot on Arm32 based systems

2023-05-03 Thread Julien Grall
Hi Stefano, On 03/05/2023 00:55, Stefano Stabellini wrote: +{ +printk("CPU%d: No release addr\n", cpu); +return -ENODEV; +} + +release = ioremap_nocache(cpu_release_addr[cpu], 4); +if ( !release ) +{ +dprintk(XENLOG_ERR, "CPU%d: Unable to map release a

Re: [RFC PATCH] xen/arm: arm32: Enable smpboot on Arm32 based systems

2023-05-03 Thread Julien Grall
Hi, Title: Did you mean "Enable spin table"? On 02/05/2023 11:58, Ayan Kumar Halder wrote: On some of the Arm32 based systems (eg Cortex-R52), smpboot is supported. Same here. In these systems PSCI may not always be supported. In case of Cortex-R52, there is no EL3 or secure mode. Thus, PSC

Re: [RFC PATCH] xen/arm: arm32: Enable smpboot on Arm32 based systems

2023-05-02 Thread Stefano Stabellini
On Tue, 2 May 2023, Ayan Kumar Halder wrote: > On some of the Arm32 based systems (eg Cortex-R52), smpboot is supported. > In these systems PSCI may not always be supported. In case of Cortex-R52, > there > is no EL3 or secure mode. Thus, PSCI is not supported as it requires EL3. > > Thus, we use

[RFC PATCH] xen/arm: arm32: Enable smpboot on Arm32 based systems

2023-05-02 Thread Ayan Kumar Halder
On some of the Arm32 based systems (eg Cortex-R52), smpboot is supported. In these systems PSCI may not always be supported. In case of Cortex-R52, there is no EL3 or secure mode. Thus, PSCI is not supported as it requires EL3. Thus, we use 'spin-table' mechanism to boot the secondary cpus. The pr