Skip to content

Comments

Enable gade when iommu has AMO_HWAD cap#154

Merged
xmzzz merged 1 commit intoRVCK-Project:OLK-nextfrom
zte-riscv:pr-iommu3
Jan 20, 2026
Merged

Enable gade when iommu has AMO_HWAD cap#154
xmzzz merged 1 commit intoRVCK-Project:OLK-nextfrom
zte-riscv:pr-iommu3

Conversation

@GooTal
Copy link

@GooTal GooTal commented Jan 17, 2026

Enable gade when iommu has AMO_HWAD cap

driver inclusion
category: bugfix
bugzilla: #145


If GADE (Guest Atomic D-bit and A-bit Update Enable) is set to 1,
the IOMMU will atomically update the Accessed (A) and Dirty (D)
bits in second-stage page table entries (PTEs). If GADE is set to 0,
the IOMMU will trigger a guest-page-fault corresponding to the
original access type under either of the following conditions: when
the A bit is 0, or when the memory access is a store operation and
the D bit is 0. The driver must enable GADE when the IOMMU has the
AMO_HWAD (Atomic Memory Operation for Hardware A/D bits) capability.

Signed-off-by: jinqi jin.qi@zte.com.cn
Signed-off-by: liuqingtao liu.qingtao2@zte.com.cn

@github-actions
Copy link

github-actions bot commented Jan 17, 2026


开始测试 log: https://github.com/RVCK-Project/rvck-olk/actions/runs/21094967264

参数解析结果
args value
repository RVCK-Project/rvck-olk
head ref pull/154/head
base ref OLK-next
LAVA repo RVCK-Project/lavaci
LAVA Template lava-job-template/qemu/qemu-ltp.yaml
Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:

RVCK result

check result
kunit-test success
kernel-build success
lava-trigger success
check-patch success

Kunit Test Result

[13:29:24] Testing complete. Ran 454 tests: passed: 442, skipped: 12

Kernel Build Result

Kernel build succeeded: RVCK-Project/rvck-olk/154/

54e68601c3d4771a01c302d308cf53b6 /srv/guix_result/c53c8ae3a20224f2aeff824df3bc41686961640d/Image
7f2762898de22262bc68d204e92419f9 /root/initramfs.img

LAVA Check

args:

result:

Lava check done! lava log: https://lava.oerv.ac.cn/scheduler/job/1083

lava result count: [fail]: 19, [pass]: 1587, [skip]: 293

Check Patch Result

Total Errors 0
Total Warnings 0

driver inclusion
category: bugfix
bugzilla: RVCK-Project#145

---------------------------------

If GADE (Guest Atomic D-bit and A-bit Update Enable) is set to 1,
the IOMMU will atomically update the Accessed (A) and Dirty (D)
bits in second-stage page table entries (PTEs). If GADE is set to 0,
the IOMMU will trigger a guest-page-fault corresponding to the
original access type under either of the following conditions: when
the A bit is 0, or when the memory access is a store operation and
the D bit is 0. The driver must enable GADE when the IOMMU has the
AMO_HWAD (Atomic Memory Operation for Hardware A/D bits) capability.

Signed-off-by: jinqi <jin.qi@zte.com.cn>
Signed-off-by: liuqingtao <liu.qingtao2@zte.com.cn>
@github-actions
Copy link

github-actions bot commented Jan 19, 2026


开始测试 log: https://github.com/RVCK-Project/rvck-olk/actions/runs/21138199999

参数解析结果
args value
repository RVCK-Project/rvck-olk
head ref pull/154/head
base ref OLK-next
LAVA repo RVCK-Project/lavaci
LAVA Template lava-job-template/qemu/qemu-ltp.yaml
Testcase path lava-testcases/common-test/ltp/ltp.yaml
need run job kunit-test,kernel-build,check-patch,lava-trigger

测试完成

详细结果:

RVCK result

check result
kunit-test success
kernel-build success
lava-trigger success
check-patch success

Kunit Test Result

[12:58:09] Testing complete. Ran 454 tests: passed: 442, skipped: 12

Kernel Build Result

Kernel build succeeded: RVCK-Project/rvck-olk/154/

90dad1afd57dc915cf6b31d6cf167a84 /srv/guix_result/170abbac8c411267ede06c424d2086b1150fd71e/Image
ed8136ac08c067337b4efff04a23651c /root/initramfs.img

LAVA Check

args:

result:

Lava check done! lava log: https://lava.oerv.ac.cn/scheduler/job/1087

lava result count: [fail]: 20, [pass]: 1586, [skip]: 293

Check Patch Result

Total Errors 0
Total Warnings 0

@GooTal GooTal changed the title iommu/riscv: Fix inconsistencies with the latest spec revision(3) Enable gade when iommu has AMO_HWAD cap Jan 19, 2026
@xmzzz xmzzz merged commit 3d123cb into RVCK-Project:OLK-next Jan 20, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants