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 7C2F7C48BC4 for ; Thu, 15 Feb 2024 02:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pQKIiFHL7JeEtJMGNET23BoZNnWiQX2uyvebrL8iRE0=; b=k+ELVO6nI2XhRe 6Blp1VpxlGOGhXXPDDWrpo0fmJJm9DhrkK5nMTC1DKaXkduxLd4COxaPeIL6lqLSDfFPa9+iQNubX /eNbxPRLDrOfxFdLq9bBZlK/ti2uk/wz9jQdapJZ1YsoS8P4C4yoNn9aYf2m9At2eipLpI6j5IHFv rEsRYey4jf8aGMtZuPgCGQ3KHqInbVeHab7AOTl3xe2o7vaK5rVy1ZgOW34mhLCl7PM91WxsDxuCN tHkce2YHrD/Ylh3fI8z0wrNODzt+td+Yyhh6i9RGcxn78C/98pDglQ6Yw3/5xizr2urH1W6B9iBMV 9zC/3xY4TW073oaMcn1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1raR5K-0000000En37-4C7c; Thu, 15 Feb 2024 02:02:47 +0000 Received: from out-173.mta0.migadu.com ([91.218.175.173]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1raR5I-0000000En1u-0tZ7 for linux-arm-kernel@lists.infradead.org; Thu, 15 Feb 2024 02:02:46 +0000 Date: Thu, 15 Feb 2024 02:02:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707962554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZyA1x6QYO+Yd5FJT4KgOcirJWdJt5WNEKspufx5cLOA=; b=R6u4cJLYKnpGCE7Amq675xgd+YuPTAo7bfuzlns3sKnDrNyTyaO/pIApeKk/obajMJ2oEb 6KIEWQUXFcWagmZdks4Ez9XwW0xOz536VUEvOA9zXRYRNLNZDWVIRz/p7TUu5OkJCqm21q /dfgReA4KWaAp4ZKMUsv+fHeSBZ/dZQ= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Marc Zyngier Cc: Marek Szyprowski , kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon Subject: Re: [PATCH 2/2] arm64: cpufeatures: Only check for NV1 if NV is present Message-ID: References: <20240212144736.1933112-1-maz@kernel.org> <20240212144736.1933112-3-maz@kernel.org> <5b2d8fee-9d0f-48f7-b9ec-b86e95387a61@samsung.com> <86bk8k5ts3.wl-maz@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <86bk8k5ts3.wl-maz@kernel.org> X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240214_180244_687426_DF029B37 X-CRM114-Status: GOOD ( 11.33 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Feb 13, 2024 at 02:21:48PM +0000, Marc Zyngier wrote: > From cd75279d3b6c387c13972b61c486a203d9652e97 Mon Sep 17 00:00:00 2001 > From: Marc Zyngier > Date: Tue, 13 Feb 2024 13:37:57 +0000 > Subject: [PATCH] arm64: cpufeatures: Fix FEAT_NV check when checking for > FEAT_NV1 > > Using this_cpu_has_cap() has the potential to go wrong when > used system-wide on a preemptible kernel. Instead, use the > __system_matches_cap() helper when checking for FEAT_NV in the > FEAT_NV1 probing helper. > > Fixes: 3673d01a2f55 ("arm64: cpufeatures: Only check for NV1 if NV is present") > Reported-by: Marek Szyprowski > Signed-off-by: Marc Zyngier b4 wasn't very happy with grabbing this patch in reply to a series (probably user error), but I've picked this up for kvmarm/next. https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git/commit/?id=9aa030cee1c45d6e962f6bf22ba63d4aff2b1644 -- Thanks, Oliver _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel