From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 B6779456299 for ; Tue, 11 Aug 2026 13:37:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786455476; cv=none; b=LVCMDs/zrnIWAHNBR2BSi5foPlljIZzQBySuSHHm5sA420seKJFRxiLUKXcorttR6LHF1YS9lNFQ6dCawKd5LH0e6gpj4W6sN5pcdyfA2ZkdVWMyzuWXBYJinmHTQDE80kyMLdFMWHpA3GgHyr8/ad1DYbXBwc3lAyfk2TDXLBQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786455476; c=relaxed/simple; bh=/QMjM8kIgdElOSlo+HE58P/0O+m2y0r6yoGjhktem2E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EdJN4Pt2TQcLLw4L2Hgx2NrGMdOCwAIGCNVVMGoR0jjv7tFbJ6VaShFkE91eXWPmZVGhHbtWrtuzkPITvV7wDkat6s467Enr91j6TK/lE5rLJJV9SyjFR376HAqAwyE4k88nUqnwELHyWI49U3+Vt+wGnjSQg2WM+RE/tdN4RP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=bRuo4s64; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=YtakOkdR; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="bRuo4s64"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="YtakOkdR" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 67BDWj4t3718152 for ; Tue, 11 Aug 2026 13:37:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= xUOv7CaofSadg3VAAhDqr9l7s5Rpo1MskORMDmWB7lw=; b=bRuo4s64WeTRMdD9 7oT4flosl/yxL2Tb9565hragWw/8XNWYjl7b4a3X3oe42sAdQGO29cJJCpn1UTmd KAqys3CT8+/r9cXZThpeW07S4TP3xcG95ubNVZYJUYlenS9+MtVqH41BMxI2XIkz qdsRFy3ys/XMr0iZi6lCFJUF3DUGo/aSwt9VkJaPT2c7m1twQhluqHL39RdB0Inc 1MQr0cI2xuEhNNgV9j6vuM9T2mfETqWmDHXncBxsvqyWd9geCgq0cBwrwz6/ZC01 Trxhb1XxqE+Yw68vF1FLJ7gnz9wUukRYY3661WQdWUOt9kfHgbf/7iwyunrKmnjI qG/1ow== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fyxwesfum-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 11 Aug 2026 13:37:38 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-2cccfa32670so45207105ad.2 for ; Tue, 11 Aug 2026 06:37:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1786455457; x=1787060257; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=xUOv7CaofSadg3VAAhDqr9l7s5Rpo1MskORMDmWB7lw=; b=YtakOkdRTdfUMLgIjGoIZx/+gHCnR0kAAP9DJ0Enszb+j+PcMdla5MZSQAam3gO5bU efbT7lOQrbAsKv9xE+0bPKBT7zz6b/NyCggXQqKmMXMJRTEWMAgeGeDnuWoqNA8c2rad 6hhGgZUkkIOvgG8CJEAJsrHZD5Xp7DGwxKBtFK6YaJ7TSYfy+zjJ4A4k7kPikDZFG8ok DxCDJUVxRe59faf3D0xN+20DSk3KwxzLVTVh5uxg3cv0tRE8Cya4Bp2b2lBXo+9nIY+r qXtzscGzrZZ2sKOxS2RwAZQdSgqe1xk+WHzyKBe3By7UsO5RDvIQPU+lSoyKGrXH8p5N 5cZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786455457; x=1787060257; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=xUOv7CaofSadg3VAAhDqr9l7s5Rpo1MskORMDmWB7lw=; b=MWzcpoIQ3DgAOrfj5t8J957ORsZuZqufTT4l0K3fJzlc/cOG0A5Pp/TAViyaXiX/Cg E5kTCAbb2+u//+kK/vctKiSVYSqC/W47GFDucq4DNE33w3JvNh9LhgHwvoUe4FxQStgK UH4p/p5zHHLrFkQg4IC0JYde9ldTuBBd948yKM4pJucXDQjItgokK0VgK6oBW0xYDpB+ u+Hn6yhqWV4xr9w4dZ6Gg8PJpb+zdC3mHE/cYQZBEgms7/iQNQj40i5AfelUkOyPpqdz vIVMwU8zGiCDaa0V8bjnCkyxEWNQgQ2vIFwQ0ONFUkLB3GZqPW0uRPa/5ouAZLHcOzCj ZiPA== X-Forwarded-Encrypted: i=1; AHgh+Rq70nC5Ou00S36MtfVyK+pA4ZQfQ1q85+wPu/SAFpSb9xvvhuHZNz07m5uK2We6ILkbYyx9oDzru1rHX9U=@vger.kernel.org X-Gm-Message-State: AOJu0Yx2uLckE5TyyUOCS1KSfeuRAMG50wHA1fKZoiPD+/MoVG2bDLEF 5RoRh/ukMSoHGDYt8ZkAHLOAj6i5ADSgrqRphT1fktDXJ2+4G5ScwVU0GdJFUN/OZWWffJHzcO3 AQMiQrnf3SISuE0gwpnScBFBq4tGXZeStFemrHXpZSlzgcglG3rrU4OqGoDyoGeorferrgJRHgr E= X-Gm-Gg: AR+sD118nhhrtMqJ87EfqZc2CCIBMd4T8uiqLIoRbv+wYr34MWIqV0XCu+MTKqkFuRx pOq7qbTH0VtXEM6mfholTKEPX1DPUnwBQO9il3Jp6reuXiwd9/g9D1qWhZRYilGM9yjqn+W0mTW dBdCyXNDULht/wjkkMtYIa0IBtVXnUxsT7VhzBZ09szRqeUQga4xDfqULfYqQVXIc9XvvVfgM5g ZJ9ucTblTLkGYLhfpYLrLoBHzqgQxDRxU5MDugsMd8O9jQInSZBI+7e1s8OpEsIj3BupjkEH7ou alpnXZXtkiY+RiC+bCYR++NNzPyD2PGHXg1zjDkgdpin77OxOw56hP2nJv87xxYij5eFm8m+Q++ Jwnf6HJYcFkvanTeYocJs4oU+uGvABdmn7s5zjNRKncQOf5RIy0wD1oev X-Received: by 2002:a17:902:e948:b0:2c9:a5e9:c26e with SMTP id d9443c01a7336-2d3178d4294mr44249735ad.13.1786455456869; Tue, 11 Aug 2026 06:37:36 -0700 (PDT) X-Received: by 2002:a17:902:e948:b0:2c9:a5e9:c26e with SMTP id d9443c01a7336-2d3178d4294mr44248795ad.13.1786455456276; Tue, 11 Aug 2026 06:37:36 -0700 (PDT) Received: from yli42-gv.qualcomm.com (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2d315f4819dsm8360885ad.37.2026.08.11.06.37.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Aug 2026 06:37:35 -0700 (PDT) From: Yin Li Date: Tue, 11 Aug 2026 21:30:42 +0800 Subject: [PATCH RFC 13/15] dt-bindings: arm: Fix MPAM MSC binding schema and examples 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260811-mpam-resctrl-dt-knp-support-v1-13-ea6397bead59@oss.qualcomm.com> References: <20260811-mpam-resctrl-dt-knp-support-v1-0-ea6397bead59@oss.qualcomm.com> In-Reply-To: <20260811-mpam-resctrl-dt-knp-support-v1-0-ea6397bead59@oss.qualcomm.com> To: "Rafael J. Wysocki" , Shanker Donthineni , Conor Dooley , Fenghua Yu , Krzysztof Kozlowski , Rob Herring , Reinette Chatre , Konrad Dybcio , James Morse , Ben Horgan , Bjorn Andersson , Danilo Krummrich , Greg Kroah-Hartman Cc: linux-arm-msm@vger.kernel.org, ganapatrao.kulkarni@oss.qualcomm.com, trilok.soni@oss.qualcomm.com, devicetree@vger.kernel.org, driver-core@lists.linux.dev, Srivathsa L Rao , Huang Yiwei , aiqun.yu@oss.qualcomm.com, linux-kernel@vger.kernel.org X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786455329; l=5185; i=yin.li@oss.qualcomm.com; s=20260811; h=from:subject:message-id; bh=/QMjM8kIgdElOSlo+HE58P/0O+m2y0r6yoGjhktem2E=; b=zHAvC4moxJN8hRDa9ArcM/sZ8ssDY1BUQR/2sHtpgm1ryjno1fmUcd8GWouH89DHPDZIjtyi7 gzFWdhCQImsBCq7KbI1yxzYO2OQ4kXv8dCs3BD4up6aRqZhw0aaFIiw X-Developer-Key: i=yin.li@oss.qualcomm.com; a=ed25519; pk=e/2LM97aSWGBMrxY240URBi9Zi8/kL5hXgB+VHkYvW0= X-Proofpoint-GUID: jbKQLVxbnTGQHZa7d5WyMyTrHXJqQNWl X-Authority-Analysis: v=2.4 cv=K8QS2SWI c=1 sm=1 tr=0 ts=6a7b25a2 cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=gEfo2CItAAAA:8 a=7CQSdrXTAAAA:8 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=d9rEuZw9YcPYe4YaNdcA:9 a=QEXdDO2ut3YA:10 a=1OuFwYUASf3TG4hYMiVC:22 a=sptkURWiP4Gy88Gu7hUp:22 a=a-qgeE7W1pNrGK8U0ZQC:22 X-Proofpoint-ORIG-GUID: jbKQLVxbnTGQHZa7d5WyMyTrHXJqQNWl X-Proofpoint-Spam-Info: AW1haW4tMjYwODExMDExNCBTYWx0ZWRfX7spoOmgP58KS SQLJR6mSpgNv0Szhj7t+7FGsIRicunuyBFIip8YFTlNOtXiv80CG/hCN4JDwb6uogUFdSn9nnqd eFbGoZsh9HVjE4dVZCbXQpVQVElSAho= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODExMDExNCBTYWx0ZWRfX0gVXdFzrwyfe lJQbU07vQ2H6nlVdaRR8lOIL07IQ8ISnVweqF0UsC6Zo16kz02C1rXFUowXISYxSAVLBQDfQdug EDmjunrOciACGOWgMUtrIugpyhgzbSck5MjAU7of1g5pI4Ae3Xzf6YsDmm4euXrT+1bUn9mW0Zw Hb9tGMkl3R/PtoTocvpcFGKiKbJkD7EHlaefHZ0Z++K3mGPjbL4/jaAz+BiDA+0FDtI8dx7avfn mNuI/j0Squw9bJeRv+GjH81vYYFulPTIC0bcDTZcR+rmsblMJQQbtejtp7FqMb+/8nUFuOAGikV 3jGH26EEwcHZ6Wji2123fLfXCdaVBaVSQwsYFIKRDP+OrhVpip+fFhZHN29mFVPYaEtgaoI9U/5 Ham2HVUmjpGYFNpslCAHwQzwP+XndgfUw2Bm/zRXpFuxblT4yi9jl+lMx4N+HceTp80o8NLwPJ7 kULdLq+4by7Kjsi5fuw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-08-11_03,2026-08-10_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 clxscore=1011 phishscore=0 impostorscore=0 adultscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608110114 Fix multiple issues in the MPAM MSC device tree binding: Schema fixes: - Move maintainers field before description to follow standard field order - Change compatible from fixed items list to oneOf to allow both standalone arm,mpam-msc and the two-item arm,mpam-memory-controller-msc + arm,mpam-msc combination - Constrain numa-node-id as uint32 with description instead of unconstrained - Add phandle-array type constraint to cpus property - Fix bracket spacing to pass yamllint Example fixes: - Replace arm,dsu-l3-cache with foo,a-l3-cache (no upstream schema exists) - Fix msc@41000 reg address from 0x0 to 0x41000 to match unit-address - Fix ris@2 reg value from 0 to 2 to match unit-address - Add arm,mpam-device phandle reference and remove TODO comment - Remove unnecessary blank lines for consistency Co-developed-by: Huang Yiwei Signed-off-by: Huang Yiwei Signed-off-by: Yin Li --- .../devicetree/bindings/arm/arm,mpam-msc.yaml | 39 ++++++++++++---------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/arm,mpam-msc.yaml b/Documentation/devicetree/bindings/arm/arm,mpam-msc.yaml index 53a6fdbbf05f..3c7b13a23ff2 100644 --- a/Documentation/devicetree/bindings/arm/arm,mpam-msc.yaml +++ b/Documentation/devicetree/bindings/arm/arm,mpam-msc.yaml @@ -6,19 +6,21 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Arm Memory System Resource Partitioning and Monitoring (MPAM) +maintainers: + - Rob Herring + description: | The Arm MPAM specification can be found here: https://developer.arm.com/documentation/ddi0598/latest -maintainers: - - Rob Herring - properties: compatible: - items: + oneOf: - const: arm,mpam-msc # Further details are discoverable - - const: arm,mpam-memory-controller-msc + - items: + - const: arm,mpam-memory-controller-msc + - const: arm,mpam-msc reg: maxItems: 1 @@ -34,7 +36,7 @@ properties: interrupt-names: oneOf: - items: - - enum: [ error, overflow ] + - enum: [error, overflow] - items: - const: error - const: overflow @@ -44,7 +46,9 @@ properties: accurate after a settings change. For more information, see the Not-Ready (NRDY) bit description in the MPAM specification. - numa-node-id: true # see NUMA binding + numa-node-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: NUMA node identifier for the memory resource this MSC controls. '#address-cells': const: 1 @@ -72,16 +76,17 @@ patternProperties: maximum: 0xf cpus: + $ref: /schemas/types.yaml#/definitions/phandle-array description: - Phandle(s) to the CPU node(s) this RIS belongs to. By default, the parent - device's affinity is used. + Phandle(s) to the CPU node(s) this RIS belongs to. By default, the + parent device's affinity is used. arm,mpam-device: $ref: /schemas/types.yaml#/definitions/phandle description: By default, the MPAM enabled device associated with a RIS is the MSC's - parent node. It is possible for each RIS to be associated with different - devices in which case 'arm,mpam-device' should be used. + parent node. It is possible for each RIS to be associated with + different devices in which case 'arm,mpam-device' should be used. required: - compatible @@ -92,14 +97,14 @@ required: - reg dependencies: - interrupts: [ interrupt-names ] + interrupts: [interrupt-names] additionalProperties: false examples: - | L3: cache-controller@30000000 { - compatible = "arm,dsu-l3-cache", "cache"; + compatible = "foo,a-l3-cache", "cache"; cache-level = <3>; cache-unified; @@ -109,7 +114,6 @@ examples: msc@10000 { compatible = "arm,mpam-msc"; - reg = <0x10000 0x2000>; interrupts = <1>, <2>; interrupt-names = "error", "overflow"; @@ -145,7 +149,7 @@ examples: msc@41000 { compatible = "arm,mpam-msc"; - reg = <0 0x1000>; + reg = <0x41000 0x1000>; interrupts = <5>, <6>; interrupt-names = "error", "overflow"; arm,not-ready-us = <1>; @@ -155,8 +159,8 @@ examples: ris@2 { compatible = "arm,mpam-cache"; - reg = <0>; - // TODO: How to map to device(s)? + reg = <2>; + arm,mpam-device = <&L3>; }; }; }; @@ -173,7 +177,6 @@ examples: msc@10000 { compatible = "arm,mpam-msc"; - reg = <0x10000 0x2000>; interrupts = <7>; interrupt-names = "overflow"; -- 2.34.1