> On 12 Feb 2026, at 08:05, Boris Brezillon <[email protected]> > wrote: > > On Wed, 11 Feb 2026 17:37:09 -0800 > Deborah Brouwer <[email protected]> wrote: > >> + >> +impl Mmu { >> + pub(crate) fn new( >> + pdev: &platform::Device, >> + iomem: ArcBorrow<'_, Devres<IoMem>>, >> + gpu_info: &GpuInfo, >> + ) -> Result<Arc<Mmu>> { > > Maybe the Mmu should be wrapped in a Devres, like we do with other HW > components that require the underlying device to be bound to access > registers. I mean, we do have iomem wrapper into a Devres, so maybe > that's not needed, dunno. Isn’t it enough to have the mmio range wrapped in Devres? That’s the actual device resource that goes away when the device goes away. > >> + let slot_count = gpu_info.as_present.count_ones().try_into()?; >> + let as_manager = AddressSpaceManager::new(pdev, iomem, >> gpu_info.as_present)?; >> + let mmu_init = try_pin_init!(Self{ >> + as_manager <- new_mutex!(SlotManager::new(as_manager, >> slot_count)?), >> + }); >> + Arc::pin_init(mmu_init, GFP_KERNEL) >> + } >
- Re: [PATCH 07/12] drm/tyr: Add generic slot manag... Alice Ryhl
- Re: [PATCH 07/12] drm/tyr: Add generic slot m... Daniel Almeida
- Re: [PATCH 07/12] drm/tyr: Add generic sl... Alice Ryhl
- Re: [PATCH 07/12] drm/tyr: Add gener... Daniel Almeida
- Re: [PATCH 07/12] drm/tyr: Add generic slot manag... Deborah Brouwer
- [PATCH 11/12] drm/tyr: add parser for firmware binary Deborah Brouwer
- [PATCH 08/12] drm/tyr: add MMU module Deborah Brouwer
- Re: [PATCH 08/12] drm/tyr: add MMU module Boris Brezillon
- Re: [PATCH 08/12] drm/tyr: add MMU module Deborah Brouwer
- Re: [PATCH 08/12] drm/tyr: add MMU module Boris Brezillon
- Re: [PATCH 08/12] drm/tyr: add MMU module Daniel Almeida
- Re: [PATCH 08/12] drm/tyr: add MMU module Alice Ryhl
- Re: [PATCH 08/12] drm/tyr: add MMU module Daniel Almeida
- Re: [PATCH 08/12] drm/tyr: add MMU module Deborah Brouwer
- Re: [PATCH 08/12] drm/tyr: add MMU module Alice Ryhl
- Re: [PATCH 08/12] drm/tyr: add MMU module Deborah Brouwer
- [PATCH 05/12] drm/tyr: add MMU address space registers Deborah Brouwer
- Re: [PATCH 05/12] drm/tyr: add MMU address space regi... Boris Brezillon
- Re: [PATCH 05/12] drm/tyr: add MMU address space ... Deborah Brouwer
- Re: [PATCH 05/12] drm/tyr: add MMU address space regi... Daniel Almeida
- Re: [PATCH 05/12] drm/tyr: add MMU address space regi... Alice Ryhl
