Hi Jans, Thanks for you reply.
On Fri, Oct 27, 2017 at 06:37:54PM +0200, Jan Kiszka wrote: >On 2017-10-27 09:29, Peng Fan wrote: >> Hi, >> >> I am bring up jailhouse hypervisor on i.MX8 and now gic-demo works, but when >> I trying non-root cell Linux, I came across a few questions. > >Nice. If that target happens to be a commonly available eval board, >maybe you can share your configs. Not ready now. The configs I wrote are at very early stage. After I could pass a realy SD controller to non-root cell Linux, and if it still not work, I'll post out the configs. > >> >> To devices assigned to non-root cell Linux, where to configure >> clock,pinctrl,power domain? > >We do not have a proper support for partitioning those things, primarily >as they are fairly SoC-specific. If you are lucky, you can partition >some things along register boundaries. Otherwise, you need to make the >root cell enable/tune what you need in the non-root cell and then freeze >that state by taking control from the root cell. Thanks for the info. I may need to use root cell to configure them. > >> Is Big.Little(A53+A72) supported? > >I didn't try, but I expect it work as long as all cores are exposed as >if they were equal. In my case A53 is the first cluster, A72 is in the second cluster. A72 runs faster that A53, so when enabling jailhouse, A72 will first finish initializing jailhouse. But When A53 returns back to Linux, A53's stage1-stage2 translation seems failure. When I use jtag to dump,mmu table is corrupt, then A53 reports "FATAL: forbidden access (exception class 0x20)". If I use jtag to debug and let a53 first finishes initializing jailhouse, no exception, A53 A72 both works. I have not try enabling non-root cell, the issues are met when enabling root cell. In hypervisor/arch/arm64/entry.S There is " /* AARCH64_TODO: ARM architecture supports CPU clusters which could be", so I am not sure whether big.little support are ready or not. I am still debugging. > >> In non-root cell Linux, I use same uart as root cell Linux, but when >> non-root cell Linux panic when non rootfs found, root cell console still >> work normally. So non-root cell linux are using phyiscal uart as console or >> not? > >That question I do not yet fully understand. Keep in mind that Jailhouse >moderates access to resources like MMIO or interrupts, not to devices. >In most cases, it has no clue if there is a particular device behind >some accesses (one exception from that: GIC). > >When you assign the MMIO region(s) of a UART to two cells at the same >time, you may see weird results with both cells access it >simultaneously. Moreover, you cannot assign an interrupt to two cells at >the same time. So one cell may become unhappy if it does not receive >interrupts - or if it does but unexpectedly. I'll try assigning the other uart for non-root cell Linux. > >> >> Which kernel branch should I use? queues/jailhouse or >> queues/jailhouse-ivshmem2 at git.kiszka.org?p=linux.git;a=summary > >Stick with queues/jailhouse unless you are particularly interested in >ivshmem-v2 (and also use the corresponding Jailhouse branch). Thanks. > >> >> Another question. >> Is it possible to use an RTOS as root cell? or is this the correct >> direction? I think rtos will boot quickly then Linux, could be used in >> automotive Cluster and Linux in non-root cell for infortainment. > >That should be possibly, but no one implemented that so far (to my best >knowledge). In fact, I chatted with folks about such scenarios at the >Automotive Grade Linux meeting last week as well. Do you have more information to share from your talk to AGL? > >Which RTOS do you have in mind, a commercial one or some open source >project? I would like to use open source projects, such as RTEMS. But graphic support is not that good. Also AArch64 support is not ready. Do you have some recommendation except RTEMS? And if using rtos as root cell, do you have some ideas how to proceed, seems jailhouse now heavily relys on Linux? Thanks, Peng. > >Jan > >-- >Siemens AG, Corporate Technology, CT RDA ITP SES-DE >Corporate Competence Center Embedded Linux -- -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
