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 33285E6918F for ; Fri, 22 Nov 2024 19:09:39 +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=0m9gNBW8BErsOg1T/NXBS8tqRAKGWNwvW4TuCYJaojk=; b=G2eaFBhdgfDftNeYQGW4cx3FC9 I5M1aYhoAPR5dOs6qGxTKtBOM7nZEh9siwxtVqVlEX8sWAVeXG2/jU98a+fi2zUjIifIo+sPqYYmG Uxc5U1efNhH3Bo8G2rsXBF1wamwctOM9ytLB9HLIi/pK2O2+btykSTEPSgoaPro32js9bvKG6OOvT JnV8oeEoXr4o8eDaa4gU/IKaTNfq/6RhkSZxgzdocAwEHQddV5kRdzPT4VzMqpJCoDnvrtMhwkh76 nWPUuaKZ/IfZdRek1VksJts2jsk4j3//oHP2z9SWa/kFWXClD8jBE+elrZLXWmKJQn7sULbsdHhU2 qp2tT5IQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tEZ1x-00000003B0v-3z6M; Fri, 22 Nov 2024 19:09:25 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tEZ11-00000003Aj0-30lx for linux-arm-kernel@lists.infradead.org; Fri, 22 Nov 2024 19:08:28 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D6E805C5695; Fri, 22 Nov 2024 19:07:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4731DC4CECE; Fri, 22 Nov 2024 19:08:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1732302506; bh=O9mDDediH4K4E/cTbRFrAHnx1KNidjn+4JetK3PhtQY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bKsZps7SRth7q+3LtAkqruMDSvzvzJUb4Tnh52EWZieYmMSB8PikHHv41+wvwaXt1 cdYffmQMx0nLZqYSPLWmCJqUme3SnSpZirXtgY/2A+AUxfhBbcVIQbSqtIbpROXCaX kxdRMFiCUztajvOGdVinCVF6NLkNKPoRrwpIHWisNwt6ElS17MfklXMi6CwmxV/yy+ CGIH+KlnAcG9R4areBgr6hKDCa2W5hRMr9FoTtjd+zcnbmqnefVI8/x7cpz8EtS/at mKV7ATEXv8tIG8suawuDOBgLS/KQPILpDAwzyVN+mfxbravzLqQXRdvQvf9qDaG3L1 bFjy6KdoVnLXA== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.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 1tEZ0x-00F6Cs-TH; Fri, 22 Nov 2024 19:08:23 +0000 Date: Fri, 22 Nov 2024 19:08:23 +0000 Message-ID: <86mshrulw8.wl-maz@kernel.org> From: Marc Zyngier To: James Clark Cc: will@kernel.org, kvmarm@lists.linux.dev, oliver.upton@linux.dev, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Yicong Yang , Dave Martin , Fuad Tabba , James Morse , Mark Rutland , Anshuman Khandual , Vincent Donnefort , Quentin Perret , linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: Fix usage of new shifted MDCR_EL2 values In-Reply-To: <20241122164636.2944180-1-james.clark@linaro.org> References: <20241122164636.2944180-1-james.clark@linaro.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 (aarch64-unknown-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: james.clark@linaro.org, will@kernel.org, kvmarm@lists.linux.dev, oliver.upton@linux.dev, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, yangyicong@hisilicon.com, Dave.Martin@arm.com, tabba@google.com, james.morse@arm.com, mark.rutland@arm.com, anshuman.khandual@arm.com, vdonnefort@google.com, qperret@google.com, linux-kernel@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-20241122_110827_801284_E881F440 X-CRM114-Status: GOOD ( 13.42 ) 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, 22 Nov 2024 16:46:35 +0000, James Clark wrote: > > Since the linked fixes commit, these masks are already shifted so remove > the shifts. One issue that this fixes is SPE and TRBE not being > available anymore: > > arm_spe_pmu arm,spe-v1: profiling buffer owned by higher exception level > > Fixes: 641630313e9c ("arm64: sysreg: Migrate MDCR_EL2 definition to table") > Signed-off-by: James Clark Huh, well spotted. This is doubleplusungood. Thankfully, the KVM/arm64 tree hasn't reached Linus yet, but this needs quick fixing. Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.