Skip to content

Commit edfb5c4

Browse files
hoshinolinajannau
authored andcommitted
drm/asahi: pgtable: Mark GPU entries as uncached
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 4ef3583 commit edfb5c4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/gpu/drm/asahi/pgtable.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ pub(crate) mod prot {
138138
/// Firmware-RW/GPU-RO shared (private) RW
139139
pub(crate) const PROT_GPU_RO_FW_PRIV_RW: Prot = PROT_FW_RW_GPU_RO.memattr(MEMATTR_CACHED);
140140
/// GPU shared/coherent RW
141-
pub(crate) const PROT_GPU_SHARED_RW: Prot = PROT_GPU_RW;
141+
pub(crate) const PROT_GPU_SHARED_RW: Prot = PROT_GPU_RW.memattr(MEMATTR_UNCACHED);
142142
/// GPU shared/coherent RO
143-
pub(crate) const PROT_GPU_SHARED_RO: Prot = PROT_GPU_RO;
143+
pub(crate) const PROT_GPU_SHARED_RO: Prot = PROT_GPU_RO.memattr(MEMATTR_UNCACHED);
144144
/// GPU shared/coherent WO
145-
pub(crate) const PROT_GPU_SHARED_WO: Prot = PROT_GPU_WO;
145+
pub(crate) const PROT_GPU_SHARED_WO: Prot = PROT_GPU_WO.memattr(MEMATTR_UNCACHED);
146146
}
147147

148148
impl Prot {

0 commit comments

Comments
 (0)