Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp121129lqo; Thu, 9 May 2024 14:46:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRA9RosuSoFYPWyOWHKn/PzUDNAqj8isJDzXsDefLwowsqQojsSHpvUA/kOWsEf3mvr6IHJA5OCv4pqPFB10iTrVuA3duSTKQ6hcHfzA== X-Google-Smtp-Source: AGHT+IGo83ClQHyDA6TJgTJvawpTMKPSt3DBdvSGB4t8yu0iJrvTbDew3NU8aebkou0goPoU06H7 X-Received: by 2002:a9d:4b18:0:b0:6f0:e435:2e93 with SMTP id 46e09a7af769-6f0e9147012mr922010a34.16.1715291162049; Thu, 09 May 2024 14:46:02 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf365db0si208194885a.623.2024.05.09.14.46.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 14:46:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=yQYVfNlU; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-175007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175007-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B00351C22172 for ; Thu, 9 May 2024 21:46:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3686128816; Thu, 9 May 2024 21:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="yQYVfNlU" Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2073.outbound.protection.outlook.com [40.107.93.73]) (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 A55F385266; Thu, 9 May 2024 21:45:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.73 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715291153; cv=fail; b=KyzXn44ZxzVvh5riZDNUs1iOdFNnxPeRWDPdYFWx+/WWx8b6Ndjg5i8UvXUD/73iCvLF9DCAHkMS5mVOQZs97b4fq9t91jevYLAK9TsLwITePf6D+Azj+GifFmxcpRRF9za5mkHSXAcHcZOLAsRuN2yvWhBuOumjqdxSKYof2IU= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715291153; c=relaxed/simple; bh=IXLyjlurkFKuwxjtjlcoCsAuk84N9FeLPnS7az51Ls8=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=dWe4B/xB8zwxJcYhdKA8ZaQ8GmFgEO+jTfQSQyLUFpnB12Ian+wZvIeMtAb+DQB9m81gW1JZTigILy4v04rP7CYmIHCKDzj6dYIWBkfH14YW1N7nSWbWmQa7gjwwEJbsuu0voQBKdShUQnFEO+uRgQF14SOlSTp8/cmfBIn9jYQ= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=yQYVfNlU; arc=fail smtp.client-ip=40.107.93.73 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TfruV5IpTgzRUjBpdOye9Ytj84WgAdrkeLBZcRUC118HyBWAEkVjxEZ1OySl60STyXNLCx7EL7HJXHG6MYB7QFuLGm8lvW61Tqh/Jqi6D6wFMuLmvRI0tn+Yl5BhU9+Ht2Dz1lldhoz4k3vDrduOlx1HLLH/xSbRFvrBz3TKvf7OZz6VcZ+lMikSUPrmav+a0Yn2ixBIL2LgO5WSFuewUaYiVk/ddip9OJYzoY8vJs/WPANvLXMZmdR14aMJKCZYlZo4ZaTwmseVyKs5Xj8fkB3CbFI0Jl7W0ZNIDuzbaVUmPRzBFPm4IBVl0xPNWoHbxSzbjmrRdcL05ilTYRYRCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=j1gz461udHGOu/HJGAeAx67zdBStnA+KXj1tGGRf/4c=; b=SagNm9ughNeC6uIV0yc5yKHWSqJmTEfxiErEYEuJsTIxwvYOAsw2dDsns4oNwbyfIrWM8+3EMlGZ+CD1YyW+v/EDqxKbPXN/1+esESREWydFXUxkn7Q7cr2VUP3fzmcQ3825Z2bpVAVq9ASPe2HwClxT+A+oMZevCfTlwyLtnPJcKBY1b8tGNDkHkfuwyu1NOxo0jJxcr1iMSIurC1Y6v6tymYHy2CE0uMcD3pEAbhdf3AtC3ptcqq2Z/KOfGTY0bKP2V9pM50EjC9wdaAoN6a6cix8DrWdL9SFXbzWUFuV6GiKDhygIiChtm/a5MY2oQFuwS4Yq9FHJkIOwIFS0Pw== 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=j1gz461udHGOu/HJGAeAx67zdBStnA+KXj1tGGRf/4c=; b=yQYVfNlUzZ6cG1/JH3cIAt8A6b+w0DE4Eo3NNAUG0uaYBNQaerHpAb2DrqIdO8lb/9YAaDrdP+MnvIVlvEXQ8/RoWbPEtciQs4iZwsJb4QJ4hMmeOWx7DAb67cXYWGORnm5FcbR2z0biYhqcDY5ikuyFB8Qo/QHiX6kMBVoNsI4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) by SA1PR12MB7320.namprd12.prod.outlook.com (2603:10b6:806:2b7::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.47; Thu, 9 May 2024 21:45:48 +0000 Received: from MW3PR12MB4553.namprd12.prod.outlook.com ([fe80::b0ef:2936:fec1:3a87]) by MW3PR12MB4553.namprd12.prod.outlook.com ([fe80::b0ef:2936:fec1:3a87%4]) with mapi id 15.20.7544.047; Thu, 9 May 2024 21:45:48 +0000 Message-ID: Date: Thu, 9 May 2024 16:45:43 -0500 User-Agent: Mozilla Thunderbird Reply-To: babu.moger@amd.com Subject: Re: [RFC PATCH v3 07/17] x86/resctrl: Add support to enable/disable ABMC feature To: Reinette Chatre , corbet@lwn.net, fenghua.yu@intel.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com Cc: x86@kernel.org, hpa@zytor.com, paulmck@kernel.org, rdunlap@infradead.org, tj@kernel.org, peterz@infradead.org, yanjiewtw@gmail.com, kim.phillips@amd.com, lukas.bulwahn@gmail.com, seanjc@google.com, jmattson@google.com, leitao@debian.org, jpoimboe@kernel.org, rick.p.edgecombe@intel.com, kirill.shutemov@linux.intel.com, jithu.joseph@intel.com, kai.huang@intel.com, kan.liang@linux.intel.com, daniel.sneddon@linux.intel.com, pbonzini@redhat.com, sandipan.das@amd.com, ilpo.jarvinen@linux.intel.com, peternewman@google.com, maciej.wieczor-retman@intel.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, eranian@google.com, james.morse@arm.com References: <0db75c94886da62b8da498ef159d8fe27b0b3811.1711674410.git.babu.moger@amd.com> <54b1fe8f-13e5-440b-bb36-4100c1d283d0@intel.com> <54ec73f9-6c9e-44f4-8ee9-a683bfcee607@amd.com> Content-Language: en-US From: "Moger, Babu" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SN7PR04CA0174.namprd04.prod.outlook.com (2603:10b6:806:125::29) To MW3PR12MB4553.namprd12.prod.outlook.com (2603:10b6:303:2c::19) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW3PR12MB4553:EE_|SA1PR12MB7320:EE_ X-MS-Office365-Filtering-Correlation-Id: 44d22b57-85c9-4546-8d84-08dc70716399 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|7416005|1800799015|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?REZhVWM0MENyMG9neU9EcSt4RnJpQk9xZnN5Wm9HNGR3M0srNDc0T1VibEg3?= =?utf-8?B?ZUlDaHBxaU9wOUVaR0RObHcxbzh6bEJFSUJnY1FpUGRSVGR4MDJXdUFEUXV5?= =?utf-8?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?= =?utf-8?B?RzRhTmJpajNCYnNDQ2c5UXF2Z01ZNUlkdHBQb045aU9xUVZRSUF3Y1IydDBl?= =?utf-8?B?NGYvNkg1MTZmQ3lSZ1lSWGlkMFpiOGcvVVFpa1hKMUJsa1hVMjB2UkFyTkRJ?= =?utf-8?B?dUkyazk2TDdjMnVEVUNyMWY5RTcrUE1iQ1RtaWZZNStIMi8xSzBxanQvWXlV?= =?utf-8?B?d0swZEwwYndaeGl1NmdJaTlqSFdFNWpLdTI3a1BJV09YK213ZUYzTEozcjNZ?= =?utf-8?B?dXkveTB3YVV2NkMxazZiTnA4MmpxME96M3lHelFDZm80eFVWdHU3VEJLOEor?= =?utf-8?B?RGRVM2tvWUFzRzd1bXZXMS8xUXV1NGFtbDRBUjViY2JxQ0hBZW9mWmU4UkV1?= =?utf-8?B?ZzZISG50MFdGa3Yzc2MyOXRDZCtpSmFIVXlNQVFaOGYzWUtxaTVOTHVoL0xk?= =?utf-8?B?Wnd6S3l1OW05cUZ4MnNOT1kvV0lwTUQ5YjFJWU9uSk03NTVKdnZZRktBMFF5?= =?utf-8?B?WkhUTHoxSFRUVFJzRXBBUkdLM2o4TzJRaFRIc1M5UDh5bVlWT0Ruc2NRWkpa?= =?utf-8?B?TTA4UzZjNE00dUxsV2JtMHpJZ090UHVMRXJheUNjUmhzWWppVEhVUGwrZzhh?= =?utf-8?B?RnJtbUFoNWxzaXFWdWgxNWNzdDNtREJnMUZhZE81WHZKc0pVMWttY3FCbjVx?= =?utf-8?B?MzlXcjVMbnkyZUZrekhWcEhzNjhERTFPVFg4bG1wVGFnbHZwbDh2cGdBPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR12MB4553.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(7416005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Ex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?utf-8?B?UmREZU5wcG1lT2RETUZBT1g1RDlLbmtVY2hxeGIwMVBmTVF4U0dFQ3FaenQ4?= =?utf-8?B?N04vMTJmOFpyeURwM3BOaTB1QTNqTHFHQ21FbERHb1I3YlBMWkJxZi9hbytH?= =?utf-8?B?UXVubmd5NEtPQjRUT0FyOVVmU0RQdmZ1d3RWdnhLcUZzcGd2dkFrQ3EwV1U0?= =?utf-8?B?Tnc0a3RsVVhkb1liMU1nV3Y2cS9ZSUI0SllZYVBRUUVMakNDN0FRSVFQQzM4?= =?utf-8?B?MUVFRDdaSWorMDZsQ0E4NGZuV2VkNUJHV0JyS2YwYm9BY2ZNb0VGRGkwN25H?= =?utf-8?B?dnJUREoxWnU4aXRja0YrOXE1OFAzM3FnS3NLRm5JTUd3THg2dGt3T0tmZkVY?= =?utf-8?Q?eAcM=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 44d22b57-85c9-4546-8d84-08dc70716399 X-MS-Exchange-CrossTenant-AuthSource: MW3PR12MB4553.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2024 21:45:48.5943 (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: 3z/yXAwUTuCQM410Z9WEKJz9KYNYU2hAl0xaedzJSpvaUw2ldl41AZZ70hPb0Bjk X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7320 Hi Reinette, On 5/7/24 15:32, Reinette Chatre wrote: > Hi Babu, > > On 5/7/2024 12:12 PM, Moger, Babu wrote: >> On 5/3/24 18:30, Reinette Chatre wrote: >>> On 3/28/2024 6:06 PM, Babu Moger wrote: > > ... > >>>> /* MSR_IA32_VMX_MISC bits */ >>>> #define MSR_IA32_VMX_MISC_INTEL_PT (1ULL << 14) >>>> diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h >>>> index 722388621403..8238ee437369 100644 >>>> --- a/arch/x86/kernel/cpu/resctrl/internal.h >>>> +++ b/arch/x86/kernel/cpu/resctrl/internal.h >>>> @@ -96,6 +96,9 @@ cpumask_any_housekeeping(const struct cpumask *mask, int exclude_cpu) >>>> return cpu; >>>> } >>>> >>>> +/* ABMC ENABLE */ >>> >>> Can this comment be made more useful? >> >> How about? >> /* Setting bit 0 in L3_QOS_EXT_CFG enables ABMC features */ > > Regarding "ABMC features" - are there several features connected to > "ABMC"? > No. It should have been "ABMC feature". Will correct it. >> >> Or I can remove it totally. >> >>> > > ... > >>>> +int resctrl_arch_set_abmc_enabled(enum resctrl_res_level l, bool enable) >>>> +{ >>>> + struct rdt_hw_resource *hw_res = &rdt_resources_all[l]; >>>> + >>>> + if (!hw_res->r_resctrl.mbm_assign_capable) >>>> + return -EINVAL; >>>> + >>>> + if (enable) >>>> + return resctrl_abmc_enable(l); >>>> + >>>> + resctrl_abmc_disable(l); >>>> + >>>> + return 0; >>>> +} >>> >>> Why is resctrl_arch_set_abmc_enabled() necessary? It seem to add an unnecessary >>> layer of abstraction. >>> >> >> I feel it is better to keep it that way. It is consistent with definition >> of resctrl_arch_set_cdp_enabled. It handles both enable and disable. >> Otherwise we have add those checks from the caller. > > Caller needs to know anyway whether to provide "true" or "false" to this function ... > caller may as well just call the appropriate _enable()/_disable() variant, no? Yes. We can call resctrl_abmc_enable() and resctrl_abmc_disable() directly. Thanks Babu Moger