Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp742721ybz; Wed, 15 Apr 2020 18:00:03 -0700 (PDT) X-Google-Smtp-Source: APiQypKh8QJOudZOYEO+a+giE6yLA5T1p7RcU1Wj+8+5lEXWfvxec93ekyMsDtY/Bg4AdclAOTL+ X-Received: by 2002:a50:8c01:: with SMTP id p1mr27845819edp.4.1586998803497; Wed, 15 Apr 2020 18:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586998803; cv=none; d=google.com; s=arc-20160816; b=oo13bDcWlcJbFhq1d5iKbv37CnrrCs7fL0fx2/XpeUCUriG18V9hqRSLJRu4EwsRQH OlxFZlzpfnMnazaSDpz4OFmv6aBaBnXDQyc4oQyRLPABqiZPwz3mJKoXoXkH5YVfyEeR y7p97RjtBuRIkZnf67kpldQCre/57naU+AWGZSB7e/q4txxD2C7/ZL7pcEiov3biH/fw fv8hyEvBM2+gemSMbZV0S0l+YRgUKO7SbHot55yw3Bvtlrl2L4WCtBNYK1Op0H+xIgGs RVJTskjfxNGU2GkAfeJp25pAZfDYVim3mbBDfoFhgQDIXQdoc/MAUb9GdoiqOSDcEGBO It/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=bjPTWONblGe4Gdh/j3vy757axcefmmAMiAWF+rbV1Jg=; b=0qQ5NG2/GKaxg+UhVCDlla5k/MVMtcoREJf+YmTkVI3+aDPRxefVHMjTjA2XZm+s0Q KecikniAm+d63YriN2CvnX/4o0bvv3hHqb8WrtiTDX11Gt0giU6bsU+dAIHsPONTsgbU GwYmTrgBpguMNu5N5daQundSyt5iBbi0ob6c5SAv8/BFY30Vi0qPD3wTSqAnNe1N5Tqj +F1+V/zaKxp5dGiwSAMbMzAcSrLgl/RZSozdxL+mSxm9alkqmd/VAVp6siXLms42d4Q9 0Xot0eB0/Tmz9lgB4zMxrtq5853TPZKULNScivytxCU62BdyMip+4YzX8C+enSyx3L/N hs9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si10731700ejo.82.2020.04.15.17.59.39; Wed, 15 Apr 2020 18:00:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2441759AbgDOTO6 (ORCPT + 99 others); Wed, 15 Apr 2020 15:14:58 -0400 Received: from mga07.intel.com ([134.134.136.100]:7249 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729217AbgDOTGl (ORCPT ); Wed, 15 Apr 2020 15:06:41 -0400 IronPort-SDR: xt3XW0fWep1rD6mjqPO/2YD4Ovi/Y/ROI4zFaxJiswPpA0ovkCwOKxV6XnqL5R71aRst+P2xJ5 S2ROecCjVpSg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 12:06:39 -0700 IronPort-SDR: d+T2qO8aKraJTjw39BMYEhZJYVjCzf/wZeAyxgSrlcd44nehQH7Esi0Qt6S1z0gemxAvc5Uf4Q jOGPpcXvEjVg== X-IronPort-AV: E=Sophos;i="5.72,388,1580803200"; d="scan'208";a="245764600" Received: from rchatre-mobl.amr.corp.intel.com (HELO [10.254.108.43]) ([10.254.108.43]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 12:06:37 -0700 Subject: Re: [RFC PATCH v2 0/2] x86/resctrl: Start abstraction for a second arch To: James Morse Cc: x86@kernel.org, LKML , "Yu, Fenghua" , Thomas Gleixner , "mingo@redhat.com" , "bp@alien8.de" , "hpa@zytor.com" , "Moger, Babu" , "Luck, Tony" References: From: Reinette Chatre Message-ID: Date: Wed, 15 Apr 2020 12:06:34 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi James, Thank you very much for your thorough response. I do have a lot to digest from it but would like to at least respond promptly to a question you included ... On 4/15/2020 5:59 AM, James Morse wrote: > On 14/04/2020 19:56, Reinette Chatre wrote: >> On 12/31/1969 4:00 PM, James Morse wrote: ... >> * Apart from actual interface changes, highlighting planned behavior >> changes and motivation for them would also be helpful … for example >> force enabling of CDP on all cache levels is a red flag to me. > > Interesting. This is the change that makes the CDP on/off global, instead of per cache. This is the one I referred to and a significant change. > Its still controlled by user-space. (so nothing is forced). Right, controlled with the mount option but the behavior is being changed to apply to both L2 and L3, even if user requests just one of the two. Please note that in the documentation it is currently explicitly stated that: "L2 and L3 CDP are controlled separately" > Do you have systems that support CAT at L3 and L2, but only CDP at L3, not L2? > (I was under the impression the L2 stuff was all Atom, and the L3+MBM was all Xeon). Things are not as clear cut unfortunately. There is a new Atom system that has a server uncore, thus inheriting some RDT features that have previously only been seen on servers. L2 CAT/CDP is also moving to servers in future server products. You can find more details about RDT features in upcoming systems in Chapter 9 of https://software.intel.com/sites/default/files/managed/c5/15/architecture-instruction-set-extensions-programming-reference.pdf > > MPAM's equivalent to CDP is just part of the CPU interface. Its always on. > To support 'CDP on L2 but not L3', (neither of which exist), we'd need to have extra code: > "was I asked to pretend CDP is enabled on this cache". > > As CDP affects the way you allocate closid, (that odd/even thing), which is global, it The odd/even is just for the CDP enabled resource, not global. It is thus possible for, for example, the L3, L2CODE, and L2DATA resources to be enabled. The odd/even is configured by the multiplier cbm_idx_mult set in the resource configuration and used in cbm_idx(). Perhaps you mean the CLOSID is global? By enabling these together it would reduce the number of CLOSIDs that could be used by L3 in this example. > makes sense that this is either on or off. (doing this let me support CDP without the arch > code doing anything special!) > > Existence of hardware that does this would obviously change this. > Yes, there are systems that support L2 CAT/CDP and L3 CAT/CDP. CDP is controlled separately on the different cache levels. >> It seems to me that MPAM may need more than what is currently available >> from resctrl > > Ultimately yes, but the aim here isn't to support all of MPAM. > Its just to support what maps nicely. We can then discuss what to do next. Thank you for stating this. This is significant and was not clear to me initially. Reinette