From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B8C252D2389; Wed, 3 Sep 2025 16:25:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756916709; cv=none; b=L37CoaAiYSIN2aNr4WUWKWWggyqORKytDQVFdBjPn9zxnjIS55Z0lYiB86apeaeQWzV2gqxHjFsvCW63A2dUW51qFLajBnUMbJ1IV2R9jbeGbYR1MC2I9+O9bDusVv2C11gVYYPvTef3R2s/MUpnauBus3Je9T0u9D4DsZGU3vM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756916709; c=relaxed/simple; bh=cgpUpMcs0TZ+BTiy4jhYZlsUuXa74ohmhvxC655ADM0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PBkQIbwf2rTaWL0bLNsn2+GFUvXKh/gZ3XjFKWS8/EK1Re3yRd+cIEaRADWPO7gZNJdMS+3lw4aCCaylFvN6AYlga3C4auB2s8ulTFb5LwhX3oMGzz2zSxFC56fCkpb9o9Q8vaa9QIf1bWtVmhT5gdA8+zANJPm/OTcAQnM9u90= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23600C4CEE7; Wed, 3 Sep 2025 16:25:04 +0000 (UTC) Date: Wed, 3 Sep 2025 17:25:02 +0100 From: Catalin Marinas To: Jonathan Cameron Cc: james.morse@arm.com, linux-cxl@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, Will Deacon , Dan Williams , Davidlohr Bueso , "H . Peter Anvin" , Peter Zijlstra , Yicong Yang , linuxarm@huawei.com, Yushan Wang , Lorenzo Pieralisi , Mark Rutland , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Andy Lutomirski Subject: Re: [PATCH v3 3/8] lib: Support ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION Message-ID: References: <20250820102950.175065-1-Jonathan.Cameron@huawei.com> <20250820102950.175065-4-Jonathan.Cameron@huawei.com> Precedence: bulk X-Mailing-List: linux-arch@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: <20250820102950.175065-4-Jonathan.Cameron@huawei.com> On Wed, Aug 20, 2025 at 11:29:45AM +0100, Jonathan Cameron wrote: > diff --git a/lib/Kconfig b/lib/Kconfig > index c483951b624f..cd8e5844f9bb 100644 > --- a/lib/Kconfig > +++ b/lib/Kconfig > @@ -543,6 +543,9 @@ config MEMREGION > config ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION > bool > > +config GENERIC_CPU_CACHE_MAINTENANCE > + bool Nit: you could select ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION here since the interface is now provided by the generic implementation. -- Catalin