> +    pub(crate) fn new_for_user(
>         dev: &'drm Device<Bound>,
>         ddev: &TyrDrmDevice,
>         mmu: ArcBorrow<'_, Mmu<'drm>>,
>         gpu_info: &GpuInfo,
> +        user_va: UserVaRequest,
> +    ) -> Result<Arc<Vm<'drm>>> {
> +        let mmu_features = MMU_FEATURES::from_raw(gpu_info.mmu_features);
> +        let va_bits = mmu_features.va_bits().get();
> +        let range = 0..(1u64 << va_bits);
> +
> +        let layout = VmLayout::compute(range.clone(), 
> user_va).inspect_err(|_| {
> +            dev_err!(
> +                dev,
> +                "Failed to split GPU VA range {:#x}..{:#x} into user and 
> kernel regions\n",
> +                range.start,
> +                range.end
> +            );

This should probably be dev_dbg.

— Daniel

Reply via email to