GIC Interrupts on AXI Gpio
Hi, I am using ZynqMP with the FPGA. I have designed an AXI Gpio in the FPGA and I am able to control it through non-root cell Linux. Nevertheless, I want to assign an IRQ to the Input GPIO. However, I do not know how pin_base and pin_bitmap works in GIC configuration. The AXI Gpio DTS part is: axi_gpio_0: gpio@a000 { #gpio-cells = <2>; #interrupt-cells = <2>; compatible = "xlnx,xps-gpio-1.00.a"; gpio-controller ; interrupt-controller ; interrupt-parent = <>; interrupts = <0 89 4>; reg = <0x0 0xa000 0x0 0x1000>; xlnx,all-inputs = <0x0>; xlnx,all-inputs-2 = <0x0>; xlnx,all-outputs = <0x0>; xlnx,all-outputs-2 = <0x0>; xlnx,dout-default = <0x>; xlnx,dout-default-2 = <0x>; xlnx,gpio-width = <0x2>; xlnx,gpio2-width = <0x20>; xlnx,interrupt-present = <0x1>; xlnx,is-dual = <0x0>; xlnx,tri-default = <0x>; xlnx,tri-default-2 = <0x>; }; How do I need to assign the IRQ in the GIC conf. The default GIC conf is: .irqchips = { /* GIC */ { .address = 0xf901, .pin_base = 32, .pin_bitmap = { 1 << (54 - 32), 0, 0, (1 << (140 - 128)) | (1 << (142 - 128)) }, }, }, PD: I do not know why, but in order to put the GPIOs working I had to delete the ".pci_devices" data from the root cell conf file. -- 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 jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
UART Clock configuration error ZCU102
Hi everyone, There is a problem with Jailhouse and the last ZCU102 DTBs. Xilinx provides a Linux repository. The releases before 2016 works perfectly with Jailhouse. However, 2017 and 2018 versions do not. When a I try to use the GIC-Demo, the second UART does not show anything. Nevertheless, using the the Debug Console worked in the Uart 0. Therefore, I have been looking for the differences and Xilinx configs the clks differently in the DTB. https://github.com/Xilinx/linux-xlnx/blob/xilinx-v2017.4/arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi https://github.com/Xilinx/linux-xlnx/blob/xilinx-v2016.4/arch/arm64/boot/dts/xilinx/zynqmp-clk.dtsi I know the source of the problem, but not the solution. In the last DTB the uart is configured: { clocks = < 57>, < 31>; }; If you change this line to "clocks = < >;" works perfectly. Therefore, it is something related with the clock. However, I do not know how/where does Jailhouse configure the peripheral clocks. -- 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 jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jailhouse zynqMP
El lunes, 23 de abril de 2018, 16:12:18 (UTC+2), J. Kiszka escribió: > On 2018-04-23 15:48, iallende wrote: > > El miércoles, 18 de abril de 2018, 16:05:13 (UTC+2), iallende escribió: > >> El miércoles, 18 de abril de 2018, 8:38:43 (UTC+2), J. Kiszka escribió: > >>>> El lunes, 16 de abril de 2018, 14:45:45 (UTC+2), J. Kiszka escribió: > >>>>> On 2018-04-16 14:21, iallende wrote: > >>>>>> El viernes, 13 de abril de 2018, 9:14:46 (UTC+2), J. Kiszka escribió: > >>>>>>> On 2018-04-12 15:15, iallende wrote: > >>>>>>>> It still does not work. I have the following: > >>>>>>>> > >>>>>>>> root@xilinx-zcu102-2017_4:~# modprobe jailhouse > >>>>>>>> [ 20.762034] jailhouse: loading out-of-tree module taints kernel. > >>>>>>>> root@xilinx-zcu102-2017_4:~# cd /cells/ > >>>>>>>> root@xilinx-zcu102-2017_4:/cells# jailhouse enable > >>>>>>>> zynqmp-zcu102.cell > >>>>>>>> > >>>>>>>> Initializing Jailhouse hypervisor v0.8 on CPU 2 > >>>>>>>> Code location: 0xc0200060 > >>>>>>>> Page pool usage after early setup: mem 33/993, remap 64/131072 > >>>>>>>> Initializing processors: > >>>>>>>> CPU 2... OK > >>>>>>>> CPU 0... OK > >>>>>>>> CPU 3... OK > >>>>>>>> CPU 1... OK > >>>>>>>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102" > >>>>>>>> Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102" > >>>>>>>> Page pool usage after late setup: mem 42/993, remap 69/131072 > >>>>>>>> Activating hypervisor > >>>>>>>> [ 29.825496] The Jailhouse is opening. > >>>>>>>> root@xilinx-zcu102-2017_4:/cells# > >>>>>>>> root@xilinx-zcu102-2017_4:/cells# > >>>>>>>> root@xilinx-zcu102-2017_4:/cells# jailhouse cell linux > >>>>>>>> zynqmp-zcu102-linux-demo.cell Image -d inmate-zynqmp-zcu102.dtb -i > >>>>>>>> rootfs.cpio -c "console=ttyPS0,115200" > >>>>>>>> [ 65.192135] Read fail divider address: fd1a0060 > >>>>>>>> [ 65.198616] Read fail divider address: fd1a0060 > >>>>>>>> [ 65.205473] CPU2: shutdown > >>>>>>>> [ 65.210069] psci: CPU2 killed. > >>>>>>>> [ 65.248402] CPU3: shutdown > >>>>>>>> [ 65.252999] psci: CPU3 killed. > >>>>>>>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-linux-demo" > >>>>>>>> Shared memory connection established: "ZynqMP-linux-demo" <--> > >>>>>>>> "ZynqMP-ZCU102" > >>>>>>>> Adding virtual PCI device 00:02.0 to cell "ZynqMP-linux-demo" > >>>>>>>> Created cell "ZynqMP-linux-demo" > >>>>>>>> Page pool usage after cell creation: mem 59/993, remap 69/131072 > >>>>>>>> [ 65.299294] Created Jailhouse cell "ZynqMP-linux-demo" > >>>>>>>> Cell "ZynqMP-linux-demo" can be loaded > >>>>>>>> Started cell "ZynqMP-linux-demo" > >>>>>>>> root@xilinx-zcu102-2017_4:/cells# jailhouse cell list > >>>>>>>> ID NameState Assigned CPUs > >>>>>>>>Failed CPUs > >>>>>>>> 0 ZynqMP-ZCU102 running 0-1 > >>>>>>>> > >>>>>>>> 1 ZynqMP-linux-demo running 2-3 > >>>>>>>> > >>>>>>>> However, the UART does not show anything. I have tried with a > >>>>>>>> different Linux image and the same problem. I generate the images > >>>>>>>> with Petalinux. > >>>>>>>> > >>>>>>> > >>>>>>> Try debugging the non-root boot by using the Jailhouse console for the > >>>>>>> cell (con-type=JAILHOUSE, cell flag
Re: Jailhouse zynqMP
El miércoles, 18 de abril de 2018, 16:05:13 (UTC+2), iallende escribió: > El miércoles, 18 de abril de 2018, 8:38:43 (UTC+2), J. Kiszka escribió: > > > El lunes, 16 de abril de 2018, 14:45:45 (UTC+2), J. Kiszka escribió: > > >> On 2018-04-16 14:21, iallende wrote: > > >>> El viernes, 13 de abril de 2018, 9:14:46 (UTC+2), J. Kiszka escribió: > > >>>> On 2018-04-12 15:15, iallende wrote: > > >>>>> It still does not work. I have the following: > > >>>>> > > >>>>> root@xilinx-zcu102-2017_4:~# modprobe jailhouse > > >>>>> [ 20.762034] jailhouse: loading out-of-tree module taints kernel. > > >>>>> root@xilinx-zcu102-2017_4:~# cd /cells/ > > >>>>> root@xilinx-zcu102-2017_4:/cells# jailhouse enable zynqmp-zcu102.cell > > >>>>> > > >>>>> Initializing Jailhouse hypervisor v0.8 on CPU 2 > > >>>>> Code location: 0xc0200060 > > >>>>> Page pool usage after early setup: mem 33/993, remap 64/131072 > > >>>>> Initializing processors: > > >>>>> CPU 2... OK > > >>>>> CPU 0... OK > > >>>>> CPU 3... OK > > >>>>> CPU 1... OK > > >>>>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102" > > >>>>> Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102" > > >>>>> Page pool usage after late setup: mem 42/993, remap 69/131072 > > >>>>> Activating hypervisor > > >>>>> [ 29.825496] The Jailhouse is opening. > > >>>>> root@xilinx-zcu102-2017_4:/cells# > > >>>>> root@xilinx-zcu102-2017_4:/cells# > > >>>>> root@xilinx-zcu102-2017_4:/cells# jailhouse cell linux > > >>>>> zynqmp-zcu102-linux-demo.cell Image -d inmate-zynqmp-zcu102.dtb -i > > >>>>> rootfs.cpio -c "console=ttyPS0,115200" > > >>>>> [ 65.192135] Read fail divider address: fd1a0060 > > >>>>> [ 65.198616] Read fail divider address: fd1a0060 > > >>>>> [ 65.205473] CPU2: shutdown > > >>>>> [ 65.210069] psci: CPU2 killed. > > >>>>> [ 65.248402] CPU3: shutdown > > >>>>> [ 65.252999] psci: CPU3 killed. > > >>>>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-linux-demo" > > >>>>> Shared memory connection established: "ZynqMP-linux-demo" <--> > > >>>>> "ZynqMP-ZCU102" > > >>>>> Adding virtual PCI device 00:02.0 to cell "ZynqMP-linux-demo" > > >>>>> Created cell "ZynqMP-linux-demo" > > >>>>> Page pool usage after cell creation: mem 59/993, remap 69/131072 > > >>>>> [ 65.299294] Created Jailhouse cell "ZynqMP-linux-demo" > > >>>>> Cell "ZynqMP-linux-demo" can be loaded > > >>>>> Started cell "ZynqMP-linux-demo" > > >>>>> root@xilinx-zcu102-2017_4:/cells# jailhouse cell list > > >>>>> ID NameState Assigned CPUs > > >>>>> Failed CPUs > > >>>>> 0 ZynqMP-ZCU102 running 0-1 > > >>>>> > > >>>>> 1 ZynqMP-linux-demo running 2-3 > > >>>>> > > >>>>> However, the UART does not show anything. I have tried with a > > >>>>> different Linux image and the same problem. I generate the images > > >>>>> with Petalinux. > > >>>>> > > >>>> > > >>>> Try debugging the non-root boot by using the Jailhouse console for the > > >>>> cell (con-type=JAILHOUSE, cell flag JAILHOUSE_CELL_DEBUG_CONSOLE, see > > >>>> Documentation/debug-output.md). Check if the UART is detected by the > > >>>> guest. Maybe the kernel is not configured as needed. > > >>>> > > >>>> Jan > > >>>> -- > > >>>> Siemens AG, Corporate Technology, CT RDA IOT SES-DE > > >>>> Corporate Competence Center Embedded Linux > > >>> > > >>> I have applied the patches for JAILHOUSE_DBCON and I added > > >>>
Re: Jailhouse zynqMP
El miércoles, 18 de abril de 2018, 8:38:43 (UTC+2), J. Kiszka escribió: > > El lunes, 16 de abril de 2018, 14:45:45 (UTC+2), J. Kiszka escribió: > >> On 2018-04-16 14:21, iallende wrote: > >>> El viernes, 13 de abril de 2018, 9:14:46 (UTC+2), J. Kiszka escribió: > >>>> On 2018-04-12 15:15, iallende wrote: > >>>>> It still does not work. I have the following: > >>>>> > >>>>> root@xilinx-zcu102-2017_4:~# modprobe jailhouse > >>>>> [ 20.762034] jailhouse: loading out-of-tree module taints kernel. > >>>>> root@xilinx-zcu102-2017_4:~# cd /cells/ > >>>>> root@xilinx-zcu102-2017_4:/cells# jailhouse enable zynqmp-zcu102.cell > >>>>> > >>>>> Initializing Jailhouse hypervisor v0.8 on CPU 2 > >>>>> Code location: 0xc0200060 > >>>>> Page pool usage after early setup: mem 33/993, remap 64/131072 > >>>>> Initializing processors: > >>>>> CPU 2... OK > >>>>> CPU 0... OK > >>>>> CPU 3... OK > >>>>> CPU 1... OK > >>>>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102" > >>>>> Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102" > >>>>> Page pool usage after late setup: mem 42/993, remap 69/131072 > >>>>> Activating hypervisor > >>>>> [ 29.825496] The Jailhouse is opening. > >>>>> root@xilinx-zcu102-2017_4:/cells# > >>>>> root@xilinx-zcu102-2017_4:/cells# > >>>>> root@xilinx-zcu102-2017_4:/cells# jailhouse cell linux > >>>>> zynqmp-zcu102-linux-demo.cell Image -d inmate-zynqmp-zcu102.dtb -i > >>>>> rootfs.cpio -c "console=ttyPS0,115200" > >>>>> [ 65.192135] Read fail divider address: fd1a0060 > >>>>> [ 65.198616] Read fail divider address: fd1a0060 > >>>>> [ 65.205473] CPU2: shutdown > >>>>> [ 65.210069] psci: CPU2 killed. > >>>>> [ 65.248402] CPU3: shutdown > >>>>> [ 65.252999] psci: CPU3 killed. > >>>>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-linux-demo" > >>>>> Shared memory connection established: "ZynqMP-linux-demo" <--> > >>>>> "ZynqMP-ZCU102" > >>>>> Adding virtual PCI device 00:02.0 to cell "ZynqMP-linux-demo" > >>>>> Created cell "ZynqMP-linux-demo" > >>>>> Page pool usage after cell creation: mem 59/993, remap 69/131072 > >>>>> [ 65.299294] Created Jailhouse cell "ZynqMP-linux-demo" > >>>>> Cell "ZynqMP-linux-demo" can be loaded > >>>>> Started cell "ZynqMP-linux-demo" > >>>>> root@xilinx-zcu102-2017_4:/cells# jailhouse cell list > >>>>> ID NameState Assigned CPUs > >>>>> Failed CPUs > >>>>> 0 ZynqMP-ZCU102 running 0-1 > >>>>> > >>>>> 1 ZynqMP-linux-demo running 2-3 > >>>>> > >>>>> However, the UART does not show anything. I have tried with a different > >>>>> Linux image and the same problem. I generate the images with Petalinux. > >>>>> > >>>> > >>>> Try debugging the non-root boot by using the Jailhouse console for the > >>>> cell (con-type=JAILHOUSE, cell flag JAILHOUSE_CELL_DEBUG_CONSOLE, see > >>>> Documentation/debug-output.md). Check if the UART is detected by the > >>>> guest. Maybe the kernel is not configured as needed. > >>>> > >>>> Jan > >>>> -- > >>>> Siemens AG, Corporate Technology, CT RDA IOT SES-DE > >>>> Corporate Competence Center Embedded Linux > >>> > >>> I have applied the patches for JAILHOUSE_DBCON and I added > >>> JAILHOUSE_CELL_DEBUG_CONSOLE to zynqmp-zcu102-linux-demo.c. I load the > >>> cell like this: > >>> jailhouse cell linux zynqmp-zcu102-linux-demo.cell Image -d > >>> inmate-zynqmp-zcu102.dtb -i rootfs.cpio -c "con-type=jailhouse" > >>> > >>> However, the booting does not appear. To see the debug output I have to > >>> do "cat /dev/jailhouse", no? >
Re: Jailhouse zynqMP
El viernes, 13 de abril de 2018, 9:14:46 (UTC+2), J. Kiszka escribió: > On 2018-04-12 15:15, iallende wrote: > > It still does not work. I have the following: > > > > root@xilinx-zcu102-2017_4:~# modprobe jailhouse > > [ 20.762034] jailhouse: loading out-of-tree module taints kernel. > > root@xilinx-zcu102-2017_4:~# cd /cells/ > > root@xilinx-zcu102-2017_4:/cells# jailhouse enable zynqmp-zcu102.cell > > > > Initializing Jailhouse hypervisor v0.8 on CPU 2 > > Code location: 0xc0200060 > > Page pool usage after early setup: mem 33/993, remap 64/131072 > > Initializing processors: > > CPU 2... OK > > CPU 0... OK > > CPU 3... OK > > CPU 1... OK > > Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102" > > Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102" > > Page pool usage after late setup: mem 42/993, remap 69/131072 > > Activating hypervisor > > [ 29.825496] The Jailhouse is opening. > > root@xilinx-zcu102-2017_4:/cells# > > root@xilinx-zcu102-2017_4:/cells# > > root@xilinx-zcu102-2017_4:/cells# jailhouse cell linux > > zynqmp-zcu102-linux-demo.cell Image -d inmate-zynqmp-zcu102.dtb -i > > rootfs.cpio -c "console=ttyPS0,115200" > > [ 65.192135] Read fail divider address: fd1a0060 > > [ 65.198616] Read fail divider address: fd1a0060 > > [ 65.205473] CPU2: shutdown > > [ 65.210069] psci: CPU2 killed. > > [ 65.248402] CPU3: shutdown > > [ 65.252999] psci: CPU3 killed. > > Adding virtual PCI device 00:00.0 to cell "ZynqMP-linux-demo" > > Shared memory connection established: "ZynqMP-linux-demo" <--> > > "ZynqMP-ZCU102" > > Adding virtual PCI device 00:02.0 to cell "ZynqMP-linux-demo" > > Created cell "ZynqMP-linux-demo" > > Page pool usage after cell creation: mem 59/993, remap 69/131072 > > [ 65.299294] Created Jailhouse cell "ZynqMP-linux-demo" > > Cell "ZynqMP-linux-demo" can be loaded > > Started cell "ZynqMP-linux-demo" > > root@xilinx-zcu102-2017_4:/cells# jailhouse cell list > > ID NameState Assigned CPUs > > Failed CPUs > > 0 ZynqMP-ZCU102 running 0-1 > > > > 1 ZynqMP-linux-demo running 2-3 > > > > However, the UART does not show anything. I have tried with a different > > Linux image and the same problem. I generate the images with Petalinux. > > > > Try debugging the non-root boot by using the Jailhouse console for the > cell (con-type=JAILHOUSE, cell flag JAILHOUSE_CELL_DEBUG_CONSOLE, see > Documentation/debug-output.md). Check if the UART is detected by the > guest. Maybe the kernel is not configured as needed. > > Jan > -- > Siemens AG, Corporate Technology, CT RDA IOT SES-DE > Corporate Competence Center Embedded Linux I have applied the patches for JAILHOUSE_DBCON and I added JAILHOUSE_CELL_DEBUG_CONSOLE to zynqmp-zcu102-linux-demo.c. I load the cell like this: jailhouse cell linux zynqmp-zcu102-linux-demo.cell Image -d inmate-zynqmp-zcu102.dtb -i rootfs.cpio -c "con-type=jailhouse" However, the booting does not appear. To see the debug output I have to do "cat /dev/jailhouse", no? -- 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 jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jailhouse zynqMP
El jueves, 12 de abril de 2018, 9:20:03 (UTC+2), J. Kiszka escribió: > On 2018-04-11 14:32, iallende wrote: > > El martes, 10 de abril de 2018, 16:44:45 (UTC+2), J. Kiszka escribió: > >> On 2018-04-10 15:12, Ralf Ramsauer wrote: > >>> Hi, > >>> > >>> On 04/10/2018 02:10 PM, iallende wrote: > >>>> El martes, 10 de abril de 2018, 10:47:57 (UTC+2), Ralf Ramsauer > >>>> escribió: > >>>>> Hi, > >>>>> > >>>>> On 04/10/2018 10:26 AM, iallende wrote: > >>>>>> El jueves, 22 de marzo de 2018, 16:33:02 (UTC+1), Ralf Ramsauer > >>>>>> escribió: > >>>>>>> On 03/22/2018 04:23 PM, iallende wrote: > >>>>>>>> El miércoles, 21 de marzo de 2018, 15:25:02 (UTC+1), Ralf Ramsauer > >>>>>>>> escribió: > >>>>>>>>> Hi, > >>>>>>>>> > >>>>>>>>> On 03/21/2018 02:54 PM, iallende wrote: > >>>>>>>>>> Hi everyone, > >>>>>>>>>> > >>>>>>>>>> I am trying to run Jailhouse in the ZynqMP, with Linux PREEMPT RT > >>>>>>>>>> in another cell. However, I have some problems when I add the > >>>>>>>>>> second Linux. > >>>>>>>>>> > >>>>>>>>>> root@xilinx-zcu102-2017_4:/# modprobe jailhouse > >>>>>>>>>> [ 52.445169] jailhouse: loading out-of-tree module taints kernel. > >>>>>>>>>> root@xilinx-zcu102-2017_4:/# ls /dev/jailhouse ^C > >>>>>>>>>> root@xilinx-zcu102-2017_4:/# jailhouse enable zynqmp-zcu102.cell > >>>>>>>>>> > >>>>>>>>>> Initializing Jailhouse hypervisor v0.7 (0-g5c13b64) on CPU 2 > >>>>>>>>> Please checkout next and try again. This might already fix your > >>>>>>>>> issue. > >>>>>>>> With v0.8 i get this WARNING and I can load the module: > >>>>>>>> WARNING: "__hyp_stub_vectors" [/jailhouse/driver/jailhouse.ko] > >>>>>>>> undefined! > >>>>>>> Please switch to next, and not to v0.8. Compile your kernel with > >>>>>>> CONFIG_KALLSYMS_ALL=y, or use this [1] patch. > >>>>>>> > >>>>>>> Ralf > >>>>>>> > >>>>>>> [1] > >>>>>>> http://git.kiszka.org/?p=linux.git;a=commit;h=2a681cb2213e3ea0f142fae7345fb80208a88a53 > >>>>>>>>>> Code location: 0xc0200050 > >>>>>>>>>> Page pool usage after early setup: mem 33/996, remap 64/131072 > >>>>>>>>>> Initializing processors: > >>>>>>>>>> CPU 2... OK > >>>>>>>>>> CPU 0... OK > >>>>>>>>>> CPU 3... OK > >>>>>>>>>> CPU 1... OK > >>>>>>>>>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102" > >>>>>>>>>> Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102" > >>>>>>>>>> Page pool usage after late setup: mem 42/996, remap 69/131072 > >>>>>>>>>> Activating hypervisor > >>>>>>>>>> [ 63.697232] jailhouse: CONFIG_OF_OVERLAY disabled > >>>>>>>>>> [ 63.704029] jailhouse: failed to add virtual host controller > >>>>>>>>>> [ 63.711610] The Jailhouse is opening. > >>>>>>>>>> > >>>>>>>>>> root@xilinx-zcu102-2017_4:/# jailhouse cell linux > >>>>>>>>>> zynqmp-zcu102-linux-demo.cell Image -d system.dtb -i rootfs.cpio > >>>>>>>>>> > >>>>>>>>>> FATAL: unhandled trap (exception class 0x17) > >>>>>>>>> Exception class 0x17 is a SMC64 call. > >>>>>>>>> > >>>>>>>>>> Cell state before exception: > >>>>>>>>>> pc: ff800808e390 lr: ff8008467504 spsr: 2145 EL1 > >>>>>>>>>> sp: ffc87b927ab0 esr: 17 1 000 > >>>>>
Re: Jailhouse zynqMP
El martes, 10 de abril de 2018, 16:44:45 (UTC+2), J. Kiszka escribió: > On 2018-04-10 15:12, Ralf Ramsauer wrote: > > Hi, > > > > On 04/10/2018 02:10 PM, iallende wrote: > >> El martes, 10 de abril de 2018, 10:47:57 (UTC+2), Ralf Ramsauer escribió: > >>> Hi, > >>> > >>> On 04/10/2018 10:26 AM, iallende wrote: > >>>> El jueves, 22 de marzo de 2018, 16:33:02 (UTC+1), Ralf Ramsauer > >>>> escribió: > >>>>> On 03/22/2018 04:23 PM, iallende wrote: > >>>>>> El miércoles, 21 de marzo de 2018, 15:25:02 (UTC+1), Ralf Ramsauer > >>>>>> escribió: > >>>>>>> Hi, > >>>>>>> > >>>>>>> On 03/21/2018 02:54 PM, iallende wrote: > >>>>>>>> Hi everyone, > >>>>>>>> > >>>>>>>> I am trying to run Jailhouse in the ZynqMP, with Linux PREEMPT RT in > >>>>>>>> another cell. However, I have some problems when I add the second > >>>>>>>> Linux. > >>>>>>>> > >>>>>>>> root@xilinx-zcu102-2017_4:/# modprobe jailhouse > >>>>>>>> [ 52.445169] jailhouse: loading out-of-tree module taints kernel. > >>>>>>>> root@xilinx-zcu102-2017_4:/# ls /dev/jailhouse ^C > >>>>>>>> root@xilinx-zcu102-2017_4:/# jailhouse enable zynqmp-zcu102.cell > >>>>>>>> > >>>>>>>> Initializing Jailhouse hypervisor v0.7 (0-g5c13b64) on CPU 2 > >>>>>>> Please checkout next and try again. This might already fix your issue. > >>>>>> With v0.8 i get this WARNING and I can load the module: > >>>>>> WARNING: "__hyp_stub_vectors" [/jailhouse/driver/jailhouse.ko] > >>>>>> undefined! > >>>>> Please switch to next, and not to v0.8. Compile your kernel with > >>>>> CONFIG_KALLSYMS_ALL=y, or use this [1] patch. > >>>>> > >>>>> Ralf > >>>>> > >>>>> [1] > >>>>> http://git.kiszka.org/?p=linux.git;a=commit;h=2a681cb2213e3ea0f142fae7345fb80208a88a53 > >>>>>>>> Code location: 0xc0200050 > >>>>>>>> Page pool usage after early setup: mem 33/996, remap 64/131072 > >>>>>>>> Initializing processors: > >>>>>>>> CPU 2... OK > >>>>>>>> CPU 0... OK > >>>>>>>> CPU 3... OK > >>>>>>>> CPU 1... OK > >>>>>>>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102" > >>>>>>>> Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102" > >>>>>>>> Page pool usage after late setup: mem 42/996, remap 69/131072 > >>>>>>>> Activating hypervisor > >>>>>>>> [ 63.697232] jailhouse: CONFIG_OF_OVERLAY disabled > >>>>>>>> [ 63.704029] jailhouse: failed to add virtual host controller > >>>>>>>> [ 63.711610] The Jailhouse is opening. > >>>>>>>> > >>>>>>>> root@xilinx-zcu102-2017_4:/# jailhouse cell linux > >>>>>>>> zynqmp-zcu102-linux-demo.cell Image -d system.dtb -i rootfs.cpio > >>>>>>>> > >>>>>>>> FATAL: unhandled trap (exception class 0x17) > >>>>>>> Exception class 0x17 is a SMC64 call. > >>>>>>> > >>>>>>>> Cell state before exception: > >>>>>>>> pc: ff800808e390 lr: ff8008467504 spsr: 2145 EL1 > >>>>>>>> sp: ffc87b927ab0 esr: 17 1 000 > >>>>>>>> x0: c214 x1: fd1a0060 x2: > >>>>>>> Furthermore, it's a SIP_64. > >>>>>>> > >>>>>>> Commit 2482c47bc2d05f ("arm64: ignore SIPs used for low-power modes") > >>>>>>> on > >>>>>>> next will probably fix your issue. > >>>>>>> > >>>>>>> Ralf > >>>>>>>> x3: x4: x5: > >>>>>>>> x6: x7: x8: ff8008d27ee0 > &
Re: Jailhouse zynqMP
El martes, 10 de abril de 2018, 15:12:25 (UTC+2), Ralf Ramsauer escribió: > Hi, > > On 04/10/2018 02:10 PM, iallende wrote: > > El martes, 10 de abril de 2018, 10:47:57 (UTC+2), Ralf Ramsauer escribió: > >> Hi, > >> > >> On 04/10/2018 10:26 AM, iallende wrote: > >>> El jueves, 22 de marzo de 2018, 16:33:02 (UTC+1), Ralf Ramsauer escribió: > >>>> On 03/22/2018 04:23 PM, iallende wrote: > >>>>> El miércoles, 21 de marzo de 2018, 15:25:02 (UTC+1), Ralf Ramsauer > >>>>> escribió: > >>>>>> Hi, > >>>>>> > >>>>>> On 03/21/2018 02:54 PM, iallende wrote: > >>>>>>> Hi everyone, > >>>>>>> > >>>>>>> I am trying to run Jailhouse in the ZynqMP, with Linux PREEMPT RT in > >>>>>>> another cell. However, I have some problems when I add the second > >>>>>>> Linux. > >>>>>>> > >>>>>>> root@xilinx-zcu102-2017_4:/# modprobe jailhouse > >>>>>>> [ 52.445169] jailhouse: loading out-of-tree module taints kernel. > >>>>>>> root@xilinx-zcu102-2017_4:/# ls /dev/jailhouse ^C > >>>>>>> root@xilinx-zcu102-2017_4:/# jailhouse enable zynqmp-zcu102.cell > >>>>>>> > >>>>>>> Initializing Jailhouse hypervisor v0.7 (0-g5c13b64) on CPU 2 > >>>>>> Please checkout next and try again. This might already fix your issue. > >>>>> With v0.8 i get this WARNING and I can load the module: > >>>>> WARNING: "__hyp_stub_vectors" [/jailhouse/driver/jailhouse.ko] > >>>>> undefined! > >>>> Please switch to next, and not to v0.8. Compile your kernel with > >>>> CONFIG_KALLSYMS_ALL=y, or use this [1] patch. > >>>> > >>>> Ralf > >>>> > >>>> [1] > >>>> http://git.kiszka.org/?p=linux.git;a=commit;h=2a681cb2213e3ea0f142fae7345fb80208a88a53 > >>>>>>> Code location: 0xc0200050 > >>>>>>> Page pool usage after early setup: mem 33/996, remap 64/131072 > >>>>>>> Initializing processors: > >>>>>>> CPU 2... OK > >>>>>>> CPU 0... OK > >>>>>>> CPU 3... OK > >>>>>>> CPU 1... OK > >>>>>>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102" > >>>>>>> Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102" > >>>>>>> Page pool usage after late setup: mem 42/996, remap 69/131072 > >>>>>>> Activating hypervisor > >>>>>>> [ 63.697232] jailhouse: CONFIG_OF_OVERLAY disabled > >>>>>>> [ 63.704029] jailhouse: failed to add virtual host controller > >>>>>>> [ 63.711610] The Jailhouse is opening. > >>>>>>> > >>>>>>> root@xilinx-zcu102-2017_4:/# jailhouse cell linux > >>>>>>> zynqmp-zcu102-linux-demo.cell Image -d system.dtb -i rootfs.cpio > >>>>>>> > >>>>>>> FATAL: unhandled trap (exception class 0x17) > >>>>>> Exception class 0x17 is a SMC64 call. > >>>>>> > >>>>>>> Cell state before exception: > >>>>>>> pc: ff800808e390 lr: ff8008467504 spsr: 2145 EL1 > >>>>>>> sp: ffc87b927ab0 esr: 17 1 000 > >>>>>>> x0: c214 x1: fd1a0060 x2: > >>>>>> Furthermore, it's a SIP_64. > >>>>>> > >>>>>> Commit 2482c47bc2d05f ("arm64: ignore SIPs used for low-power modes") > >>>>>> on > >>>>>> next will probably fix your issue. > >>>>>> > >>>>>> Ralf > >>>>>>> x3: x4: x5: > >>>>>>> x6: x7: x8: ff8008d27ee0 > >>>>>>> x9: ffc87aaa4b5c x10: ffc87b927b4c x11: ff8008c8ccb2 > >>>>>>> x12: x13: 0f93 x14: 0001 > >>>>>>> x15: x16: ff8008193240 x17: 004128f0 > >>>>>>> x18: 00040900
Re: Jailhouse zynqMP
El martes, 10 de abril de 2018, 10:47:57 (UTC+2), Ralf Ramsauer escribió: > Hi, > > On 04/10/2018 10:26 AM, iallende wrote: > > El jueves, 22 de marzo de 2018, 16:33:02 (UTC+1), Ralf Ramsauer escribió: > >> On 03/22/2018 04:23 PM, iallende wrote: > >>> El miércoles, 21 de marzo de 2018, 15:25:02 (UTC+1), Ralf Ramsauer > >>> escribió: > >>>> Hi, > >>>> > >>>> On 03/21/2018 02:54 PM, iallende wrote: > >>>>> Hi everyone, > >>>>> > >>>>> I am trying to run Jailhouse in the ZynqMP, with Linux PREEMPT RT in > >>>>> another cell. However, I have some problems when I add the second Linux. > >>>>> > >>>>> root@xilinx-zcu102-2017_4:/# modprobe jailhouse > >>>>> [ 52.445169] jailhouse: loading out-of-tree module taints kernel. > >>>>> root@xilinx-zcu102-2017_4:/# ls /dev/jailhouse ^C > >>>>> root@xilinx-zcu102-2017_4:/# jailhouse enable zynqmp-zcu102.cell > >>>>> > >>>>> Initializing Jailhouse hypervisor v0.7 (0-g5c13b64) on CPU 2 > >>>> Please checkout next and try again. This might already fix your issue. > >>> With v0.8 i get this WARNING and I can load the module: > >>> WARNING: "__hyp_stub_vectors" [/jailhouse/driver/jailhouse.ko] undefined! > >> Please switch to next, and not to v0.8. Compile your kernel with > >> CONFIG_KALLSYMS_ALL=y, or use this [1] patch. > >> > >> Ralf > >> > >> [1] > >> http://git.kiszka.org/?p=linux.git;a=commit;h=2a681cb2213e3ea0f142fae7345fb80208a88a53 > >>>>> Code location: 0xc0200050 > >>>>> Page pool usage after early setup: mem 33/996, remap 64/131072 > >>>>> Initializing processors: > >>>>> CPU 2... OK > >>>>> CPU 0... OK > >>>>> CPU 3... OK > >>>>> CPU 1... OK > >>>>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102" > >>>>> Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102" > >>>>> Page pool usage after late setup: mem 42/996, remap 69/131072 > >>>>> Activating hypervisor > >>>>> [ 63.697232] jailhouse: CONFIG_OF_OVERLAY disabled > >>>>> [ 63.704029] jailhouse: failed to add virtual host controller > >>>>> [ 63.711610] The Jailhouse is opening. > >>>>> > >>>>> root@xilinx-zcu102-2017_4:/# jailhouse cell linux > >>>>> zynqmp-zcu102-linux-demo.cell Image -d system.dtb -i rootfs.cpio > >>>>> > >>>>> FATAL: unhandled trap (exception class 0x17) > >>>> Exception class 0x17 is a SMC64 call. > >>>> > >>>>> Cell state before exception: > >>>>> pc: ff800808e390 lr: ff8008467504 spsr: 2145 EL1 > >>>>> sp: ffc87b927ab0 esr: 17 1 000 > >>>>> x0: c214 x1: fd1a0060 x2: > >>>> Furthermore, it's a SIP_64. > >>>> > >>>> Commit 2482c47bc2d05f ("arm64: ignore SIPs used for low-power modes") on > >>>> next will probably fix your issue. > >>>> > >>>> Ralf > >>>>> x3: x4: x5: > >>>>> x6: x7: x8: ff8008d27ee0 > >>>>> x9: ffc87aaa4b5c x10: ffc87b927b4c x11: ff8008c8ccb2 > >>>>> x12: x13: 0f93 x14: 0001 > >>>>> x15: x16: ff8008193240 x17: 004128f0 > >>>>> x18: 00040900 x19: ffc87b927b28 x20: 0001 > >>>>> x21: 4784b740 x22: 4784b740 x23: fffa > >>>>> x24: 000f4240 x25: 000f4240 x26: 000f4240 > >>>>> x27: x28: x29: ffc87b927ac0 > >>>>> > >>>>> Parking CPU 2 (Cell: "ZynqMP-ZCU102") > >>>>> > >>>>> > >>>>> Does anyone know why I have this problem? Am I missing any step? > >>>>> > >>> > > > > Sorry Ralf, I did an error with the dtb. It works with the > > inmate-zynqmp-zcu102.dtb. However, I do not achieve to see the non-root >
Re: Jailhouse zynqMP
El jueves, 22 de marzo de 2018, 16:33:02 (UTC+1), Ralf Ramsauer escribió: > On 03/22/2018 04:23 PM, iallende wrote: > > El miércoles, 21 de marzo de 2018, 15:25:02 (UTC+1), Ralf Ramsauer > > escribió: > >> Hi, > >> > >> On 03/21/2018 02:54 PM, iallende wrote: > >>> Hi everyone, > >>> > >>> I am trying to run Jailhouse in the ZynqMP, with Linux PREEMPT RT in > >>> another cell. However, I have some problems when I add the second Linux. > >>> > >>> root@xilinx-zcu102-2017_4:/# modprobe jailhouse > >>> [ 52.445169] jailhouse: loading out-of-tree module taints kernel. > >>> root@xilinx-zcu102-2017_4:/# ls /dev/jailhouse ^C > >>> root@xilinx-zcu102-2017_4:/# jailhouse enable zynqmp-zcu102.cell > >>> > >>> Initializing Jailhouse hypervisor v0.7 (0-g5c13b64) on CPU 2 > >> Please checkout next and try again. This might already fix your issue. > > With v0.8 i get this WARNING and I can load the module: > > WARNING: "__hyp_stub_vectors" [/jailhouse/driver/jailhouse.ko] undefined! > Please switch to next, and not to v0.8. Compile your kernel with > CONFIG_KALLSYMS_ALL=y, or use this [1] patch. > > Ralf > > [1] > http://git.kiszka.org/?p=linux.git;a=commit;h=2a681cb2213e3ea0f142fae7345fb80208a88a53 > >>> Code location: 0xc0200050 > >>> Page pool usage after early setup: mem 33/996, remap 64/131072 > >>> Initializing processors: > >>> CPU 2... OK > >>> CPU 0... OK > >>> CPU 3... OK > >>> CPU 1... OK > >>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102" > >>> Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102" > >>> Page pool usage after late setup: mem 42/996, remap 69/131072 > >>> Activating hypervisor > >>> [ 63.697232] jailhouse: CONFIG_OF_OVERLAY disabled > >>> [ 63.704029] jailhouse: failed to add virtual host controller > >>> [ 63.711610] The Jailhouse is opening. > >>> > >>> root@xilinx-zcu102-2017_4:/# jailhouse cell linux > >>> zynqmp-zcu102-linux-demo.cell Image -d system.dtb -i rootfs.cpio > >>> > >>> FATAL: unhandled trap (exception class 0x17) > >> Exception class 0x17 is a SMC64 call. > >> > >>> Cell state before exception: > >>> pc: ff800808e390 lr: ff8008467504 spsr: 2145 EL1 > >>> sp: ffc87b927ab0 esr: 17 1 000 > >>> x0: c214 x1: fd1a0060 x2: > >> Furthermore, it's a SIP_64. > >> > >> Commit 2482c47bc2d05f ("arm64: ignore SIPs used for low-power modes") on > >> next will probably fix your issue. > >> > >> Ralf > >>> x3: x4: x5: > >>> x6: x7: x8: ff8008d27ee0 > >>> x9: ffc87aaa4b5c x10: ffc87b927b4c x11: ff8008c8ccb2 > >>> x12: x13: 0f93 x14: 0001 > >>> x15: x16: ff8008193240 x17: 004128f0 > >>> x18: 00040900 x19: ffc87b927b28 x20: 0001 > >>> x21: 4784b740 x22: 4784b740 x23: fffa > >>> x24: 000f4240 x25: 000f4240 x26: 000f4240 > >>> x27: x28: x29: ffc87b927ac0 > >>> > >>> Parking CPU 2 (Cell: "ZynqMP-ZCU102") > >>> > >>> > >>> Does anyone know why I have this problem? Am I missing any step? > >>> > > Sorry Ralf, I did an error with the dtb. It works with the inmate-zynqmp-zcu102.dtb. However, I do not achieve to see the non-root linux console. I have tried with ttyS0 and ttyS1, but nothing appears. How can I access to the second cell? -- 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 jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jailhouse zynqMP
El jueves, 22 de marzo de 2018, 16:33:02 (UTC+1), Ralf Ramsauer escribió: > On 03/22/2018 04:23 PM, iallende wrote: > > El miércoles, 21 de marzo de 2018, 15:25:02 (UTC+1), Ralf Ramsauer > > escribió: > >> Hi, > >> > >> On 03/21/2018 02:54 PM, iallende wrote: > >>> Hi everyone, > >>> > >>> I am trying to run Jailhouse in the ZynqMP, with Linux PREEMPT RT in > >>> another cell. However, I have some problems when I add the second Linux. > >>> > >>> root@xilinx-zcu102-2017_4:/# modprobe jailhouse > >>> [ 52.445169] jailhouse: loading out-of-tree module taints kernel. > >>> root@xilinx-zcu102-2017_4:/# ls /dev/jailhouse ^C > >>> root@xilinx-zcu102-2017_4:/# jailhouse enable zynqmp-zcu102.cell > >>> > >>> Initializing Jailhouse hypervisor v0.7 (0-g5c13b64) on CPU 2 > >> Please checkout next and try again. This might already fix your issue. > > With v0.8 i get this WARNING and I can load the module: > > WARNING: "__hyp_stub_vectors" [/jailhouse/driver/jailhouse.ko] undefined! > Please switch to next, and not to v0.8. Compile your kernel with > CONFIG_KALLSYMS_ALL=y, or use this [1] patch. > > Ralf > > [1] > http://git.kiszka.org/?p=linux.git;a=commit;h=2a681cb2213e3ea0f142fae7345fb80208a88a53 > >>> Code location: 0xc0200050 > >>> Page pool usage after early setup: mem 33/996, remap 64/131072 > >>> Initializing processors: > >>> CPU 2... OK > >>> CPU 0... OK > >>> CPU 3... OK > >>> CPU 1... OK > >>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102" > >>> Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102" > >>> Page pool usage after late setup: mem 42/996, remap 69/131072 > >>> Activating hypervisor > >>> [ 63.697232] jailhouse: CONFIG_OF_OVERLAY disabled > >>> [ 63.704029] jailhouse: failed to add virtual host controller > >>> [ 63.711610] The Jailhouse is opening. > >>> > >>> root@xilinx-zcu102-2017_4:/# jailhouse cell linux > >>> zynqmp-zcu102-linux-demo.cell Image -d system.dtb -i rootfs.cpio > >>> > >>> FATAL: unhandled trap (exception class 0x17) > >> Exception class 0x17 is a SMC64 call. > >> > >>> Cell state before exception: > >>> pc: ff800808e390 lr: ff8008467504 spsr: 2145 EL1 > >>> sp: ffc87b927ab0 esr: 17 1 000 > >>> x0: c214 x1: fd1a0060 x2: > >> Furthermore, it's a SIP_64. > >> > >> Commit 2482c47bc2d05f ("arm64: ignore SIPs used for low-power modes") on > >> next will probably fix your issue. > >> > >> Ralf > >>> x3: x4: x5: > >>> x6: x7: x8: ff8008d27ee0 > >>> x9: ffc87aaa4b5c x10: ffc87b927b4c x11: ff8008c8ccb2 > >>> x12: x13: 0f93 x14: 0001 > >>> x15: x16: ff8008193240 x17: 004128f0 > >>> x18: 00040900 x19: ffc87b927b28 x20: 0001 > >>> x21: 4784b740 x22: 4784b740 x23: fffa > >>> x24: 000f4240 x25: 000f4240 x26: 000f4240 > >>> x27: x28: x29: ffc87b927ac0 > >>> > >>> Parking CPU 2 (Cell: "ZynqMP-ZCU102") > >>> > >>> > >>> Does anyone know why I have this problem? Am I missing any step? > >>> > > I get a similar result with next: root@xilinx-zcu102-2017_4:/cells# jailhouse cell linux zynqmp-zcu102-linux-demo.cell Image -d system.dtb -i rootfs.cpio -c "console=ttyS1,1152000" [ 412.856498] CPU2: shutdown [ 412.861054] psci: CPU2 killed. [ 412.900346] CPU3: shutdown [ 412.904853] psci: CPU3 killed. Adding virtual PCI device 00:00.0 to cell "ZynqMP-linux-demo" Shared memory connection established: "ZynqMP-linux-demo" <--> "ZynqMP-ZCU102" Adding virtual PCI device 00:02.0 to cell "ZynqMP-linux-demo" Created cell "ZynqMP-linux-demo" Page pool usage after cell creation: mem 59/993, remap 69/131072 [ 412.951205] Created Jailhouse cell "ZynqMP-linux-demo" Cell "ZynqMP-linux-demo" can be loaded Started cell "ZynqMP-linux-demo" Unhandled data write at 0xf9020004(4) FATAL: unhandled trap (exception
Re: Jailhouse zynqMP
El jueves, 22 de marzo de 2018, 16:33:02 (UTC+1), Ralf Ramsauer escribió: > On 03/22/2018 04:23 PM, iallende wrote: > > El miércoles, 21 de marzo de 2018, 15:25:02 (UTC+1), Ralf Ramsauer > > escribió: > >> Hi, > >> > >> On 03/21/2018 02:54 PM, iallende wrote: > >>> Hi everyone, > >>> > >>> I am trying to run Jailhouse in the ZynqMP, with Linux PREEMPT RT in > >>> another cell. However, I have some problems when I add the second Linux. > >>> > >>> root@xilinx-zcu102-2017_4:/# modprobe jailhouse > >>> [ 52.445169] jailhouse: loading out-of-tree module taints kernel. > >>> root@xilinx-zcu102-2017_4:/# ls /dev/jailhouse ^C > >>> root@xilinx-zcu102-2017_4:/# jailhouse enable zynqmp-zcu102.cell > >>> > >>> Initializing Jailhouse hypervisor v0.7 (0-g5c13b64) on CPU 2 > >> Please checkout next and try again. This might already fix your issue. > > With v0.8 i get this WARNING and I can load the module: > > WARNING: "__hyp_stub_vectors" [/jailhouse/driver/jailhouse.ko] undefined! > Please switch to next, and not to v0.8. Compile your kernel with > CONFIG_KALLSYMS_ALL=y, or use this [1] patch. > > Ralf > > [1] > http://git.kiszka.org/?p=linux.git;a=commit;h=2a681cb2213e3ea0f142fae7345fb80208a88a53 > >>> Code location: 0xc0200050 > >>> Page pool usage after early setup: mem 33/996, remap 64/131072 > >>> Initializing processors: > >>> CPU 2... OK > >>> CPU 0... OK > >>> CPU 3... OK > >>> CPU 1... OK > >>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102" > >>> Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102" > >>> Page pool usage after late setup: mem 42/996, remap 69/131072 > >>> Activating hypervisor > >>> [ 63.697232] jailhouse: CONFIG_OF_OVERLAY disabled > >>> [ 63.704029] jailhouse: failed to add virtual host controller > >>> [ 63.711610] The Jailhouse is opening. > >>> > >>> root@xilinx-zcu102-2017_4:/# jailhouse cell linux > >>> zynqmp-zcu102-linux-demo.cell Image -d system.dtb -i rootfs.cpio > >>> > >>> FATAL: unhandled trap (exception class 0x17) > >> Exception class 0x17 is a SMC64 call. > >> > >>> Cell state before exception: > >>> pc: ff800808e390 lr: ff8008467504 spsr: 2145 EL1 > >>> sp: ffc87b927ab0 esr: 17 1 000 > >>> x0: c214 x1: fd1a0060 x2: > >> Furthermore, it's a SIP_64. > >> > >> Commit 2482c47bc2d05f ("arm64: ignore SIPs used for low-power modes") on > >> next will probably fix your issue. > >> > >> Ralf > >>> x3: x4: x5: > >>> x6: x7: x8: ff8008d27ee0 > >>> x9: ffc87aaa4b5c x10: ffc87b927b4c x11: ff8008c8ccb2 > >>> x12: x13: 0f93 x14: 0001 > >>> x15: x16: ff8008193240 x17: 004128f0 > >>> x18: 00040900 x19: ffc87b927b28 x20: 0001 > >>> x21: 4784b740 x22: 4784b740 x23: fffa > >>> x24: 000f4240 x25: 000f4240 x26: 000f4240 > >>> x27: x28: x29: ffc87b927ac0 > >>> > >>> Parking CPU 2 (Cell: "ZynqMP-ZCU102") > >>> > >>> > >>> Does anyone know why I have this problem? Am I missing any step? > >>> > > It works with jailhouse-next, however, how can we switch between consoles? root@xilinx-zcu102-2017_4:/cells# jailhouse cell list ID NameState Assigned CPUs Failed CPUs 0 ZynqMP-ZCU102 running 0-1 1 ZynqMP-linux-demo running 2-3 -- 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 jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Jailhouse zynqMP
El miércoles, 21 de marzo de 2018, 15:25:02 (UTC+1), Ralf Ramsauer escribió: > Hi, > > On 03/21/2018 02:54 PM, iallende wrote: > > Hi everyone, > > > > I am trying to run Jailhouse in the ZynqMP, with Linux PREEMPT RT in > > another cell. However, I have some problems when I add the second Linux. > > > > root@xilinx-zcu102-2017_4:/# modprobe jailhouse > > [ 52.445169] jailhouse: loading out-of-tree module taints kernel. > > root@xilinx-zcu102-2017_4:/# ls /dev/jailhouse ^C > > root@xilinx-zcu102-2017_4:/# jailhouse enable zynqmp-zcu102.cell > > > > Initializing Jailhouse hypervisor v0.7 (0-g5c13b64) on CPU 2 > Please checkout next and try again. This might already fix your issue. With v0.8 i get this WARNING and I can load the module: WARNING: "__hyp_stub_vectors" [/jailhouse/driver/jailhouse.ko] undefined! > > Code location: 0xc0200050 > > Page pool usage after early setup: mem 33/996, remap 64/131072 > > Initializing processors: > > CPU 2... OK > > CPU 0... OK > > CPU 3... OK > > CPU 1... OK > > Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102" > > Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102" > > Page pool usage after late setup: mem 42/996, remap 69/131072 > > Activating hypervisor > > [ 63.697232] jailhouse: CONFIG_OF_OVERLAY disabled > > [ 63.704029] jailhouse: failed to add virtual host controller > > [ 63.711610] The Jailhouse is opening. > > > > root@xilinx-zcu102-2017_4:/# jailhouse cell linux > > zynqmp-zcu102-linux-demo.cell Image -d system.dtb -i rootfs.cpio > > > > FATAL: unhandled trap (exception class 0x17) > Exception class 0x17 is a SMC64 call. > > > Cell state before exception: > > pc: ff800808e390 lr: ff8008467504 spsr: 2145 EL1 > > sp: ffc87b927ab0 esr: 17 1 000 > > x0: c214 x1: fd1a0060 x2: > Furthermore, it's a SIP_64. > > Commit 2482c47bc2d05f ("arm64: ignore SIPs used for low-power modes") on > next will probably fix your issue. > > Ralf > > x3: x4: x5: > > x6: x7: x8: ff8008d27ee0 > > x9: ffc87aaa4b5c x10: ffc87b927b4c x11: ff8008c8ccb2 > > x12: x13: 0f93 x14: 0001 > > x15: x16: ff8008193240 x17: 004128f0 > > x18: 00040900 x19: ffc87b927b28 x20: 0001 > > x21: 4784b740 x22: 4784b740 x23: fffa > > x24: 000f4240 x25: 000f4240 x26: 000f4240 > > x27: x28: x29: ffc87b927ac0 > > > > Parking CPU 2 (Cell: "ZynqMP-ZCU102") > > > > > > Does anyone know why I have this problem? Am I missing any step? > > -- 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 jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Jailhouse zynqMP
Hi everyone, I am trying to run Jailhouse in the ZynqMP, with Linux PREEMPT RT in another cell. However, I have some problems when I add the second Linux. root@xilinx-zcu102-2017_4:/# modprobe jailhouse [ 52.445169] jailhouse: loading out-of-tree module taints kernel. root@xilinx-zcu102-2017_4:/# ls /dev/jailhouse ^C root@xilinx-zcu102-2017_4:/# jailhouse enable zynqmp-zcu102.cell Initializing Jailhouse hypervisor v0.7 (0-g5c13b64) on CPU 2 Code location: 0xc0200050 Page pool usage after early setup: mem 33/996, remap 64/131072 Initializing processors: CPU 2... OK CPU 0... OK CPU 3... OK CPU 1... OK Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102" Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102" Page pool usage after late setup: mem 42/996, remap 69/131072 Activating hypervisor [ 63.697232] jailhouse: CONFIG_OF_OVERLAY disabled [ 63.704029] jailhouse: failed to add virtual host controller [ 63.711610] The Jailhouse is opening. root@xilinx-zcu102-2017_4:/# jailhouse cell linux zynqmp-zcu102-linux-demo.cell Image -d system.dtb -i rootfs.cpio FATAL: unhandled trap (exception class 0x17) Cell state before exception: pc: ff800808e390 lr: ff8008467504 spsr: 2145 EL1 sp: ffc87b927ab0 esr: 17 1 000 x0: c214 x1: fd1a0060 x2: x3: x4: x5: x6: x7: x8: ff8008d27ee0 x9: ffc87aaa4b5c x10: ffc87b927b4c x11: ff8008c8ccb2 x12: x13: 0f93 x14: 0001 x15: x16: ff8008193240 x17: 004128f0 x18: 00040900 x19: ffc87b927b28 x20: 0001 x21: 4784b740 x22: 4784b740 x23: fffa x24: 000f4240 x25: 000f4240 x26: 000f4240 x27: x28: x29: ffc87b927ac0 Parking CPU 2 (Cell: "ZynqMP-ZCU102") Does anyone know why I have this problem? Am I missing any step? -- 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 jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.