Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5965116imm; Mon, 27 Aug 2018 07:25:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbGFoHhsDaz2YRX4LKG0Cy2MKPkcMrI0IuCABIb8czvw96p/+eMMUmQSSGoY11sfoZBmtvG X-Received: by 2002:a62:54c7:: with SMTP id i190-v6mr14510569pfb.155.1535379941060; Mon, 27 Aug 2018 07:25:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535379941; cv=none; d=google.com; s=arc-20160816; b=ovGvdO1ykxs5PJEZIQ8U1lH2sBrUZ8o9oDS74e2S+/7bW6dXlQZi5CqihA7ESz7o4l TxWqpUnolj+AQ9SPTABtUP2aRYaH3BmFBArJDIDdtELcu7PqBFgysbbNAuSjzim0RDBq r7gtZWEliPchYfMdjLn963QWErvdJfKVVM4WSjXVz5LhXhKA+Qp9fPB7LDBTLHnt9G0W vAOeqCsX6yf4wApzciLqXhqUFvd6SRv21g9YVdx11ohKttArU2Xl1u3p7RGvsB2hlw/F DiRh3DyPLw8AED+gbEJZn/70kp34ZwIKouHqi/XfHaMLYxmFZ21uqPar8vPddxmYRBBZ Sj9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Lr0xtv8OCDUnU8QWCu2VxSxJwe2ldobuAh4mxk50BDE=; b=hu0mgBy/RSfpbpbUZ5qoJ3FS4OiwD7Lf8rr7xVjyQwXSWjLIAPAXXFNZhD+AsHfNe5 HPTK72B/olL3jxIG/MRgaKft9GOXzzGoZbV/cuTh/9zdXZSqR4llb2EbZormrFX7Q3dA tEtmksTBgUykv8fbfk5AJdG3iJQy1r3S7kEm2TrwuZXUNhNq/fh8DR4I8E5+5gXwqmYH 6nY6Lq+B+HLghRi0yZZ36PNmK3QVWCGeJMTAm6ijuAERT+tBrkI9CSk/gYiC1oR8fahq IBlhLX1MA1DP+TCFX7TkIuZByyVrmiaxs6hxC6KJDmq8ZTlpMCS9r39eBiYLImTxoqce f7YA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id e30-v6si14903888pga.272.2018.08.27.07.25.25; Mon, 27 Aug 2018 07:25:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727372AbeH0SLH (ORCPT + 99 others); Mon, 27 Aug 2018 14:11:07 -0400 Received: from mga04.intel.com ([192.55.52.120]:36769 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbeH0SLH (ORCPT ); Mon, 27 Aug 2018 14:11:07 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Aug 2018 07:24:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,295,1531810800"; d="scan'208";a="252270665" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by orsmga005.jf.intel.com with ESMTP; 27 Aug 2018 07:24:13 -0700 Date: Mon, 27 Aug 2018 07:22:04 -0700 From: Fenghua Yu To: James Morse Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Fenghua Yu , Tony Luck , Ingo Molnar , H Peter Anvin , Reinette Chatre , Vikas Shivappa Subject: Re: [RFC PATCH 00/20] x86/intel_rdt: Start abstraction for a second arch Message-ID: <20180827142204.GA223688@romley-ivt3.sc.intel.com> References: <20180824104519.11203-1-james.morse@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180824104519.11203-1-james.morse@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 24, 2018 at 11:44:59AM +0100, James Morse wrote: > Hi folks, > > ARM have some upcoming CPU features that are similar to Intel RDT. Resctrl > is the defacto ABI for this sort of thing, but it lives under arch/x86. > > To get existing software working, we need to make resctrl work with arm64. > This series is the first chunk of that. The aim is to move the filesystem/ABI > parts into /fs/resctrl, and implement a second arch backend. > > > What are the ARM features? > Future ARM SoCs may have a feature called MPAM: Memory Partitioning and > Monitoring. This is an umbrella term like RDT, and covers a range of controls > (like CAT) and monitors (like MBM, CMT). Please send a link to MPAM spec. > > This series is almost all about CDP. MPAM has equivalent functionality, but > it doesn't need enabling, and doesn't affect the available closids. (I'll > try and use Intel terms). MPAM expects the equivalent to IA32_PRQ_MSR to > be configured with an Instruction closid and a Data closid. These are the > same for no-CDP, and different otherwise. There is no need for them to be > adjacent. > > To avoid emulating CDP in arm64's arch code, this series moves all the ABI > parts of the CDP behaviour, (half the closid-space, each having two > configurations) into the filesystem parts of resctrl. These will eventually > be moved to /fs/. Do you have the patches that moves code to /fs/resctrl? > > MPAMs control and monitor configuration is all memory mapped, the base > addresses are discovered via firmware tables, so we won't have a table of > possible resources that just need alloc_enabling. > > Is this it? No... there are another two series of a similar size that > abstract the MBM/CMT overflow threads and avoid 'fs' code accessing things > that have moved into the 'hw' arch specific struct. > > > I'm after feedback on the general approach taken here, bugs, as there are > certainly subtleties I've missed, and any strong-opinions on what should be > arch-specific, and what shouldn't. > > This series is based on v4.18, and can be retrieved from: > git://linux-arm.org/linux-jm.git -b mpam/resctrl_rework/rfc_1 Could you please publish MPAM patches as well? Then we can have better idea on ARM's specific code. This patch set only has Intel RDT part. Thanks. -Fenghua