Open LIUQyou opened 11 months ago
I switched to kernel 6.3. And then I enable the CONFIGS like what is mentioned in [https://github.com/pmem/ndctl]. The mode is the fsdax. But it still encounter some problems when trying --cxl-test-run.
[ 641.072606] RIP: 0033:0x7fa6e331ea3d
[ 641.073190] Code: 5b 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c3 a3 0f 00 f7 d8 64 89 01 48
[ 641.076135] RSP: 002b:00007ffeafde6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
[ 641.077340] RAX: ffffffffffffffda RBX: 00007ffeafde60e8 RCX: 00007fa6e331ea3d
[ 641.078478] RDX: 00007fa6e32425f3 RSI: 0000000000000000 RDI: 0000000000000011
[ 641.079619] RBP: 00007ffeafde60e0 R08: 0000000000000000 R09: 0000000000000006
[ 641.080756] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
[ 641.081894] R13: 0000000000000016 R14: 0000000000000000 R15: 0000000000000000
[ 641.083037] </TASK>
[ 641.083405] Modules linked in: nd_pmem dax_cxl dax_pmem nd_btt cxl_mock_mem(ON) cxl_pci nd_e820 cxl_test(ON) cxl_mem(ON) cxl_port(ON) cxl_pmem(ON) cxl_acpi(ON) cxl_mock(ON) libnvdimm cxl_core(ON) efivarfs
[ 641.086276] CR2: 00003ae1a4720328
[ 641.086833] ---[ end trace 0000000000000000 ]---
[ 641.087581] RIP: 0010:_raw_spin_trylock+0xe/0x50
[ 641.088329] Code: 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 53 48 89 fb bf 01 00 00 00 e8 b2 5a 25 ff <8b> 03 85 c0 75 16 ba 01 00 00 00 f0 0f b1 13 b8 01 00 00 00 75 06
[ 641.091274] RSP: 0018:ffffc1154165fc90 EFLAGS: 00010297
[ 641.092113] RAX: 0000000000000002 RBX: 0000000000000058 RCX: ffffffff00000000
[ 641.093256] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
[ 641.094384] RBP: ffff9c8ed0000000 R08: 0000000000000064 R09: 0000000000000000
[ 641.095520] R10: ffff9b9f3fe7b000 R11: 0000000a03052ff5 R12: ffff9c8ed0000058
[ 641.096654] R13: 0000000000000000 R14: ffff9c8ed0000000 R15: 0000000000000001
[ 641.097797] FS: 00007fa6e38c2340(0000) GS:ffff9b9f39c80000(0000) knlGS:0000000000000000
[ 641.099076] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 641.100000] CR2: 00003ae1a4720328 CR3: 0000000201116000 CR4: 00000000000006e0
[ 641.101140] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 641.102279] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 641.103421] note: systemd[1] exited with irqs disabled
[ 641.104267] note: systemd[1] exited with preempt_count 1
[ 641.105137] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
[ 641.106577] Kernel Offset: 0x19200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 641.108343] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 ]---
Could you provide a kernel .config or version example? So that we know which kernel version to use.
Thank you very much
hi, were you able to fix the issue? I am stuck in the similar issue, I have built the kernel but when I do the sanity tests, it fails.
@LIUQyou @y17yeshwanth Yeah --cxl-test-run and --nfit-test-run are currently broken. I need to either remove them or fix them. For now I'd suggest just booting the guest up normally with --cxl-test or --nfit-test as needed, and running the tests manually (depends on what your goals are with all of this too).
Hi,
I have already built the kernel. And I try to test the system. But I got the following error:
I modified the script to output the QEMU command line a little bit:
Then I checked the log file, it seems no problem:
The kernel I use is 5.19. The part of the config looks like that:
Is the version of the Linux kernel a problem? The image I tried to build is ubuntu22.04. Besides, I log into the image without test. The mode used by Pmem is:
The mode is raw.. I am not sure which part is wrong. By the way, I made little modification here. I changed the : "${distro:=ubuntu}" : "${rev:=jammy}"
Looking forward to your reply.
Thank you very much