Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp828604lqs; Fri, 14 Jun 2024 06:59:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6ybNKjFYyTBwkftll2WKoy8ckk+et+gtiwnSGIkghkUVrBBCq6Oyqe9zwhxErEgijxOW9soGiR9/9yM71WKTVfqjCgFxFri+uHH7Hkw== X-Google-Smtp-Source: AGHT+IEnKqHpJpNwL2SWvEo3STboWBAC4iRodue6Xiry+/jQs/1zPZk0Aa7SmLrMne32LKVsg0CU X-Received: by 2002:a50:c056:0:b0:57c:6338:328a with SMTP id 4fb4d7f45d1cf-57cbd6c7589mr2763842a12.30.1718373558552; Fri, 14 Jun 2024 06:59:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718373558; cv=pass; d=google.com; s=arc-20160816; b=Fir6g0xxBZc5Hxyrs3x6kLC5q7zV9RfjyoeaibVUtHXbdhCTx19Ur9G44TMJTOqM8v zfNJHojiy1Z+q2KQYYLDbR6O8iZ5ah3zBUXJqUtLwoInlOU/WdroH5vP59SOWx1ec3we 2mO8X7VgdMY59S0LGD8AodLF+zaB5q8MyhX8ZfJGsTiYwnCZrXFzbD0MqCzh2xN4//SB f4bWhgDsetBKV+E3GQay2ZlYWYjcLkD72PotZDYmM92BawBkMxV5by6JN6Sk9YijHsLm 1i1Mre5WG49tdisnf5ycJEx5qXMBqzdCzT20bRf1JDD4D8WrPg1Y9iLkZDJkGs5+fOe/ 1AZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=vvkelx4m9d6SKFpwhTBVYBcYVXIJPCewBVmUkzxYnEU=; fh=l+S7gOFfmi3QGnnZKR03YFcMrNXn1ZwArJetS6MlxiY=; b=HdQ6t9X9FNgDS6MV9znWRT85K4w7f+PkSWoJ2P/knGg/PBtWRZOYRVHDiurV2O+RFi Q7pfzq/avfaT3Wo877bgkMF9NUluQkM4TKJwLw2oWvZQ2sNwGSZt9+J/1ezHFV9vwnFF 555mZ2dOk3m2ySrRHvdHUv9TfYwQ6AYcdgut0Z8MMbgpJrjFODet1GOG+gUR6tsvWEGS nOcrmXDw647gAND7ewddjD/eRQuJVYQuqFAwA96mDiyBUJV6x9wSkRrUkKKAwCYB9zqV uQN+sd10g65J9wZU9lYwrT6n15iV5LR6bzbGONlsdb/dNV4YozJzZmWY5qLy6ffr6MH5 7fYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-214973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb72d6058si1892314a12.5.2024.06.14.06.59.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 06:59:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-214973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 am.mirrors.kernel.org (Postfix) with ESMTPS id ECECD1F28991 for ; Fri, 14 Jun 2024 13:58:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 764B2F4EE; Fri, 14 Jun 2024 13:58:07 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E725EAD4 for ; Fri, 14 Jun 2024 13:58:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718373487; cv=none; b=dDDafA9LEBf61kOB7PcBtNOm64wYpWCX/knJv/FYVuvvfbo14TMYxTglk3Ir/y6R36ormJw7KBWar71dS+fypg/thVmSHcjTZxohPwE+Lw91zHw/JU0G6yhxraY9/Uf2AXC4mtA7Y3qXeDRG/dAXgPfTi36dZyG2WqEaBfeZCZ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718373487; c=relaxed/simple; bh=Mic4ahtg2YdkV2IbtpTn74zifuut2aA5xwcJx3NUCNg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DAMrXiCsWk4+urq/qcXsdn2kMBBEf7tY3+Ln1+kEYHtL2xh/J+fOYcm6jYk77gndQpfYOoD5s0eupb2JsbxLvJu3qvqvIn2ukiY+rg/o4lDyizsdDpgI/tUbNHs7W2/5nSTyDQRui0IB1wJvV7/5cFbTZbJte6+QKom1W96iy4g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 71879FEC; Fri, 14 Jun 2024 06:58:29 -0700 (PDT) Received: from [10.1.196.28] (eglon.cambridge.arm.com [10.1.196.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 796A73F5A1; Fri, 14 Jun 2024 06:57:58 -0700 (PDT) Message-ID: <6b863124-d1ce-429f-b1b6-73fc48978a6d@arm.com> Date: Fri, 14 Jun 2024 14:57:58 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 17/35] x86/resctrl: Move mbm_cfg_mask to struct rdt_resource Content-Language: en-GB To: Dave Martin , x86@kernel.org, linux-kernel@vger.kernel.org Cc: Fenghua Yu , Reinette Chatre , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, "Shaopeng Tan (Fujitsu)" , baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , Peter Newman , dfustini@baylibre.com, amitsinght@marvell.com, David Hildenbrand , Rex Nie References: <20240426150537.8094-1-Dave.Martin@arm.com> <20240426150904.8854-1-Dave.Martin@arm.com> <20240426150904.8854-17-Dave.Martin@arm.com> From: James Morse In-Reply-To: <20240426150904.8854-17-Dave.Martin@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Dave, On 26/04/2024 16:08, Dave Martin wrote: > From: James Morse > > The mbm_cfg_mask field lists the bits that user-space can set when > configuring an event. This value is output via the last_cmd_status > file. > > Once the filesystem parts of resctrl are moved to live in /fs/, the > struct rdt_hw_resource is inaccessible to the filesystem code. Because > this value is output to user-space, it has to be accessible to the > filesystem code. > > Move it to struct rdt_resource. > * Reword comments to avoid being overly arch-specific. > > Is the _content_ of mbm_cfg_mask arch-independent? This comes from the mbm_total_bytes_config, nothing in Documentation/arch/x86/resctrl.rst says this is AMD specific, so it can be assumed to be defined by resctrl, but depending on some hardware feature. I'm not sure we can make this retroactively platform specific. Thanks, James