Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1925899rdd; Thu, 11 Jan 2024 13:40:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMEDHyrRyc+g1j5WqBChyLRYs03IF1RNoUuBU3Zbb0GGxASEsAjwqZtybgLtb6mBDM2eyu X-Received: by 2002:a17:90a:f196:b0:28c:dc42:327b with SMTP id bv22-20020a17090af19600b0028cdc42327bmr419069pjb.7.1705009243736; Thu, 11 Jan 2024 13:40:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705009243; cv=none; d=google.com; s=arc-20160816; b=IWdZSGGFLvx8hmswTelUTTIZdZxU1a6iLegteHf+5NvvAurhhupHHooI5SZF71llmv 7R3oskrgr/rlHa1s1Oepq6iLrlxrV6nTfBXUZU2N/NivWTzK9jIfbJ4E8r2+FaMaRF7H 0w5r++qIqdpHRPWiAmdnwuSq4/lQfskPipK5qz/Gttz3PdGZTpUAjUwPud33yF3jpEMB gDkSqQmdgywp014kM728kZxEUB0ZXy9qQir7n5SWrjZiyrfy8oT0W+PcBqpbK8bnb2FB dKJ7B7q3Qxe2PRBhy875YPEiJJnqa3SGO1hjTCymxbR4ktdmhoPyiZJBGu08ygDft/ht 6W9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Y+RcoKvFjsKfuP5whkCHhzflD9nKBfhXshwwBcMffNM=; fh=AsWlDaAxgCZBIx7BTSFyCatU0PNzBsuDGBg2AkEnfek=; b=ybz++F09eqr/55OsiyF66V8sJJDVNy8IJQHld5smCs+IY69TKjJkzI9R12bcIni/Mw H0WxMTUSry/qsRwhYvsaxnY9LfxQKyD+A4nfGiYwdJXxy3vH+Zwpi30sAB8Uua7YXXwI pgdzalMI7AWjUmzNyKZ9bpGhiDEaM40qAvjgw7lrJ0mXE7DoqLzICZxX0fxOoqM3WJIX XXcrHb+hz/YZCIRMnIaaitsc76dC0AIRnGzDWndHRhpH6BykVizaVUw45Yk2xkTpEIU5 K7Cvmv75YlMtfIK62/DSwB7Y4ypZnSeyV0lbQ7QO6I9JACddK+ANNyqcBpsQfgXv38hN 902A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QmtR5rry; spf=pass (google.com: domain of linux-kernel+bounces-24096-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24096-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 oj9-20020a17090b4d8900b0028c86e12f01si4984341pjb.41.2024.01.11.13.40.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 13:40:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24096-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=@intel.com header.s=Intel header.b=QmtR5rry; spf=pass (google.com: domain of linux-kernel+bounces-24096-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24096-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 66480287236 for ; Thu, 11 Jan 2024 21:40:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2325358202; Thu, 11 Jan 2024 21:40:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QmtR5rry" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) (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 34F6F5811C for ; Thu, 11 Jan 2024 21:40:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705009234; x=1736545234; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=P8QIKWKyzneFO38LCkd0vx1/9c4bZLeHMfLW6KO/QR4=; b=QmtR5rryzB0gX8NvOr1Un+PDl1O/L0j1e6TcdZViHRcNsCrcQIHoY8oq u7bEhEJN3vEVt4wEZ5W+aWgClR2cke1tC2cr4n6Y/L/p9O68SggkGN6s+ l+M76XdM/98JrkEaW6Qa97Av/K4F1a0UAyxxTraNjQU/O35NWGS9MLkPp byGMUW83FcaqSvnht7/LHh0ekqmS8y8byvHaQklcMnyVduMQg5794OcDh XxcWavHxjrY/XNkhl3swP75TjL6TSaQiRqWwX7/kerxuKAbcPiBTz0CkN Ke63gSpQDBQHQAnoIEblI8ni/7Q9qxzQh4/QB6eiJuns0C+2t/8HPL9Rh A==; X-IronPort-AV: E=McAfee;i="6600,9927,10950"; a="398686089" X-IronPort-AV: E=Sophos;i="6.04,187,1695711600"; d="scan'208";a="398686089" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 13:40:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,187,1695711600"; d="scan'208";a="17172987" Received: from agluck-desk3.sc.intel.com (HELO agluck-desk3) ([172.25.222.74]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 13:40:33 -0800 Date: Thu, 11 Jan 2024 13:40:32 -0800 From: Tony Luck To: Peter Newman Cc: Amit Singh Tomar , 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" Subject: Re: [EXT] Re: [RFC 00/12] ARM: MPAM: add support for priority partitioning control Message-ID: References: <20230815152712.1760046-1-amitsinght@marvell.com> <6114c8d0-97a1-be54-3e43-30348be38683@intel.com> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Jan 11, 2024 at 12:56:34PM -0800, Peter Newman wrote: > Hi Amit, > > On Thu, Aug 24, 2023 at 1:52 AM Amit Singh Tomar wrote: > > > 2) Second approach that we discussed internally is to have schemata for CPOR, and PPART separated by new line as mentioned/suggested by Peter, But it may require to tweak > > the ARM MPAM device driver a bit. It was kind of toss-up between 2nd and 3nd approach :), and we went with the 3rd one. > > > > L3:0=XXXX > > L3:0=PPART=X I'm not sure having multiple lines for the same resource makes anything clearer. I preferred one of the earlier proposals like this one: L3:0=XXXX,PPART=X,CCAP=X;1=YYYY,CCAP=Y This makes the schemata file self enumerate which optional capabilities are present for each L3 instance (in the above example the second instance doesn't support PPART, but does support CCAP). Writes to the schemata file already accept partial information, so the resctrl schemata_write() function should be coded to allow any of: Just update CCAP for L3 instance 1": # echo "L3:1=CCAP=Z" > schemata Update mask and CCAP for instance 0: # echo "L3:0=ABCD,CCAP=Q" > schemata Update PPART on all instances: # echo "L3:0=PPART=M;1=PPART=N" > schemata Legacy app that only comprehends partioning updates instance 1: # echo "L3:1=FFFF" > schemata -Tony