From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EE263CAE6E; Mon, 13 Apr 2026 14:00:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776088843; cv=none; b=hKonSMWZBbtLpX4nuvFOUrQunCHMf5dWmbJOrbiFRFXznwmppwsvDvCd/iHuM+2ZGeCEDj0p2ULIp0eZtt+3X2Dly6tW0LxBDfITJ9s9aamwI+fWBHGY83WSZTk7zJVzNju3ylvb0cDkQ2fUJzfMF+QjqYJe2Rt6NBKJsdGDVRM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776088843; c=relaxed/simple; bh=4rCaIafwro2YsN6ASU9dy/vhqoGxHYk8QdM6FjlBmxw=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=H62rpKqzMJinUAYN6wLquiTv+DdxOyGLgt6x6IDTpB07iMhICKNRXzWwPQuX886iOjxuZ1ZVngKL5nlLw9cldwspb+jK+tzYNta0PVgR6+JYl0kNs30m0L14mTy83Rsh8+9P5L8xdGUGUPDEWuEI2Zy5liPjiG2lsGuaKrIoY6c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=S5laxPVh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="S5laxPVh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F596C2BCAF; Mon, 13 Apr 2026 14:00:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776088842; bh=4rCaIafwro2YsN6ASU9dy/vhqoGxHYk8QdM6FjlBmxw=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=S5laxPVhdN4l6MX8ot6jaZWg6k4wOjY/dLUKJ3WpW7J++kxOqpvbPk/+W24prV3by O97r+xPdP8hvteaPAOd0RQ7IegBQjUDDSgDj23K1PeG9JOHGDErwHZtwMxjWSeLrgA drnic58EhoRE4G5jhR6lazernthhJVOcGf9p4SoYUY+ygs37zMI2Hh3IMhlmQ0xQS5 DhfvcN21jbPNTJdP3irHNc5BU5dobaWeXY2j/yMtUnjYqLM9lDGOtBqMq7lFHfEGJt 30kOGE0cLgjljSXN6MD/wJ/OCUISOAeRe1KqwT3xQ2UafSnZjACr3l043q7CInim3e 82U+DD8Rv9Hrw== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 13 Apr 2026 16:00:38 +0200 Message-Id: Subject: Re: [PATCH] gpu: nova-core: fb: make sure to unregister SysmemFlush on boot failure Cc: "Gary Guo" , "Alexandre Courbot" , "Alice Ryhl" , "David Airlie" , "Simona Vetter" , "John Hubbard" , "Alistair Popple" , "Joel Fernandes" , "Timur Tabi" , , , To: "Eliot Courtney" From: "Danilo Krummrich" References: <20260409-fix-systemflush-v1-1-a1d6c968f17c@nvidia.com> In-Reply-To: On Mon Apr 13, 2026 at 3:33 PM CEST, Eliot Courtney wrote: > Yeah, I agree that this patch is the wrong long term solution. If we > don't have the infra for the proper way to do it soon, it might be worth > taking it anyway since it adds minimal complexity and fixes a real > issue. Yeah, let's see how it goes the next weeks. > I had a brief look into the Devres chain stuff that exists on the C side > and it looks like it doesn't provide any actual guarantees about the > lifetime (it seems possible to delete from the middle of the chain, so > descendants can't assume ancestors exist in general, AFAICT), so the > the translation of that into lifetimes in rust might get interesting There is no such API that does what we want here on the C side. In C it sim= ply is the responsibility of drivers to take care of this. So, I'm not sure wha= t you are referring to. In case you are talking about devres groups, they have a different purpose.= They are used in cases where you e.g. have some middle layer API between drivers= and a subsystem, so the middle layer can acquire resources on the driver's beha= lf and manage them. If the middle layer fails on optional features, it can sim= ply release the group of resources acquired for the purpose of the optional fea= ture. I.e. devres groups are simply markers for a certain range within the list o= f devres nodes of a specific device.