From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABC433A383A for ; Thu, 14 May 2026 14:22:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778768532; cv=none; b=qEUcqWrbIWL1ybITB2FaLCsQbRx4siojBSZ90peWPnLN/vHw8pf1jx7UGXCRbHs8y4fHVpKn3645IqpbNZvImPIOP9y7ar9eb+QImSKrAhIi4PQa9cVxArw0CW+xhYu7s4DbIzlECf1pZJE1msHKzNyZJdPfYUppmzRA74yOrLY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778768532; c=relaxed/simple; bh=jn0zV61/doOPQNK4OQIglceav/z+X7+0bmexe6PpHME=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eFcYkKDq7/q0ES1ewC2dmy6RbrNpfUwc8t4fpN15+GlWCzfuOYzLCZckifRYSdmMh7wFjzRe8ZNdv0LHgb/KnYNzQslQqitFduU7G+5b2PecbM6mxUMa/Vsjg3GQJP20vQAlo5CaMQB6DRWjYVM2dkLT47/cTJ3slGwVGQ4XY9Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=l+2R1CoU; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="l+2R1CoU" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B5E541596; Thu, 14 May 2026 07:22:04 -0700 (PDT) Received: from arm.com (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E5C2F3F7B4; Thu, 14 May 2026 07:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1778768530; bh=jn0zV61/doOPQNK4OQIglceav/z+X7+0bmexe6PpHME=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=l+2R1CoUx58cpy4/3QYINPN6/LC9yL+32Zxj1VL4lz2WFweVo0ndf5/20AmjCWw6k TNq1D46yx7i6KtZsZu97GRt3OaCqhnupEQCg4q4KOBWYJkkBofmk5wumMe9WyV00YG 4zkiYyhwRuSMZHNvHrzHd1SyEZR1jMUlgAUE2pQ8= Date: Thu, 14 May 2026 15:22:04 +0100 From: Catalin Marinas To: James Morse Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, zengheng4@huawei.com, wangkefeng.wang@huawei.com, xry111@xry111.site, yang@os.amperecomputing.com, reinette.chatre@intel.com, will@kernel.org, thuth@redhat.com, ben.horgan@arm.com, mrigendra.chaubey@gmail.com, fenghuay@nvidia.com, ahmed.genidi@arm.com Subject: Re: [PATCH v3 3/4] arm64: cpufeature: Add support for the MPAM v0.1 architecture version Message-ID: References: <20260508162341.3762549-1-james.morse@arm.com> <20260508162341.3762549-4-james.morse@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20260508162341.3762549-4-james.morse@arm.com> On Fri, May 08, 2026 at 05:23:40PM +0100, James Morse wrote: > From: Zeng Heng > > According to the MPAM spec [1], the supported architecture versions are > v1.0, v1.1 and v0.1. MPAM versions v0.1 and v1.1 are functionally > identical, but v0.1 additionally supports the FORCE_NS feature. > > ID_AA64PR | ID_AA64PR | MPAM Extension | Notes > F0_EL1. | F1_EL1. | Architecture | > MPAM | MPAM_frac | version | > --------------------------------------------------------------------------- > 0b0000 | 0b0001 | v0.1 | MPAM v0.1 is implemented. > | | | MPAM v0.1 is the same as MPAM v1.1 > | | | with FORCE_NS which is > | | | incompatible with MPAM v1.0. > --------------------------------------------------------------------------- > 0b0001 | 0b0000 | v1.0 | MPAM v1.0 is implemented. > --------------------------------------------------------------------------- > 0b0001 | 0b0001 | v1.1 | MPAM v1.1 is implemented. > | | | MPAM v1.1 includes all features of > | | | MPAM v1.0. > | | | It must not include FORCE_NS. > > FORCE_NS is a feature that operates in EL3 mode. Consequently, the current > Linux MPAM driver is also compatible with MPAM v0.1. To support v0.1, the > existing driver which only checks ID_AA64PFR0_EL1.MPAM for the major > version needs to examine ID_AA64PFR1_EL1.MPAM_frac for the minor version > as well. > > [1] https://developer.arm.com/documentation/ddi0598/db/?lang=en > > Signed-off-by: Zeng Heng > Reviewed-by: James Morse > Signed-off-by: James Morse Not sure how this will go in for 7.2, so: Acked-by: Catalin Marinas