Re: Jailhouse on imx8

2018-03-02 Thread Jan Kiszka
On 2018-03-01 09:44, Claudio Scordino wrote: > Hi Jan, > > >>> > >>> -   if (!IS_PSCI_32(regs[0]) && !IS_PSCI_64(regs[0])) > >>> +   if (IS_PSCI_32(regs[0]) || IS_PSCI_64(regs[0])) { > >>> +           regs[0] = psci_dispatch(ctx); > >>> +   } else if (IS_SIP_32(regs[0]) ||

Re: Jailhouse on imx8

2018-03-01 Thread Claudio Scordino
Hi Jan, >>> > >>> - if (!IS_PSCI_32(regs[0]) && !IS_PSCI_64(regs[0])) > >>> + if (IS_PSCI_32(regs[0]) || IS_PSCI_64(regs[0])) { > >>> + regs[0] = psci_dispatch(ctx); > >>> + } else if (IS_SIP_32(regs[0]) || IS_SIP_64(regs[0])) { > >>> + /* Nothing */ > >>> +

Re: Jailhouse on imx8

2018-02-12 Thread Jan Kiszka
On 2018-02-12 10:16, Claudio Scordino wrote: > Hi Peng, > > 2018-02-11 8:30 GMT+01:00 Peng Fan >: > > Hi Claudio, > > On Mon, Feb 05, 2018 at 09:40:29AM +0100, Claudio Scordino wrote: > >Hi all, > > > >thanks to the

Re: Jailhouse on imx8

2018-02-12 Thread Claudio Scordino
Hi Peng, 2018-02-11 8:30 GMT+01:00 Peng Fan : > Hi Claudio, > > On Mon, Feb 05, 2018 at 09:40:29AM +0100, Claudio Scordino wrote: > >Hi all, > > > >thanks to the patch by Peng Fan I have been able of successfully enable > >Jailhouse and create a cell. > > > >However, the

Re: Jailhouse on imx8

2018-02-10 Thread Peng Fan
Hi Claudio, On Mon, Feb 05, 2018 at 09:40:29AM +0100, Claudio Scordino wrote: >Hi all, > >thanks to the patch by Peng Fan I have been able of successfully enable >Jailhouse and create a cell. > >However, the gic-demo does not work properly (i.e. it does not fire). >It could be some

Re: Jailhouse on imx8

2018-02-05 Thread Claudio Scordino
Hi all, thanks to the patch by Peng Fan I have been able of successfully enable Jailhouse and create a cell. However, the gic-demo does not work properly (i.e. it does not fire). It could be some misconfiguration of the GIC. The dts entry says: interrupt-controller@3880 {

Re: Jailhouse on imx8

2018-02-04 Thread Jan Kiszka
On 2018-02-03 11:52, Peng Fan wrote: > Hi Jan, > On Tue, Jan 30, 2018 at 03:00:34PM +0100, Jan Kiszka wrote: >> On 2018-01-30 13:04, Peng Fan wrote: >>> >>> Hi, >>> On Tue, Jan 30, 2018 at 09:50:25AM +0100, Claudio Scordino wrote: addr2line reported arch/arm64/kernel/smccc-call.S:41

Re: Jailhouse on imx8

2018-02-03 Thread Peng Fan
Hi Jan, On Tue, Jan 30, 2018 at 03:00:34PM +0100, Jan Kiszka wrote: >On 2018-01-30 13:04, Peng Fan wrote: >> >> Hi, >> On Tue, Jan 30, 2018 at 09:50:25AM +0100, Claudio Scordino wrote: >>> addr2line reported arch/arm64/kernel/smccc-call.S:41 >>> >>> grepping __arm_smccc_smc (then, arm_smccc_smc),

Re: Jailhouse on imx8

2018-01-30 Thread Jan Kiszka
On 2018-01-30 13:04, Peng Fan wrote: > > Hi, > On Tue, Jan 30, 2018 at 09:50:25AM +0100, Claudio Scordino wrote: >> addr2line reported arch/arm64/kernel/smccc-call.S:41 >> >> grepping __arm_smccc_smc (then, arm_smccc_smc), we've found the value of x0 >> (0xC200) to be >> >> >>#define

Re: Jailhouse on imx8

2018-01-30 Thread Peng Fan
Hi, On Tue, Jan 30, 2018 at 09:50:25AM +0100, Claudio Scordino wrote: >addr2line reported arch/arm64/kernel/smccc-call.S:41 > >grepping __arm_smccc_smc (then, arm_smccc_smc), we've found the value of x0 >(0xC200) to be > > >#define FSL_SIP_GPC 0xC200 > > >which is used by

Re: Jailhouse on imx8

2018-01-30 Thread Peng Fan
Hi Claudio, On Mon, Jan 29, 2018 at 10:15:15AM +0100, Claudio Scordino wrote: >Hi all, > >I'm porting Jailhouse on the imx8 EVK board. > >After implementing the uart driver (thanks, Ralf) I've been able of >successfully running the "jailhouse enable" command. > >However, the "jailhouse cell

Re: Jailhouse on imx8

2018-01-30 Thread Jan Kiszka
On 2018-01-30 09:50, Claudio Scordino wrote: > addr2line reported arch/arm64/kernel/smccc-call.S:41 > > grepping __arm_smccc_smc (then, arm_smccc_smc), we've found the value of > x0 (0xC200) to be > > #define FSL_SIP_GPC 0xC200 > > > which is used by drivers/soc/imx/gpc-psci.c

Re: Jailhouse on imx8

2018-01-30 Thread Claudio Scordino
addr2line reported arch/arm64/kernel/smccc-call.S:41 grepping __arm_smccc_smc (then, arm_smccc_smc), we've found the value of x0 (0xC200) to be #define FSL_SIP_GPC 0xC200 which is used by drivers/soc/imx/gpc-psci.c (e.g., by imx_gpc_pd_power_off). This file gets compiled when the

Re: Jailhouse on imx8

2018-01-29 Thread Ralf Ramsauer
On 01/29/2018 03:53 PM, Claudio Scordino wrote: > Hi Ralf, > > thank you for the help. > > Attached: dts, kernel config and the two config files (root and inmate). So according to imx8.dts, they're using default function ids for CPU suspend/off/on. But there's an interesting comment in

Re: Jailhouse on imx8

2018-01-29 Thread Jan Kiszka
On 2018-01-29 15:53, Claudio Scordino wrote: > Hi Ralf, > > thank you for the help. > > Attached: dts, kernel config and the two config files (root and inmate). > > Kernel is available here: https://source.codeaurora.org/ > external/imx/linux-imx (likely the branch is imx_4.9.51_imx8_beta1). >