From patchwork Mon Feb 20 16:06:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 59550 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1388562wrn; Mon, 20 Feb 2023 08:10:39 -0800 (PST) X-Google-Smtp-Source: AK7set+6Y/J+YU63I3MTsWGY9GZ/jBDNDEv/V8hdYnz8DEh079pOKMNKTltnO8ihgVE8zqSdoNCb X-Received: by 2002:a17:902:d4cc:b0:19b:dc8:c67b with SMTP id o12-20020a170902d4cc00b0019b0dc8c67bmr963631plg.50.1676909439369; Mon, 20 Feb 2023 08:10:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676909439; cv=none; d=google.com; s=arc-20160816; b=RWtH36BQ6+LKQplO0R8SrXcWLUQlXImFN4u7ih6hBFN8fZr6CpUlc6WfxYHgEWVuFp jDAMMSBdCqieMGL/d0N2ix2mGQ5Rl/qZBnz6notrcV1y1tz+oK8T4DIuLsPtUU1n+MHY GqQWyeD/2Zo4eMDO1SAFIkjWcKXstQLj9Uy3XILdgiS0LSdv04RpOQlPc98UVvrbTSlX DRH9sZHP95Bmvl0HBDhq8GXKZCt2RcuIpnjmws6qSodsBxIOrUieVqXFwGcqC9Ky05bd 14zFijEC3iKxReOzDNeOgyLBsxpaQtXEK11ToeM3FmUQd04SXuiZRDYJ4rXwXAbdqDgq pC3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=/8phSmJ+zfHQ4P4WcehWrw04sHB2nwS3D9rezDdWpnk=; b=Az7RawLZbCoyNTVM3lOMi+hzJIE8vS1XZBsLH6a0qNunKIpQyuNEg4w1uN0bGPzH/E Hv3Als11GaFk78bS8yaNV1G0ahkkECtaZIb1EGm+G5V6kDleX9lQE2t/gA0HYyObKtrl WTc3g2jR3NFLkHjgO/uqX2wB17m62C2V0AgoxhWcYK7xP6qC/5zAXSoRB36KSsgN4XDd mr3+0u+zvP5h86zXJSrtg45npe+owDXmdVrVk+Y3pOY0iaP/tt9oJCwhJrXI+efD7YW2 UWbLDZoPboMVhb/GJ25zYfX2s4uivB1DMVEWSqMivp5LV1T2r0Tz4kWGhaD+/chtyvhx Ex2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=SuW1XJUQ; 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=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a170902b18400b0018862b7f8bbsi2700937plr.198.2023.02.20.08.10.17; Mon, 20 Feb 2023 08:10:39 -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=@alien8.de header.s=dkim header.b=SuW1XJUQ; 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=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231918AbjBTQGf (ORCPT + 99 others); Mon, 20 Feb 2023 11:06:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232086AbjBTQGd (ORCPT ); Mon, 20 Feb 2023 11:06:33 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A76341E9D0 for ; Mon, 20 Feb 2023 08:06:27 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A43E61EC04DA; Mon, 20 Feb 2023 17:06:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1676909185; h=from:from: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:in-reply-to:references; bh=/8phSmJ+zfHQ4P4WcehWrw04sHB2nwS3D9rezDdWpnk=; b=SuW1XJUQS0O5FMcdCQZIJPH1YxTmGmZOmjOgUBmW9cebRbIrtuLuREcAKHaPliOIU27ccB ZVFf1gpKPvAvyIyXN9x8GqSCiK+JZcz6+RlHtQh3ANcMOWMCQwHcBb5ktTL5ALhUvpBD4Y 2OK8zTi1Z0/jw/Am64EX8HLWnsB5UxU= Date: Mon, 20 Feb 2023 17:06:21 +0100 From: Borislav Petkov To: Linus Torvalds Cc: x86-ml , lkml Subject: [GIT PULL] x86/cache for v6.3-rc1 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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?1758366992058955594?= X-GMAIL-MSGID: =?utf-8?q?1758366992058955594?= Hi Linus, please pull the new pile of x86 resource control updates for 6.3. Thx. --- The following changes since commit 2241ab53cbb5cdb08a6b2d4688feb13971058f65: Linux 6.2-rc5 (2023-01-21 16:27:01 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_cache_for_v6.3_rc1 for you to fetch changes up to 793207bad71c5339c614d12ac21d627da7bf771d: x86/resctrl: Fix a silly -Wunused-but-set-variable warning (2023-01-26 11:15:20 +0100) ---------------------------------------------------------------- - Add support for a new AMD feature called slow memory bandwidth allocation. Its goal is to control resource allocation in external slow memory which is connected to the machine like for example through CXL devices, accelerators etc ---------------------------------------------------------------- Babu Moger (13): x86/resctrl: Replace smp_call_function_many() with on_each_cpu_mask() x86/cpufeatures: Add Slow Memory Bandwidth Allocation feature flag x86/resctrl: Add a new resource type RDT_RESOURCE_SMBA x86/cpufeatures: Add Bandwidth Monitoring Event Configuration feature flag x86/resctrl: Include new features in command line options x86/resctrl: Detect and configure Slow Memory Bandwidth Allocation x86/resctrl: Add __init attribute to rdt_get_mon_l3_config() x86/resctrl: Support monitor configuration x86/resctrl: Add interface to read mbm_total_bytes_config x86/resctrl: Add interface to read mbm_local_bytes_config x86/resctrl: Add interface to write mbm_total_bytes_config x86/resctrl: Add interface to write mbm_local_bytes_config Documentation/x86: Update resctrl.rst for new features Borislav Petkov (AMD) (1): x86/resctrl: Fix a silly -Wunused-but-set-variable warning Documentation/admin-guide/kernel-parameters.txt | 2 +- Documentation/x86/resctrl.rst | 147 +++++++++++- arch/x86/include/asm/cpufeatures.h | 2 + arch/x86/include/asm/msr-index.h | 2 + arch/x86/kernel/cpu/cpuid-deps.c | 2 + arch/x86/kernel/cpu/resctrl/core.c | 54 ++++- arch/x86/kernel/cpu/resctrl/ctrlmondata.c | 13 +- arch/x86/kernel/cpu/resctrl/internal.h | 28 +++ arch/x86/kernel/cpu/resctrl/monitor.c | 30 ++- arch/x86/kernel/cpu/resctrl/rdtgroup.c | 307 ++++++++++++++++++++++-- arch/x86/kernel/cpu/scattered.c | 2 + include/linux/resctrl.h | 11 + 12 files changed, 559 insertions(+), 41 deletions(-)