Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp203533lqp; Thu, 4 Apr 2024 10:36:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWOQ1WweQBsjk0zbuuuMrbDOilLFUFuiBb3Gzv9Y74FhcbOt74eJV2zegmc4pQgHRX9xEr5dwTJcVPRNbYkqzioxSpRFsdbDAnSTT12g== X-Google-Smtp-Source: AGHT+IFjAPN9XjGnCEy+k/5L6ZCXud14x54MDaO1VX5CwYLhPJPyRwElNivLdqLeTd2cs6TYxLfP X-Received: by 2002:a50:d71d:0:b0:56c:6cb:e7ad with SMTP id t29-20020a50d71d000000b0056c06cbe7admr340961edi.9.1712252210139; Thu, 04 Apr 2024 10:36:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712252210; cv=pass; d=google.com; s=arc-20160816; b=oHJ6aY+Y1960hmzppiVJ0RBivJS29N81ghrL8oFO65oTeU4jogLfL4QBtOaXfp7mFg hhG742Vbfv9yhRL7494o+VYQpwLUYkbMp0daBRz23mscI0MdfdIhp4FZTfooUOSWg2sa QVaaew/OoDL6zCLD4UpcMMegu/Avpu0IKqpe2glsmIpv0H8Pur5bf0bxvDOKCVRKst0/ nyud5WSB3GSuc+hp32x0t6Ta/iDHM27Mm6tT5iSUnWJD3kaoiXxw7jP8bzpaessYScqV tMfwvdh7sppVhJyI3z4yJ3CuAMXsCp/styJRUiDmxcheSFeOlwS0cdqe5kUpjxlsN2pb efUA== 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=zPtPmk4XGACn56oSm28VjAIkdBAQmqYVb7YBpev1rDU=; fh=25+uIxHnuO/Gm9AlQxob3CZSJIbDZ3lSSvxeHqmvG/U=; b=BGaRKPPb6aHduPG2GCIuUR53I//TQwo0lXvZfmSRdO5tzSO9f7xUG9m9EroCbk4/k3 fTxSHytNyxYrsIMVDIsvCGP9eFG5RexvEwxC3qKR1+W/6hrV3ZiUWEovl76omRR05g3X BZP564yIemeIqKM1fp2M7uFy55wzrcNxmFl/h4dwSre0NDX/5xTlHKQhcYwgf8ccDz2N LIspixEuN9RWSlW4m6ibRV/WQQ+SrllLTqV0+47JOyEZ5qz9d2DNlS5SdwqK+TdUxZyd uIl3KKHlGyV8eGJqS2V2UXlwess6+MUBR9GMaTVLJZbJt49pYOMsCdY4HCK5zgpWeCc6 U/Tg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="qvFJ/IdK"; 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-131894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131894-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m9-20020a509989000000b0056739aba263si7782816edb.440.2024.04.04.10.36.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 10:36:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="qvFJ/IdK"; 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-131894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131894-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D34B91F2BF10 for ; Thu, 4 Apr 2024 17:36:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2296012DDA4; Thu, 4 Apr 2024 17:36:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="qvFJ/IdK" Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (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 D039086628 for ; Thu, 4 Apr 2024 17:36:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712252201; cv=none; b=iVpLSEmZN9KHhlS+GD76hjTiw8eApF/gYJjevBdbKJV6HRrpizSNPOXRiAmwo47B7vk9AXmOUf5kpJLZ6kRHVpTOfgzq6O9Arge6vfdwEaZJap/0zVPAVuNePUpq+WpVyphgaI835duPi9xsmttjlkSOpFOsL5v8FUpz2b9Vl3M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712252201; c=relaxed/simple; bh=zPtPmk4XGACn56oSm28VjAIkdBAQmqYVb7YBpev1rDU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=AoGUzoh/2sKfruWrjXf08YzxnNsTlooCwzgEK/tNCYujQ/AG9MnIBHtlfNWf+FEgtw9zIc7cV7XjjIrktTdHxbZqltbYBS6GvhWAwEDNBgaUC6Fl8BoUHT49pYFuuvS/e0MEp+K2yy/nCc3K+UaNDVFbsYrqKdYKzQd7rQ6iiJE= 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=qvFJ/IdK; arc=none smtp.client-ip=209.85.160.174 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-f174.google.com with SMTP id d75a77b69052e-430d3fcc511so21361cf.1 for ; Thu, 04 Apr 2024 10:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712252199; x=1712856999; 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=zPtPmk4XGACn56oSm28VjAIkdBAQmqYVb7YBpev1rDU=; b=qvFJ/IdKpyeA9vK9kI448/47w83/GKasbI5y+AUOzBRxf5YlCZei6HSk1M3tVYf0N5 lSzG1Gq9iSJAeQrPzfXmOY20kkZDTzIowzV5Tj8VwjyIXPPD0uEVEROYXJsyBUYqf3Gk 4ig1kKWBjMIpM/r+bl3r6TZQHojUQHb93GIzgJULVCvGUS/yjFZXXqWB3uGuvYQzFR0l Urqs5W5cXy7R4IB5qklpn2Iss89YGTnF5MvIdUrZy/viwVlfqOw1Tr7oU04lYb6iGNh7 UoPtXQ1ZlJJaXz+047BlHpmxDxMcYgcssPbo8NdT43mUcqxlocbqdmxeCRvMfa8o0Msv tvOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712252199; x=1712856999; 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=zPtPmk4XGACn56oSm28VjAIkdBAQmqYVb7YBpev1rDU=; b=ATy2Zcn5PUAFyYaMULXEPfXww+ysyUDaiNp1tazqOTzLzhofixAQnWYyywoe+WlJwm 7xzXZ5MA829A6FeMHyFhohjNJPvJCaeNKzjvLK1Cmf9h5SgYwPV8/xxdJ9Pmdoa2y7p9 xQMg0fENPa3dO/cjrVu3aExt1pYDi/yNJGpvQxLu7RoMeyiwXXauTh0bwkXas8+6fWSV 5SJ9hehfnTKH1ovfbvmmaSAY76T7upLU4pOEC69jn9w1qiWJ5qRO7dSekW3aO3iiqkD+ nanPQv//3F7xk+t1syTBPDfHEdgM93/lwL6TJJDvdWeYB7m7QOcds5Mzwk2eKFP0euPY 7U2g== X-Forwarded-Encrypted: i=1; AJvYcCUtGiWdM/6Sj+wFkuagf2Z/vCsxCMBJcsw4gOJexNEz3Z88BAmdh1KntDfxqbYtldVEf2l7nPUo1Iy/xO9826WnP1HirBI2nJ8gVWwa X-Gm-Message-State: AOJu0YxSGSC1ARNu06/hAU8AUOZsBi54IOgt70caNim0rM1IQDfVr//W pfKrwmPKxykWRhabnApZRpKC1tjEMtopiJ2W4IQMl6HrEZg5mEAAvG1H1kf55yuqZ+8TD5BFQwi vt31u9Lg/EivZl4F1ynakgyp0n6GPlfkS2g8q X-Received: by 2002:a05:622a:424f:b0:431:8176:e4e5 with SMTP id cq15-20020a05622a424f00b004318176e4e5mr218275qtb.13.1712252198544; Thu, 04 Apr 2024 10:36:38 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <0db75c94886da62b8da498ef159d8fe27b0b3811.1711674410.git.babu.moger@amd.com> In-Reply-To: From: Peter Newman Date: Thu, 4 Apr 2024 10:36:27 -0700 Message-ID: Subject: Re: [RFC PATCH v3 07/17] x86/resctrl: Add support to enable/disable ABMC feature To: babu.moger@amd.com Cc: corbet@lwn.net, fenghua.yu@intel.com, reinette.chatre@intel.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, paulmck@kernel.org, rdunlap@infradead.org, tj@kernel.org, peterz@infradead.org, yanjiewtw@gmail.com, kim.phillips@amd.com, lukas.bulwahn@gmail.com, seanjc@google.com, jmattson@google.com, leitao@debian.org, jpoimboe@kernel.org, rick.p.edgecombe@intel.com, kirill.shutemov@linux.intel.com, jithu.joseph@intel.com, kai.huang@intel.com, kan.liang@linux.intel.com, daniel.sneddon@linux.intel.com, pbonzini@redhat.com, sandipan.das@amd.com, ilpo.jarvinen@linux.intel.com, maciej.wieczor-retman@intel.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, eranian@google.com, james.morse@arm.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Babu, On Thu, Apr 4, 2024 at 8:16=E2=80=AFAM Moger, Babu wro= te: > On 4/3/24 19:30, Peter Newman wrote: > > This looks like it would move to fs/resctrl/rdtgroup.c where it's not > > possible to dereference an rdt_hw_resource struct. > > > > It might be helpful to try building your changes on top of James's > > change[1] to get an idea of how this would fit in post-refactoring. > > I'll stop pointing out inconsistencies with his portability scheme > > now. > > Considering the complexity of James changes, I was hoping my series will > go first. It would be difficult for me to make changes based on transient > patch series. I would think it would be best to base the patches based on > tip/master. I don't need you to push the patches to the mailing list based on James's series. I was just asking you to try building locally on top of the refactoring changes. You are putting in the effort trying to make this code portable (i.e., inventing new resctrl_arch_-interfaces), so it would be sensible to check your work locally. However, I am the main stakeholder who cares about MPAM and ABMC working in the same kernel, so I can continue to give feedback on portability as I compose the series' together. -Peter