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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 1D87AC43458 for ; Mon, 13 Jul 2026 15:19:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Subject:Cc:To:From: Message-ID:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ciq/I2+BL5j+uB+AABX0XLHmc/WSjoaA1RcZmJWFnaQ=; b=r5OowlsMEL5tsx+wuxvfZgjPw9 KGhU5MjoAbdDUn0FxKLKsHUKsCOvyS3jxsMrh4lYDgpgzAEm0DIzJS0Kn0lFW2vBh229ceJvptc+F xoDLavwlDHnMGEgQIA400DBtfPCWHdecXCRg2JmLuFLO4P9QHje91saWDGErXdPTVQlbwzJan0fXe fcCK3qHPI1bvXjeaJm2a7cytNe6v4l8oS/65BG1D2dRvV1sdmZQkbrn5UZD7+KU9y4bj9hWgWv8Zm ZXU9SFoNEL+Pqm7EUgm9bmOAxXTrPuRSkZJVGgHwGU81wJR9ziKFIKTjgZRPSYpxwcpPPtPAZiVrb ID1VdyGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wjIQu-00000009lq2-2hww; Mon, 13 Jul 2026 15:19:00 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wjIQt-00000009lpg-0Ik8 for linux-arm-kernel@lists.infradead.org; Mon, 13 Jul 2026 15:18:59 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 75A8541851; Mon, 13 Jul 2026 15:18:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52E321F000E9; Mon, 13 Jul 2026 15:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783955938; bh=ciq/I2+BL5j+uB+AABX0XLHmc/WSjoaA1RcZmJWFnaQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=DjkyuPnQfstUUzWkidFDDVxGMprS4Et5vhWSDhkPCeRuWSjmhG6Km5kARaCsw/Y+v EQqZ6DGLbRd3fKpYjPw1huYb83BENbYrx8bs2WT4QditMiCeAJo2ZKD8gwwtzEiO7l rw/TH4KEOVL10wu4/aeXCa3uRo4kqr0TKxyZb5wSjWCjv8yHaIhPTpEBN/fBC/dLO5 VtkmH49gPUkWjn/EiCa5HfU4GAPRwuJHtQ/ohoCLpDXqvquhmP0ipQHZFCeHXmiMuV O4F7670dgEeQMnimChpI4eux+NbII+5b7Fa+BK9vRxEnMg7ufPCknKLIsoiAoYSTlr vD8xxud9rr3Lg== Received: from sofa.misterjones.org ([185.219.108.64] helo=lobster-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wjIQq-00000004Xo1-1iIy; Mon, 13 Jul 2026 15:18:56 +0000 Date: Mon, 13 Jul 2026 16:20:45 +0100 Message-ID: <87fr1m6hma.wl-maz@kernel.org> From: Marc Zyngier To: Marek Vasut Cc: linux-pci@vger.kernel.org, kernel test robot , Krzysztof =?UTF-8?B?V2lsY3p5xYRza2k=?= , Bjorn Helgaas , Catalin Marinas , Conor Dooley , Geert Uytterhoeven , Krzysztof Kozlowski , Lorenzo Pieralisi , Manivannan Sadhasivam , Rob Herring , Yoshihiro Shimoda , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH] PCI: rcar-gen4: Inline GIC_TRANSLATER offset macro In-Reply-To: <2cb03029-0957-4ed8-98bd-9b3e0e0bce2d@mailbox.org> References: <20260709201103.90162-1-marek.vasut+renesas@mailbox.org> <87qzlb5jsl.wl-maz@kernel.org> <2cb03029-0957-4ed8-98bd-9b3e0e0bce2d@mailbox.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: marek.vasut@mailbox.org, linux-pci@vger.kernel.org, lkp@intel.com, kwilczynski@kernel.org, bhelgaas@google.com, catalin.marinas@arm.com, conor+dt@kernel.org, geert+renesas@glider.be, krzk+dt@kernel.org, lpieralisi@kernel.org, mani@kernel.org, robh@kernel.org, yoshihiro.shimoda.uh@renesas.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 10 Jul 2026 14:35:10 +0100, Marek Vasut wrote: >=20 > On 7/10/26 10:30 AM, Marc Zyngier wrote: > > On Thu, 09 Jul 2026 21:10:03 +0100, > > Marek Vasut wrote: > >>=20 > >> Instead of pulling in the whole linux/irqchip/arm-gic-v3.h , copy the > >> one GITS_TRANSLATER register offset macro directly into the driver. > >> This repairs the ability to build the driver on non-ARM non-GIC targets > >> the way it was possible until now, which retains good build test cover= age. > >>=20 > >> Reported-by: kernel test robot > >> Closes: https://lore.kernel.org/oe-kbuild-all/202607100310.iQw5m9Uo-lk= p@intel.com/ > >> Signed-off-by: Marek Vasut > >> --- > >> Cc: "Krzysztof Wilczy=C5=84ski" > >> Cc: Bjorn Helgaas > >> Cc: Catalin Marinas > >> Cc: Conor Dooley > >> Cc: Geert Uytterhoeven > >> Cc: Krzysztof Kozlowski > >> Cc: Lorenzo Pieralisi > >> Cc: Manivannan Sadhasivam > >> Cc: Marc Zyngier > >> Cc: Rob Herring > >> Cc: Yoshihiro Shimoda > >> Cc: devicetree@vger.kernel.org > >> Cc: linux-arm-kernel@lists.infradead.org > >> Cc: linux-doc@vger.kernel.org > >> Cc: linux-kernel@vger.kernel.org > >> Cc: linux-pci@vger.kernel.org > >> Cc: linux-renesas-soc@vger.kernel.org > >> --- > >> Note: The alternative I could think of would be ifdeffery which > >> is not nice and thwarts the build coverage, or limit the > >> driver to ARM/ARM64 in Kconfig which also thwarts the build > >> coverage. I could also split off the register macros in > >> linux/irqchip/arm-gic-v3.h into some separate header > >> linux/irqchip/arm-gic-v3-regs.h and include that which > >> might be OKish and avoids duplication. Thoughts ? > >=20 > > No, I'm not hacking something that is purely architecture specific for > > the purpose of a bizarre integration quirk that should be handled by > > the boot firmware, and not Linux. >=20 > The PCIe controller is fully controlled by Linux. And it shouldn't. Why can't your favourite boot-loader use it, like on any reasonable machine? M. --=20 Jazz isn't dead. It just smells funny.