From patchwork Tue Jan 24 09:26:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 47617 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2051526wrn; Tue, 24 Jan 2023 01:27:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXukjbXHAh559aqeD0/VAJ6IPe2/XIi6VlShz8RcjBBAcXGI6K6XMxYoYJmvDG5PI7ibsYNv X-Received: by 2002:a62:e406:0:b0:581:7430:aba with SMTP id r6-20020a62e406000000b0058174300abamr29460218pfh.10.1674552448477; Tue, 24 Jan 2023 01:27:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674552448; cv=none; d=google.com; s=arc-20160816; b=mD/USpnAbTCydAhwOhT2ZeTFgLR+fs4792hr05h9L/jQ7EkskvF8pc7U24k5fB1JKF j0sfI7wJfuF/eULYP5ORQ36pb80wIAu+1kUceHr0vI9i5vtQiMSUWmdTuVlohR2OeyE6 qyiyQQNhZMcZ2g/+YTe8L4rLjwenoMTCFcfHZwQ4r9J4T9P35+ovLIf8UWNXJghu8ZCc Ki9XCUBxjvYr0WMK7hXt0C59qqkYsOAopbilGVw6FPlkPGSWhQlak4deq9q+hthw0sSY j0dfeorRAP9FjvwwM/rkVeL2A5lMFSe0BVl7OGnaLyAwXFHQv6cPjK5PCDPTviB44XF8 mV2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=i2SO5VccYcWsItyTqi4DSl3WMZ51RX0FB1oAawTH9pE=; b=v9fzKOEnh49Gpdr52zPrZJmZ5TebOeynlDtMSvI65A1awh/RdEDUHyIcgHr2AIxoSg 23HUaW1JWbM3x2XXZig1eM0fAXk+n8n9U7bp8VqooYXAzs6j5yg4k2HssQD1F+y5U+ug IS1hislHsWxadUbadGIrZM5vwsl00sdbmJLzmnd+kE5CnIjVebrazRZsmGVRevp57jcG zL+BOi6BbUFxIL6D+fy3ZSsZlMsqZmjKwNFzVwWiP8jZtzU3UkpctTwQ8TSQFUoURS8L jKasgE2A+6empmcjcmH5/KT1dHL6ZmMIMW4UpLNk05QxN3A5htaRnRHNrERPF+AJpV4f 1SyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=w0c2tn9n; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i189-20020a62c1c6000000b0058b398c1a69si1922673pfg.59.2023.01.24.01.27.16; Tue, 24 Jan 2023 01:27:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=w0c2tn9n; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229538AbjAXJ1C (ORCPT + 99 others); Tue, 24 Jan 2023 04:27:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233391AbjAXJ0m (ORCPT ); Tue, 24 Jan 2023 04:26:42 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD70583D6; Tue, 24 Jan 2023 01:26:41 -0800 (PST) Date: Tue, 24 Jan 2023 09:26:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1674552397; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i2SO5VccYcWsItyTqi4DSl3WMZ51RX0FB1oAawTH9pE=; b=w0c2tn9nOtjGVsadwjGqsR8nxy+KmDYOifLU6aFNsk58F/Ttu6C5Aijm2rhyiF4DuYh2vI H6FxOtxsvy/f6GoESy1LelTd2hin+sLWHBwpG/uwBhCvDG+51ZDEcoT35n/px0TztCH1lm 2H4KJGMoe111YCFM2bOsrF0LfkJ3pWPrydGTbgf4USWb3AXUr+dr0TW/7G93jNC3wHV1XQ g4X0bew/jv4WRAANRlgfFJlucbHI8LhWFt+PoK6LgP0EjVAfu+eFCsmaBZfS4dvQDqX1zk U66pPpMRZSbxxfYj7vf95S34Qb3yOSysn8IcnRbxEgPF9XrgteWRAxGK2TlkKQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1674552397; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i2SO5VccYcWsItyTqi4DSl3WMZ51RX0FB1oAawTH9pE=; b=/1omCgDN+ZUEPWhc5scapS+VBTW9eBMr5zE1vUnpu2D3TY5F9nC1eg1b1gGAlQ4aBG9TY0 c2JU+99fB3JwImAA== From: "tip-bot2 for Babu Moger" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cache] x86/resctrl: Include new features in command line options Cc: Babu Moger , "Borislav Petkov (AMD)" , Reinette Chatre , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230113152039.770054-6-babu.moger@amd.com> References: <20230113152039.770054-6-babu.moger@amd.com> MIME-Version: 1.0 Message-ID: <167455239757.4906.11241332307553202930.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754921895223331639?= X-GMAIL-MSGID: =?utf-8?q?1755895508235150002?= The following commit has been merged into the x86/cache branch of tip: Commit-ID: a76f65c89f928b87c49d88b7fd60cb4d7203ffff Gitweb: https://git.kernel.org/tip/a76f65c89f928b87c49d88b7fd60cb4d7203ffff Author: Babu Moger AuthorDate: Fri, 13 Jan 2023 09:20:31 -06:00 Committer: Borislav Petkov (AMD) CommitterDate: Mon, 23 Jan 2023 17:38:38 +01:00 x86/resctrl: Include new features in command line options Add the command line options to enable or disable the new resctrl features: smba: Slow Memory Bandwidth Allocation bmec: Bandwidth Monitor Event Configuration. Signed-off-by: Babu Moger Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Reinette Chatre Link: https://lore.kernel.org/r/20230113152039.770054-6-babu.moger@amd.com --- Documentation/admin-guide/kernel-parameters.txt | 2 +- arch/x86/kernel/cpu/resctrl/core.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 6cfa6e3..0ee8911 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -5221,7 +5221,7 @@ rdt= [HW,X86,RDT] Turn on/off individual RDT features. List is: cmt, mbmtotal, mbmlocal, l3cat, l3cdp, l2cat, l2cdp, - mba. + mba, smba, bmec. E.g. to turn on cmt and turn off mba use: rdt=cmt,!mba diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c index f6af3ac..10a8c9d 100644 --- a/arch/x86/kernel/cpu/resctrl/core.c +++ b/arch/x86/kernel/cpu/resctrl/core.c @@ -659,6 +659,8 @@ enum { RDT_FLAG_L2_CAT, RDT_FLAG_L2_CDP, RDT_FLAG_MBA, + RDT_FLAG_SMBA, + RDT_FLAG_BMEC, }; #define RDT_OPT(idx, n, f) \ @@ -682,6 +684,8 @@ static struct rdt_options rdt_options[] __initdata = { RDT_OPT(RDT_FLAG_L2_CAT, "l2cat", X86_FEATURE_CAT_L2), RDT_OPT(RDT_FLAG_L2_CDP, "l2cdp", X86_FEATURE_CDP_L2), RDT_OPT(RDT_FLAG_MBA, "mba", X86_FEATURE_MBA), + RDT_OPT(RDT_FLAG_SMBA, "smba", X86_FEATURE_SMBA), + RDT_OPT(RDT_FLAG_BMEC, "bmec", X86_FEATURE_BMEC), }; #define NUM_RDT_OPTIONS ARRAY_SIZE(rdt_options)