[PW_SID:993658] RISC-V: Define pgprot_dmacoherent() for non-coherent devices - #812
[PW_SID:993658] RISC-V: Define pgprot_dmacoherent() for non-coherent devices#812linux-riscv-bot wants to merge 1 commit into
Conversation
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>
|
Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices" |
|
Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices" |
|
Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices" |
|
Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices" |
|
Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices" |
|
Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices" |
|
Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices" |
|
Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices" |
|
Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices" |
|
Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices" |
|
Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices" |
|
Patch 1: "RISC-V: Define pgprot_dmacoherent() for non-coherent devices" |
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