Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp403891rdb; Thu, 5 Oct 2023 09:07:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0atO2dh0QeL3Ydow39vb7RAe+21QzgC/xJqzFPnuZe37DkSgKeaie5FI46NRiwrV86+hC X-Received: by 2002:a05:6a00:2191:b0:68a:4261:ab7f with SMTP id h17-20020a056a00219100b0068a4261ab7fmr6132183pfi.31.1696522078696; Thu, 05 Oct 2023 09:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696522078; cv=none; d=google.com; s=arc-20160816; b=F3+xvqX7g0MIr7pa0H+DEjD/gSxVrVW/rlQ6okec7KDi7wo4LfYipdT9VuZO5PnLDc UK7FKdMOW7uh1nQrDuKXi3MnkVvw6tz5JUIJ/ZooztZ39eLzaTzfsJTFUXiZDPp9XEFP oKp80do6KZNFHmwZ1ufhyWhEGLRWp3tHfC0eelb5lU08Z9tCLYDvObbtUPSZk4wn/PVb TlBPnwUJ4/SXmIhcUTWVf3gGj5CVc32CP6TUCDummIwehBjrP46mP8HYRuvVnjYnRS9c MyLqsIIDAYzeO4oiUpEzxMD/Ouvswa/DXKVc8sB2Lp4Qi3F2I8XpUCWPIoBgLvVGDqhI BbDg== 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=kyGuZr+XMILOMkbkU/tMvucLHAoMRZjE0tey9bhv3AE=; fh=fdbks9cDZD3nws6fbVmPJcsGIn1evRgsQgeNrttrtE4=; b=LKQfabeqUJde8cKt5di4R3xvd9TsBQquazGoMOmEqSqbRysbnEsx3HaHubWTY5F5cI sG+wbvX+cshfgktpNy9oN1ntNkpV/ph05Fsi6fQC113ERVqFrsZGkvmPOX72Z32uBafh Jph2pFc5qiYO8mxtHLv5dP2r8SyGR15AXsVKfLNDtEaOSlTq0rygP84nkMEv16wFeykY fTqwZ2ZWss24DUePEgI1MQRUijn+zTrAes6t2u4gb9bmiVI8qV63k5R6UHscmgzWYIGc 9SNk823avsgw0R2owyci93gQFhMcWmNDcEZgBuiKbgjG9n5KaoWW8aMojH+6q9AIlGPa uoDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=YHZQ2fU6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id i67-20020a639d46000000b00578f4ca8b8fsi1703284pgd.260.2023.10.05.09.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:07:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=YHZQ2fU6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5067787C01B6; Thu, 5 Oct 2023 09:07:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240335AbjJEQG2 (ORCPT + 99 others); Thu, 5 Oct 2023 12:06:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237635AbjJEQEJ (ORCPT ); Thu, 5 Oct 2023 12:04:09 -0400 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 363482713 for ; Thu, 5 Oct 2023 07:34:41 -0700 (PDT) Received: by mail-il1-x12f.google.com with SMTP id e9e14a558f8ab-3514ece5ed4so89595ab.1 for ; Thu, 05 Oct 2023 07:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696516481; x=1697121281; darn=vger.kernel.org; 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=kyGuZr+XMILOMkbkU/tMvucLHAoMRZjE0tey9bhv3AE=; b=YHZQ2fU6Zn1lRAMgcB6OeZpYphp4nPm65uPX2/8SviBg4DKpLo6BgQXdJ2blFLNPrG 6tF9cG+Eerc/FAGOOZ7rAwDuJ5E6DwGWdHIPcutMEVp5zRMvZyLAWga6WVdc5MDFWBI5 vr9l6QskDk0q0AzAv6EoAyLGG/j5nyOVL+5TNaSGW+oU7LRyLrBjFUsEZQdBWHKXWD4I LNOHEWIacPKx7nVJYYe8KfPlVsTBJh7ga/HTfSHNpjonVUMK8TQUjIKqVZwERghtt7Zg bPNsMZKOmR/LhbwC2Ejvc0s8GXRZe/81sB390Nd8TF386M7JeJfi8T4b/uRrag1DEAf+ iP9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696516481; x=1697121281; 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=kyGuZr+XMILOMkbkU/tMvucLHAoMRZjE0tey9bhv3AE=; b=eNf48RqtWYZJwLGBMvQExoKdcq4lAudlNG16uyXepkmL67R674WC+82CfvyTdUgSE5 M/RFqFyJULDjjReGhXwhwYmu9UeOGGzex2M04HsBow5u34HwoLl1nYsqExCBf4+sNA8a R8lkKQZz+u4d4ccJ3mUBFT8oMLQveLs4OvQWHONb8kGIvGr7rxWCtdmtUzqTe+WfBJmf Mkgrc3HWa4MoBkMqrdbDc04UGACrGjak/utFQKGKRSak6qNuu5DvUHuBfel/lgji/ud3 p3lDwxASn7Yff5DltqWh6bDI+IG9gyr4HnbcpExW3FUU4NJQ3k5QmJ3KdDbSCRVVa5qA WAxA== X-Gm-Message-State: AOJu0YzY4TUjXJCntnS6kMpoadkSxk94pT+rLovBdOUlkAid0M319i1+ RNuCm5eGZ3wYghXOAcwkQZEwYWVwtCi+cLGCq8xBfA== X-Received: by 2002:a92:cd88:0:b0:351:4bf9:5b15 with SMTP id r8-20020a92cd88000000b003514bf95b15mr125550ilb.28.1696516481042; Thu, 05 Oct 2023 07:34:41 -0700 (PDT) MIME-Version: 1.0 References: <20230928191350.205703-1-tony.luck@intel.com> <20231003213043.13565-1-tony.luck@intel.com> <20231003213043.13565-4-tony.luck@intel.com> In-Reply-To: <20231003213043.13565-4-tony.luck@intel.com> From: Peter Newman Date: Thu, 5 Oct 2023 16:34:30 +0200 Message-ID: Subject: Re: [PATCH v8 3/8] x86/resctrl: Prepare for different scope for control/monitor operations To: Tony Luck Cc: Fenghua Yu , Reinette Chatre , Jonathan Corbet , Shuah Khan , x86@kernel.org, Shaopeng Tan , James Morse , Jamie Iles , Babu Moger , Randy Dunlap , 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_BLOCKED,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:07:09 -0700 (PDT) On Tue, Oct 3, 2023 at 11:30=E2=80=AFPM Tony Luck wro= te: > > Resctrl assumes that control and monitor operations on a resource are > performed at the same scope. > > Prepare for systems that use different scope (specifically L3 scope for > cache control and NODE scope for cache occupancy and memory bandwidth > monitoring). > > Create separate domain lists for control and monitor operations. > > Note that errors during initialization of either control or monitor > functions on a domain would previously result in that domain being > excluded from both control and monitor operations. Now the domains are > allocated independently it is no longer required to disable both control > and monitor operations if either fail. > > Signed-off-by: Tony Luck > > --- > > Changes since last version: > > Initialize the "type" in rdt_domain_hdr when creating domains. > Check type has expected value before using container_of() to > get to the surrounding structure. > > Rename "hw_mondom" to "hw_dom" in domain_add_cpu_mon() and > in domain_remove_cpu_mon(). > > Add lockdep_assert_held(&rdtgroup_mutex) to resctrl_offline_mon_domain() Thanks! Reviewed-by: Peter Newman