Re: Jailhouse demo not working on BananaPi BPI-M1

2019-01-23 Thread Henning Schild
Am Wed, 23 Jan 2019 04:12:39 -0800
schrieb Dan Avram :

> miercuri, 23 ianuarie 2019, 12:30:41 UTC+2, Henning Schild a scris:
> 
> Hi Henning,
> 
> Thank you for the quick answer.
> 
> > you could try an image created with
> > https://github.com/siemens/jailhouse-images  
> 
> There isn't provided an image for BananaPi. I will try with a qemu
> image to see at least how it should behave.

Indeed, i was tricked by a grep finding.

> > Does the problem appear every time or just sometimes? Might be a
> > race in the cpu offlining.   
> 
> The problem appears every time. I restarted the board several times
> and when I run: $ jailhouse cell create
> ~/jailhouse/configs/arm/bannapi-freertos-demo.cell the board freezes. 

In that case i would suggest trying a more recent kernel. Something in
the 4.14 or 4.19 range, if available for that board.

Henning

-- 
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 demo not working on BananaPi BPI-M1

2019-01-23 Thread Henning Schild
Hi Dan,

you could try an image created with
https://github.com/siemens/jailhouse-images

That will give you a reference image that is well tested and might not
have the issue you ran into.

Does the problem appear every time or just sometimes? Might be a race
in the cpu offlining.

Henning

Am Wed, 23 Jan 2019 02:10:57 -0800
schrieb Dan Avram :

> Hello,
> 
> I tried to run jailhouse on a BananaPi BPI-M1 as described on the
> Jailhouse Documentation [1]. I configured the u-boot parameters as
> described(with mem=932M vmalloc=512M), and did all the steps
> described in [1] and all is fine until I run the command 
> 
> $ jailhouse cell create
> ~/jailhouse/configs/arm/bannapi-freertos-demo.cell
> 
> After running the command there is some logging on the screen [2] and
> the console freezes. I tried to do it all over again, but same thing
> happens.
> 
> 
> 
> [1]
> https://github.com/siemens/jailhouse/blob/master/Documentation/setup-on-banana-pi-arm-board.md
> 
> [2] 
> [  231.636652]
> [  231.638175] ===
> [  231.642357] [ INFO: suspicious RCU usage. ]
> [  231.646544] 4.3.3-dirty #1 Tainted: G   O
> [  231.651503] ---
> [  231.655685] include/trace/events/sched.h:89 suspicious
> rcu_dereference_check() usage! [  231.663505]
> [  231.663505] other info that might help us debug this:
> [  231.663505]
> [  231.671506]
> [  231.671506] RCU used illegally from offline CPU!
> [  231.671506] rcu_scheduler_active = 1, debug_locks = 0
> [  231.682627] 2 locks held by swapper/1/0:
> [  231.686547]  #0:  ((cpu_died).wait.lock){..}, at: []
> complete+0x24/0x54 [  231.694462]  #1:  (>pi_lock){-.-.-.}, at:
> [] try_to_wake_up+0x34/0x4a0 [  231.702193]
> [  231.702193] stack backtrace:
> [  231.706556] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G
> O4.3.3-dirty #1 [  231.714116] Hardware name: Allwinner sun7i
> (A20) Family [  231.719357] [] (unwind_backtrace) from
> [] (show_stack+0x20/0x24) [  231.727104] []
> (show_stack) from [] (dump_stack+0x84/0xb4) [  231.734332]
> [] (dump_stack) from []
> (lockdep_rcu_suspicious+0xd8/0x114) [  231.742685] []
> (lockdep_rcu_suspicious) from []
> (try_to_wake_up+0x110/0x4a0) [  231.751472] []
> (try_to_wake_up) from [] (default_wake_function+0x1c/0x20)
> [  231.759996] [] (default_wake_function) from []
> (__wake_up_common+0x58/0x84) [  231.768691] []
> (__wake_up_common) from [] (__wake_up_locked+0x24/0x2c)
> [  231.776953] [] (__wake_up_locked) from []
> (complete+0x44/0x54) [  231.784522] [] (complete) from
> [] (arch_cpu_idle_dead+0x3c/0x9c) [  231.792265]
> [] (arch_cpu_idle_dead) from []
> (cpu_startup_entry+0x9c/0x358) [  231.800875] []
> (cpu_startup_entry) from []
> (secondary_start_kernel+0x12c/0x14c) [  231.809918] []
> (secondary_start_kernel) from [<4000966c>] (0x4000966c)
> [  231.817387] CPU1: shutdown Adding virtual PCI device 00:00.0 to
> cell "FreeRTOS" Shared memory connection established: "FreeRTOS" <-->
> "Banana-Pi" Created cell "FreeRTOS" Page pool usage after cell
> creation: mem 77/16360, remap 5/131072 [  231.839804] Created
> Jailhouse cell "FreeRTOS" root@bananapi ~ # Unhandled data read at
> 0x1c2090c(4) FATAL: unhandled trap (exception class 0x24)
> pc=0xc030c584 cpsr=0x6193 hsr=0x93840007 r0=0x4113
> r1=0x03940393 r2=0x r3=0xdf89a90c r4=0x0001 r5=0x0018
> r6=0x010c r7=0xde3a9fbc r8=0xde3a9f90 r9=0x4113
> r10=0x0001 r11=0xc087fd24 r12=0xc087fcc8 r13=0xc087fcf8
> r14=0xc05c9640 Parking CPU 0 (Cell: "Banana-Pi")
> 

-- 
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 demo not working on BananaPi BPI-M1

2019-01-23 Thread Dan Avram
Hello,

I tried to run jailhouse on a BananaPi BPI-M1 as described on the Jailhouse 
Documentation [1].
I configured the u-boot parameters as described(with mem=932M vmalloc=512M), 
and did all the steps described in [1] and all is fine until I run the command 

$ jailhouse cell create ~/jailhouse/configs/arm/bannapi-freertos-demo.cell

After running the command there is some logging on the screen [2] and the 
console freezes.
I tried to do it all over again, but same thing happens.



[1] 
https://github.com/siemens/jailhouse/blob/master/Documentation/setup-on-banana-pi-arm-board.md

[2] 
[  231.636652]
[  231.638175] ===
[  231.642357] [ INFO: suspicious RCU usage. ]
[  231.646544] 4.3.3-dirty #1 Tainted: G   O
[  231.651503] ---
[  231.655685] include/trace/events/sched.h:89 suspicious 
rcu_dereference_check() usage!
[  231.663505]
[  231.663505] other info that might help us debug this:
[  231.663505]
[  231.671506]
[  231.671506] RCU used illegally from offline CPU!
[  231.671506] rcu_scheduler_active = 1, debug_locks = 0
[  231.682627] 2 locks held by swapper/1/0:
[  231.686547]  #0:  ((cpu_died).wait.lock){..}, at: [] 
complete+0x24/0x54
[  231.694462]  #1:  (>pi_lock){-.-.-.}, at: [] 
try_to_wake_up+0x34/0x4a0
[  231.702193]
[  231.702193] stack backtrace:
[  231.706556] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G   O
4.3.3-dirty #1
[  231.714116] Hardware name: Allwinner sun7i (A20) Family
[  231.719357] [] (unwind_backtrace) from [] 
(show_stack+0x20/0x24)
[  231.727104] [] (show_stack) from [] 
(dump_stack+0x84/0xb4)
[  231.734332] [] (dump_stack) from [] 
(lockdep_rcu_suspicious+0xd8/0x114)
[  231.742685] [] (lockdep_rcu_suspicious) from [] 
(try_to_wake_up+0x110/0x4a0)
[  231.751472] [] (try_to_wake_up) from [] 
(default_wake_function+0x1c/0x20)
[  231.759996] [] (default_wake_function) from [] 
(__wake_up_common+0x58/0x84)
[  231.768691] [] (__wake_up_common) from [] 
(__wake_up_locked+0x24/0x2c)
[  231.776953] [] (__wake_up_locked) from [] 
(complete+0x44/0x54)
[  231.784522] [] (complete) from [] 
(arch_cpu_idle_dead+0x3c/0x9c)
[  231.792265] [] (arch_cpu_idle_dead) from [] 
(cpu_startup_entry+0x9c/0x358)
[  231.800875] [] (cpu_startup_entry) from [] 
(secondary_start_kernel+0x12c/0x14c)
[  231.809918] [] (secondary_start_kernel) from [<4000966c>] 
(0x4000966c)
[  231.817387] CPU1: shutdown
Adding virtual PCI device 00:00.0 to cell "FreeRTOS"
Shared memory connection established: "FreeRTOS" <--> "Banana-Pi"
Created cell "FreeRTOS"
Page pool usage after cell creation: mem 77/16360, remap 5/131072
[  231.839804] Created Jailhouse cell "FreeRTOS"
root@bananapi ~ # Unhandled data read at 0x1c2090c(4)
FATAL: unhandled trap (exception class 0x24)
pc=0xc030c584 cpsr=0x6193 hsr=0x93840007
r0=0x4113 r1=0x03940393 r2=0x r3=0xdf89a90c
r4=0x0001 r5=0x0018 r6=0x010c r7=0xde3a9fbc
r8=0xde3a9f90 r9=0x4113 r10=0x0001 r11=0xc087fd24
r12=0xc087fcc8 r13=0xc087fcf8 r14=0xc05c9640
Parking CPU 0 (Cell: "Banana-Pi")

-- 
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.