From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (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 97DF827F003; Sun, 13 Jul 2025 15:53:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752422031; cv=pass; b=tjvWHFKLyBmcn1DAV62LyFnHmzOPWi975Zm61yOLy2BBHRfxxPESXolnwhXayN0mKdP8bz35wdipUc5CvQGAawkr3wRZWTl6hU8LEwUJhxaIyGHIodqxfuVilI49Au+Ugjl3beJldveOJnGl3gZAyYgS1gT1mAJR4aeuVUC7AtU= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752422031; c=relaxed/simple; bh=22FzkDc/5FFEKJ4hKxiC5HFlOTtiICJIaNtii37WxzQ=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=A7IL/qfdwNz+VV68Q1HZ6yKxbOuNc2+w+Xe/Q/nQGEAP7lF32M+0CmKViEiEuwVppD33w9AcJrH/41BArPDcUDYurfDV0fP4eZXirHnFz5SeUIcSGeMBguKrGgLe1m3iazhFK+ESEAqq6bR0JKmxrtsNngZ283bjVlVccB8UFmM= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=daniel.almeida@collabora.com header.b=Sa6U5ae7; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=daniel.almeida@collabora.com header.b="Sa6U5ae7" ARC-Seal: i=1; a=rsa-sha256; t=1752422005; cv=none; d=zohomail.com; s=zohoarc; b=T/LiBbeauDO1VQSA27N9NSBnoMAqhOUpZ+RlJ7zBT/3qaAGeeDsRll6r6P2TwNn7BCHDTFAeWoE7ucVGFmsbiy5RKJEKCP+Ng6A7yt37p2Q+ZgcEHzuyka9+7AIbSvxw8r8W9MgQpkFJqQnRXSN1RW1X16pHYuVw3s98xOJCm2U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1752422005; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=FVGOZz6+i8auJ8frrno2oObXTdz7633Bu+4dk1ToQYM=; b=gYToCsa62Dsw+JfBGbYg+D++QxFvrLUQciXo6qLKBq9aACvixR7ugGEpqNKzPM2RxsVubbPVrc6PYTCeA6EHGDFgGgq6Ei+t0LJJrb2k1cYkx0/Hfj33J5tw//bJCIZb6TnPcTp5STzX+s8S7GSbEZ9WZuG0Wu5EMuTTvSgTn7c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=daniel.almeida@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1752422005; s=zohomail; d=collabora.com; i=daniel.almeida@collabora.com; h=Content-Type:Mime-Version:Subject:Subject:From:From:In-Reply-To:Date:Date:Cc:Cc:Content-Transfer-Encoding:Message-Id:Message-Id:References:To:To:Reply-To; bh=FVGOZz6+i8auJ8frrno2oObXTdz7633Bu+4dk1ToQYM=; b=Sa6U5ae7+eAv/GxnEgox/d3jPMzKoqMDCZd8z7rqNvKaPYIRKxLTvYQr7NLp7mKr EMXSw+JVbfKXdeZDV7i438rZq0+DyE1lWH8vairk5+SYlsZ4JYcLhlXjY5b/1Q6PzKx vjYWLTzav3IMWF5B2Ld7fEbJP692YBOsryEWcqy0= Received: by mx.zohomail.com with SMTPS id 1752422002319162.3932624833626; Sun, 13 Jul 2025 08:53:22 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: [PATCH v6 3/6] rust: irq: add support for non-threaded IRQs and handlers From: Daniel Almeida In-Reply-To: <1F0227F0-8554-4DD2-BADE-0184D0824AF8@collabora.com> Date: Sun, 13 Jul 2025 12:32:27 -0300 Cc: Danilo Krummrich , Benno Lossin , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Andreas Hindborg , Alice Ryhl , Trevor Gross , Greg Kroah-Hartman , "Rafael J. Wysocki" , Thomas Gleixner , Bjorn Helgaas , =?utf-8?Q?Krzysztof_Wilczy=C5=84ski?= , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-pci@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20250703-topics-tyr-request_irq-v6-0-74103bdc7c52@collabora.com> <20250703-topics-tyr-request_irq-v6-3-74103bdc7c52@collabora.com> <18B23FD3-56E9-4531-A50C-F204616E7D17@collabora.com> <1F0227F0-8554-4DD2-BADE-0184D0824AF8@collabora.com> To: Daniel Almeida X-Mailer: Apple Mail (2.3826.600.51.1.1) X-ZohoMailClient: External > On 13 Jul 2025, at 12:28, Daniel Almeida = wrote: >=20 >=20 >=20 >>=20 >> (2) Owning a reference count of a device (i.e. ARef) does = *not* >> guarantee that the device is bound. You can own a reference count = to the >> device object way beyond it being bound. Instead, the guarantee = comes from >> the scope. >>=20 >> In this case, the scope is the IRQ callback, since the = irq::Registration >> guarantees to call and complete free_irq() before the underlying = bus >> device is unbound. >>=20 >=20 >=20 > Oh, I see. I guess this is where I started to get a bit confused = indeed. >=20 > =E2=80=94 Daniel Fine, I guess I can submit a newer version and test that on Tyr. Dirk, can you also test the next iteration on your driver? It will = possibly solve your use case as well. =E2=80=94 Daniel=