Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1151704rdb; Fri, 9 Feb 2024 11:51:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX6fOSxAfcAAPrzZHE3tPbgflJHW1VMgi/r2HMGm/0rbZKZg/iekOg6QuW6Rx2qwnhqmois+BVTMujt8ZkYKpZfkWba7WKboTwAUMREnA== X-Google-Smtp-Source: AGHT+IH5VqRWJxudNXjAB6bptMWpqdcCqIzTVSbqxaxZLPU3oRXrMpcvcrm0ShBzbV1hZcO+YUmT X-Received: by 2002:aa7:868d:0:b0:6e0:6f53:88a5 with SMTP id d13-20020aa7868d000000b006e06f5388a5mr179734pfo.6.1707508280145; Fri, 09 Feb 2024 11:51:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707508280; cv=pass; d=google.com; s=arc-20160816; b=a7RDh0DxHMxsbdfkQrzfgqPYK3D5Vp4axk5GPiAwZkkWBw+xuBS/ckzDYZQaLrsVBT GB2DPL/UAbwK6iEjxVl43gdR677vZ13jrt571tAMWVVVG483J/CG4DH6prFplVO/1/r3 pwbv0tiD33lB65Nphy8/sHsqg03AOKgg8Ju9Kcj3Y4dmvtSSpldF/D7VS2+NhFhAf2w6 selx2tl1LKhhx0rUFI8vZxc7viEVGHmqbvSgSHog5yKgTKYdQ0v/TBDm3ll8ZhCzlbgC eNiQFP53uGJ7bJDEbPJ7KIUmsTIbwv8D3V6vjaq+r+lSJHCAMl6/5RTLQjjpnMoDBtmf pIiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IvJXVXUqc+A0UETel0emKxyvDqNsaZbKzQBSMmFtwec=; fh=IGYRIYYsNxg4yWTx8cS4NZ6OeHGaG2s4lJg05M0Twg8=; b=tN3a3T/DqU9UX4Ojy3IuwfZGKl4Inf+1UNdYTIZjuKHJBME6KZ3RzcHXdptsq18WTM uDkBlg7w7HKyrB1rtUXCz7sJ/9kSuyNi2pUVXHK2R0QRV+99uhHmWYqRMGRAT18jDQu7 PY0U4uyBl0SFIA9Ig1PVyoEeoZXD/WuqvhgFmilkkBOT0K07uHw8CgYH0gSF9qBjCail qspdZBYctyz9TBIcgv5vPLv2AD57G42Dj64pt2VvAhEKwAhOnbwlxLPiSs5HQQ2qvcwm a3jmO+SgxJKgkixznlEJ1mIc5gneQSNm0ZgYHKed7Lj6/foar3iP1SDWjJMl9WWtTb/T xmcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZbcER6GM; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-59868-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59868-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCVPz6c7CShk+YRTX53j6GA9vzyFocCy2dYqkJSBl36zjSk8cCL+BA4+BBZBVnDGRUS34h0d4rFt5T5egNbMBt86XfStCPvChWhqncCmlQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g6-20020a056a0023c600b006dddd2876dfsi816290pfc.295.2024.02.09.11.51.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 11:51:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59868-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZbcER6GM; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-59868-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59868-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 32093B24D89 for ; Fri, 9 Feb 2024 19:23:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C82B82D76; Fri, 9 Feb 2024 19:23:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZbcER6GM" 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 8FBB07F48F; Fri, 9 Feb 2024 19:23:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707506628; cv=none; b=VQ1b4r8Cso1NXgOXu2hl+b8WOKbPeI6VcETqujGYZbnWH/+0LbzHBzjdUqGxE9yaRku/aQ/PD/CzD+pRJveZMpPV4gCqRb4p1SjFJUZ+s1ki+i4/xnek4/STFcpBVKKwhkpFotXwovkgXukYzTEdh+vF8vzjFHtpVgsiOb8PXKU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707506628; c=relaxed/simple; bh=WC9tRxWrrOmUk1nUbdcPHKUUN+d2WwGkjgKMha0qJoc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=G53OOqAcvYiS4lr8EBxgU+yvUWLLTRtbVTvUUMKTrNin9fiTgJZAnNWPZwcgUOpQaV9niszv9hpeWHZhFMHQ1bzoXG4kxheA8p2MEagPtNHMUAfski5ABxIhcD0dtM1ncQXmEVYEIFFCNaX+j83m0xykldCYw5BswZKuabBcv/U= ARC-Authentication-Results:i=1; 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=ZbcER6GM; arc=none 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=1707506627; x=1739042627; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=WC9tRxWrrOmUk1nUbdcPHKUUN+d2WwGkjgKMha0qJoc=; b=ZbcER6GMB12IJCFECEDP+DhN/nfiRdaaVJQX2YYIErrhjiaoDfeJ7xhc 3MioLNIrUx/MwHL+qK2gut8YGs9a4DgPCadutjG3OQGypuriLh8NoVnmv vrXGnJRfxt3+JRlA5BEOuggfIzqV0hEcr3d5wr3GtN8KaId58qDQNFluy pCMSIyspRDPwyBTCIp1g/kIpYN1/urAD9Q+xD7mWZLHF1c3oXsmYczMGL BoqXVfPfIVD/2JJh38l4Fs8EbrbGaIRdZN6e07Mr4mx3789J5cS0tACLE AoEtOYXNxiuxx8EeamleGwuZR1r84lnmk0XPEwX+P7JLuTFPZ09+I6/bm w==; X-IronPort-AV: E=McAfee;i="6600,9927,10979"; a="1395672" X-IronPort-AV: E=Sophos;i="6.05,257,1701158400"; d="scan'208";a="1395672" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2024 11:23:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,257,1701158400"; d="scan'208";a="39452963" Received: from agluck-desk3.sc.intel.com (HELO agluck-desk3) ([172.25.222.74]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2024 11:23:46 -0800 Date: Fri, 9 Feb 2024 11:23:44 -0800 From: Tony Luck To: "Moger, Babu" Cc: Fenghua Yu , Reinette Chatre , Peter Newman , Jonathan Corbet , Shuah Khan , x86@kernel.org, Shaopeng Tan , James Morse , Jamie Iles , Randy Dunlap , Drew Fustini , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH v15-RFC 5/8] x86/resctrl: Add "NODE" as an option for resource scope Message-ID: References: <20240126223837.21835-1-tony.luck@intel.com> <20240130222034.37181-1-tony.luck@intel.com> <20240130222034.37181-6-tony.luck@intel.com> <6628954f-c7e9-4040-9f03-7b5b6a6d082d@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6628954f-c7e9-4040-9f03-7b5b6a6d082d@amd.com> On Fri, Feb 09, 2024 at 09:29:03AM -0600, Moger, Babu wrote: > Hi Tony, > > This patch probably needs to be merged with with patch 7. If it just added RESCTRL_NODE to the enum and the switch() I'd agree (as patch 7 is where RESCTRL_NODE first used). But this patch also adds the sanity checks on scope where it has to be a cache level. Patch 7 is already on the big side (119 lines added to core.c). If you really think this series needs to cut back the number of patches, I could move the sanity check pieces from here to patch 3 (where the enum is introduced) and just the RESCTRL_NODE bits to patch 7. -Tony