Improve PTDUMP and introduce new fields#206
Improve PTDUMP and introduce new fields#206cp0613 wants to merge 3 commits intoRVCK-Project:rvck-6.6from
Conversation
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21475412754 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[10:59:38] Testing complete. Ran 455 tests: passed: 443, skipped: 12 Kernel Build ResultKernel build succeeded: RVCK-Project/rvck/206/ 1094c0f03e09063014d6c3c26584d0a9 /srv/guix_result/6e8f0bd204ef49f05aa224a769612ea171d63c39/Image LAVA Checkargs:
result:Lava check done! lava log: https://lava.oerv.ac.cn/scheduler/job/1234 lava result count: [fail]: 175, [pass]: 1433, [skip]: 291 Check Patch Result
|
6e7299d to
3fb06be
Compare
|
分支已经滚动,请尽快rebase。 |
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21575430992 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[02:43:01] Testing complete. Ran 455 tests: passed: 443, skipped: 12 Kernel Build ResultKernel build failed. Check Patch Result
|
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21575451367 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[02:44:18] Testing complete. Ran 455 tests: passed: 443, skipped: 12 Kernel Build ResultKernel build failed. Check Patch Result
|
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21575688889 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[02:57:59] Testing complete. Ran 455 tests: passed: 443, skipped: 12 Kernel Build ResultKernel build failed. Check Patch Result
|
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21575688855 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[02:57:45] Testing complete. Ran 455 tests: passed: 443, skipped: 12 Kernel Build ResultKernel build failed. Check Patch Result
|
The ptdump (page table dump) feature in the Linux kernel prints the virtual memory page table structure, helping developers visualize address mappings, verify memory permissions, and debug issues like page faults or incorrect translations—especially useful during kernel bring-up and memory subsystem debugging. |
The original RISC-V ptdump implementation does not include the PBMT and NAPOT fields, which are memory attributes for NC, IO, or N. This series of patches enhances this information. The testing methodology can be found at https://docs.kernel.org/arch/arm64/ptdump.html as follows: Before enhancement: After enhancement: |
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21614969080 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[02:57:21] Testing complete. Ran 455 tests: passed: 443, skipped: 12 Kernel Build ResultKernel build failed. Check Patch Result
|
Thank you for the method you provided. It is very helpful to review. |
|
CI test failed; debug the code. |
|
/check 开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21678296991 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[15:57:54] Testing complete. Ran 455 tests: passed: 443, skipped: 12 Kernel Build ResultKernel build failed. Check Patch Result
|
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21700506631 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[05:55:38] Testing complete. Ran 455 tests: passed: 443, skipped: 12 Kernel Build ResultKernel build succeeded: RVCK-Project/rvck/206/ 5a06aee9c767d3c437defc041489ec78 /srv/guix_result/4eb701bc522ae65f41e405926f3a6dcc60fe4c4e/Image LAVA Checkargs:
result:Lava check done! lava log: https://lava.oerv.ac.cn/scheduler/job/1330 lava result count: [fail]: 175, [pass]: 1434, [skip]: 290 Check Patch Result
|
|
@sterling-teng 该PR CI已经通过,自测通过,请帮忙review合入。 |
你的补丁似乎缺少你自己的SOB签名。 |
这里也需要引用下issue |
|
除了以上两个之外,没有别的问题了。 |
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21889251857 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[01:37:04] Testing complete. Ran 457 tests: passed: 445, skipped: 12 Kernel Build ResultKernel build succeeded: RVCK-Project/rvck/206/ cc4708931325a6b9f2492f5fb4c8e2d2 /srv/guix_result/975a81fb2143ecdb3aed10ea39002dad43bbdbe6/Image LAVA Checkargs:
result:Lava check done! lava log: https://lava.oerv.ac.cn/scheduler/job/1414 lava result count: [fail]: 175, [pass]: 1434, [skip]: 290 Check Patch Result
|
mainline inclusion from mainline-v6.7-rc1 commit d5d2c26 category: feature bugzilla: RVCK-Project#205 -------------------------------- RSW field can be used to encode 2 bits of software defined information. Currently, PTDUMP only prints "RSW" when its value is 1 or 3. To fix this issue and improve the debugging experience with PTDUMP, we redefine _PAGE_SPECIAL to its original value and use _PAGE_SOFT as the RSW mask, allow it to print the RSW with any non-zero value. This patch also removes the val from the struct prot_bits as it is no longer needed. Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20230921025022.3989723-2-peterlin@andestech.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
mainline inclusion from mainline-v6.7-rc1 commit 0713ff3 category: feature bugzilla: RVCK-Project#205 -------------------------------- This patch introduces the PBMT field to the PTDUMP, so it can display the memory attributes for NC or IO. Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20230921025022.3989723-3-peterlin@andestech.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
mainline inclusion from mainline-6.7-rc1 commit 015c3c3 category: feature bugzilla: RVCK-Project#205 -------------------------------- This patch introduces the NAPOT field to PTDUMP, allowing it to display the letter "N" for pages that have the 63rd bit set. Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20230921025022.3989723-4-peterlin@andestech.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21889303211 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[01:38:59] Testing complete. Ran 457 tests: passed: 445, skipped: 12 Kernel Build ResultKernel build succeeded: RVCK-Project/rvck/206/ 5ea7a8530d685c25f02a3bae4329703a /srv/guix_result/329d9947dd14cae84ff9d8ebb80d13d938de23a0/Image LAVA Checkargs:
result:Lava check fail! lava log: https://lava.oerv.ac.cn/scheduler/job/1416 lava result count: call: 1 Check Patch Result
|
|
开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21889303215 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[01:39:07] Testing complete. Ran 457 tests: passed: 445, skipped: 12 Kernel Build ResultKernel build succeeded: RVCK-Project/rvck/206/ 534f3989b450ff95c248fb5254fda8ce /srv/guix_result/329d9947dd14cae84ff9d8ebb80d13d938de23a0/Image LAVA Checkargs:
result:Lava check fail! lava log: https://lava.oerv.ac.cn/scheduler/job/1415 lava result count: call: 1 Check Patch Result
测试完成 详细结果:RVCK result
Kunit Test Result[01:39:07] Testing complete. Ran 457 tests: passed: 445, skipped: 12 Kernel Build ResultKernel build succeeded: RVCK-Project/rvck/206/ 534f3989b450ff95c248fb5254fda8ce /srv/guix_result/329d9947dd14cae84ff9d8ebb80d13d938de23a0/Image LAVA Checkargs:
result:Lava check fail! lava log: https://lava.oerv.ac.cn/scheduler/job/1415 lava result count: call: 1 Check Patch Result
|
|
|
/check 开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21890737418 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[02:48:02] Testing complete. Ran 457 tests: passed: 445, skipped: 12 Kernel Build ResultKernel build succeeded: RVCK-Project/rvck/206_3881805706/ c0c30bdfa1dbde651dcc99a0fe6b41f7 /srv/guix_result/329d9947dd14cae84ff9d8ebb80d13d938de23a0/Image LAVA Checkargs:
result:Lava check done! lava log: https://lava.oerv.ac.cn/scheduler/job/1417 lava result count: [fail]: 175, [pass]: 1434, [skip]: 290 Check Patch Result
|
|
/check 开始测试 log: https://github.com/RVCK-Project/rvck/actions/runs/21910149545 参数解析结果
测试完成 详细结果:RVCK result
Kunit Test Result[15:59:44] Testing complete. Ran 457 tests: passed: 445, skipped: 12 Kernel Build ResultKernel build succeeded: RVCK-Project/rvck/206_3884991653/ 8c23049153d462e57dad5fd797a6de3e /srv/guix_result/329d9947dd14cae84ff9d8ebb80d13d938de23a0/Image LAVA Checkargs:
result:Lava check done! lava log: https://lava.oerv.ac.cn/scheduler/job/1420 lava result count: [fail]: 175, [pass]: 1434, [skip]: 290 Check Patch Result
|
|
需要澄清一下ci未通过的原因。 |
commit: https://lore.kernel.org/all/20230921025022.3989723-1-peterlin@andestech.com/
This patchset enhances PTDUMP by providing additional information from pagetable entries.
The first patch fixes the RSW field, while the second and third patches introduce the PBMT and NAPOT fields, respectively, for RV64 systems.
issue: #205