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 B97BEE77188 for ; Fri, 3 Jan 2025 18:02:10 +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-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5ulK28glkurFqJZ5HWPRS55ofZKa4oSrTSdqVpz+t8E=; b=BLEiK6NKc/reQMpTglrnhJHOjT 5UZhMuDqQiJSJKxRmm78g3ECMYam1jmxJ/Et5l+oSNnD9/r7ms/LzVjeFcIp1dr4Gk/adSs8pJx1Y fY1fJ5m3I5CiDREZQCUprq08TtnvF3Fx5A8kr5mwOK9/SfGYS0rz1b+puZhFq4bAccAxHoEpD1jo9 pHo96Jt/l6WITxBijIdpR6V3z8y/GRHsvG7j419tjqyXvxVr6Gb/LK7bMxE13+Y2UMjpnW1SZ73ls 0VOXVey/3fENVOt+GI3cNeqs/5pLwMs7LBGJmdmSSVXu78xZl20xgIbt1zFCKYvChWsE8oJy5aRTM ZccJHg2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tTlzl-0000000DeWy-1iQH; Fri, 03 Jan 2025 18:02:01 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tTlyW-0000000De3J-25kJ for linux-arm-kernel@lists.infradead.org; Fri, 03 Jan 2025 18:00:45 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id B21D65C6520; Fri, 3 Jan 2025 18:00:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9514C4CECE; Fri, 3 Jan 2025 18:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1735927243; bh=y8DtExH10YY8xlpl4eYpAw2CrqzlWu7uIt4ke9vXveA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WLeNCILjJEpj9L16rGoiK6Yo1I9pPS1WsZC57R8KrePpTPcinwBsogcvf+Jy+S3fr QTeZVfvllyVh2/cacJuDEnkBdYDWwF8j9Uv9UMk22LAZn2KDjx5Ge4zGCzSAuLSpqF p/Teb/xC4GMayN8IVH/ajNjhd6ZwY7dApKESzjsjArTheYNLkuBY/6bQxAgo5Lv1wX cPRYRDDYJ5jpDke7XG4yxFl/kehkiMWu7tfTCFrJkN+W9746YNxvLsW/1Hu4BOUK9g yEwoL4wzKvyKG56swEoYDIS3RsMJYVKtUGGoroXKB8XVbv+Dd2pCYGsc2eCrWAlHOB ZNu0KJIFSZesg== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tTlyT-008lTV-Lc; Fri, 03 Jan 2025 18:00:41 +0000 Date: Fri, 03 Jan 2025 18:00:43 +0000 Message-ID: <87ldvrrd4k.wl-maz@kernel.org> From: Marc Zyngier To: Catalin Marinas Cc: linux-arm-kernel@lists.infradead.org, Will Deacon , Mark Rutland , Mark Brown , stable@vger.kernel.org Subject: Re: [PATCH] arm64: Filter out SVE hwcaps when FEAT_SVE isn't implemented In-Reply-To: References: <20250103142635.1759674-1-maz@kernel.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/29.4 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, will@kernel.org, mark.rutland@arm.com, broonie@kernel.org, stable@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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250103_100044_581739_96335AF5 X-CRM114-Status: GOOD ( 16.93 ) 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, 03 Jan 2025 17:39:39 +0000, Catalin Marinas wrote: > > On Fri, Jan 03, 2025 at 05:20:05PM +0000, Catalin Marinas wrote: > > On Fri, Jan 03, 2025 at 02:26:35PM +0000, Marc Zyngier wrote: > > > @@ -3022,6 +3027,13 @@ static const struct arm64_cpu_capabilities arm64_features[] = { > > > .matches = match, \ > > > } > > > > > > +#define HWCAP_CAP_MATCH_ID(match, reg, field, min_value, cap_type, cap) \ > > > + { \ > > > + __HWCAP_CAP(#cap, cap_type, cap) \ > > > + HWCAP_CPUID_MATCH(reg, field, min_value) \ > > > + .matches = match, \ > > > + } > > > > Do we actually need this macro? > > Ignore me, we still need this macro as HWCAP_CAP_MATCH does not take all > the arguments. Maybe not the read_scoped_sysreg() change though. Ah, I just replied to your earlier email. Agreed on avoiding the read_scoped_sysreg() change, replacing it with system_supports_sve(). I'll respin the change now. M. -- Without deviation from the norm, progress is not possible.