From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796406340; b=TzWQA0ItzqiNF8+FeMcxAnNtIDkckHGgRMGnvXAZZLQrrig3vDsnjb0pIuKhAYkXPFrN IxjGhWPUphTU4Vyo38tqjiM93qN90bzQuennQ4mWf0Gwy7k8tViDY+r7y3tzbasxccRP8 N4wYKRpuLyOvjZBkDYeIoDaB8NWTvt7oyP+8zDprKd7Zsyp6EmMCmAPyOMmhWJKA7i6AD cDjAxwBJbygazzqceavSxA5+zynFjSumIUzbFM51IZpmDISE+Cakkfyjfx/j7aNxu1/su 42HQ+5NUoB5bv6tWBp49/cOFOMNgYnRePmLgLjc/M0itNwqqAU3wDhlhQNbFJRykwog== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796406340; h=Received:DKIM-Signature:Mime-Version:Content-Transfer-Encoding: Content-Type:Date:Message-Id:Subject:Cc:To:From:References: In-Reply-To; bh=aQt5abgyH8WNnDVUlusZCDqKTF9fIIRMqDOH5nNhUV8=; b=XaTlaE/GSJA5Fny92h8LwqJgCUPXsxozbWpIAa4+Lmxwu/Y+0wDNfRTSRXgroUXiWI6C evkJmDwVOt3Xmr3V8SSuSBW67Ha3ZE001U8nSLN1M07942r00XRvh9UzPPMMwqhkD8eEB wsGvTk72IbQ68ozl6xIou+rSEHdpKTis6YHkmVcfMEimsP3CM/qNR8FcqprjuEyC07UUY T4D4tXvdtd3K1cz1L/niCF3RPyI6vEF7HGgb1ehPYUG5OKsuTk+r9o0pQFRZWnSVBXbpf /LEk5zmcRqcuxGSxngCgYRRADHvNHWDc+q8p2gbSkZHoyHSetfR/5K2/EREY9S2IJMA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Am6OQl0j; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DA66606A338; Fri, 4 Dec 2026 17:45:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Am6OQl0j Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71DDF1F00936; Fri, 4 Dec 2026 17:45:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796406340; bh=aQt5abgyH8WNnDVUlusZCDqKTF9fIIRMqDOH5nNhUV8=; h=Date:Subject:Cc:To:From:References:In-Reply-To; b=Am6OQl0jcH8AXDE0g9PM4SwBppPspKh9FaRGmcqtZL0O1z96LZd6zlG5i7MzZ8kDK ReCc2iVj33KHSo+KGNkWk3ZAcBLrL2C7C7475G/rtbVhDJOVk9WA6q+X1NK1sTXfND 9UXElm3AP52fXwZR1Fn185GwJmYeP5vdS1XzuLqEG6VchkqW/VJc+Rmu3M2Ki/+m71 iPl7uOG0lfCDveUt7sFMw/AXnqLBlBvtiDkvZzMFLPiIkCjQdRsF5UjsYDZqPMEJqN ER5cN8NiQVyIOPXBCUje4o6DZsWkQCDgzVM1StPUqE1p1/qGC7XP4YbDWAb71V4vwx xKMxXcJTJYYlw== X-Mailing-List: nova-gpu@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 04 Dec 2026 18:45:30 +0100 Message-Id: Subject: Re: [PATCH v6 14/34] gpu: nova-core: mm: add SharedGpuMm Cc: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , To: "Alok Kumar" From: "Danilo Krummrich" References: In-Reply-To: On Wed Dec 2, 2026 at 9:28 AM CET, Alok Kumar wrote: > +/// A [`GpuMm`] shared between several users, serialized by a mutex. > +#[pin_data] > +pub(crate) struct SharedGpuMm<'gpu> > +where > + // Hide the mutex's invariant resource lifetime so `SharedGpuMm` rem= ains covariant. > + exists<'res>: 'gpu, > +{ > + #[pin] > + #[uses('res: invariant)] > + inner: Mutex>, > +} As mentioned previously this will eventually violated DMA fence rules. Rebasing on latest drm-rust-next, this shouldn't be needed anymore, as I ad= ded more granular locking to the inner fields of GpuMm.