From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B5BCC34DB7B; Mon, 5 Oct 2026 06:33:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791181984; cv=none; b=QAMDNUSULvvBtTUOdwhSQSBHG2PgjFFm32YjA1zcUZZwmnLpRe3jobuEnWlEZJ5YUuydwZPycBl8XLKaYCKb3DDRsjqvPygAucjOgR3rC3Tmwex9dbqKEdRBzO2DKVV+3PGyBqxmjZf7npNz0/C/0a6zzsf3RwpK59/AMSudq4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791181984; c=relaxed/simple; bh=0r5uPfRzyAuhIbs2rra9rI8p9k1nqL3cEcAmMNICGlc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uO2UeIexyQdj8yLqjQUpB/OhjtDPL08CSMiuoVZUq6Z1m3HDdR90NMbqU94Nw2z8l60IaHsbjcztt6TwLUeGwZhXfchwqSnKu9yZK8NVqwGsgI3pNukdbAvzjD53lpIvrM5QK4lS84Bt1JCcneaycPgU3+hCBW1GubRhEMHz1To= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h+6yWGp2; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h+6yWGp2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38AC41F00893; Mon, 5 Oct 2026 06:33:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791181983; bh=UVGMJw8PqY8Oci1Q157ZAhH5TwSNkhX3KpJyPGxALTk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=h+6yWGp2Jdf8rMNyCknP0aNz/beGedLstv378nrhHzbwaL6Ym2DUnQfJpwJ4HgpGh mk9SBQORedClfQznX1LlnjjlZVcKmRZb4qhHeombzNasV+C+2f/PrJEMKg4GTg93rA JJ6/Lb5lZyUeYqDvREHLz8pMqngEMurofaIXyQqOMUGRLQtso2jOd4X1p9X4VTGtfS 9Pwo3olMQ02/6hyXlLBdTNUmywots57v5xlWZQrApw1F9nf6Yc48FIpnUlcxlGLdl7 bL33ZQz0DIQVd19cZVkRo2ZcGBhaWGAsqCc6s0Stw5g3A7F1GDgaE4on3eSyUqn2ve WcMyOXR6CEK2w== Date: Mon, 5 Oct 2026 07:32:58 +0100 From: Will Deacon To: Nicolin Chen Cc: robin.murphy@arm.com, jgg@nvidia.com, joro@8bytes.org, praan@google.com, kevin.tian@intel.com, smostafa@google.com, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, jamien@nvidia.com, kas@kernel.org Subject: Re: [PATCH v10 06/13] iommu/arm-smmu-v3: Add ARM_SMMU_OPT_KDUMP_ADOPT for kdump kernel Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sun, Oct 04, 2026 at 01:47:16PM -0700, Nicolin Chen wrote: > On Sun, Oct 04, 2026 at 02:25:07PM +0100, Will Deacon wrote: > > On Sun, Aug 30, 2026 at 04:18:07PM -0700, Nicolin Chen wrote: > > > drivers/iommu/arm/arm-smmu-v3/Makefile | 1 + > > > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 21 ++ > > > .../iommu/arm/arm-smmu-v3/arm-smmu-v3-kdump.c | 229 ++++++++++++++++++ > > > > Please don't put this here. The live update / handover stuff is going to > > need very similar logic (see the RFC from Pranjal) and I don't fancy > > having to rename or resplit this file when that comes along. > > > > Maybe just stick all of arm-smmu-v3-kexec.c and arm-smmu-v3-kdump.c into > > arm-smmu-v3-handover.c or something? > > Hmm, Pranjal and I already aligned that cleanly. And there is no > further rename/resplit in his series. > > arm-smmu-v3-kexec: common helpers for both > arm-smmu-v3-kdump: kdump specific (my series) > arm-smmu-v3-liveupdate: liveupdate specific (Pranj's) > > Each of them is built on a separate config: > arm_smmu_v3-$(CONFIG_ARM_SMMU_V3_KEXEC) += arm-smmu-v3-kexec.o > arm_smmu_v3-$(CONFIG_IOMMU_LIVEUPDATE) += arm-smmu-v3-liveupdate.o > arm_smmu_v3-$(CONFIG_CRASH_DUMP) += arm-smmu-v3-kdump.o > > If we put everything into one big file, we'd add the two individual > config guards internally, which isn't as clean as currently IMHO. > > Note that the kdump file has a very long notes (kdump specific). I dunno, three files seems way over the top for this imo. I'd rather have one (even if it uses preprocessor guards internally) otherwise it just seems inevitable that we'll have random internals exposed from one file to the other, or duplication of logic or both. Even if we end up splitting it eventually, I'd much rather start from a position where everything is in one place. Will