[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-580ebb66cbb3de979adb4becbad7bd383746f162@git.kernel.org>
Date: Thu, 22 Nov 2018 13:49:23 -0800
From: tip-bot for Babu Moger <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: brijesh.singh@....com, linux-doc@...r.kernel.org,
gregkh@...uxfoundation.org, dwmw2@...radead.org,
pombredanne@...b.com, davem@...emloft.net, pbonzini@...hat.com,
rian@...m.mit.edu, chang.seok.bae@...el.com, jpoimboe@...hat.com,
puwen@...on.cn, mingo@...hat.com, bp@...e.de, rafael@...nel.org,
qianyue.zj@...baba-inc.com, babu.moger@....com, hpa@...or.com,
tony.luck@...el.com, vkuznets@...hat.com, Thomas.Lendacky@....com,
suravee.suthikulpanit@....com, reinette.chatre@...el.com,
akpm@...ux-foundation.org, fenghua.yu@...el.com,
kirill.shutemov@...ux.intel.com, dima@...sta.com,
peterz@...radead.org, tglx@...utronix.de, sherry.hurwitz@....com,
jroedel@...e.de, Babu.Moger@....com, linux-kernel@...r.kernel.org,
jannh@...gle.com, luto@...nel.org, mingo@...nel.org,
xiaochen.shen@...el.com, corbet@....net, arnd@...db.de,
kstewart@...uxfoundation.org, mchehab+samsung@...nel.org
Subject: [tip:x86/cache] x86/resctrl: Add vendor check for the MBA software
controller
Commit-ID: 580ebb66cbb3de979adb4becbad7bd383746f162
Gitweb: https://git.kernel.org/tip/580ebb66cbb3de979adb4becbad7bd383746f162
Author: Babu Moger <Babu.Moger@....com>
AuthorDate: Wed, 21 Nov 2018 20:28:37 +0000
Committer: Borislav Petkov <bp@...e.de>
CommitDate: Thu, 22 Nov 2018 20:16:19 +0100
x86/resctrl: Add vendor check for the MBA software controller
MBA software controller support is available only on Intel.
Suggested-by: Fenghua Yu <fenghua.yu@...el.com>
Signed-off-by: Babu Moger <babu.moger@....com>
Signed-off-by: Borislav Petkov <bp@...e.de>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Andy Lutomirski <luto@...nel.org>
Cc: Arnd Bergmann <arnd@...db.de>
Cc: Brijesh Singh <brijesh.singh@....com>
Cc: "Chang S. Bae" <chang.seok.bae@...el.com>
Cc: David Miller <davem@...emloft.net>
Cc: David Woodhouse <dwmw2@...radead.org>
Cc: Dmitry Safonov <dima@...sta.com>
Cc: Fenghua Yu <fenghua.yu@...el.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: "H. Peter Anvin" <hpa@...or.com>
Cc: Ingo Molnar <mingo@...hat.com>
Cc: Jann Horn <jannh@...gle.com>
Cc: Joerg Roedel <jroedel@...e.de>
Cc: Jonathan Corbet <corbet@....net>
Cc: Josh Poimboeuf <jpoimboe@...hat.com>
Cc: Kate Stewart <kstewart@...uxfoundation.org>
Cc: "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc: <linux-doc@...r.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab+samsung@...nel.org>
Cc: Paolo Bonzini <pbonzini@...hat.com>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Philippe Ombredanne <pombredanne@...b.com>
Cc: Pu Wen <puwen@...on.cn>
Cc: <qianyue.zj@...baba-inc.com>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>
Cc: Reinette Chatre <reinette.chatre@...el.com>
Cc: Rian Hunter <rian@...m.mit.edu>
Cc: Sherry Hurwitz <sherry.hurwitz@....com>
Cc: Suravee Suthikulpanit <suravee.suthikulpanit@....com>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Thomas Lendacky <Thomas.Lendacky@....com>
Cc: Tony Luck <tony.luck@...el.com>
Cc: Vitaly Kuznetsov <vkuznets@...hat.com>
Cc: <xiaochen.shen@...el.com>
Link: https://lkml.kernel.org/r/20181121202811.4492-8-babu.moger@amd.com
---
arch/x86/kernel/cpu/resctrl/rdtgroup.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/resctrl/rdtgroup.c b/arch/x86/kernel/cpu/resctrl/rdtgroup.c
index cf159095b612..fada488069cb 100644
--- a/arch/x86/kernel/cpu/resctrl/rdtgroup.c
+++ b/arch/x86/kernel/cpu/resctrl/rdtgroup.c
@@ -1878,7 +1878,10 @@ static int parse_rdtgroupfs_options(char *data)
if (ret)
goto out;
} else if (!strcmp(token, "mba_MBps")) {
- ret = set_mba_sc(true);
+ if (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL)
+ ret = set_mba_sc(true);
+ else
+ ret = -EINVAL;
if (ret)
goto out;
} else {
Powered by blists - more mailing lists