Thanks for the talk. I found some root cause. and run gic-demo successfully.

Will refine / integrate and put them to the public later.


On Wednesday, 11 November 2020 at 23:55:30 UTC+8 Kai-Feng Chou wrote:

> 1. what you meant about "backed any RAM" ?  I used mem=1024M to test. And 
> my DDR4 is 4G for now.
> 2. nope only 4G . / thanks for notice. let me remove some unused region.
> On Wednesday, 11 November 2020 at 23:52:16 UTC+8 [email protected] 
> wrote:
>
>> On 11.11.20 16:34, maple Chou wrote: 
>> > " 
>> > Last login: Mon May 11 15:35:01 +0000 2020 on /dev/ttyS0. 
>> > root@stratix10:~# cat /proc/iomem 
>> > 01000000-7fffffff : System RAM 
>> >   02080000-02eaffff : Kernel code 
>> >   02eb0000-0309ffff : reserved 
>> >   030a0000-031bbfff : Kernel data 
>> >   79800000-7f7fffff : reserved 
>> >   7fa30000-7fa34fff : reserved 
>> > ff800000-ff801fff : ff800000.ethernet 
>> > ff808000-ff808fff : ff808000.dwmmc0 
>> > ff8d2000-ff8d20ff : ff8d2000.spi 
>> > ff900000-ff9fffff : ff8d2000.spi 
>> > ffb00000-ffb3ffff : ffb00000.usb 
>> > ffc02000-ffc0201f : serial 
>> > ffc02900-ffc029ff : ffc02900.i2c 
>> > ffc03300-ffc033ff : ffc03300.gpio 
>> > ffd00200-ffd002ff : ffd00200.watchdog 
>> > ffd10000-ffd10fff : ffd10000.clock-controller 
>> > ffd11000-ffd11fff : ffd11000.rstmgr 
>> > ffda0000-ffda0fff : pdma@ffda0000 
>> >   ffda0000-ffda0fff : ffda0000.pdma 
>> > ffe00000-ffefffff : ffe00000.sram 
>> > 180000000-1ffffffff : System RAM 
>> >   1fae00000-1fb5fffff : reserved 
>> >   1fb7fe000-1ff5fffff : reserved 
>> >   1ff72d000-1ff78cfff : reserved 
>> >   1ff78d000-1ff78dfff : reserved 
>> >   1ff78e000-1ff7e5fff : reserved 
>> >   1ff7e8000-1ff7e8fff : reserved 
>> >   1ff7e9000-1ff7edfff : reserved 
>> >   1ff7ee000-1ffffffff : reserved 
>> > root@stratix10:~# 
>> > 
>>
>> But you are using address 8,0000,0000 for loading the hypervisor. That 
>> seems to like it's not backed by any RAM, is it? 
>>
>> > " 
>> > 
>> > and I'd reference this 
>> > - 
>> https://github.com/altera-opensource/u-boot-socfpga/blob/socfpga_v2020.04/arch/arm/mach-socfpga/mmu-arm64_s10.c
>>  
>> > <
>> https://github.com/altera-opensource/u-boot-socfpga/blob/socfpga_v2020.04/arch/arm/mach-socfpga/mmu-arm64_s10.c>
>>  
>>
>>
>> That seems to describe possible occupations - or die you really have 124 
>> GB on your board? 
>>
>> Jan 
>> -- 
>> Siemens AG, T RDA IOT 
>> 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/dcc8d9b8-4b0a-4b7e-b075-c3a20e332e10n%40googlegroups.com.
Poky (Yocto Project Reference Distro) 3.0.2 stratix10 ttyS0

stratix10 login: root
Last login: Mon May 11 15:33:21 +0000 2020 on /dev/ttyS0.
root@stratix10:~# cd jailhouse
root@stratix10:~/jailhouse# insmod ./driver/jailhouse.ko
[   21.660298] jailhouse: loading out-of-tree module taints kernel.
root@stratix10:~/jailhouse# ./tools/jailhouse enable 
configs/arm64/socfpga-s10socdk.cell

Initializing Jailhouse hypervisor v0.12 (136-g13c360e0-dirty) on CPU 2
Code location: 0x0000ffffc0200800
Page pool usage after early setup: mem 45/4063, remap 0/131072
Initializing processors:
 CPU 2... OK
 CPU 3... OK
 CPU 1... OK
 CPU 0... OK
Initializing unit: irqchip
Initializing unit: ARM SMMU v3
Initializing unit: ARM SMMU
Initializing unit: PVU IOMMU
Initializing unit: PCI
Page pool usage after late setup: mem 69/4063, remap 5/131072
Activating hypervisor
[   31.015360] The Jailhouse is opening.
root@stratix10:~/jailhouse# [   31.713877] 0.33V: disabling

root@stratix10:~/jailhouse# ./tools/jailhouse cell create 
configs/arm64/socfpga-s10socdk-inmate-demo.cell
[   66.466143] CPU3: shutdown
[   66.468865] psci: CPU3 killed (polled 0 ms)
Created cell "inmate-demo"
Page pool usage after cell creation: mem 83/4063, remap 5/131072
[   66.483963] Created Jailhouse cell "inmate-demo"
root@stratix10:~/jailhouse# ./tools/jailhouse cell load 1 
inmates/demos/arm64/gic-demo.bin
Cell "inmate-demo" can be loaded
root@stratix10:~/jailhouse# ./tools/jailhouse cell start 1
Started cell "inmate-demo"
root@stratix10:~/jailhouse# Initializing the GIC...
Initializing the timer...
Timer fired, jitter:   2264 ns, min:   2264 ns, max:   2264 ns
Timer fired, jitter:    859 ns, min:    859 ns, max:   2264 ns
Timer fired, jitter:    809 ns, min:    809 ns, max:   2264 ns
Timer fired, jitter:    799 ns, min:    799 ns, max:   2264 ns
Timer fired, jitter:    794 ns, min:    794 ns, max:   2264 ns
Timer fired, jitter:    794 ns, min:    794 ns, max:   2264 ns
Timer fired, jitter:    794 ns, min:    794 ns, max:   2264 ns
Timer fired, jitter:    792 ns, min:    792 ns, max:   2264 ns
Timer fired, jitter:    794 ns, min:    792 ns, max:   2264 ns
Timer fired, jitter:    809 ns, min:    792 ns, max:   2264 ns
Timer fired, jitter:    792 ns, min:    792 ns, max:   2264 ns
Timer fired, jitter:    802 ns, min:    792 ns, max:   2264 ns
Timer fired, jitter:    802 ns, min:    792 ns, max:   2264 ns
Timer fired, jitter:    799 ns, min:    792 ns, max:   2264 ns
Timer fired, jitter:    792 ns, min:    792 ns, max:   2264 ns

Reply via email to