On 05.01.23 17:53, Tommi Parkkila wrote:
> Jan - Thanks again. I have not tried the config check yet. Actually, it
> does not work on hw currently, it does not find pyjailhouse module. I'll
> check whats going wrong with it and let you know.

You can also run it offline, even directly from the source folder
(tools/jailhouse-config-check ...).

Jan

> -tommi
> 
> to 5. tammik. 2023 klo 10.21 Jan Kiszka ([email protected]
> <mailto:[email protected]>) kirjoitti:
> 
>     On 05.01.23 15:34, Tommi Parkkila wrote:
>     > Thanks for your reply, Jan. I managed to get forward from the 'hang'
>     > condition. There were several misdefinitions on my root-cell
>     > configuration. Now I get the root-cell started sometimes, but more
>     often
>     > I get two types of issues after enable command. Any help or ideas
>     where
>     > to continue my debugging would be greatly appreciated. Please, see the
>     > issues explained below.
> 
>     Already tried "jailhouse config check"?
> 
>     >
>     > Thanks,
>     > -tommi
>     >
>     > +++++++++++++++++++++++++++++++++
>     >
>     > 1. Terminal hangs
>     > -- After the enable command for the root cell, jailhouse gets started
>     > but then the terminal goes unresponsive. Below, example log, where I
>     > give ls cmd, which then causes terminal to go unresponsive...:
>     >
> 
>     Missing interrupts could be one reason. Or something is completely
>     broken with memory mapping so that a kernel device driver gets stuck on
>     waiting for some register bit to flip, e.g. But most frequent are
>     interrupt issues, specifically around GIC resources being improperly
>     passed through. The config checker may find that.
> 
>     > /*root@stm32mp1:~# modprobe jailhouse
>     > [ 1315.034414] jailhouse: loading out-of-tree module taints kernel.
>     > root@stm32mp1:~# jailhouse enable
>     > ~/jailhouse/configs/arm/itron_stm32mp157.cell
>     >
>     > Initializing Jailhouse hypervisor v0.12 (314-gc7a1b697-dirty) on CPU 0
>     > Code location: 0xf0000040
>     > Page pool usage after early setup: mem 28/1514, remap 0/131072
>     > Initializing processors:
>     >  CPU 0... OK
>     >  CPU 1... OK
>     > Initializing unit: irqchip
>     > Initializing unit: PCI
>     > Page pool usage after late setup: mem 50/1514, remap 5/131072
>     > [0] Activating hypervisor
>     > [ 1355.352714] The Jailhouse is opening.
>     > root@stm32mp1:~# ls*/
>     >
>     > 2. Issue with setting CPU clock
>     > -- The second issue I see is related to i2c bus and system clock.
>     > Terminal starts printing error statements infinitely after Jailhouse
>     > opening. Below, is a snippet of an example logs. 
>     >
>     > */[   85.322027] The Jailhouse is opening.
>     > [   85.322648] stm32f7-i2c 5c002000.i2c: failed to prepare_enable
>     clock
>     > root@stm32mp1:~# [   85.339233] cpu cpu0: _set_opp_voltage: failed to
>     > set voltage (1350000 1350000 1350000 mV): -22
>     > [   85.350413] cpufreq: __target_index: Failed to change cpu
>     frequency: -22
>     > [   85.357706] cpu cpu0: _set_opp_voltage: failed to set voltage
>     > (1350000 1350000 1350000 mV): -22
>     > [   85.365124] cpufreq: __target_index: Failed to change cpu
>     frequency: -22
>     > [   85.381985] cpu cpu0: _set_opp_voltage: failed to set voltage
>     > (1350000 1350000 1350000 mV): -22
>     > /*- - -
>     > +++++++++++++++++++++++++++++++++
> 
>     Same possible reasons as above. Or do you know how clock control happens
>     on that platform? Is there firmware (TF-A?) involved?
> 
>     Jan
> 
>     -- 
>     Siemens AG, Technology
>     Competence Center Embedded Linux
> 

-- 
Siemens AG, Technology
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/e9acd20c-b3cb-4887-788a-266534ab5a19%40siemens.com.

Reply via email to