Re: Ask for help,about cpu down after jailhouse enable。。

2022-09-06 Thread star sun

You are right! Thank you very much for your help! 
I have successfully executed the jailhouse on my device.

But I have another question. I noticed that Jailhouse shuts down the CPU 
virtually instead of physically. What's the purpose of this? 
I tried to power off the CPU without going through EL2, but the result was that 
it could not be powered back on. Of course I changed some parameters state 
parameters in the structure, if not ignored ones. Is it feasible?

Thank you again for your time~  




在2022年8月16日星期二 UTC+8 21:09:43 写道:

> You are using Android with Trusty in inmate cell? jailhouse not support 
> trusty SMC handler. So you need add that SMC handler in jailhouse.
>
>
> Regards,
>
> Peng
>
>
> star sun  于2022年8月12日周五 13:47写道:
>
>>
>> Thanks for your reply!
>>
>> Before jailhouse enable, the CPU can be powered on and off normally. 
>>
>> But after that,  offline cpu(echo 0 > /sys/devices/system/cpu/cpu3/online) 
>> causes panic,  even without jailhouse create.  
>>
>>
>> 在2022年8月11日星期四 UTC+8 19:34:32 写道:
>>
>>> Am Wed, 10 Aug 2022 23:29:16 -0700 (PDT) 
>>> schrieb star sun : 
>>>
>>> > i want make jailhouse working in one phone with 4 cortex-a53 cpu. 
>>> > 
>>> > I feel like I've successfully executed jailhouse enbale. 
>>> > unfortunately, there is a kernel panic when i down one cpu for a 
>>> > non-root-cell during jialhouse cell create . 
>>> > 
>>> > This question has puzzled me for a long time Do you have any good 
>>> > methods? thank you 
>>>
>>> You could try offlining one or more CPUs with your stock kernel and not 
>>> even the jailhouse module loaded. If that also causes problems you are 
>>> likely dealing with a vendor kernel that has been patched to become 
>>> sort of broken. 
>>>
>>> echo 0 > /sys/devices/system/cpu/cpu3/online 
>>>
>>> writing a 1 will bring it back. 
>>>
>>> This should work before you even start with jailhouse. 
>>>
>>> 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-de...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jailhouse-dev/ca47dc3f-0b85-47ad-8c9e-64713730e19dn%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/94711c27-9271-416b-936b-4f4eb6a96dabn%40googlegroups.com.


Re: Ask for help,about cpu down after jailhouse enable。。

2022-08-16 Thread Peng Fan
You are using Android with Trusty in inmate cell? jailhouse not
support trusty SMC handler. So you need add that SMC handler in
jailhouse.


Regards,

Peng


star sun  于2022年8月12日周五 13:47写道:

>
> Thanks for your reply!
>
> Before jailhouse enable, the CPU can be powered on and off normally.
>
> But after that,  offline cpu(echo 0 > /sys/devices/system/cpu/cpu3/online) 
> causes panic,  even without jailhouse create.
>
>
> 在2022年8月11日星期四 UTC+8 19:34:32 写道:
>
>> Am Wed, 10 Aug 2022 23:29:16 -0700 (PDT)
>> schrieb star sun :
>>
>> > i want make jailhouse working in one phone with 4 cortex-a53 cpu.
>> >
>> > I feel like I've successfully executed jailhouse enbale.
>> > unfortunately, there is a kernel panic when i down one cpu for a
>> > non-root-cell during jialhouse cell create .
>> >
>> > This question has puzzled me for a long time Do you have any good
>> > methods? thank you
>>
>> You could try offlining one or more CPUs with your stock kernel and not
>> even the jailhouse module loaded. If that also causes problems you are
>> likely dealing with a vendor kernel that has been patched to become
>> sort of broken.
>>
>> echo 0 > /sys/devices/system/cpu/cpu3/online
>>
>> writing a 1 will bring it back.
>>
>> This should work before you even start with jailhouse.
>>
>> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jailhouse-dev/ca47dc3f-0b85-47ad-8c9e-64713730e19dn%40googlegroups.com
> 
> .
>


--

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/CAEfxd-9GKVN9AeoZj8-c%2B8NYt%3DBpFU7987_eCHfbEpftn9oo5g%40mail.gmail.com.


Re: Ask for help,about cpu down after jailhouse enable。。

2022-08-11 Thread star sun

Thanks for your reply!

Before jailhouse enable, the CPU can be powered on and off normally. 
But after that,  offline cpu(echo 0 > /sys/devices/system/cpu/cpu3/online) 
causes panic,  even without jailhouse create.  


在2022年8月11日星期四 UTC+8 19:34:32 写道:

> Am Wed, 10 Aug 2022 23:29:16 -0700 (PDT) 
> schrieb star sun : 
>
> > i want make jailhouse working in one phone with 4 cortex-a53 cpu. 
> > 
> > I feel like I've successfully executed jailhouse enbale. 
> > unfortunately, there is a kernel panic when i down one cpu for a 
> > non-root-cell during jialhouse cell create . 
> > 
> > This question has puzzled me for a long time Do you have any good 
> > methods? thank you 
>
> You could try offlining one or more CPUs with your stock kernel and not 
> even the jailhouse module loaded. If that also causes problems you are 
> likely dealing with a vendor kernel that has been patched to become 
> sort of broken. 
>
> echo 0 > /sys/devices/system/cpu/cpu3/online 
>
> writing a 1 will bring it back. 
>
> This should work before you even start with jailhouse. 
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/ca47dc3f-0b85-47ad-8c9e-64713730e19dn%40googlegroups.com.


Re: Ask for help,about cpu down after jailhouse enable。。

2022-08-11 Thread star sun

thanks for your reply

Before jailhouse enable, the CPU can be powered on and off normally. 
But after that,  offline cpu(echo 0 > /sys/devices/system/cpu/cpu3/online) 
causes panic,  even without jailhouse create.

在2022年8月11日星期四 UTC+8 19:34:32 写道:

> Am Wed, 10 Aug 2022 23:29:16 -0700 (PDT)
> schrieb star sun :
>
> > i want make jailhouse working in one phone with 4 cortex-a53 cpu.
> > 
> > I feel like I've successfully executed jailhouse enbale.
> > unfortunately, there is a kernel panic when i down one cpu for a 
> > non-root-cell during jialhouse cell create .
> > 
> > This question has puzzled me for a long time Do you have any good 
> > methods? thank you
>
> You could try offlining one or more CPUs with your stock kernel and not
> even the jailhouse module loaded. If that also causes problems you are
> likely dealing with a vendor kernel that has been patched to become
> sort of broken.
>
> echo 0 > /sys/devices/system/cpu/cpu3/online
>
> writing a 1 will bring it back.
>
> This should work before you even start with jailhouse.
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/53be4d0d-50ad-4064-acda-6c72af5e701dn%40googlegroups.com.


Re: Ask for help,about cpu down after jailhouse enable。。

2022-08-11 Thread Henning Schild
Am Wed, 10 Aug 2022 23:29:16 -0700 (PDT)
schrieb star sun :

>  i want make jailhouse working in one phone with 4 cortex-a53 cpu.
> 
> I feel like I've successfully executed jailhouse enbale.
> unfortunately, there is a kernel panicwhen i down one cpu for a 
> non-root-cell during jialhouse cell create .
> 
> This question has puzzled me for a long timeDo you have any good 
> methods? thank you

You could try offlining one or more CPUs with your stock kernel and not
even the jailhouse module loaded. If that also causes problems you are
likely dealing with a vendor kernel that has been patched to become
sort of broken.

echo 0 > /sys/devices/system/cpu/cpu3/online

writing a 1 will bring it back.

This should work before you even start with jailhouse.

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/20220811133427.336a5da7%40md1za8fc.ad001.siemens.net.


Ask for help,about cpu down after jailhouse enable。。

2022-08-11 Thread star sun
 i want make jailhouse working in one phone with 4 cortex-a53 cpu.

I feel like I've successfully executed jailhouse enbale.
unfortunately, there is a kernel panicwhen i down one cpu for a 
non-root-cell during jialhouse cell create .

This question has puzzled me for a long timeDo you have any good 
methods? thank you


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/3fdb914d-9ec7-4a5b-93e4-d07333100ff3n%40googlegroups.com.
FATAL: unhandled trap (exception class 0x17)
Cell state before exception:
 pc: ff80087e8da8   lr: ff80087e93a8 spsr: 02c5 EL1
 sp: ff8008ff3be0  elr: ff80087e8da4  esr: 17 1 000
 x0: bc0c   x1:    x2: 
 x3:    x4:    x5: 
 x6: 0030   x7: 0032b5593519   x8: ff8008081800
 x9: 1000  x10: 0008  x11: 34d5d91d
x12: 00403656d000  x13: ff800900e280  x14: 0001
x15: 0004  x16: ff800823b0fc  x17: 0043f980
x18: 007f98a404ee  x19: ff8008ff3c40  x20: bc0c
x21:   x22:   x23: 
x24: ffc03bcd1800  x25: 003929e3accf  x26: 
x27: 0020  x28: 80ef0018  x29: ff8008ff3be0

Parking CPU 0 (Cell: "sharkle..-jailhouse")
[  245.523728] c0 Unable to handle kernel NULL pointer dereference at vir   

 tual address 
[  245.532113] c0 Mem abort info:
[  245.535141] c0   Exception class = IABT (current EL), IL = 32 bits
[  245.541286] c0   SET = 0, FnV = 0
[  245.544573] c0   EA = 0, S1PTW = 0
[  245.547952] c0 user pgtable: 4k pages, 39-bit VAs, pgd = ee15e   

 5bc
[  245.554698] c0 [] *pgd=bd7f5003, *pud=   

 bd7f5003, *pmd=
[  245.563876] c0 Internal error: Oops: 8606 [#1] PREEMPT SMP
[  245.569672] c0 Modules linked in: jailhouse(O)
[  245.574085] c0 Process swapper/0 (pid: 0, stack limit = 0x5f81   

 8af5)
[  245.581010] c0 CPU: 0 PID: 0 Comm: swapper/0 Tainted: G   O  

  4.14.174 #1
[  245.588534] c0 Hardware name: Spreadtrum SL8541E-SMARTPEN64 Board (DT)
[  245.595028] c0 task: 421e6e9e task.stack: 5f818af5
[  245.601172] c0 PC is at 0x0
[  245.603947] c0 LR is at trusty_fast_call32_power+0x68/0x90
[  245.609392] c0 pc : [<>] lr : [] pst   

 ate: 02c5
[  245.617005] c0 sp : ff8008ff3be0
[  245.620554] c0 x29: ff8008ff3be0 x28: 80ef0018
[  245.626092] c0 x27: 0020 x26: 
[  245.631630] c0 x25: 003929e3accf x24: ffc03bcd1800
[  245.637169] c0 x23:  x22: 
[  245.642707] c0 x21:  x20: bc0c
[  245.648246] c0 x19: ff8008ff3c40 x18: 007f98a404ee
[  245.653784] c0 x17: 0043f980 x16: ff800823b0fc
[  245.659323] c0 x15: 0004 x14: 0001
[  245.664862] c0 x13: ff800900e280 x12: 00403656d000
[  245.670399] c0 x11: 34d5d91d x10: 0008
[  245.675938] c0 x9 : 1000 x8 : ff8008081800
[  245.681476] c0 x7 : 0032b5593519 x6 : 0030
[  245.687015] c0 x5 :  x4 : 
[  245.692553] c0 x3 :  x2 : 
[  245.698092] c0 x1 :  x0 : bc0c
[  245.703635] c0
[  245.703635] c0 LR: 0xff80087e9328:
[  245.709081] c0 9328  d1004260 97f693a8 5280 f9400bf3 a8c27bfd d65f   

 03c0 a9b97bfd 910003fd
[  245.717477] c0 9348  a90153f3 a9025bf5 f9001bf7 b00040b3 2a0003f4 2a01   

 03f7 2a0203f6 2a0303f5
[  245.725871] c0 9368  aa1e03e0 91002273 d503201f f9400260 f90037a0 d280   

  a905d7b6 2a1403e0
[  245.734265] c0 9388  a904dfa0 37f80054 d421 36f00074 d421 17ff