Skip to content

Commit 388bfc1

Browse files
hoshinolinajannau
authored andcommitted
drm/asahi: Map all reserved-regions as cached
There seems to be no reason to map any of this uncached, and this makes it possible to remove `no-map` from the device tree entries without breaking under u-boot/EFI. Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent f81bb5e commit 388bfc1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/asahi/mmu.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,8 +1540,8 @@ impl Uat {
15401540
/// Creates the reference-counted inner data for a new `Uat` instance.
15411541
#[inline(never)]
15421542
fn make_inner(dev: &driver::AsahiDevice) -> Result<Arc<UatInner>> {
1543-
let handoff_rgn = Self::map_region(dev.as_ref(), c_str!("handoff"), HANDOFF_SIZE, false)?;
1544-
let ttbs_rgn = Self::map_region(dev.as_ref(), c_str!("ttbs"), SLOTS_SIZE, false)?;
1543+
let handoff_rgn = Self::map_region(dev.as_ref(), c_str!("handoff"), HANDOFF_SIZE, true)?;
1544+
let ttbs_rgn = Self::map_region(dev.as_ref(), c_str!("ttbs"), SLOTS_SIZE, true)?;
15451545

15461546
let handoff = unsafe { &(handoff_rgn.map.as_ptr() as *mut Handoff).as_ref().unwrap() };
15471547

0 commit comments

Comments
 (0)