Skip to content

Commit e2788c3

Browse files
committed
fixup! drm/asahi: RiiR page tables
1 parent 9f0b95f commit e2788c3

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
@@ -235,7 +235,7 @@ pub(crate) struct UatPageTable {
235235
}
236236

237237
impl UatPageTable {
238-
pub(crate) fn new(oas: usize) -> Result<Self> {
238+
pub(crate) fn new(oas: u32) -> Result<Self> {
239239
mod_pr_debug!("UATPageTable::new: oas={}\n", oas);
240240
let ttb_page = Page::alloc_page(GFP_KERNEL | __GFP_ZERO)?;
241241
let ttb = Page::into_phys(ttb_page);
@@ -250,7 +250,7 @@ impl UatPageTable {
250250
pub(crate) fn new_with_ttb(
251251
ttb: PhysicalAddr,
252252
va_range: Range<u64>,
253-
oas: usize,
253+
oas: u32,
254254
) -> Result<Self> {
255255
mod_pr_debug!(
256256
"UATPageTable::new_with_ttb: ttb={:#x} range={:#x?} oas={}\n",
@@ -277,7 +277,7 @@ impl UatPageTable {
277277
ttb,
278278
ttb_owned: false,
279279
va_range,
280-
oas_mask: (1 << oas) - 1,
280+
oas_mask: (1u64 << oas) - 1,
281281
})
282282
}
283283

0 commit comments

Comments
 (0)