From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-16.mta1.migadu.com (out-16.mta1.migadu.com [95.215.58.16]) (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 D6EA0194 for ; Sat, 25 Feb 2023 17:08:01 +0000 (UTC) Precedence: bulk X-Mailing-List: asahi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rosenzweig.io; s=key1; t=1677344879; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y7PlEP+T3ywtdXp5JitW0ulIPd3g9+rROb4eABEC9Xg=; b=FDU2+uKCtdcByFBbeUvmHSI/1MzMFsVdvofgWZzHN6BxQhtr/IhHnha09zIiRD2tfiLxg6 +A5tqyviacVbPMpKJC8Pny2nVYHtCnoRSZtLI/v9YXKG4o5C9Bjow/RPvYOSCVNdK/l5oH w4f3ewR2iTLgcI9MU2a+1HgHnEjzPuKBg5oV1/8X10CyXaXWXdUta4M7ND5R8c1DR+ffTB N5MCeWpBklPBHXQ92awTucDOPwdDCgPB7XChP+/ufXiysR1TpD1uDFsKQXMyoI9gSbdRy6 dFulp8MXDt3WJ2/77Tz6DfJ8kvkAdgqAh8U0Exm4H8DSutposKawa6A36J0cwA== Date: Sat, 25 Feb 2023 17:07:58 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: alyssa@rosenzweig.io Message-ID: <96e9949bf7210225515ed48911627743@rosenzweig.io> Subject: Re: [PATCH 2/5] rust: device: Add a minimal RawDevice trait To: "Greg Kroah-Hartman" , "Asahi Lina" Cc: "Miguel Ojeda" , "Alex Gaynor" , "Wedson Almeida Filho" , "Boqun Feng" , "Gary Guo" , "=?utf-8?B?QmrDtnJuIFJveSBCYXJvbg==?=" , "Will Deacon" , "Robin Murphy" , "Joerg Roedel" , "Hector Martin" , "Sven Peter" , "Arnd Bergmann" , "Rafael J. Wysocki" , "Neal Gompa" , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, asahi@lists.linux.dev In-Reply-To: References: <20230224-rust-iopt-rtkit-v1-0-49ced3391295@asahilina.net> <20230224-rust-iopt-rtkit-v1-2-49ced3391295@asahilina.net> X-Migadu-Flow: FLOW_OUT February 24, 2023 10:25 AM, "Greg Kroah-Hartman" wrote:=0A=0A> On Fri, Feb 24, 2023 at 11:44:59PM +0900, Asahi Lina w= rote:=0A> =0A>> On 2023/02/24 23:19, Greg Kroah-Hartman wrote:>> Can we s= ee some users=0A>> of this code posted so I can see how struct device=0A>= > is going to work in a rust driver? That's the thing I worry most about= =0A>> the rust/C interaction here as we have two different ways of thinki= ng=0A>> about reference counts from the two worlds and putting them toget= her is=0A>> going to be "interesting", as can be seen here already.=0A>> = =0A>> Also, where are you getting your 'struct device' from in the first= =0A>> place? What bus is createing it and giving it to your rust driver?= =0A>> =0A>> That would be platform for my GPU driver, matched via OF comp= atible.=0A> =0A> Ick, a platform device? The GPU isn't on the PCI bus? Wo= w, that's=0A> horrid...=0A=0AThis is bog standard for Arm SoCs... As far = as I know, it's all platform devices in the Arm GPU world: Mali, Adreno, = Tegra, VideoCore, and yes, Imaginapple. not really sure what good PCI wou= ld do for integrated GPUs.