On 18.08.20 12:07, Jan-Marc Stranz wrote: > I have now made a few calls to the command "sudo jailhouse enable > $HOME/Projects/Jailhouse/jailhouse.git /configs /x86/sysconfig.cell". > Every time the whole Linux PC freezes. > The messages that are output via the COM interface show the following: > > ... > Page pool usage after late setup: mem 359/978, remap 16517/131072 > FATAL: Invalid MMIO/RAM write, addr: 0x00000000feb82008 size: 4
That access is on the AMD IOMMU. Make sure to disable its driver in the kernel. > RIP: 0xffffffffa14f3bb6 RSP: 0xffffb551c02a0cf0 FLAGS: 2 > RAX: 0xffffb551c0080000 RBX: 0x0000000000000001 RCX: 0x000000003000000b > RDX: 0xffff97694adc0000 RSI: 0x3000000b00000000 RDI: 0x7ffffffffffff003 > CS: 10 BASE: 0x0000000000000000 AR-BYTES: 29b EFER.LMA 1 > CR0: 0x0000000080050033 CR3: 0x00000003cca84000 CR4: 0x00000000003406e0 > EFER: 0x0000000000001d01 > Parking CPU 5 (Cell: "RootCell") > ... > > or mostly > > ... > Page pool usage after late setup: mem 359/978, remap 16517/131072 > FATAL: Invalid PIO read, port: 1771 size: 1 > RIP: 0xffffffff9d8f5f48 RSP: 0xffffb84900127dd8 FLAGS: 93 > RAX: 0x0000000000000000 RBX: 0x0000000000000002 RCX: 0x0000000000000068 > RDX: 0x0000000000001771 RSI: 0xffffffff9e568b80 RDI: 0xffff898449e90498 > CS: 10 BASE: 0x0000000000000000 AR-BYTES: 29b EFER.LMA 1 > CR0: 0x0000000080050033 CR3: 0x00000003d7c1e000 CR4: 0x00000000003406e0 > EFER: 0x0000000000001d01 > Parking CPU 1 (Cell: "RootCell") > ... > > I've attached the system configuration and 4 log files. > > What should be changed in the system configuration? > Port 1771 (0x06eb) is actually not used in the system configuration, is it? The port is actually 0x1771, i.e. hex. The quick solution is to add a PIO_RANGE for it (and for similar ones) to your config. If you want to understand where it comes from and when it's not listed in /proc/ioports (likely), you can use CONFIG_CRASH_CELL_ON_PANIC and study the backtrace that the kernel will then dump on the violation. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE 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 jailhouse-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/9493a53c-0de9-eb96-1158-0a0922f70910%40siemens.com.