[PW_SID:1097006] [1/2] riscv: track effective hardware PTE A/D updates#1968
[PW_SID:1097006] [1/2] riscv: track effective hardware PTE A/D updates#1968linux-riscv-bot wants to merge 3 commits into
Conversation
Separate Svadu capability discovery from the host's effective ADUE state. Enable SBI FWFT PTE A/D hardware updating on each online CPU through CPUHP when both Svade and Svadu are present, use the resulting runtime state for arch_has_hw_pte_young(), and fall back to software-managed A/D updates when enabling the feature fails. Platforms with Svadu but without Svade are treated as always using hardware PTE A/D updates. Expose the runtime state through an inline getter so hot MM paths avoid an out-of-line function call. Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> Reviewed-by: Qingwei Hu <qingwei.hu@bytedance.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Use cmpxchg-based merges for live RISC-V PTE permission updates so software changes do not lose concurrently hardware-updated accessed and dirty state. Cover ptep_set_access_flags(), ptep_test_and_clear_young(), and ptep_set_wrprotect(), and extend the same wrprotect handling to the PUD leaf helper used by huge mappings. Keep the existing Svvptc flush behaviour, but only flush when the merged PTE value actually changed. Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> Reviewed-by: Qingwei Hu <qingwei.hu@bytedance.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[1/2] riscv: track effective hardware PTE A/D updates" |
|
Patch 1: "[1/2] riscv: track effective hardware PTE A/D updates" |
|
Patch 1: "[1/2] riscv: track effective hardware PTE A/D updates" |
|
Patch 1: "[1/2] riscv: track effective hardware PTE A/D updates" |
|
Patch 1: "[1/2] riscv: track effective hardware PTE A/D updates" |
|
Patch 1: "[1/2] riscv: track effective hardware PTE A/D updates" |
|
Patch 1: "[1/2] riscv: track effective hardware PTE A/D updates" |
|
Patch 1: "[1/2] riscv: track effective hardware PTE A/D updates" |
|
Patch 1: "[1/2] riscv: track effective hardware PTE A/D updates" |
|
Patch 1: "[1/2] riscv: track effective hardware PTE A/D updates" |
|
Patch 1: "[1/2] riscv: track effective hardware PTE A/D updates" |
|
Patch 1: "[1/2] riscv: track effective hardware PTE A/D updates" |
|
Patch 2: "[2/2] riscv: merge hardware A/D updates in PTE accessors" |
|
Patch 2: "[2/2] riscv: merge hardware A/D updates in PTE accessors" |
|
Patch 2: "[2/2] riscv: merge hardware A/D updates in PTE accessors" |
|
Patch 2: "[2/2] riscv: merge hardware A/D updates in PTE accessors" |
|
Patch 2: "[2/2] riscv: merge hardware A/D updates in PTE accessors" |
|
Patch 2: "[2/2] riscv: merge hardware A/D updates in PTE accessors" |
|
Patch 2: "[2/2] riscv: merge hardware A/D updates in PTE accessors" |
|
Patch 2: "[2/2] riscv: merge hardware A/D updates in PTE accessors" |
|
Patch 2: "[2/2] riscv: merge hardware A/D updates in PTE accessors" |
|
Patch 2: "[2/2] riscv: merge hardware A/D updates in PTE accessors" |
|
Patch 2: "[2/2] riscv: merge hardware A/D updates in PTE accessors" |
|
Patch 2: "[2/2] riscv: merge hardware A/D updates in PTE accessors" |
cd9d421 to
a1231b7
Compare
PR for series 1097006 applied to workflow__riscv__fixes
Name: [1/2] riscv: track effective hardware PTE A/D updates
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1097006
Version: 1