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 971E73F823D for ; Mon, 12 Oct 2026 10:48:55 +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=1791802138; cv=none; b=uOAmnXsb3oRYc4e9oAMW5e9l9qrPSWNDjA44vF3Qgn10Xa/t14dpkRC08JtRI4PNHLTyw/rxQQYg/MNhRwWWuUGfzypx5Dgn6S8ZJc/98+v+ro6p5LzxgNXwHWDXpYJV6MOdjVFVoit2J/p0x7w4GG7DAi5jQAtfih+EMbt+MSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791802138; c=relaxed/simple; bh=ldnSnmgfiqhHLrw1xe3SYZXvRk5SS5NPzsBkf4l8bD8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Hn42FbmxQNLVNJHPkgUAeAIaetCEdMnNsFBdaNAoeFSRjVsPOHnkjaAeiqFi6JErR1Zgc4nCW/grwtnDqIqC8uiTkYdvZb0AOzBy89HIvM4XkQyf4+u3oOaZbMip8KOF7lUIrmYQvNR3zf/PdB+3+/aMSc62D5Tnmn4O7KwVLDM= 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=cTX0xXz9; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Ym2c3xOV; 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="cTX0xXz9"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Ym2c3xOV" 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 69C8KnbV2181526 for ; Mon, 12 Oct 2026 10:48:54 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= XJZUJeAzE2f1+m1hJgSo77BjslhwXf356FmXzxgV+bw=; b=cTX0xXz9dWXoCcHn iZn99pEOQSClfOF4quaaGMtnmsy9WW5NST9IAh7fYTknQv8MF6DJKD3t+fvvo305 dhEIyUjdYYD9KP3izOABe8kO/8zwc6AdhaEWwAWzs2X0/+YJtmEl/XJQIaa4o+5G 9z8qQh+XJz5Cx7EOZKPZNTqJQC3KQV/cRFQu+sKsRlhioN/FpRiAOHUJHlvY0g1/ p5mU0YLfXBrZ53hLEk2BOCTYr5llbPdYWjhhSFMH2QrdCE6/pfEEUDahA8QSy1G0 Ofrousf2LGehWFlAY74nufPF/RULQv9Z8KiIyluK8axnacheEhVxzxJIYfN1eP/b auftYA== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h8sd1sefa-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 12 Oct 2026 10:48:54 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-cbb20f82a0eso1279693a12.0 for ; Mon, 12 Oct 2026 03:48:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1791802133; x=1792406933; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=XJZUJeAzE2f1+m1hJgSo77BjslhwXf356FmXzxgV+bw=; b=Ym2c3xOV5P5je5ELqQm12S4SP8NiNmFFkZjvwfNpzB6nZC220DhTQsdaRVXrx0E5wU KtnzYSxTjARPo79MbjYKHqJH58mmPAUwvgZD7ngZ9ORK4+PCR2bkryB6WAL5h5ScTFYU R9WLKVZvrIOHyL+LHN6Mnx+2HoH7NFYTxcg+UQ7aoBokbqRo8iw/VykkI4kC7s2aT/r7 EYMokBXmHBJctaK4AIG9moh5ZgNaCg0GTAhoRGQXbthY/yQ0g8gD0TAqouftkpQ1lpx2 ql8pTG0C8pC/fbIf0Gnbvq33/6p1pd4r965jAFhDSTr/o7xf0dvhRDcyP3Yg2W7bYoio 6tSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791802133; x=1792406933; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=XJZUJeAzE2f1+m1hJgSo77BjslhwXf356FmXzxgV+bw=; b=Rh/1M+09sd32ai0jHIgFXBR7sQpawYvW9OIeA4lVkZ5zEPtUXtySPCfnB2uI1fhMCu MGYjYEqk85dMicvZDAwP3bA1Tf166lOcJGFyk0lLp52IlJCYHPh50ApQFMgQhgbiZhPd MppHGmwpBQCsBWp3BDHzWK9EdHevgJSamwi4okqMKPfHdyibTDIQ7h274m83999DvY4G //qWvIHkoAV93etm7FgsgxsVq2nZSyJ+ak+YYSZ45oug/DoSmXLQ/xURUuFI3T80C+GC vwqqeQREWiWXRlUxrLyow5Xe20zyhi32S7KPFbcSk/SV5PqGzCW90IzCjNKUd0V90/Da hQSw== X-Forwarded-Encrypted: i=1; AKwUvBzX/pDzet7a2x5b4790ie4zmw6HAtYi49voV1xlrcJl4v7oZyGlEvssEHbxTj2gE1cDPs3JjvSGB37hcIU=@vger.kernel.org X-Gm-Message-State: AFq9FYIPRxqE5m4EpWXQG0vfTLjpuT4HXV58cYsTJyIHfEyUIrJHDUyg 5HZhaP13Jz3OY11xjBAkNWxpsbaX2M3ZzFcSRgZwiCc1gglQfu8uOA9OdwHfrigzv8lm9P6kADQ NCcYDZ5bxpT+7IWBBtGVFQ+pPLuH1+lZLo1v1fvP0YG8URIZE6Mv7bpALmEYwLD1u+ts= X-Gm-Gg: AYBFou0drrQmIilK2uLQjZBQrPNRF+AzWKjwd/UvI7ZjRZDME4gFVl3tYsaKO/ZipyK INlKV2hQdjeFYpnjvoVodd2dlN5oDIedutOAesmRHodY/q/CYs3iYsfkzAvm65PbJkPXg1bVKuX mGm2LP8IwCfKYQAaPVQuIPXO/ByBMLMkyx6Ij6fS0RWhJmYJL/nX1dhOKoY9lXIByz6IQaZEsLN aBhaYDio8U8qPrbCjl6R8XZT1gpT+VCr6A+dGHUR7FVcOB7nBeidUJLWY5FszRot0b2N9dmOJ4g riGsucNg0SfMcJWNT668rMabGQL8bhPe3y3MQFHmAncpCJh2PN0nTKn0wth3TyzzGJEpydin5DC mjUWbxKvbDLD2bJQE3g== X-Received: by 2002:a05:6a00:1f06:b0:87a:23b3:1064 with SMTP id d2e1a72fcca58-897c634e069mr7068355b3a.11.1791802133415; Mon, 12 Oct 2026 03:48:53 -0700 (PDT) X-Received: by 2002:a05:6a00:1f06:b0:87a:23b3:1064 with SMTP id d2e1a72fcca58-897c634e069mr7068328b3a.11.1791802132846; Mon, 12 Oct 2026 03:48:52 -0700 (PDT) Received: from [10.64.69.36] ([114.94.8.21]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-89a0724a045sm1581695b3a.45.2026.10.12.03.48.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Oct 2026 03:48:52 -0700 (PDT) Message-ID: <1d764a3d-7935-4e26-b1c2-92537e1d3811@oss.qualcomm.com> Date: Mon, 12 Oct 2026 18:48:42 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH DNM v3 8/8] arm64: dts: qcom: kaanapali: Add MPAM MSC nodes for the L2 caches To: Rob Herring Cc: James Morse , Shanker Donthineni , Ben Horgan , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Reinette Chatre , Fenghua Yu , Jonathan Cameron , Bjorn Andersson , Konrad Dybcio , Gavin Shan , Andre Przywara , Drew Fustini , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Shaopeng Tan , trilok.soni@oss.qualcomm.com, aiqun.yu@oss.qualcomm.com, ganapatrao.kulkarni@oss.qualcomm.com, Srivathsa L Rao , Huang Yiwei , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, driver-core@lists.linux.dev, devicetree@vger.kernel.org References: <20261008-mpam-resctrl-dt-knp-support-v3-0-35196c2b43bf@oss.qualcomm.com> <20261008-mpam-resctrl-dt-knp-support-v3-8-35196c2b43bf@oss.qualcomm.com> <20261008210004.GA1318789-robh@kernel.org> Content-Language: en-US From: Yin Li In-Reply-To: <20261008210004.GA1318789-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: 2smiDfZBKTeJSfYSxGjZuiySZHf6KUmq X-Proofpoint-Spam-Info: AW1haW4tMjYxMDEyMDA0MiBTYWx0ZWRfXzFa6NI9bX0wD wXXeTfXf87TfoIHsoBwAtzT7u+OFDWd4DRdGjAUZUFRWoVKa8TACdtM9tefsMw7noZKlicCANm9 3Xn6sSNytm8Y+QEhh+Ih7XREJ6jMGQY= X-Authority-Analysis: v=2.4 cv=QtHLTlyd c=1 sm=1 tr=0 ts=6accbb16 cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=Uz3yg00KUFJ2y2WijEJ4bw==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=8_2XKLfCnFwK6P8hJhkA:9 a=QEXdDO2ut3YA:10 a=3WC7DwWrALyhR5TkjVHa:22 X-Proofpoint-GUID: 2smiDfZBKTeJSfYSxGjZuiySZHf6KUmq X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDEyMDA0MiBTYWx0ZWRfXyNqG1JBpSF0S BqcJ1IJ8syhmD3g9NP6lb9M6BhHeUWEFb0k9xzKnCHx/7UocW8P/ocPAtnuUG2WVF0XEhK6pVsR Q+ZkXim8WqTodTXL2FwW+yoRPbIamIa1Ofdjnk7ho/WpTcjuIw7eN6tg5fLoGX5WNjGQPI6FA5n 5l+EdY/QKyySmE+sHY/7xbe6qGYTqqFJ6ykmghrMfEcI1ADzbTSe0va/+y3epm3opmu6snY0BpL KhEQOHoJriOx5OHADEYSrd30wgHu4cetPnM30ONQvdgAl7CfkTv420qeKsKwR+/oaIUsU7d/jEM gXlUiIsQ6jdCvxjBfjP9YL3C/sVc0yJ1hiodkeQm13I6hAn6cwhH89FEt5qjiy5/uUYqh36MOXf YTqWHxiA7Wt/Wj4u4IsFpOeu15hhr3xMjUKuG+G82glgZ4+3TPz2WQWFTYNfOXUcF2luAeAVbBY s12ONgIahGbO0XgLwfg== 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-10-12_03,2026-10-09_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 impostorscore=0 phishscore=0 adultscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610120042 On 10/9/2026 5:00 AM, Rob Herring wrote: > On Thu, Oct 08, 2026 at 02:41:17PM +0800, Yin Li wrote: >> Add an MPAM MSC device node for each L2 cache. Each MSC is nested >> directly under its L2 cache node so that the cache node is the MSC's >> parent device and its CPU affinity is derived from that cache. >> >> The L2 cache nodes are placed directly under the root node. The root is >> the root of the physical address space, so each cache node only needs an >> identity 'ranges' property for its nested MSC's 'reg' to be resolved to >> a physical address. The two caches use distinct node names (l2-cache-0 >> and l2-cache-1) since a cache node has no MMIO unit-address of its own. >> >> The nodes are disabled by default. Production firmware does not expose >> MSC register access to the OS, so these nodes can only be enabled on a >> local test setup where firmware permits direct MMIO access to the MSCs. >> This DTS is therefore only an example for other platform DT authors and >> is not intended to be merged. >> >> Co-developed-by: Huang Yiwei >> Signed-off-by: Huang Yiwei >> Signed-off-by: Yin Li >> --- >> arch/arm64/boot/dts/qcom/kaanapali.dtsi | 50 +++++++++++++++++++++++++-------- >> 1 file changed, 38 insertions(+), 12 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/qcom/kaanapali.dtsi b/arch/arm64/boot/dts/qcom/kaanapali.dtsi >> index 131fd2a16c54..b1dcb1e9c570 100644 >> --- a/arch/arm64/boot/dts/qcom/kaanapali.dtsi >> +++ b/arch/arm64/boot/dts/qcom/kaanapali.dtsi >> @@ -48,12 +48,6 @@ cpu0: cpu@0 { >> power-domains = <&cpu_pd0>, <&scmi_perf 0>; >> power-domain-names = "psci", "perf"; >> #cooling-cells = <2>; >> - >> - l2_0: l2-cache { >> - compatible = "cache"; >> - cache-level = <2>; >> - cache-unified; >> - }; >> }; >> >> cpu1: cpu@100 { >> @@ -120,12 +114,6 @@ cpu6: cpu@10000 { >> power-domains = <&cpu_pd6>, <&scmi_perf 1>; >> power-domain-names = "psci", "perf"; >> #cooling-cells = <2>; >> - >> - l2_1: l2-cache { >> - compatible = "cache"; >> - cache-level = <2>; >> - cache-unified; >> - }; >> }; >> >> cpu7: cpu@10100 { >> @@ -531,6 +519,44 @@ soccp_smp2p_in: slave-kernel { >> }; >> }; >> >> + l2_0: l2-cache-0 { > > cache@19870000 > Hi Rob, Thanks for review. Good point, Will update on next version. >> + compatible = "cache"; > > You need a specific compatible here for your implementation. > Will add a vendor-specific compatible:"qcom,kaanapali-l2-cache", "cache". >> + cache-level = <2>; >> + cache-unified; >> + cache-size = <0xc00000>; >> + ranges; > > Are there any other registers for the cache other than the MSC? If not, > then: > > ranges = <0x0 0x19870000 0x10000>; > > If there are, you need 'reg' here. > There are no other registers under the cache node besides the MSC. Will update ranges and the MSC reg accordingly. >> + >> + #address-cells = <2>; >> + #size-cells = <2>; > > You don't need 64 bits of address and size here. > Agreed, will drop to #address-cells = <1> and #size-cells = <1>. >> + >> + msc@19870000 { >> + compatible = "arm,mpam-msc"; >> + reg = <0x0 0x19870000 0x0 0x10000>; > > The MPAM register length is 0x321C. > You are right, the MPAM register space is 0x321c per the specification. Will update accordingly. Thanks, Yin > Rob -- Thx and BRs, Yin