Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp124257lqe; Fri, 5 Apr 2024 15:10:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQGqHypMlsO4mhUDUu5DMKSeVT2lo0j9oczG7JIEmIGj3iinRif8W1BmPiX7skvGxq0YcbX67jVsasRHJKAckYnTms9If3cayYdkQmPw== X-Google-Smtp-Source: AGHT+IFcR2ubpiHPwvzEeqypwGbZV3Qa73XePSyhRKAS52pT41xKKXE8TGUR/wl6AWzwClxuxyfj X-Received: by 2002:a17:902:c405:b0:1e2:a077:1c8e with SMTP id k5-20020a170902c40500b001e2a0771c8emr4960738plk.26.1712355027301; Fri, 05 Apr 2024 15:10:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712355027; cv=pass; d=google.com; s=arc-20160816; b=xSNIWJ5Y/rcsfyVtJFK2e5x5qp+3cBQ2c5RV8aiS8lUa0YS++rBzDtmzaSQ+KezmiN yiEGe4sIXprTWttlRltscbA9DEZFVo5blnomM+C3lgRbCTad6IIaTqUaERhL3VxoSiJH HEXn5AQNFFvthlvf0cHwX+t03jtsBrLhM1tLSB9S7kJ61bwDv/iqV+AoAwnG2LljoH8+ uvj13HByfS/pN6GAyE9sHsPIjbhJg2xN/RsPKmz7PccVAgne0Yulg6wdFXijdXJEzS/I r6mp+jnQxNaf7ELPr0j4pkrHN6kBFoEWBPFyfKeO2e2WOw2XXe/eQRFAp7uVi+7vHLdm ecZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=vuTLdDyuJIsA0mUvXwtAZorouX5Y3SqaNdRMyruQWPQ=; fh=JQflHLMqkfVH9FvEf+V6ALINhhEGabcrmV82Y6A5/iM=; b=Z1UNmxjYbI8Yc6G6cgdKDaZ7cqgoRUVRq3VnaIUZcf8KcbMgKOXuW7CAguneYPl+M4 FhW9Qq3N5NLopA+BDbq9+bZaoB7MhHZ5xDvPVasvEg3468VWyRSRKhS0J8ZVNTV4CYzV SzqTNFHs0BYF47K/3UJKyJFyaRJ/MfEKhZP4MZFTjimTxBW2lCBzzNZ/M4s/YLW/LlBd //5EvcFenl8BmQ+R8shhFWKXC2Iu1w8M4wz36J0aHIQDFmEhMbmjIDyVcuIw/of9sNIR R33BcagUNpNzPaduuWOa4w1qPgqyIST4xqY2TwhiHkS9CEI504Xz4lv6oG5nG29v7Ywc pYLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=R4wCSADs; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-133663-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133663-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s1-20020a63ff41000000b005c67029a131si2051091pgk.220.2024.04.05.15.10.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 15:10:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133663-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=R4wCSADs; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-133663-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133663-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F3944283360 for ; Fri, 5 Apr 2024 22:10:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BC9917555B; Fri, 5 Apr 2024 22:10:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="R4wCSADs" Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3732B1E87C for ; Fri, 5 Apr 2024 22:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712355021; cv=none; b=GzHQWq1mC0xZGlFtQRdI6uI+PMWU8HIH87Pv62V5LWwlbtIWyx1WLPvThqKl0Nd5qwJztluu58/A7U+3opcC/aZ8UXfB0gIvWwc4DQViLFaYoCAd0bZuql3fCS0+XkH1lq++Y/FAYyn7SCfiptmWyjp3ttaMMdtKbCuC8DPwR+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712355021; c=relaxed/simple; bh=vuTLdDyuJIsA0mUvXwtAZorouX5Y3SqaNdRMyruQWPQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=oQPxpYKGHioLnQ/FvISm9JAK7gLE7ltkvQxM8iV5wkjMzpkfdANtC4lZmrBcjWY7agQJiJNrlo4w+zP1/7LqJB/kaJmOAjMRBe53ZiUK9PnaVAKPuj1xUA7y+sdoN8AqhQ4uaio4xqDG9lxxYlTI4G6Aat7sPh82pbGC89BUtQo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=R4wCSADs; arc=none smtp.client-ip=209.85.160.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-432d55b0fa9so53841cf.1 for ; Fri, 05 Apr 2024 15:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712355019; x=1712959819; 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=vuTLdDyuJIsA0mUvXwtAZorouX5Y3SqaNdRMyruQWPQ=; b=R4wCSADsTUH/75F3rR+yuv3vIWHR4K276BKUfawkWXOHqIwQshSGwinrBSYoqjbFyL 0sC/rQ6LRLlil6aD9VsquExp2uQ3I/q2znKHFnEzDXgqT492z8/lqR/+krd2y2wTaTVs nyMsrAxwZK6M7WswlB8u/80VWeTtVLs/ZJVa+MaR5IdmXAoaHWN5ZobLSDzr/hRdSCRa hVK80k6N/m7Jc+dut3NNdE2mZglpERy5BZzhCEP6IFJ8OHrTfQboANkDuyFxA0M/UugP l3MEm8CNK7XRYKJzsvHvM7mGI3Cy3QY1c7uNNT98Jpakje42UIorhjUIUJkNXuT5w4cT jXdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712355019; x=1712959819; 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=vuTLdDyuJIsA0mUvXwtAZorouX5Y3SqaNdRMyruQWPQ=; b=ODCR/Gk/CL7tC7LFNF7RuFT8FE2+pkbDLG/Vvw0+wVF4TH93X//sulUU6SxgWYJVG3 h1vo6zOjU2T1pSsmZbSUHqB9QMhCgOO24dZ38pwXfEBe9SMvqZ5znPazGelBgK/RQX0f HYXBmZvuJbKkfVWeN3Sv+vOp7W3rIcev6PMsau8isVvTJD1etS6nCF4DE1vnTkBZmtQS +zeemLREk8zOyamebdUBn1CyjG8HyZzNuGMhDkjhQab5tvX35gv72Bpj8qg8GHiLIyfa F6oOuvtjm4wjW0kC6SrueUx8LQzszEai3sggkA6erOB3kRuIRxJWrPy2Qu6ALTQdhy/Q xV4g== X-Forwarded-Encrypted: i=1; AJvYcCVmQm7Is3ByNO+SanT7cBNCrcgH8iZFWopzk1qGvWDeWKYuBuCPkGnJf1/TtubykDLHhDApf+32dhAVGH3M2xH4aO0TyIaiUg6t77N6 X-Gm-Message-State: AOJu0YxXZ8+xrFwVIzYpri5+N5mtoTDPqFg0QzfxC6ib9VTRP0ownAt3 dCLEbJ/cmdepuAUVJO2TvCPnVCv5WyuHJwvz2x5vhW73bitWitN1aFoD9WobpmXScj8tco8BB+T 6pY4Z8EEk7pEs+quHeYAqwG9CvKz2ljraeefk X-Received: by 2002:a05:622a:1dcc:b0:432:fea5:e3b4 with SMTP id bn12-20020a05622a1dcc00b00432fea5e3b4mr29765qtb.3.1712355019018; Fri, 05 Apr 2024 15:10:19 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240325172707.73966-1-peternewman@google.com> <20240325172707.73966-4-peternewman@google.com> <4a6b1645-c72c-41dd-a455-bdf0ec57d4c5@intel.com> In-Reply-To: <4a6b1645-c72c-41dd-a455-bdf0ec57d4c5@intel.com> From: Peter Newman Date: Fri, 5 Apr 2024 15:10:07 -0700 Message-ID: Subject: Re: [PATCH v1 3/6] x86/resctrl: Disallow mongroup rename on MPAM To: Reinette Chatre Cc: Fenghua Yu , James Morse , Stephane Eranian , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Uros Bizjak , Mike Rapoport , "Kirill A. Shutemov" , Rick Edgecombe , Xin Li , Babu Moger , Shaopeng Tan , Maciej Wieczor-Retman , Jens Axboe , Christian Brauner , Oleg Nesterov , Andrew Morton , Tycho Andersen , Nicholas Piggin , Beau Belgrave , "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Reinette, On Thu, Apr 4, 2024 at 4:11=E2=80=AFPM Reinette Chatre wrote: > > Hi Peter, > > On 3/25/2024 10:27 AM, Peter Newman wrote: > > Moving a monitoring group to a different parent control assumes that th= e > > monitors will not be impacted. This is not the case on MPAM where the > > PMG is an extension of the PARTID. > > > > Detect this situation by requiring the change in CLOSID not to affect > > the result of resctrl_arch_rmid_idx_encode(), otherwise return > > -EOPNOTSUPP. > > > > Thanks for catching this. This seems out of place in this series. It soun= ds > more like an independent fix that should go in separately. I asserted in a comment in a patch later in the series that the mongroup parent pointer never changes on MPAM, then decided to follow up on whether it was actually true, so it's only here because this series depends on it. I'll post it again separately with the fix you requested below. Thanks! -Peter