Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1905985rdd; Thu, 11 Jan 2024 12:56:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFaPs6gSGSVRV8ktyM2zWPZhSSCJGgyBZqqPfbWOwQr+/Gw7eRFobUpy9s7V7P8JEr2cvRo X-Received: by 2002:a17:90a:c917:b0:28d:bb85:23d7 with SMTP id v23-20020a17090ac91700b0028dbb8523d7mr442813pjt.49.1705006615153; Thu, 11 Jan 2024 12:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705006615; cv=none; d=google.com; s=arc-20160816; b=oVS0W8VYjg4V1ayOvyXJZZgyJy3y5RktXo93+D9y/MZDjG47kcdu1+s6gJ3k14AjH7 JkDhODtQkJio6va03Ego6rcqNrwRdM86A0s0Yk9a7r1i0wVn6ugFlH3b9t2wXxVfwduY LkWr1CaeAvxwo8EuU8hExMx9ax5PMLDkztXSdlKhcySYyOr+etMf+54AeGcSCVvo8shA yJakO/ZOFUkZyyq6AodzcLRviswIU8CZLsh8vGEizDxHywQuEk5wvREwPeQQyCMLlDIh X9PODa6HYIDrjqpB07Ql+HaeRGH/VFbCQEndRgpr2LjlrF3kueqBNrCyW4BoDeyTdCNk 94wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=zSeHssvYv9blP8TVGxyPovH+u6pLNEPHwtrNmzKb4J8=; fh=z9CJfg2oieU2sivKNL0QZuaAC44eO/PBoSTPuHTrStI=; b=PI3/hsogYd9vcF83+kySLbbgiCOt5oJEs9JPHDwFUIqhJvhzehSLywW4r7EZMyj3Ut zBc1GqE6NUvDUCR9IIqdCnQqpFlT5ax0kBX2I4jRUE90igHEUiqnX858XPCbkssbHg4G c4b9vyEsOherUeG8bXo4Jsa3vvlOuHWcB3jZ4qB5NdgRp4UHu3MJfDN7/7R4tzlrPDWQ BX4N1nl5EBRrHo0D8sWfovaRz2qLFe2Vt/Jp+PD2SyLASKKW60yop9fSJD1ipmXPvFfs trztQ+XqyIppCnrDC/2A5jEYDZVXVSV3DmBYtMX7zYQa82kMxfFRN5lGfH+pSK57PFds Yiig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="QDyobU/z"; spf=pass (google.com: domain of linux-kernel+bounces-24064-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24064-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s18-20020a17090aad9200b0028baf7ef679si4436667pjq.60.2024.01.11.12.56.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 12:56:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24064-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="QDyobU/z"; spf=pass (google.com: domain of linux-kernel+bounces-24064-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24064-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C243F286F41 for ; Thu, 11 Jan 2024 20:56:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A959E5811C; Thu, 11 Jan 2024 20:56:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="QDyobU/z" Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A49DA58110 for ; Thu, 11 Jan 2024 20:56:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1d3ea8d0f9dso2465ad.1 for ; Thu, 11 Jan 2024 12:56:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1705006606; x=1705611406; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zSeHssvYv9blP8TVGxyPovH+u6pLNEPHwtrNmzKb4J8=; b=QDyobU/z28h9ThH92Pp8o6xlnxDOqmCIg2/KTav4RItBTLmGgATaJ/dcYxQZJla/Ns 81WC5YBWyCNAZylZXb5EGXQuOXUsdekBYv8ezXgYfv4+dkEWY/I6c+MtQ/OD4MK2H6TI 720YKexvbjB4/QcI8cVYzpayutlXgs1j64oFpFv3CkT18ZYp2uVY12mIb0UNRFd933Eq pNzeYKRcPXdMepAHzL47i8BHCJzG2Zh0cxFNgTs/T3dEuKCz9GGJ2bqxYjKwTgGWgtZf 9d6oRVFZ94w4nrH/aQ+kMk8b6ZPQc5JjxiM1wkxOvvctHBiMHXBSQ11rheJCMWMDvq0S JhOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705006606; x=1705611406; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zSeHssvYv9blP8TVGxyPovH+u6pLNEPHwtrNmzKb4J8=; b=hMay6Zb8EUpHzmV0gXvXtnjFuy1EJ+X+uLe29I4tWS9Wh+MuH+xrRp1kqCCfNaT5Y1 yFT60LhHSLkdM8eG3/ryeg4qHX1Y/zip9xZ1h043zA8cI/khfSTiha11dzIubMZmdm3X 20HGjsL6USFQjLwfSEiT1FqmQx++LCYwpx57Gse4dgyiSrElpRQBnWEMY5P1vDbwQ3Nx 1qpFTOC55V0t3YNfz24oY6TYrY2+HH0tKcleqEUNN9vdB0LUv6d8qC0+boV0kVM5zAkr 0ZP8fV6t9lWDTXw1a5zN2+wG0xT1cLnrrV+OdIqLTp9dBziia42NmlEsG3kf+RF3YLES 26zQ== X-Gm-Message-State: AOJu0YxmReBUHOR7hPm2XX4NVM2e6b1/VbJglN1WhDoj5daqmd5XnasF VTRnV2qowjsZ7Kup+/in1V2rc3kSejmpvvPAR/86qcLGXt7I X-Received: by 2002:a17:903:22ce:b0:1d5:4b66:81e8 with SMTP id y14-20020a17090322ce00b001d54b6681e8mr227140plg.4.1705006605713; Thu, 11 Jan 2024 12:56:45 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20230815152712.1760046-1-amitsinght@marvell.com> <6114c8d0-97a1-be54-3e43-30348be38683@intel.com> In-Reply-To: From: Peter Newman Date: Thu, 11 Jan 2024 12:56:34 -0800 Message-ID: Subject: Re: [EXT] Re: [RFC 00/12] ARM: MPAM: add support for priority partitioning control To: Amit Singh Tomar Cc: Reinette Chatre , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "fenghua.yu@intel.com" , "james.morse@arm.com" , George Cherian , "robh@kernel.org" , "Luck, Tony" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Amit, On Thu, Aug 24, 2023 at 1:52=E2=80=AFAM Amit Singh Tomar wrote: > 2) Second approach that we discussed internally is to have schemata for C= POR, and PPART separated by new line as mentioned/suggested by Peter, But i= t may require to tweak > the ARM MPAM device driver a bit. It was kind of toss-up between 2nd a= nd 3nd approach :), and we went with the 3rd one. > > L3:0=3DXXXX > L3:0=3DPPART=3DX > > Will look into it again. I've been looking into the structure of the MPAM driver to understand the difficulties here. It seems the challenge with DSPRI is trying to stuff two different control schema (partitioning, prioritization) into the L3 rdt_resource. The rdt_resource is still a mix of a hardware component and user interface (schema line), which leads to the __resource_props_mismatch() function[1], which makes an arbitrary choice (driven by resource index order) of which feature should be the single control presented for each of the rdt_resources, the properties of which the fields of its rdt_resource entry should describe. It only seemed to work out for CDP emulation because the properties of the two schema (L3CODE, L3DATA) for the L3 resource have the same CBM properties. My opinion is that the rdt_resource needs to be removed from fs/resctrl and replaced with a structure to represent a control schema and another to represent a monitor so that we don't find ourselves unable to enumerate controls or monitors because a control or monitor from the same hardware component has already been enumerated. [1] https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/tree/dr= ivers/platform/mpam/mpam_devices.c?h=3Dmpam/snapshot/v6.7-rc2#n1810 -Peter