From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from canpmsgout11.his.huawei.com (canpmsgout11.his.huawei.com [113.46.200.226]) (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 733BE399003 for ; Tue, 3 Feb 2026 09:54:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.226 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770112467; cv=none; b=CqIPtJpmsY0VoWCaSAGdDY/nn/2F7eoDqLU6hIVo909yx42Xag+Zuw2ANHngiJHa9Ta1LpNsXaX7nyE/NJZxV+m/7rCCcJYNPvQhAPPqA3X4+kDAlE7Lq6wQtiDuFOTJCEsqtdb+0yPt+ZL+Y3d0NJR0HbZ71ahudRZ6UCFzWrc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770112467; c=relaxed/simple; bh=gPeH7QbrI+XEAYn54GR61K5dlmixKAM/CJUTTOpvPp8=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=eZp+tURTFSjmk6A1nakEu6TLnhTCju26Rr8KgI9zhWqGkGOGBGoQMIwHQhMGjBbQBIc1BPy9rNVwdrEqidWLEvP2txUN8h4uS+jMIJXBAdnBM5yWvBsSCtHt1o1Q0a9ZedrvnUS0vdXwhAkzIY02/ExyaTHN1sOUhuN8Rs/r9Cs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=h-partners.com; dkim=pass (1024-bit key) header.d=h-partners.com header.i=@h-partners.com header.b=pxQHVQ1A; arc=none smtp.client-ip=113.46.200.226 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=h-partners.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=h-partners.com header.i=@h-partners.com header.b="pxQHVQ1A" dkim-signature: v=1; a=rsa-sha256; d=h-partners.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=BDF2DW3c4vO9l9QFri8rWZh+AWRNDC7L4+8DdH24+1I=; b=pxQHVQ1ARrHDMN2p2DooiNN3v4BHCdIYcY7Eh/Xx/ne9zymI45MdXBd/Mmcb7pVHmkMcann9q bw72+dg5E6H5Lv6OCEz2073gwipGAQ9/TFYyJt8vFuF304mzDrdfCH+ttR34MjtxEe3sjSWRHCw nZ9rcLkMFAgrZx/3fcA3Vk0= Received: from mail.maildlp.com (unknown [172.19.163.200]) by canpmsgout11.his.huawei.com (SkyGuard) with ESMTPS id 4f4zGz3m1dzKm9P; Tue, 3 Feb 2026 17:49:47 +0800 (CST) Received: from kwepemf100008.china.huawei.com (unknown [7.202.181.222]) by mail.maildlp.com (Postfix) with ESMTPS id 9E3784055B; Tue, 3 Feb 2026 17:54:21 +0800 (CST) Received: from huawei.com (10.50.87.109) by kwepemf100008.china.huawei.com (7.202.181.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.36; Tue, 3 Feb 2026 17:54:20 +0800 From: Zeng Heng To: , , , , , , , , , , , , , , , , , , , , , , , , CC: , , Subject: [PATCH v2 0/2] arm_mpam: Add support for the MPAM v0.1 architecture version Date: Tue, 3 Feb 2026 17:54:04 +0800 Message-ID: <20260203095406.6437-1-zengheng4@huawei.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: kwepems200002.china.huawei.com (7.221.188.68) To kwepemf100008.china.huawei.com (7.202.181.222) 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. [1] https://developer.arm.com/documentation/ddi0598/db/?lang=en Changes in v2: - Add new patch 2 to check the MPAM MSC version. v1: https://lore.kernel.org/all/20260104133434.1887677-1-zengheng4@huawei.com/ Zeng Heng (2): arm64: cpufeature: Add support for the MPAM v0.1 architecture version arm_mpam: Update architecture version check for MPAM MSC arch/arm64/include/asm/cpufeature.h | 7 +++++++ arch/arm64/include/asm/el2_setup.h | 4 +++- arch/arm64/kernel/cpufeature.c | 15 +++++++++++---- drivers/resctrl/mpam_devices.c | 16 +++++++++++++--- drivers/resctrl/mpam_internal.h | 5 ++++- 5 files changed, 38 insertions(+), 9 deletions(-) -- 2.25.1