From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8096F606A31A for ; Mon, 30 Nov 2026 23:15:26 +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=dJnUNwJ3 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E02DD10F530; Mon, 30 Nov 2026 23:15:20 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 70C7010F3D7 for ; Mon, 30 Nov 2026 23:15:14 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 964526119B; Mon, 30 Nov 2026 23:15:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 287A61F000C1; Mon, 30 Nov 2026 23:15:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796080513; bh=wHlKtRV+7HCI1lgGpy3RYkvN2v8/Ev3qLQFSgCQ6Yko=; h=Date:From:Subject:Cc:To:References:In-Reply-To; b=dJnUNwJ3ioCqBopPvxrxt/q4NMT4oVtgvvazLVeoj1YfiWeK+OM4Bc1f4/xfnPzbh bgsvqTww2U8RCO6vkR31+BH8KbXNF6fbQsuyg9lTU3ZzVxC82SByoTEe5q4EDy/kRq e/jtpVVDJb1Fy7O4NFjlmkWSN9rdtCeI8Tg60nM05hdXBgtvVWsintm/xW1caVBeD9 8XEth1nI6UphamOc8l4vFtFVAtr1Bal+1oOtERHrLG14+8qOkJJbNgpfh8AIwBXFa/ 9EHUiuu4IURl/uytf/XcWYqcpY3XHWzcCI4fHSPsxiExrk3jqOL7bXsMT8aZJBI10O EwU+A1yO9QHuw== X-Archived-By: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 01 Dec 2026 00:15:08 +0100 Message-Id: From: "Danilo Krummrich" Subject: Re: [PATCH 0/4] drm/tyr: use pin-init self-referential support Cc: , , , , , , , , , , , , , , , To: "Daniel Almeida" References: <20261118233727.3147222-1-dakr@kernel.org> <084F476A-BD3F-4FAA-B47C-E875B542AA1B@collabora.com> In-Reply-To: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "dri-devel" X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Wed Nov 25, 2026 at 12:03 AM CET, Daniel Almeida wrote: > You're saying this is possible under the code you're proposing? Because a= t > first glance this looks like a shortening of 'iomem to 'a (from > DriverFile<'a>), which I assume the compiler would reject due to invarian= ce? Yes. A user VM can borrow &'a Mmu<'iomem>. The lifetime 'a bounds the borro= w, while the invariant 'iomem stays unchanged. That's why Vm has separate borr= ow and resource lifetime parameters. The invariant parameter can e.g. be hidde= n existentially in the file-private data (or an abstraction for a collection = of data associated with handles created by ioctls), as it is in Firmware.