Skip to content

[PW_SID:993658] RISC-V: Define pgprot_dmacoherent() for non-coherent devices - #812

Closed
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw993658
Closed

[PW_SID:993658] RISC-V: Define pgprot_dmacoherent() for non-coherent devices#812
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw993658

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 993658 applied to workflow__riscv__fixes

Name: RISC-V: Define pgprot_dmacoherent() for non-coherent devices
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=993658
Version: 1

The pgprot_dmacoherent() is used when allocating memory for
non-coherent devices and by default pgprot_dmacoherent() is
same as pgprot_noncached() unless architecture overrides it.

Currently, there is no pgprot_dmacoherent() definition for
RISC-V hence non-coherent device memory is being mapped as
IO thereby making CPU access to such memory slow.

Define pgprot_dmacoherent() to be same as pgprot_writecombine()
for RISC-V so that CPU access non-coherent device memory as
NOCACHE which is better than accessing it as IO.

Fixes: ff689fd ("riscv: add RISC-V Svpbmt extension support")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 104.52 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 2206.94 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 2864.92 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 21.14 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 21.96 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.73 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 74.65 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices"
kdoc
Desc: Detects for kdoc errors
Duration: 0.82 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices"
module-param
Desc: Detect module_param changes
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.28 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.53 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot deleted the pw993658 branch August 28, 2025 01:01
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