From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 51719406834 for ; Tue, 30 Jun 2026 11:48:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782820102; cv=none; b=SlKzyEh64UwpbLsRZ57MFLBTMaNGYU0dipHgnFojHPn/gxFIwcsAT2YAG0T2ewnTKlGNQqZ6diMiWLX+LVE5INGIulhDfpFBmQ+5YCwAaDl/Wb0VKadO1JnWhzZeMwbTmPaWOsgWwRmD2pMQCfhfB3lXcNDJSMKd4aXl7AKw0Wo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782820102; c=relaxed/simple; bh=ztbZCiS3nz/YY8OxOiWDvzimhsyBOgn1yY15PJpXBI8=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:Content-Type; b=Tkkm/PFM51wfRhe5AUWmS7uP4FWxzHZv9hs9w4j+uD4SOGOyOUdNvMzImlYWNiCDIpq/Y3PRf9jW8xT3oiMkzijA3verHhoDyG5XyH3wMpSFPwXx9e6fP52EVd4jQiYRw3ysmayRqMqa1ShuzxgLvxCA6bOvJmOgF+GTfWlA8IU= 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=hSTMhspF; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=YBynnk/f; arc=none smtp.client-ip=205.220.168.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="hSTMhspF"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="YBynnk/f" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65U9mr261611705 for ; Tue, 30 Jun 2026 11:48:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=VlBmu/KSBsJIKatslG+dv3 ksRWvWFOFRtgAErgivHfo=; b=hSTMhspFkKNslHNgvm/8l5/WLohEuyssE73tLc cGqjEiaW6RICKjpFqdTwITWPsCRjpimy1AYiX1pWlvkyIVI/QsXp6Dkb9fbXUZXI S1OAa3qfySA0iFP3JBINnGt7O4TJYx+IW4Agx11uCHuHgJYR0lAAaJxofVUtEwcp pTIPjEY424z2hEdG5rhq6KoS8I9+xZ4ALz2vSpMOjsm9OFdWitdY0GQUuc5bZ/QM +eaAG6tONfhZyDXVqhy66K6BZCDLHERHpV2Me3zujVQQMmEdG0un1DQd+Ih9zEPn 0+UV81bvNTBYLuxPf+wnp1I96HYJeO5SR9SS98wkmTGZSw1w== Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f441gtdya-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 30 Jun 2026 11:48:20 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-c9b93990992so89714a12.2 for ; Tue, 30 Jun 2026 04:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1782820100; x=1783424900; darn=vger.kernel.org; h=content-transfer-encoding:content-type:cc:to:subject:from :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to:content-type; bh=VlBmu/KSBsJIKatslG+dv3ksRWvWFOFRtgAErgivHfo=; b=YBynnk/fMTL67IvOn3ZKvrO260ZmM+kr1RDy+vjJ6kYjEwmAnLmLrTShBBTU3OETap IwxQW1ZVo34fStLPbiMflpJJX/gfXrPufU19v8NMLjCo10/smEGZ5x9RqpkwY24uxCfw jentkas+1oRkIgzGa3L6CshOWrt4wDLypDwM7Zjhe0+PkYFLjNwKuU4GxaChLgV7vFFn Q6ChWydsfQmG8Xu/cbQXVBvnxSA13ve8x2Z5e5Ybw1U00ywxlBbRQTROFVevskUpGV2v AxheJKpNrQw0EZidayb8sU3ygiwYOCH2yp18dEclGUU+C5Uw0iK4GvBqEBLK6rgT3G79 h5Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782820100; x=1783424900; h=content-transfer-encoding:content-type:cc:to:subject:from :content-language: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=VlBmu/KSBsJIKatslG+dv3ksRWvWFOFRtgAErgivHfo=; b=AeYjAuZusDXrHkn/+vJxl1YY4avHJkxPDxW2/3KtI+F/r7jQC8TvF7aU5KHCMOZ+Xx Q/05gA8R5kPbtt7oa9suOA30S2TRSUrAhZydqu9Y9PWqQO95NkfxL5J2vkIZArp9dDWw JY9YCNsvl3M81OT5DYemYfxqDpV/EdcF+mmPTGQzIpqiEGeFeHcRL3Nd8jkeId7VSYfF f9yOvolL2ffANB6dy/EDg3xJ5k5NUs08xK4GMVCpdAjBTFG95fa0OM/ZSy4wqDh5l2xt b5F9o5UFVD1PhUnT3kXF8RxYgbUnt8DSBlPXiFPhYR/2UtNDh0KOiAEeI+RLsr0m8pc8 Lzyg== X-Forwarded-Encrypted: i=1; AHgh+Rq2keDhQVEpJsm+d1oLrYeGrUGoiGCpXBmvxPzRO8yNkOA4pBb4Pe3qaNtMaZT3ecyZ9IMI4n1Mtiw34pI=@vger.kernel.org X-Gm-Message-State: AOJu0YzOLvTNi8KlZLnuIrfOaTYVgudZ7BUVflcWUJk4RRoMiqfQ0M12 +A7P01O0s0ehudrfZwwvz3b6WWTmE6yAJoyGgySJgMwN5lIvkHT3+lrHQOQpZcPb4pJmiq/VE1I xlO9zO6B9g6/5oL519/XCFfxUIzS/LDMc02yeq1qJ9OMMFko0NQFJkFMdMzyh9rCNuXc= X-Gm-Gg: AfdE7clkW+D/8yhzvXa3rrNKmgV7olBs5z1nQeSKKKwQIUX+IaQjrdB/vENAS8JS/rG 5ZTErZ8LrgQZVJS1a9Iw24ZhsLiHPGWtmuucLLLVB2/HRxOyItlH7H+5PopptGbE5Wc+eNrrG43 OKv5kL7KtV5hIW24eGZzPC8qqAsfy4HW37NmzLqlBglH2gsHZEl8+0OMnlWpEDfZfQRSCdVC8jT Ly7FGAhWzmxg5+ixI3mT4aa7jRxi8DXiM1MBPCrxZhB3AidYEYiSiYMyKvmprMeG0JpAAYps4I8 l1wZQERHdEwM2HGxMLKMVCnwTvuybaAmmZZrJMwRf8enXv67YI7AZe5CzvuVwVm0OWEx/TgPyVl NyogZVhCyG3/1VAdDquIBdjzuTzIn4pTqFIPB6E4ZuO85LBNDdII8heA8amTDO2Aza2p3aKOoZY G1 X-Received: by 2002:a05:6a00:2e11:b0:847:88aa:4f4f with SMTP id d2e1a72fcca58-8479f2e20d5mr1520841b3a.7.1782820099645; Tue, 30 Jun 2026 04:48:19 -0700 (PDT) X-Received: by 2002:a05:6a00:2e11:b0:847:88aa:4f4f with SMTP id d2e1a72fcca58-8479f2e20d5mr1520821b3a.7.1782820099019; Tue, 30 Jun 2026 04:48:19 -0700 (PDT) Received: from [10.133.33.21] (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-847a02d41c0sm1755124b3a.33.2026.06.30.04.48.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jun 2026 04:48:18 -0700 (PDT) Message-ID: <26b8a5b2-666a-473c-aa78-c70fe0649474@oss.qualcomm.com> Date: Tue, 30 Jun 2026 19:48:15 +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 Content-Language: en-US From: "Aiqun(Maria) Yu" Subject: [BOF]arm: resctrl: L3 cache partitioning via CLUSTERPARTCR To: Tony Luck , Reinette Chatre , Dave Martin , James Morse , Ben Horgan Cc: x86@kernel.org, Babu Moger , linux-kernel@vger.kernel.org, Reinette Chatre , Fenghua Yu , Trilok Soni , yiwei.huang@oss.qualcomm.com, yin.li@oss.qualcomm.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Info: AW1haW4tMjYwNjMwMDEwOSBTYWx0ZWRfX0cRpNjxz8Kaa WvfhaGonFAybI/cyjBPp8WrLCAnyJV2dHUNHBS/8sBWZU5nlTsN3rTwWCmsJfVqIJhzhP8do+NT BVGMJDj9yqmbyz0lvSS7a4pqB3m5Yew= X-Proofpoint-ORIG-GUID: mYvVEqeS9U1taw-5vNrmgZz63U_X4Pc_ X-Authority-Analysis: v=2.4 cv=F8dnsKhN c=1 sm=1 tr=0 ts=6a43ad04 cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=7CQSdrXTAAAA:8 a=Qs8Z_l0AfcFVtXuo6M8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bFCP_H2QrGi7Okbo017w:22 a=a-qgeE7W1pNrGK8U0ZQC:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjMwMDEwOSBTYWx0ZWRfXy8MrS+LcQ9dc 8VRCpY5190Rmu4CHdwy81tH6kvbH3Vma43uxkpOFf1uVY19oGoX94h556e5/UiGhQ4XNeTwteV3 A/bDjAqLKT0z37UlfDNxB6Flc5ozPi3Pw8x4lrEHZv8Svad4imsava7t6PRv8oTzqz64HIYSHR8 Z2xNQJP54YQhIpRTOESlsWs+t0H1iOps2hyXkIGVGWhBOexvS7s8uy0uKOc715ITAFGo/4cdLyG p4cqc36uQhfuD+Pi/N7MGkbA69Ws5reMixjNsuKBJj66d48MA3K4IiNLXqkUTRTlruQVyYxWDTI VcuXsR/j0Twyxhe2VCuetNlPXbYfJ97nzQADl1lUqqFtIGnWeFaK8bBL+dgD49UHn9jEOCEUIUl zdLOu8ujKxSTT0TLQhPahLC/MOOp6RliKM6NLucEznYA5PG4S7cwP7ytrsXpP8WlSLIY5q6wBKU 5gTWEsmtd+pLCxkvkMA== X-Proofpoint-GUID: mYvVEqeS9U1taw-5vNrmgZz63U_X4Pc_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-30_03,2026-06-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 suspectscore=0 clxscore=1015 impostorscore=0 phishscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606300109 Hi all, L3 cache partitioning is an important feature for improving performance isolation of latency-sensitive tasks. While ARM MPAM provides a comprehensive solution, there exists another ARM register, CLUSTERPARTCR, which offers L3 cache partitioning functionality similar to MPAM's CPBM (Cache Portion BitMask) but is not part of the MPAM architecture. CLUSTERPARTCR is a cluster-level register that allows software to partition L3 cache capacity among different workloads. Although its partitioning granularity and flexibility are more limited compared to full MPAM support, it remains a practically important interface for platforms that do not implement MPAM but still need L3 cache partitioning capability. This raises the following questions for the community: 1. Is there interest in accommodating CLUSTERPARTCR-based L3 partitioning within the existing resctrl framework, given that it provides similar semantics to Intel RDT's cache allocation technology (CAT)? 2. Alternatively, would it be more appropriate to integrate it under the MPAM resctrl framework as a non-MPAM backend, given the functional similarity to MPAM CPBM? 3. Are there any concerns or constraints in the current resctrl/MPAM framework that would prevent such an integration? Any comments, suggestions, or pointers to prior discussion on this topic are very much appreciated. More references: ========== Reference to [1], and more detailed information like below: the CLUSTERPARTCR_EL1 to 0x00008601 to configure these three L3 cache partitions: • Scheme ID 0 (1/4 of the cache). • Scheme ID 2 (1/2 of the cache). • Scheme ID 3 (1/4 of the cache). The OS, running at EL1, can set the CLUSTERTHREADSID_EL1 to 0x0 or 0x1 to select between the two L3 cache partitions allocated to it. These would be mapped to scheme IDs 2 and 3 by the CLUSTERTHREADSIDOVR_EL1 register. The OS can update this register on context switches to select which partition each process has access to. [1] https://developer.arm.com/documentation/100453/0401/L3-cache/L3-cache-partitioning?lang=en -- Thx and BRs, Aiqun(Maria) Yu