Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16102938rwd; Mon, 26 Jun 2023 05:56:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6nYH24O+fHmODrIpzpNHEkA4C//GdciByEa2i4E3sz+5uXAGRXyTsJqBtOT7bZAnk5Trbb X-Received: by 2002:a17:907:6e87:b0:987:86b8:9cdf with SMTP id sh7-20020a1709076e8700b0098786b89cdfmr27407195ejc.8.1687784213638; Mon, 26 Jun 2023 05:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687784213; cv=none; d=google.com; s=arc-20160816; b=ss/DObXm7yb+3XtxzzfxHelsWDXfZvcTm5zUwDfhRsxHvW1igBjrgJS2ynfIYS47eR GdzcboETgsUksBYbMWJW2cKz9rpSL32i1Epv+QMX2QAgSdCEq5s+CQX4GhlLO3P+nMCY F4/ykalE5DZ6ffRAP+l/x+2rwbvoG8rbKRkAeMXHDfMarMeH8y0d/O31WqJS+7c92ZWZ l0QGkiA9kLJa/rkGHk151V1CsvI4PnvRY7MJD0KLbME3X7rE91bCtWYvxd29+jcGDfKc 2eR/fE0xYbCIIuNx+NEQpch2cxZZFMHFyIWRQVux7Hz0WCrKqwei/f+mT2MOLHoDFCyT icgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vyEDqjnLut49ARt31W5hpg3PmjCUAUxnPXi+41gN+q8=; fh=z2rFoH6z5HZRZ8EKQ4K0ZyP/1CnuWYdw/eo9sYzDqFU=; b=S267RbsZ8k6u1MM34WgIc0C18jv43pjVoZgDrDMM6odTiwn0hNsdfvzC1CKHXeX5Oi DJJ9uIGZgKAzwAODB9f4gl7qtxQ/ndK5L7rPuPNKWc51/K+mCyFDNrTVKfoaZMrZz8oc FnSkwOPqNZLwE5jAlVRyAM91ZHcYCDm5g3+67OQlSH/eXBzOup+9UfC55lvtLSD8G07t xGT9WbAPVBvF5YV2LHe9PmP8SMicNSleLjdOSDPpYQ81ov6dLhwrTapDqCWFacD2CVZP B2Pqfnfv5JxrA7lyWaLYuzp7XU7fPkIF7rZKGuhl04cPkqC42TYt9pCjj/kI2EN1txN1 l8UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=FRdAoSSh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i21-20020a1709061e5500b00991c8ce54c5si975581ejj.178.2023.06.26.05.56.28; Mon, 26 Jun 2023 05:56:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=FRdAoSSh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230474AbjFZMtO (ORCPT + 99 others); Mon, 26 Jun 2023 08:49:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbjFZMs5 (ORCPT ); Mon, 26 Jun 2023 08:48:57 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1C2410F9 for ; Mon, 26 Jun 2023 05:47:53 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-4007b5bafceso397711cf.1 for ; Mon, 26 Jun 2023 05:47:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687783670; x=1690375670; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vyEDqjnLut49ARt31W5hpg3PmjCUAUxnPXi+41gN+q8=; b=FRdAoSSh5TQTJl4OqCbbCHsE22mVG6Ok5OCrn5MKeK9kHtq19PJVM8DiZyrC3F9WR1 m+sAiS7q08Pg26fdbJNUqSUEvU4s7vs3CerZVVemANxcC2JLYHWTTPU9KKFyUOaP9Dhi 2RuzdRpWzOs57WG+Ych5/DQx5tsVNKd23Fzhgrqoc6UULqtnmt+RZ/DGUkN4Sx/rqLr8 LcB1VJjSnUFrmUQOx6Mze0kNLJnuoaruY7QRt52ABqThUO8APi9mfloEAh602SmPLt9M TbSIGp5jx/iyXRjh+1QT75JKoBGehEg+mDrDwjLHPWke4MMOAWkb/K/0b0WVJQx7YLGu +nVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687783670; x=1690375670; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vyEDqjnLut49ARt31W5hpg3PmjCUAUxnPXi+41gN+q8=; b=FebRTYIFjAekceOTEWjA8YnkPkOVoqUIMqLTd9jhNnvGtqJdfkpNi6PWJSXxggqwM8 G850AQwFB/d7KuuohJXc+wbZTRqRRcrXrICJ3NMyX8mGefsSMQPlHaQlmfV3gAPW7m7O yomJ3x+pARsUlMGiOPhGgkyncN6mUfycQwC6oN7b+zaaCxVZeRLYUiGAcTwiG7woQthZ 76tmDK/Av+mv5L5rk5/28Wy7OxqlfOrGroS8N1ElE5ul/VG7pNgWqyo1IaP4HRzgO1wY E9Xn3jakl6Mvv2L3/h/nEt1izEb/jg1PIvu7xHAT+VT5tBbDRqKEL3sVAFwInBfGTuAd lXJg== X-Gm-Message-State: AC+VfDxzHIxZtbVAERbBH2K+tMJQ6FpQYeDwgyM97gEQGdN72eTxq0Eg zK9FiccJ4bBwjxnqCP+rlnfeYaVUgrif3EOzv5hdEg== X-Received: by 2002:a05:622a:134b:b0:3f3:75c2:7466 with SMTP id w11-20020a05622a134b00b003f375c27466mr334768qtk.8.1687783669742; Mon, 26 Jun 2023 05:47:49 -0700 (PDT) MIME-Version: 1.0 References: <20230621174006.42533-1-tony.luck@intel.com> <20230621174006.42533-8-tony.luck@intel.com> In-Reply-To: <20230621174006.42533-8-tony.luck@intel.com> From: Peter Newman Date: Mon, 26 Jun 2023 14:47:38 +0200 Message-ID: Subject: Re: [PATCH v2 7/7] x86/resctrl: Determine if Sub-NUMA Cluster is enabled and initialize. To: Tony Luck Cc: Fenghua Yu , Reinette Chatre , Jonathan Corbet , x86@kernel.org, Shaopeng Tan , James Morse , Jamie Iles , Babu Moger , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tony, On Wed, Jun 21, 2023 at 7:40=E2=80=AFPM Tony Luck wro= te: > diff --git a/arch/x86/include/asm/resctrl.h b/arch/x86/include/asm/resctr= l.h > index 255a78d9d906..f95e69bacc65 100644 > --- a/arch/x86/include/asm/resctrl.h > +++ b/arch/x86/include/asm/resctrl.h > @@ -35,6 +35,8 @@ DECLARE_STATIC_KEY_FALSE(rdt_enable_key); > DECLARE_STATIC_KEY_FALSE(rdt_alloc_enable_key); > DECLARE_STATIC_KEY_FALSE(rdt_mon_enable_key); > > +DECLARE_PER_CPU(int, rmid_offset); > + I assumed that declarations in this file were those needed by __resctrl_sched_in(). Now that rmid_offset is used when setting PQR_ASSOC, would this go somewhere else? Other than this and fixing the MSR update, the series looks fine to me. Reviewed-By: Peter Newman Thanks! -Peter