From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D12D7CA0FF6 for ; Thu, 28 Aug 2025 21:27:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3300610EAE1; Thu, 28 Aug 2025 21:27:57 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="C1cmWuxP"; dkim-atps=neutral Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 91F4610EAE3; Thu, 28 Aug 2025 21:27:56 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 6F70860139; Thu, 28 Aug 2025 21:27:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3ED67C4CEEB; Thu, 28 Aug 2025 21:27:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756416475; bh=qA1BcQ3hWIOqTfWw0aAFTPIJL30bc08GdeoDPGTnu4U=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=C1cmWuxPqxaSGqPC5BDtl+YVTDKgdfUwazddCx+jtuYDM0FAEFDgrW081DIHEtoU2 XK6G6aZK4ZTXOQC5+10V8VGaI7TD/m9PtC5KK2lmWfyi21oWFrT52HPMNjdwBhd563 GGrirRrmzTbLAYOu0RMAqzolC0Wxp76GwGr0i3U8piMzc5SEfih9130z2BNRa0uFuB H+blxdTf8LCswMiRfsDuUYncxqOQJjbOwheAa4m/6TwKPwJ6XIBcO0fkfmLclWc4oa 3goXTB3MHAFxTomVp958Z/K01KUOoOUsizlYZmx15hdGW3If0QpjcSWjH68puD09rc X8wIEFav6LnqA== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 28 Aug 2025 23:27:51 +0200 Message-Id: Subject: Re: gpu: nova-core: arm32 build errors Cc: "Miguel Ojeda" , "Alexandre Courbot" , "David Airlie" , "Simona Vetter" , , , , To: "Miguel Ojeda" From: "Danilo Krummrich" References: <20250828160247.37492-1-ojeda@kernel.org> 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-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu Aug 28, 2025 at 9:58 PM CEST, Danilo Krummrich wrote: > On Thu Aug 28, 2025 at 9:36 PM CEST, Miguel Ojeda wrote: >> On Thu, Aug 28, 2025 at 9:31=E2=80=AFPM Miguel Ojeda >> wrote: >>> >>> and a `DmaAddress` >>> newtype, not just a typedef, could perhaps be nice anyway? >> >> The one from your linked patch is not a newtype though, so I guess >> there is a reason for that. > > No specific reason, I didn't see a lot of value in a newtype in the first > place, depending on you answer in the other thread, may we just found som= e > value. :) To expand a bit, the typdef is also for simplicity. Eventually, drivers wil= l do some arithmetic on the DMA address, etc. So, if we have a new type, we'd probably want to provide methods for doing = the most common arithmetic operations, because we don't want to convert to/from= the corresponding primitive type all the time. At the same time we could take this further and also provide a DmaRange typ= e, which also considers the size for those operations. DmaRange is actually something that I had in mind to implement subsequently= , because I'm not too happy with CoherentAllocation::dma_handle_with_offset()= , it's just too specific and insufficient. Given that, I thought there's not that much value in making DmaAddress a ne= w type. (Mybe saying "no specific reason" was a slight understatement. :) So, if the idea was to have from/to helpers, we can also do them on DmaRang= e. However, given that also the above only helps in a limited way for the case= s discussed in the other thread, I feel like the best option might still be t= o depend on 64-bit for Nova.