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 19B50CE8D4F for ; Fri, 14 Nov 2025 16:04:15 +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:Subject:References:In-Reply-To:Message-Id:Cc:To:From:Date: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=M9f+1V/Gs5C5ClKhbfgT9um9exOzG9W9HnZ9J5MzYFY=; b=S18+XBxJDz0njnx4nXJhcM97my gqGyy3o6aJEs6kn25lxc6vHtd5U744ctLSCwod5/fesiD28RTyGuPJA7dFPCUsXZ9hZLBJD/HC8hX SHzZ70/f+0Q05phGnZOnwbZgBiX70y6outUO7ow4tTRko6MREKmdZZGWzqccToqW362/LXCShCpvo Wbo8NFvOUSwahyghxh+8tb2nzZQboDyDLQyNhFuo2VtmQk1CiMjUwNg6N1OQ6eXIfxmRORxeIsDHR N82Cu05FQINNCFdmuXTgf2jrFNK/MJlg+sZ/2rm2lF3bEUGRNgJ7EPTyOe84dk9U4tCObeSWO8V34 tAqo7alA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vJwHQ-0000000CeVb-28aW; Fri, 14 Nov 2025 16:04:08 +0000 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vJwHN-0000000CeV1-1jFx for linux-arm-kernel@lists.infradead.org; Fri, 14 Nov 2025 16:04:07 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 8E2337A01AE; Fri, 14 Nov 2025 11:04:02 -0500 (EST) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Fri, 14 Nov 2025 11:04:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1763136242; x=1763222642; bh=M9f+1V/Gs5C5ClKhbfgT9um9exOzG9W9HnZ9J5MzYFY=; b= iUuUK+IqWqJXW16WpkpxRxPRAtrf6jqtV7WJneZ3XbpcXufA5YS7BhLcfFN3iKGY wVjrBvMkUBSaeOk9SVPhEh1CmfMmrDpdE2ogQ3sHiuidBHmYT82ymxj8Pm/g/Pea gJeWNvSxej3ucg9i89MEvdGDo5tFuWpSKmkzX5kBAKAalJPch9aE780StTAW5NFx Cmlbpi50BB2XPnhFURxMaI1Hg2WDObVPkE0uxWY/hKvxsjiJgtzpzTzyhgMibwPi JOP5y0ENCFAaaMokteMOyLWKENySsm/55Y1q8nVGAJkalDFY1CiipLPwPWHNRXzz Pf7LCQRkIHYGJB9bmpGdYA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1763136242; x= 1763222642; bh=M9f+1V/Gs5C5ClKhbfgT9um9exOzG9W9HnZ9J5MzYFY=; b=E PmgzzJcrt+h0JC8NtWhi4UJRX9JSEuwVpcW9P6a4pCvY0SdhcCGIMF6xyQFbrC0G BOtT89f8YPJKbFNjWyvAXNY+1I/nW62tdg3sfFoEUhthpdYnbptmds2a0TaCpQFp 96IC/ikXcG4TaiQ9TitSuG0vIJmE3/sD82Beh1LV023voCOJPXGvFUIlw0fEV5n/ 9sX7vQuB8+9cFSdG91otRe3+89cpyfjFrlWd+3azBdxXeGXipIhkFf5y623elKZL hWa3BFMOxipEnFpGZOXyFgIdtR1niCl/7Mi+dLC7+VqVKhoMN8Kov+EHxRGA2qDW BSNisJaMiHTUZPS/8y9GQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvuddtvdehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedftehrnhgu uceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrthhtvg hrnhephfdthfdvtdefhedukeetgefggffhjeeggeetfefggfevudegudevledvkefhvdei necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghrnh gusegrrhhnuggsrdguvgdpnhgspghrtghpthhtohepvdelpdhmohguvgepshhmthhpohhu thdprhgtphhtthhopegsphesrghlihgvnhekrdguvgdprhgtphhtthhopegtrghtrghlih hnrdhmrghrihhnrghssegrrhhmrdgtohhmpdhrtghpthhtohepjhgrmhgvshdrmhhorhhs vgesrghrmhdrtghomhdprhgtphhtthhopehmrghrkhdrrhhuthhlrghnugesrghrmhdrtg homhdprhgtphhtthhopegrlhgvgigrnhgurhgvrdgsvghllhhonhhisegsohhothhlihhn rdgtohhmpdhrtghpthhtohepjhhonhgrthhhrghnrdgtrghmvghrohhnsehhuhgrfigvih drtghomhdprhgtphhtthhopehlihhnuhigrghrmheshhhurgifvghirdgtohhmpdhrtghp thhtohepfigrnhhghihushhhrghnuddvsehhuhgrfigvihdrtghomhdprhgtphhtthhope hpvghtvghriiesihhnfhhrrgguvggrugdrohhrgh X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 41EC1700065; Fri, 14 Nov 2025 11:04:01 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: AWJreI-smgpg Date: Fri, 14 Nov 2025 17:03:40 +0100 From: "Arnd Bergmann" To: "Jonathan Cameron" Cc: "Conor Dooley" , "Catalin Marinas" , linux-cxl@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linux-Arch , linux-mm@kvack.org, "Dan Williams" , "H. Peter Anvin" , "Peter Zijlstra" , "Andrew Morton" , "Drew Fustini" , "Linus Walleij" , "Alexandre Belloni" , "Krzysztof Kozlowski" , "James Morse" , "Will Deacon" , "Davidlohr Bueso" , linuxarm@huawei.com, "Yushan Wang" , "Lorenzo Pieralisi" , "Mark Rutland" , "Dave Hansen" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , x86@kernel.org, "Andy Lutomirski" , "Dave Jiang" Message-Id: <93c1c6be-dae5-477e-8924-1b77f8567732@app.fastmail.com> In-Reply-To: <20251114155746.00003719@huawei.com> References: <20251031111709.1783347-1-Jonathan.Cameron@huawei.com> <20251108-spearmint-contend-aa3dd8a0220e@spud> <20251114124958.00006a85@huawei.com> <20251114-juror-stiffness-046b47b8d9f7@spud> <02244119-d6b8-4ef4-833f-b8fba7a73f43@app.fastmail.com> <20251114155746.00003719@huawei.com> Subject: Re: [PATCH v5 0/6] Cache coherency management subsystem Content-Type: text/plain Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251114_080405_931684_50B64696 X-CRM114-Status: GOOD ( 20.29 ) 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, Nov 14, 2025, at 16:57, Jonathan Cameron wrote: > On Fri, 14 Nov 2025 15:07:33 +0100 "Arnd Bergmann" wrote: > Hi Arnd, > > Thanks for taking another look. > > Agreed splitting the menus reduces chance of confusion, so makes > sense to me as well. > > Implementation wise I think we have to use menuconfig + bool if we want > to have help and dependencies and then an if block under that. > The syntax for Kconfig always leaves me finding an example to copy > rather than finding it intuitive > > menuconfig CACHEMAINT_FOR_DMA > bool "Cache management for noncoherent DMA" > depends on RISCV > help > These drivers implement support for noncoherent DMA master devices > on platforms that lack the standard CPU interfaces for this. > > if CACHEMAINT_FOR_DMA > ... drivers here... > > endif #CACHEMAINT_FOR_DMA > > menuconfig CACHEMAINT_FOR_HOTPLUG > bool "Cache management for hotplug like operations" > depends on GENERIC_CPU_CACHE_MAINTENANCE > help > These drivers implement support for cache management flows > as required for action such as memory hotplug on platforms > where this is done by platform specific interfaces. > > if CACHEMAINT_FOR_HOTPLUG > ... drivers here > > endif #CACHEMAINT_FOR_HOTPLUG Works for me. > I'm not sure if the 'hotplug like' is close enough to all the cases > for device drivers that provide the services needed to implement > ARCH_HAS_CPU_CACHE_INVALIDATE_MEMEGION The _FOR_HOTPLUG does feel a little more specific than it should be, but I haven't come up with a better name for it yet. We'll probably figure that out if we ever get a second driver here. > Alternative might be to phrase around pushing beyond the point of > coherence, but that seems to be an ARM specific term and would > seem to incorporate fine grained sharing where this interface might > work but isn't a good solution. Agreed. Arnd