Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp117411lqj; Thu, 11 Apr 2024 11:25:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqKB43twOBWjQ/jmB9mQ9i8UYzfV3cvAyfBk5PXN/tBVAk0vE9BMloUC1iNIoXlfLVICkIG6A1TTOrQpHYY9vhL2B1aoQU9PD9wJs6KQ== X-Google-Smtp-Source: AGHT+IFgk8bkgulrtnjbTrLRSj37bjgu3MmOoB3DSVb12C8mcsiyn1rPhHLRl9VW6a14odL/b9Co X-Received: by 2002:a05:6214:5293:b0:69b:1681:b909 with SMTP id kj19-20020a056214529300b0069b1681b909mr574338qvb.3.1712859899886; Thu, 11 Apr 2024 11:24:59 -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 p17-20020a0cf691000000b00696a4a137edsi1973035qvn.207.2024.04.11.11.24.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 11:24:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141417-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=@intel.com header.s=Intel header.b=MrGcEGqd; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-141417-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141417-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 8B40E1C23E5B for ; Thu, 11 Apr 2024 18:24:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6033A12D76D; Thu, 11 Apr 2024 17:40:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MrGcEGqd" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (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 A887812C524 for ; Thu, 11 Apr 2024 17:40:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.21 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712857214; cv=fail; b=ltjUmO+lb6HGvVD5j5VjeYVOlDnrKXDXyCkZzd5plLeQayESaH82EHJIIABBBow36QSf3WrP1rGXZlvLi6wmp2nnZFDTZ8s+d5cOkbUQ9ZciI8QDDGolVQUv/Qj+xbDmq9LRQsRmne4uR+tl2ByMHtdkssn6dNJCJPWeeVwG9Uo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712857214; c=relaxed/simple; bh=gHPmj6lSb3wGxv7rzVR+qeHiLLkb+yTy+N8+4hwBjHg=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=u/u01ef1ET1wWShE9Y2tPhtlLJZa4+OZMV0sAvkgqdkqpuaqlW9WhdFk8nPRlAJuZ1y7XWBgyP0AYSgXn+kpfyONnkUbWlnoKDLZRup1nT6BATA7AyUhP0qouMAm6YC0Ng6bFnpVVL5IEfoxVDxFEbXw6yshR4e/5IXKZb4r+j4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=MrGcEGqd; arc=fail smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712857213; x=1744393213; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=gHPmj6lSb3wGxv7rzVR+qeHiLLkb+yTy+N8+4hwBjHg=; b=MrGcEGqd0+WeU16QP8wsyK+rWZ3PgWkwwpCB8ErF4uun5VrBCroZzaHf jwsjyHgXzEvvB3BQ9082fV1NhDyaq+2yyIQJt6cD3hNpunhNsIWH6X7T5 gw+Q4kvxgq61zC+TkLVDc3wt+QaI4hs18R0jz1hxGIe1sSMc9pCCknKYQ Ito0lCjmmtrr1go1yg+E+yLZyXDMphKWXz1cAwx04duJjJqOQLdPENigB XBOuCjlmRgkdEnSY4Vnh2BIf4BbVQ5XlmDO2AllwrJ2Uco1+xI1ebqofe r2Wro+IKoEcfwCWFMVVu0GhcgNOf2XJ4M770yJGKG4l0ykeyKMBSU+Dxg w==; X-CSE-ConnectionGUID: gPgI07QTQAOm4htR29hYqw== X-CSE-MsgGUID: mBBAm9nnQ62gZK+mBNxcdA== X-IronPort-AV: E=McAfee;i="6600,9927,11041"; a="8204550" X-IronPort-AV: E=Sophos;i="6.07,193,1708416000"; d="scan'208";a="8204550" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2024 10:40:12 -0700 X-CSE-ConnectionGUID: K6+jknW5Sz6zKog9sxBiAQ== X-CSE-MsgGUID: kOfyycprRECeBcNCQp6nhQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,193,1708416000"; d="scan'208";a="21455433" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 11 Apr 2024 10:40:12 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 11 Apr 2024 10:40:11 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 11 Apr 2024 10:40:11 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 11 Apr 2024 10:40:11 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gpkNkWLuRu7LrJAM9HYSgQM4zHkkFwe41s48WR7pTNDyBq8eNf2tWpcWcERX3puC/Wm2FXbFQvLJ8fAi+MCnLy5/GMxoU5kTYYNxK6hp4t1Txo/+B4QnmedoWr24VK6otsXAJYhA/6GyPVDzi8686K4tIrAfpgM6SLdv6zLK8gxfldg9UUmupPnze+U0XSnzEHz7lf0WgNztyjEQ383n6fl0SJq2bXwwnSSOcD5Gia+Xyp8uObjj1KXLWg7sN8x0pSmF7xvsXUOisc46z63I0xfRnHWg8EyI1MhNmOORap09q089m7rpfK22525yCL/YTkf2WCd6y+U7OSQXoNOv3g== 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=uiwooZw8EP89sg8X6Ui92HXUQFFT5t+wUkuvXniD0A8=; b=Gjq5hi3spj8nKIMPQMC/ffMyJzB7jCE9a+RYuRlaFomC6iD58+fl9ewtlUV7ONCZ8BJJpg92eZYWt9lopvriU6xeLBxFVmVQLVK2SHyzGwDWKrP+gpemEyc2bVs9Q7WvhMA2ZppiwZYrt1jeiEyzhas00Y8Th2XtH+Yl4M/G9C3hhrwpGiOBQ9uepSovfV0icmW22zX/iQg/8wGo08wk9vTN7EAR4ZY6MhL8oMo8nhP5GKzAf0Z3A+Xq6XI42H2U025oGg4RaViR9Dy9Lhr+iAQB3F+e9tJyLW8RLlamnQUyBzVqRJYdh6Q4qaqmN/e6cFqHYT10tuiKAQeIMWBi5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) by BN9PR11MB5225.namprd11.prod.outlook.com (2603:10b6:408:132::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.26; Thu, 11 Apr 2024 17:40:07 +0000 Received: from SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::d610:9c43:6085:9e68]) by SJ2PR11MB7573.namprd11.prod.outlook.com ([fe80::d610:9c43:6085:9e68%7]) with mapi id 15.20.7452.019; Thu, 11 Apr 2024 17:40:06 +0000 Message-ID: <172f4615-8943-448c-ac68-152d5bcffa76@intel.com> Date: Thu, 11 Apr 2024 10:40:03 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 20/31] x86/resctrl: Allow an architecture to disable pseudo lock To: Dave Martin CC: James Morse , , , Fenghua Yu , "Thomas Gleixner" , Ingo Molnar , "Borislav Petkov" , H Peter Anvin , Babu Moger , , "D Scott Phillips OS" , , , , , , Jamie Iles , Xin Hao , , , , David Hildenbrand , Rex Nie References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-21-james.morse@arm.com> <6d563361-87c0-474d-812c-b33e79eacf3a@intel.com> Content-Language: en-US From: Reinette Chatre In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4P222CA0019.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:114::24) To SJ2PR11MB7573.namprd11.prod.outlook.com (2603:10b6:a03:4d2::10) 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: SJ2PR11MB7573:EE_|BN9PR11MB5225:EE_ X-MS-Office365-Filtering-Correlation-Id: ad85b47f-a090-41fa-dbe5-08dc5a4e6cbe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JHCaB6kY/xU1zJSm0vPtjdWkcIcHCgQgssegB+MO9/thoC1gRWqoCmsFpkvntUoz53KrN6rmdHJc9aaxLLdJ58b0bAUUkTrblAX4IgQQimxKkuRI+KPa95hjEiImMJ3s3P8tFmhGGUvRBWxaD422s0SUwiNj0xbc5MfIG32P8GwjUgVOZXFbhi3mhodFwOmFSFmEQEUSax0oaNL7myoEw6h6+a9WOXUBuwE5a+688mnNrUVI633WZprjJ53J4w5o8ZjRKQ5aN1igbzuWeIVmsIWp0oSO8NcvnZR7BLZJ5FtAYT+FwZo+CqGapKPdBNKI2+TSOo61WfIXq6aBACGkqoYHyLYAek8xzG4jq/uV7e8qU27kJLMBg0lB+1buV3PBBFW3F9PcuLMqe/VHWZfyY1RSbXT4Klo6ZF6QSI3oUCn6gUQlVi8WNQXi3PLyAbROfcH1qU+h39eLzbysJD+X902xIdLVQGtmUq9Z74rDuH4ESA468pwKxvEoOsblIyAQ2gDlBeg4WOjAhLxQgQytz7dNwY6Glc3+FrzlD/qhvINRM9B9mSvi1QGts59Qs+kbdJkk57fDvQ2j6+O4LwmXgeuhcaQJrj35EfH2R0Ag2ilHXkVvRh0g7RVuD3IrCrK6dfhGnJmZ2/rZe5QuanowOLMFG6SWHSQOuvJEpQ3ALG4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR11MB7573.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(376005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZENJMEhSalk4SGRQTm1lTFJVcnd5c3RqOEZXR0NUbzFjZURTWnFaVVNoZUQ0?= =?utf-8?B?LzFySGpiSllrR1g1TG54cisyZTRUWTNUaWhIemY1cGtiWU9qb3JvSDUzdzFQ?= =?utf-8?B?L1NUNUxjOFE3dnNFM2d5aVNnbExObkdSWVJNVWtrcy9nVUM5Q1F5RGhvN2VI?= =?utf-8?B?b1k2cDNRWnNOZVVGZkFMU0NPWHluVHJSYnhNM1l2WEYzVVJ0MnhVeCt1ZGI5?= =?utf-8?B?SXFvMjFaaFhub2NsSnpON2lLOE1xTi9TNVd6THJVVktJWTVkYkQ1eDRud0o2?= =?utf-8?B?cloxUFZoQTR5NVNmYUp3NGpKbXdva2IySHhxYlp1YWZ6YTExVUlMaW16UmdJ?= =?utf-8?B?SjR1eVF2VmJQMHBmWW9kV1VZTWMxTzRmVUVjdnZZcFZZbVp3UCtpUFh1Z0ZF?= =?utf-8?B?Z0N4L0tuaWNwaU91WHI0TTJBOHZ1K3ppQXpNSEpiK3RYZU5peTkzRnQwMnd1?= =?utf-8?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.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2024 17:40:05.9676 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NnWRoo+ZIFFe6mwlFpuGDNgLtZOfXb9uGkmIXmSXYBSRNaSEPKPwyqErb/DUEVBKGV5vhd75vLwYi4+1s5TQZxa4s967YH7/SkBcV/z3ZVQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR11MB5225 X-OriginatorOrg: intel.com Hi Dave, On 4/11/2024 7:17 AM, Dave Martin wrote: > On Mon, Apr 08, 2024 at 08:24:12PM -0700, Reinette Chatre wrote: >> Hi James, >> >> On 3/21/2024 9:50 AM, James Morse wrote: >>> Pseudo-lock relies on knowledge of the micro-architecture to disable >>> prefetchers etc. >>> >>> On arm64 these controls are typically secure only, meaning linux can't >>> access them. Arm's cache-lockdown feature works in a very different >>> way. Resctrl's pseudo-lock isn't going to be used on arm64 platforms. >>> >>> Add a Kconfig symbol that can be selected by the architecture. This >>> enables or disables building of the psuedo_lock.c file, and replaces >> >> pseudo_lock.c > > Noted. > >>> the functions with stubs. An additional IS_ENABLED() check is needed >>> in rdtgroup_mode_write() so that attempting to enable pseudo-lock >>> reports an "Unknown or unsupported mode" to user-space. >>> >> >> I am missing something here. It is not obvious to me why the IS_ENABLED() >> check is needed. Wouldn't rdtgroup_locksetup_enter() >> return -EOPNOTSUPP if CONFIG_RESCTRL_FS_PSEUDO_LOCK is not enabled? >> >> Reinette >> > > Hmm, if I've understood all this correctly, then it looks like the > existing code in rdtgroup_mode_write() relies on the dispatched > function (rdtgroup_locksetup_enter() etc.) to do an appropriate > rdt_last_cmd_puts() on failure. If no function is called at all and > the requested mode change is not a no-op or otherwise trivially > successful, then it looks like we're supposed to fall into the else > clause. > > I'd guess James' intent here was to use the fallback else {} to write > a suitable status string, while keeping the stub functions as trivial > as possible. > > Just taking the IS_ENABLED() away would result in error return from the > write(), but no suitable last_cmd_status string. > > For consistency with the existing x86 implementation, I wonder whether > we should put a suitable rdt_last_cmd_puts() in the stub for > rdtgroup_locksetup_enter(). > > There might be other ways to refactor or simplify this, though. > > Thoughts? Thank you for digging into this. It was not obvious to me that the changelog referred to the last_cmd_status string. I do not think this warrants making the stubs more complicated. Reinette