From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.56.2 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796422236; b=gavI9ia85w5QMugApwUsJs2LaIoiN7l/GXvS6Og1lR/QPqGxAdkNeWhejQDyZ5LedcSp JVprFWfH6M7GDYRmPdTM1X2zjUonpe2sxkBuDH2nn3yUYX4QF5tqV9jfNQF5L6tgxBFWl zjH5tdzX/vER97Pg4igKlsD0O5qzmRhWYJpy359ih2Fi6ZTttwjS8HW5PY0t2MbM3EY+p VYiJZdYCZGFHEwoc3YiAHQTitV/J2GOMmjuTCftHnBjjPsOSZ5k9Mc/oUmVhAdnXCVt4b faWC7PGgbID6FJP7oiW09s6gbZH58oGtBVQlJiGit+g94boKMuo4gQRhpTSLbBdC1Uw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796422236; h=DMARC-Filter:DKIM-Signature:Received:Received:Message-ID:Date: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-ClientProxiedBy:MIME-Version: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=1lB8hamCPEPFQniwN/eMevFLHq6VFZ8yZKLqlRmFkMM=; b=pAaOfN7gl9mCi5jWBASWnio90nUA9duHKt+5F+G9HS6qX9J/NINJfxeuK7KeaDkIEbYu VHtDctAUXXrpevOltuJ/RjCBkiFX67eCLRnBp/IRwYh4actGfjhjhcxlHvsCWvqwltdgM xrfqd8fC7tbCQTc1K4BDFSA6JinncvkkdzHEQMhrJF8g9VE3aM/noLN/KDhnkgCCIQJXb 0aNTUOKzYOYQ0MfH9nnklTOtVv8RtKIAjLBA7VZ5MaX1OagTESFrWUDcu4GhQxtOkJgKv CsI+DnsZaFVQOT0f8XOwgXgOI0dFdxzgez2vLblhb8IpTBdiPIMoTf3wmI3RK5+aw7w== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b="3Da/E/5n"; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.56.2 Received: from BN1PR04CU002.outbound.protection.outlook.com (mail-eastus2azon11010002.outbound.protection.outlook.com [52.101.56.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5667F606A322; Fri, 4 Dec 2026 22:10:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5667F606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=3Da/E/5n ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KWa0ycnwRaV7RWJebV+EFGcs7OX91oVWrs6BQQJN+1DrHZCwAMXG61KLSL7imHmraOFIgjKUDPtmtZ58S95L/LRy9+oM07os57fHJ1Sol6SEP93JtpqMZEFgduJRV5CQyjJpNTXTAWa6dgwBmoxSh/aFePfEWzk19seQiNUdBg/SGuXFM7In62wkQmlICEp+ctzcLvTgprBtLwGtflwoA0f8+rX3ZQfBWVLKvkE6a+Ii/etz0nmWnqLkceZepg0HbdTu+lN7QbiQi0DvTguF947Cauvn7kQx5d0puKe3qBm0d3loH4879Td6t1KZXRvW/fkpa58yHDEo8x3NChpbQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1lB8hamCPEPFQniwN/eMevFLHq6VFZ8yZKLqlRmFkMM=; b=JtX49qY/b/7rPKYJvEB/wPMNqQFkbOrZeCRI03DwbeyYB7L0CdBvYg4WNClD8B4+/NPjDwSARFc8WLj9OV6A+S7kQdpDiIu3nObuhb8uytPQVrhOyHGZgNLUuu5SAxosSKgKl1p7vwCilXANrVepmE1G2MwbkJclJXFhkjvyqwfxmS5gfrVHkA9EuFS762Od3LShD5Ahq/6s26kFKrvcgblhaE2vy5qDL4ZF5TEpSK1GSkA4cOln7ZRuwOHa8rkO7rWTqaFtA9UpppOhRgG2IXRs6Vn2l64iMME1FTNbUyoVN8rh4TDqI3oVn3a+6KOnTJOGNmZGNY9N/vEdflQE6w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1lB8hamCPEPFQniwN/eMevFLHq6VFZ8yZKLqlRmFkMM=; b=3Da/E/5n+Zl3l1qpN2n1NLq1PzmO0qsmhYmVdXQOpOZQsXAfXbLePg5BeV3r/7VRAj6NBSR+6hVIM4dJtGpiwa5wvQkAgSNyjPgdso9I+i93AXOpPoAZihtbe0QZOvmnO4DFIrPvY/0GZ6VYAiFbdqe1dwACEeD4Yy97uEyiDLY= Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BL1PR12MB5320.namprd12.prod.outlook.com (2603:10b6:208:314::17) by PH7PR12MB6466.namprd12.prod.outlook.com (2603:10b6:510:1f6::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.13; Fri, 4 Dec 2026 22:10:22 +0000 Received: from BL1PR12MB5320.namprd12.prod.outlook.com ([fe80::1876:4a6d:2cf5:b8d1]) by BL1PR12MB5320.namprd12.prod.outlook.com ([fe80::1876:4a6d:2cf5:b8d1%5]) with mapi id 15.21.0688.011; Fri, 4 Dec 2026 22:10:22 +0000 Message-ID: Date: Fri, 4 Dec 2026 16:10:18 -0600 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 09/19] fs/resctrl: Rearrange top-level files in info directory To: Reinette Chatre , Babu Moger , tony.luck@intel.com, ben.horgan@arm.com, Dave.Martin@arm.com, james.morse@arm.com, bp@alien8.de Cc: corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org, x86@kernel.org, fustini@kernel.org, tglx@kernel.org, mingo@redhat.com, dave.hansen@linux.intel.com, hpa@zytor.com, fenghuay@nvidia.com, rppt@kernel.org, arnd@arndb.de, kmehltretter@gmail.com, dapeng1.mi@linux.intel.com, elver@google.com, enelsonmoore@gmail.com, jlayton@kernel.org, seanjc@google.com, ewanhai-oc@zhaoxin.com, binbin.wu@linux.intel.com, nikunj@amd.com, ashish.kalra@amd.com, peterz@infradead.org, superm1@kernel.org, thomas.lendacky@amd.com, prathyushi.nangia@amd.com, kim.phillips@amd.com, ricardo.neri-calderon@linux.intel.com, darwi@linutronix.de, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <29f43167-b74d-4b6c-93d3-0af22140e345@intel.com> Content-Language: en-US From: "Moger, Babu" In-Reply-To: <29f43167-b74d-4b6c-93d3-0af22140e345@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA0PR12CA0018.namprd12.prod.outlook.com (2603:10b6:806:6f::23) To BL1PR12MB5320.namprd12.prod.outlook.com (2603:10b6:208:314::17) X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR12MB5320:EE_|PH7PR12MB6466:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e5e8881-deb4-4718-b06d-08df525363d0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|23010399003|366016|11063799006|4143699003|6133799003|22082099003|18002099003|10067099003|56012099006|261028144727099003|261022075727099003|261009223027099003|261102123227099003|261021121427099003|261021123027099003|261026121527099003|261026140227099003|261022105027099003; X-Microsoft-Antispam-Message-Info: 1CtRMzP7Nt1q4CSH9i11KR5uw2i+ZlC+YbvtxYFdDwiPInbo85XTAYxgutkIc1aA/6hjBiOrEU/NQ/apq8OJVbCA3j9f1H9P0IEVUZ8rc/zJNC8lRz+xowpPNUFwKMuVNESiUt6NUt1d/k696In5ey/qlEFXkGiLzXEgc2VFqPiFdLiry9NG2QlbIQ0qfMCDmKUtXqkEDtfTd+iktr0IASQGEbve/OYskMzAK0todqJIvhLEw0bSruOm3/0GderpKz39/YmOiWMTWRUzFuQUJjfrmFAAL5Svrsj32qiN1nkPLA8uNouyc/DosJVsqEf9InuhS20AV+OfE4atUKEVR3+uVcufrOGGoNm1U5eKZA5UaaxhVOHLB4XN5TPcOwbVCgmRBMHfuEIZgMmKFVjVzYXAwt6aW7Q5384lztWuB4wDZon2A3bsY2jbVhrQrqWfcV0J+/yU2iA3F1zLnyftfxAeCpd840OyP079RrF6YHUa9dxmCI6byMLN57zOkoCLjmDVBb+gz5CSoslMbMwOYdQdz7/BY7bTN1V9bv5AZZ6LU6Jf6TdMOiwug6C/i25P9DUMTbisvMqxvB+SePYYCHY7kehu5k1cuJ+jwPW0vz8awY6YB3/Nxr5nmxxprGL5gMdqPSNYbO2VORPMYP6/6S85u6pPMIn8GCHdOzvQ4Fg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR12MB5320.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(23010399003)(366016)(11063799006)(4143699003)(6133799003)(22082099003)(18002099003)(10067099003)(56012099006)(261028144727099003)(261022075727099003)(261009223027099003)(261102123227099003)(261021121427099003)(261021123027099003)(261026121527099003)(261026140227099003)(261022105027099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RnNSajBTQUpLWnRwVllIUXowai9BanZ2VklkNFU2Tk5yYjhaeThCOEhsOGV1?= =?utf-8?B?K0EzU3A4TzdiNEVveVNhbG9ObUkvalBXTEhuZ0ZCM3ZwcU5TY2xIZUljdWkz?= =?utf-8?B?MG1WdmlubDBnUXcwc24xZzg0SVFxeEtXWDFIdUdvaGl3cE4wTGlzM3ZoUCtM?= =?utf-8?B?RmUzT0JUK2NleXVaUWxPcWdYWDMvdm10ZjNTdnIxRzQ4UXB0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M3hzREVWUnhOZGJhNEhBZHNKbUgwOXlBVGF5?= =?utf-8?B?aVVuUzhIUERHSmszNnNYQlQzamk2cWdHMXRvdzZoaWExV0orNERBZWxRTzky?= =?utf-8?B?b25Jc3Q3cTdaNkFIOVF2RkJhWlJUbjJRNmtGVmJENGlxWGpVZkFNb0lXWUhL?= =?utf-8?B?VGI5WC9lMGg1N1BOOGFtbnA0SWNaRWxrRWxFMGE0dzhhQ1FRZTFnYThOL0Y5?= =?utf-8?B?Z3FRNllJdjUzM1gxZmp2dnNjWTV1ODU3K0JwdS9lT2xIdmU1RzVpUTZ2dzda?= =?utf-8?Q?Yuhq2BcwofQV0DVc5Q?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1e5e8881-deb4-4718-b06d-08df525363d0 X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5320.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 22:10:22.2495 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: u+R2ngyLt2kYb+mHCSOY856CxFUGLkjZI2hth2AQEKY9wQtCvpAks0063CB3e99i X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6466 Hi Reinette, On 12/1/2026 10:54 PM, Reinette Chatre wrote: > Hi Babu, > > On 11/11/26 2:44 PM, Babu Moger wrote: >> The "last_cmd_status" file reports the status of the last command >> executed by the resctrl subsystem. Since it is documented after all >> other files in the info directory, it is easy to overlook. > > No. This just makes up this strange reason to justify a change that > is actually needed by this series. The _actual_ reason is that the > documentation contains "Finally, in the top level of the "info" directory > there is a file named "last_cmd_status"", so it's written as if that is the > last and only top-level file. Since this series introduces more top-level > info files the existing structure needs to change to support that. Ack. > >> >> Create a dedicated section for top-level files in the info directory >> and move the "last_cmd_status" documentation there. > > Needs motivation _why_ this change is needed. > > Consider: > The resctrl documentation describes the "info" directory's files > directory by directory and closes with "Finally, in the top level of the > "info" directory there is a file named "last_cmd_status"." The text > assumes that "last_cmd_status" is the only file in the top level of the > "info" directory, leaving no place to document another one. > > Add a section for the files in the top level of the "info" directory, in > preparation for documenting additional top-level files. > Looks good. Thanks >> >> Suggested-by: Reinette Chatre >> Signed-off-by: Babu Moger >> --- >> v7: New patch to move the last_cmd_status in new section. >> --- >> Documentation/filesystems/resctrl.rst | 29 +++++++++++++++++---------- >> 1 file changed, 18 insertions(+), 11 deletions(-) >> >> diff --git a/Documentation/filesystems/resctrl.rst b/Documentation/filesystems/resctrl.rst >> index d13a4998ee7e..2d672bbb69be 100644 >> --- a/Documentation/filesystems/resctrl.rst >> +++ b/Documentation/filesystems/resctrl.rst >> @@ -529,18 +529,25 @@ with the following files: >> The upper bound for how many "CTRL_MON" + "MON" can be created >> is the smaller of the L3_MON and PERF_PKG_MON "num_rmids" values. >> >> -Finally, in the top level of the "info" directory there is a file >> -named "last_cmd_status". This is reset with every "command" issued >> -via the file system (making new directories or writing to any of the >> -control files). If the command was successful, it will read as "ok". >> -If the command failed, it will provide more information that can be >> -conveyed in the error returns from file operations. E.g. > > Reading this I believe the original text has a typo: > "more information that can be conveyed" -> "more information than can be conveyed" > > This patch just copies it as-is but this seems like a good time to fix this. > If you agree, could you please add the fix as well as a mention in the > changelog ("Fix the description to say that the file provides more > information "than" can be conveyed in the error returns.") > Agree. Will do. Thanks Babu