Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp403813rdb; Thu, 5 Oct 2023 09:07:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEAYHQaXNMWxKyuWicE1rKkve8W0ZtOljHJch7Zwp5fK0ouv0FWYph4xzsWh4SEwyOAR1LE X-Received: by 2002:a92:3409:0:b0:351:211c:fec2 with SMTP id b9-20020a923409000000b00351211cfec2mr5169528ila.15.1696522073020; Thu, 05 Oct 2023 09:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696522072; cv=none; d=google.com; s=arc-20160816; b=EGmvxb2xEDm8wiYF1++yTN0NIX3AM2l1u+HMbS+QK4qH8YGZJwDLmDBCRCHxeGjrwf 3phW9C3zYOpHTJxu0kKo0M0P6yQ7B/nyUB9RP7/7u3vuMUDx9CiM6LYb8JWR2GI/4vsl Kxb/IinqsZsvhTXjZTnQFNyMgSxI1VI7Ei2Rqbz3g+bSLLQoXGEJhlG8EbBE+bYM+tZ6 UWlDRsx+DnhMcZQSIqUy5+lvfzoC1/bURZOQrNH7FDWcc3CkBtcfQ6sjaNozInQSLRa/ ypi8MsZ71va5ozM6YBSbPd0PpzHXMxzeReLDd6EbN3cxvFywaq11d0Fm2LDRmtpSx00D Ig+Q== 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=Ybf0NvxyfgOVHv/GEAtcS44ETu+aNcIhjMUXTQXq/oo=; fh=fdbks9cDZD3nws6fbVmPJcsGIn1evRgsQgeNrttrtE4=; b=Di70cERq8LNmyMb9JsydJi3t9Wbj5mmjbAl5e51oNzGcCRL/UAx/V/c7Ef9FDMQUXR rN5KsluJba5LiFvJga1aKl70ZLLbqylg4HhD4N5xjRnLEE/yy0K/ypXCoBYKu8An/sZc ehWf9MDDCCNCXilb88Ps2M0ssPXpEIgcaA/90tUZL2CzLTygpZkjEO/vLqgl6omxDCvM OkBkph/SIkJmxcfU35lJ7ERytxJMOv3NEKUHid623a8AvrwBSAPXtSh1wyzs62ZinS2/ ollgFsOCHkW/5ps5XLdNRBzapkZpD0yAYLdJpYjHla2JvSmSxozKrlQzcHhNGNqGpCNQ lYiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=357qa53z; 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 z16-20020a656650000000b0057c2f61474asi1628417pgv.290.2023.10.05.09.07.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:07:52 -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=357qa53z; 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 D93D0869EAF5; Thu, 5 Oct 2023 09:07:00 -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 S239336AbjJEQGN (ORCPT + 99 others); Thu, 5 Oct 2023 12:06:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237621AbjJEQEJ (ORCPT ); Thu, 5 Oct 2023 12:04:09 -0400 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2807F2D0F5 for ; Thu, 5 Oct 2023 07:28:05 -0700 (PDT) Received: by mail-il1-x12d.google.com with SMTP id e9e14a558f8ab-35137ab766dso105935ab.0 for ; Thu, 05 Oct 2023 07:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696516084; x=1697120884; 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=Ybf0NvxyfgOVHv/GEAtcS44ETu+aNcIhjMUXTQXq/oo=; b=357qa53z+AAunQ8oS3QXRiObclCY2UhybS3AxEnWS74QqMf9qMduUuUhQnXT7QYlKC gQ4DHE8YGflB1cSJ07i4vFdk6zbM1OKAyfrY+6RC+TeFK8yhboV8HONlvGGS44kOIMUP 34tnCc7cYnft3IQlPNXO3TZMHbHbTksOS0MDmnXRE43kSyHgd6QKCwJav4CKi6bseg/b PR4YpK4puUMtQHxHAcjmzThNycNH4ItR1paTBejvJkXdH8M1SQwbnoEosJf7+ZOHuS/G Vj/p724bFZ0bGMvCemUpjxzHu/hSz+DeqANCqBmN//ZwBATvtvTlwD6Uf4n5B7LY5oJJ BQiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696516084; x=1697120884; 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=Ybf0NvxyfgOVHv/GEAtcS44ETu+aNcIhjMUXTQXq/oo=; b=U3vmCKofsBEeNLJ2DjD7JDvog7zi4/k6fSHHGEdzTNTRsSgc8/DQGTTcadX/c6yCkI mA8bU0+3LU8lvZnRS0gqbE2iuVnnZcCTgt+wGZBdP66OJXS2nDvpMOVxELHf5vpRukzo Vcq430fKX/BacA1M4L6NdQA77qbc98uu82IQCPTjx6w4pa9nUwqZ8NlcJk2Qo0Uiyu5n dNuLyhUHk3N8d5m58GYNScsHWJ2P0lXxkCJ3hB9PkWObXojw3k5v5AN/IziEYAWd3Txa 4JOZFGF7GSLyDwdJnLMyxi8hZxCYyo5z+PisZiDGC4cbCIHY13ZR0OhTguMNcz0jcu+Q 4spA== X-Gm-Message-State: AOJu0YzdClAoXwRKjVYlLr6MbQZh2RXtBpN0bfA/hESQUqCKIE4t8tRy IZvGk4AuNRG5PLk1PG/3gV6mFkZ3FBtjNCY3uPyCxQ== X-Received: by 2002:a05:6e02:2141:b0:34d:f90f:d42a with SMTP id d1-20020a056e02214100b0034df90fd42amr124815ilv.1.1696516084281; Thu, 05 Oct 2023 07:28:04 -0700 (PDT) MIME-Version: 1.0 References: <20230928191350.205703-1-tony.luck@intel.com> <20231003213043.13565-1-tony.luck@intel.com> <20231003213043.13565-2-tony.luck@intel.com> In-Reply-To: <20231003213043.13565-2-tony.luck@intel.com> From: Peter Newman Date: Thu, 5 Oct 2023 16:27:53 +0200 Message-ID: Subject: Re: [PATCH v8 1/8] x86/resctrl: Prepare for new domain scope 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_NONE,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:01 -0700 (PDT) On Tue, Oct 3, 2023 at 11:30=E2=80=AFPM Tony Luck wro= te: > diff --git a/arch/x86/kernel/cpu/resctrl/rdtgroup.c b/arch/x86/kernel/cpu= /resctrl/rdtgroup.c > index 725344048f85..04c164f6d39d 100644 > --- a/arch/x86/kernel/cpu/resctrl/rdtgroup.c > +++ b/arch/x86/kernel/cpu/resctrl/rdtgroup.c > @@ -1345,10 +1345,13 @@ unsigned int rdtgroup_cbm_to_size(struct rdt_reso= urce *r, > unsigned int size =3D 0; > int num_b, i; > > + if (WARN_ON_ONCE(r->scope !=3D RESCTRL_L2_CACHE && r->scope !=3D = RESCTRL_L3_CACHE)) > + return size; Thanks! Reviewed-by: Peter Newman