Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp304280lqo; Wed, 15 May 2024 15:25:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlm5whJrtDUhOEV2JddW4nDYHjF94Ux3KDQyhZELsgipwGGxEZHjunwJS8WnGR03azubLFgRTc81tAh3Mvak3MlN3QxolpxDT6eMjLzQ== X-Google-Smtp-Source: AGHT+IFqub1yX4app+LNUTaaoH/hpZUWcmVRknIgGNK+qBnlIurjkOciine0c8Dn1pIfkNuIQuMy X-Received: by 2002:ac8:7d82:0:b0:43a:a813:65b with SMTP id d75a77b69052e-43dfdaf4432mr174671651cf.40.1715811903239; Wed, 15 May 2024 15:25:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715811903; cv=pass; d=google.com; s=arc-20160816; b=RXe8h7oPEnn9BIvb0Sqhuq7/hFd8idYKVIVxaF5KdiqfJPBzrKIJzjpk7831kBa+Gb fGjLI8X7PaBFKVCs8vcJmRf3+Qz06dkTA8Y0i4NAEVa0t12qRouFNisdOi+WgCWoK19i Dt008urpcnFnshSu2pUQU33/wK3QE3VHpdYsY9hIbMh2upABy36JVykj9WXHs+m4HOxh PQMqLvfriPT4hX9wRq0lbkXP03qgN50jbQ6OsqCon4h9n/AyTQsTuoSsQZ2Yieihf653 E/8QkULNU9yKX2c62WQExPBSkAuv1Ud3CX0Hi67VQaVBiNTmrGkV7GkOM8cwYNJZHO7D bMGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=8zSryJWIxxX3fs77/qpSCMzSry38lTnBsS8++hO2k7g=; fh=qTx768JYq6oxdX3jfjUzjJGF83d0IKGtQzHdow3lchk=; b=P37eMtbY0kPrYrVzPXI7nekHCNH6mLdoSaGhzuScYZfOgYdTsKe2sDLBBs8Oj+gRHt rAaQM5akG78sS/UruFDlVQmm2G24zvf0HUzA4PM2rI4ss8ahjeqKn20f+UHhp+07Fm5a KatmbKllbq1ziNkv1iDHC+nW+hXk1DI2d/OJnF2Rcm1GH7qHaD0aV8HwbusPEzHqsbU9 JktjBBDdgSuG0psPVxGy5qYz0TDjhI8p7yb3g21SCK/J+kcizSVj2PRuJLHnHYGucMTK SBUdcNcceIRanqcfHU/nShNhuh/N3h342j/rksmrGnKeT8Wl/+1WydXFoO4scFMb0ff5 6Jng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aVWobm5s; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-180433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df566f678si148533101cf.246.2024.05.15.15.25.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 15:25:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aVWobm5s; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-180433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F406F1C221C3 for ; Wed, 15 May 2024 22:25:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6506D15EFB0; Wed, 15 May 2024 22:23:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="aVWobm5s" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7223915CD77 for ; Wed, 15 May 2024 22:23:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715811822; cv=none; b=BAu6ecIf6ca+qZc/TuvQX3qtqZVAzAqYInYSrOkuGAGiT2727uZMnPyxcGlwn9TnizwLQcmVfD0lvfEwplzkDa9TWypR4cTVdIc+GbPiNSKEAkpY1KRmqS2bfB+oUb/CBCI9xTIFURs2h+u850o/LYU1E325w9chxCyqKhHmpLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715811822; c=relaxed/simple; bh=0YtER+0pZZM0aonKKMX98jcoXBMdyd2vjep0paG/Gss=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lkJMcTHcFWQHOizl5tW8S3BDljtEAYKPFXrFKqX5aO1PQ9I81vLbkW/YdpXqg39RA2TcI0ySEntmsIQ0l9rGzaSocxHKB6ogI7FA86inyezgBGTWYsaPV5DaMD/WLqe/LUaar2K/f/DX/g3Hpa78LTizlDrlmUoXDdOU8HKsFLk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=aVWobm5s; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715811820; x=1747347820; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0YtER+0pZZM0aonKKMX98jcoXBMdyd2vjep0paG/Gss=; b=aVWobm5suuo1i4fy+CJW4FWMJIbkBUutwFIL8SgnH9sYcBetUSIMuIG5 pm/QdvIyOYGekghvmbeJ70uTSmigLeKVJ7eBrbQZcGLl2fxYXNfEbAnKh jF+erEtAiaDTAktlIucWD0R76LXwu7l9foKXjZmFrUhZPdEwkxUuLIyBc SoE1RNHpBDBKFNwLRa6Ny1t+0wybQy2U+gkHWBch8tafhK5Hf2awigEir eJDVwGdvTDHtZjCuhjfRuia6QAmsy7IeLsy3TUNlTzwphK98DIOxaCfrq 3omnFmPKdplniIxhcE8kn/WyGY931k4nfGyaqftbtbrXb/5Hrr/+zSE2A A==; X-CSE-ConnectionGUID: oWSqjHUbTwqHmky6GeXq4A== X-CSE-MsgGUID: mzo6vMjJRC2+xHnXdwSLMw== X-IronPort-AV: E=McAfee;i="6600,9927,11074"; a="15671657" X-IronPort-AV: E=Sophos;i="6.08,162,1712646000"; d="scan'208";a="15671657" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2024 15:23:35 -0700 X-CSE-ConnectionGUID: CsgZSs/FQGGXi18ljD+89w== X-CSE-MsgGUID: IBpYasFrQt+WSSUL2JvfqQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,162,1712646000"; d="scan'208";a="35989172" Received: from agluck-desk3.sc.intel.com ([172.25.222.105]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2024 15:23:35 -0700 From: Tony Luck To: Fenghua Yu , Reinette Chatre , Maciej Wieczor-Retman , Peter Newman , James Morse , Babu Moger , Drew Fustini , Dave Martin Cc: x86@kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Tony Luck Subject: [PATCH v18 09/17] x86/resctrl: Add new fields to struct rmid_read for summation of domains Date: Wed, 15 May 2024 15:23:17 -0700 Message-ID: <20240515222326.74166-10-tony.luck@intel.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240515222326.74166-1-tony.luck@intel.com> References: <20240515222326.74166-1-tony.luck@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit rdtgroup_mondata_show() calls mon_event_count() which packages up all the required details into an rmid_read structure passed across the smp_call*() infrastructure. Legacy files reporting for a single domain pass that domain in the rmid_read structure. Files that need to sum multiple domains have meta data that provides the display_id for domains that must be summed. Add the sumdomains and display_id fields to the rmid_read structure. Signed-off-by: Tony Luck --- arch/x86/kernel/cpu/resctrl/internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h index 49440f194253..498c5d240c68 100644 --- a/arch/x86/kernel/cpu/resctrl/internal.h +++ b/arch/x86/kernel/cpu/resctrl/internal.h @@ -150,6 +150,8 @@ struct rmid_read { struct rdt_mon_domain *d; enum resctrl_event_id evtid; bool first; + bool sumdomains; + int display_id; int err; u64 val; void *arch_mon_ctx; -- 2.44.0