Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4733435pxt; Wed, 11 Aug 2021 12:45:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOPw1Xcqj9QB1OvWNnDlLu3cjVlmzF3ipFTnAhS3sWjymaMwp9pQ5zfjAa9Lkho/UlTe/A X-Received: by 2002:a17:906:b0c5:: with SMTP id bk5mr166250ejb.428.1628711144134; Wed, 11 Aug 2021 12:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628711144; cv=none; d=google.com; s=arc-20160816; b=ToLgY4moc5yMsydTHi5Bd8PJJit5ecXpKeHf1+yGBMgK+cWaQXA5sWMiC0gM6Mz8rK xAciURopHNLfZR9M4BCE03qbtJcIBgMBgcI+2FNfTvlJEN0RsOT+MfgUdVKYMy8FNCM7 uDMxInqXJaDVFuVD+DWjKERJ8s9wHK/bZwiF56xxkdVCpQ/OjTjIfZpd4AVRL0iwsnqZ LnioReUKW0J06gU3Li+1riRYDpaNJly8OiY+oVSEIb/D/khp8C4O3HwcDug4zJJ6o4nM l0ZBNXOgdru4g8f1QMTfF4MSixuKLF3HqlqauMxoHkA1hxL3HSFWZmjZ+/mg1+QaZwur mUzw== 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=U59rHQlXrO7KGgq5UifHuKz4aCu/MPzCKB4mCZTf67w=; b=xfpw2/UXf4Q/CxqIvEnQeh/bf+OTMbIOOsyYBUgpJ2Nir4bY4Xsuj+7bRKdFQjpukC 3uSokC9GUVM266Rp65N7JkxMM9s0iXKzBqiTU4/RGUpwR5Kn1spS72sYzwZ4IrSrp4iM Rtk3wnbPQR1bU98Ho145bK6OeIXIn8aI1OFJGfQf4j5pFt7UEHRBELtOeZe3KxJZ/lAT LvKiqXZsdJNzgcBuUGOWFh/+jGyGoj61oG3Fg1+34cf0CsNNALYVrvQodOVWOoIcjOum LPb5LHFdfqb7nmqE83xRYhgG1lV09rWUNC4UWyqfic0Juwa3yYpYZWM981VdyOAEbGUr V27A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="RtitD+/3"; dkim=neutral (no key) header.i=@linutronix.de header.b="/E78jHhp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si72944ejm.150.2021.08.11.12.45.20; Wed, 11 Aug 2021 12:45:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="RtitD+/3"; dkim=neutral (no key) header.i=@linutronix.de header.b="/E78jHhp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232036AbhHKTmH (ORCPT + 99 others); Wed, 11 Aug 2021 15:42:07 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:53602 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231739AbhHKTlw (ORCPT ); Wed, 11 Aug 2021 15:41:52 -0400 Date: Wed, 11 Aug 2021 19:41:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1628710887; 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=U59rHQlXrO7KGgq5UifHuKz4aCu/MPzCKB4mCZTf67w=; b=RtitD+/3FYXAl4FzyQ+ZI+k5APoVNQL7y3X8RNWvUYhGAFIpwj4sll3TwsBIMb7RhmB4Gy dbfceMK2rxPJs/143s3U+wbGTQcLkUUeszfT5ShJwJOU+Up8CgkpGr4jituE7knRFnKHKx A7DsbzjJJfM4DQsc+ko3yT0rCFAhwquMln3uLLI5HfvfY7c2RBdSU2A7NqIhg1DhTy9hfk DhLP2h8yKm8crxu5DFMWdIAhAWk9oBTejq2fSNYQXBjVTQnSrnBT3mMXU5sqAJlwG4+xns AKAssDbvfbQ/CcPkT85L2u/E9HuSD4K/XX1ICa2gYLoB2nWqSHCxh0ay+6tA7Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1628710887; 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=U59rHQlXrO7KGgq5UifHuKz4aCu/MPzCKB4mCZTf67w=; b=/E78jHhpVqX0Zhhc89T6R7P9ukuD+iO2ynCNbK0jOniLFd+mEADcY2ult88ZclMy+awP2j LaUnNu1BviHT4ICA== From: "tip-bot2 for James Morse" 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: Rename update_domains() to resctrl_arch_update_domains() Cc: James Morse , Borislav Petkov , Jamie Iles , Reinette Chatre , Babu Moger , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210728170637.25610-16-james.morse@arm.com> References: <20210728170637.25610-16-james.morse@arm.com> MIME-Version: 1.0 Message-ID: <162871088682.395.14497517131577936298.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cache branch of tip: Commit-ID: 2e6678195d59c51b6ca234169ad3de01134d3dec Gitweb: https://git.kernel.org/tip/2e6678195d59c51b6ca234169ad3de01134d3dec Author: James Morse AuthorDate: Wed, 28 Jul 2021 17:06:28 Committer: Borislav Petkov CommitterDate: Wed, 11 Aug 2021 16:36:58 +02:00 x86/resctrl: Rename update_domains() to resctrl_arch_update_domains() update_domains() merges the staged configuration changes into the arch codes configuration array. Rename to make it clear it is part of the arch code interface to resctrl. Signed-off-by: James Morse Signed-off-by: Borislav Petkov Reviewed-by: Jamie Iles Reviewed-by: Reinette Chatre Tested-by: Babu Moger Link: https://lkml.kernel.org/r/20210728170637.25610-16-james.morse@arm.com --- arch/x86/kernel/cpu/resctrl/ctrlmondata.c | 4 ++-- arch/x86/kernel/cpu/resctrl/internal.h | 1 - arch/x86/kernel/cpu/resctrl/rdtgroup.c | 2 +- include/linux/resctrl.h | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/cpu/resctrl/ctrlmondata.c b/arch/x86/kernel/cpu/resctrl/ctrlmondata.c index f29848f..8cde76d 100644 --- a/arch/x86/kernel/cpu/resctrl/ctrlmondata.c +++ b/arch/x86/kernel/cpu/resctrl/ctrlmondata.c @@ -259,7 +259,7 @@ static void apply_config(struct rdt_hw_domain *hw_dom, } } -int update_domains(struct rdt_resource *r, int closid) +int resctrl_arch_update_domains(struct rdt_resource *r, u32 closid) { struct resctrl_staged_config *cfg; struct rdt_hw_domain *hw_dom; @@ -380,7 +380,7 @@ ssize_t rdtgroup_schemata_write(struct kernfs_open_file *of, list_for_each_entry(s, &resctrl_schema_all, list) { r = s->res; - ret = update_domains(r, rdtgrp->closid); + ret = resctrl_arch_update_domains(r, rdtgrp->closid); if (ret) goto out; } diff --git a/arch/x86/kernel/cpu/resctrl/internal.h b/arch/x86/kernel/cpu/resctrl/internal.h index 4e15667..a95893e 100644 --- a/arch/x86/kernel/cpu/resctrl/internal.h +++ b/arch/x86/kernel/cpu/resctrl/internal.h @@ -529,7 +529,6 @@ void rdt_pseudo_lock_release(void); int rdtgroup_pseudo_lock_create(struct rdtgroup *rdtgrp); void rdtgroup_pseudo_lock_remove(struct rdtgroup *rdtgrp); struct rdt_domain *get_domain_from_cpu(int cpu, struct rdt_resource *r); -int update_domains(struct rdt_resource *r, int closid); int closids_supported(void); void closid_free(int closid); int alloc_rmid(void); diff --git a/arch/x86/kernel/cpu/resctrl/rdtgroup.c b/arch/x86/kernel/cpu/resctrl/rdtgroup.c index 9f1354c..4b6de76 100644 --- a/arch/x86/kernel/cpu/resctrl/rdtgroup.c +++ b/arch/x86/kernel/cpu/resctrl/rdtgroup.c @@ -2870,7 +2870,7 @@ static int rdtgroup_init_alloc(struct rdtgroup *rdtgrp) return ret; } - ret = update_domains(r, rdtgrp->closid); + ret = resctrl_arch_update_domains(r, rdtgrp->closid); if (ret < 0) { rdt_last_cmd_puts("Failed to initialize allocations\n"); return ret; diff --git a/include/linux/resctrl.h b/include/linux/resctrl.h index 51ba372..be58811 100644 --- a/include/linux/resctrl.h +++ b/include/linux/resctrl.h @@ -199,5 +199,6 @@ struct resctrl_schema { /* The number of closid supported by this resource regardless of CDP */ u32 resctrl_arch_get_num_closid(struct rdt_resource *r); +int resctrl_arch_update_domains(struct rdt_resource *r, u32 closid); #endif /* _RESCTRL_H */