Home Home > GIT Browse > SLE15-SP1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2019-05-19 20:37:56 +0200
committerBorislav Petkov <bp@suse.de>2019-05-19 20:37:56 +0200
commitab9d89ccd35ba22a32512f1939dd8e030e05faff (patch)
treeeff60315eb69232fa282e26eca83c83527b0c4ce
parent37bbcf5e381bb25bd872a67736b01759d4be72a7 (diff)
perf tools: Add Hygon Dhyana support (fate#327735).
-rw-r--r--patches.arch/perf-tools-add-hygon-dhyana-support.patch39
-rw-r--r--series.conf1
2 files changed, 40 insertions, 0 deletions
diff --git a/patches.arch/perf-tools-add-hygon-dhyana-support.patch b/patches.arch/perf-tools-add-hygon-dhyana-support.patch
new file mode 100644
index 0000000000..7234edbfe0
--- /dev/null
+++ b/patches.arch/perf-tools-add-hygon-dhyana-support.patch
@@ -0,0 +1,39 @@
+From: Pu Wen <puwen@hygon.cn>
+Date: Mon, 12 Nov 2018 15:40:51 +0800
+Subject: perf tools: Add Hygon Dhyana support
+Git-commit: 4787eff3fa88f62fede6ed7afa06477ae6bf984d
+Patch-mainline: v5.0-rc1
+References: fate#327735
+
+The tool perf is useful for the performance analysis on the Hygon Dhyana
+platform. But right now there is no Hygon support for it to analyze the
+KVM guest os data. So add Hygon Dhyana support to it by checking vendor
+string to share the code path of AMD.
+
+Signed-off-by: Pu Wen <puwen@hygon.cn>
+Acked-by: Borislav Petkov <bp@suse.de>
+Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
+Cc: Jiri Olsa <jolsa@kernel.org>
+Cc: Namhyung Kim <namhyung@kernel.org>
+Cc: Peter Zijlstra <peterz@infradead.org>
+Cc: Thomas Gleixner <tglx@linutronix.de>
+Link: http://lkml.kernel.org/r/1542008451-31735-1-git-send-email-puwen@hygon.cn
+Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
+---
+ tools/perf/arch/x86/util/kvm-stat.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tools/perf/arch/x86/util/kvm-stat.c b/tools/perf/arch/x86/util/kvm-stat.c
+index b32409a0e546..081353d7b095 100644
+--- a/tools/perf/arch/x86/util/kvm-stat.c
++++ b/tools/perf/arch/x86/util/kvm-stat.c
+@@ -156,7 +156,7 @@ int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid)
+ if (strstr(cpuid, "Intel")) {
+ kvm->exit_reasons = vmx_exit_reasons;
+ kvm->exit_reasons_isa = "VMX";
+- } else if (strstr(cpuid, "AMD")) {
++ } else if (strstr(cpuid, "AMD") || strstr(cpuid, "Hygon")) {
+ kvm->exit_reasons = svm_exit_reasons;
+ kvm->exit_reasons_isa = "SVM";
+ } else
+
diff --git a/series.conf b/series.conf
index e87c392a40..de4d14ff2a 100644
--- a/series.conf
+++ b/series.conf
@@ -43354,6 +43354,7 @@
patches.drivers/efi-Permit-multiple-entries-in-persistent-memreserve.patch
patches.drivers/efi-Reduce-the-amount-of-memblock-reservations-for-p.patch
patches.fixes/tools-lib-lockdep-Rename-trywlock-into-trywrlock.patch
+ patches.arch/perf-tools-add-hygon-dhyana-support.patch
patches.drivers/hwmon-k10temp-x86-amd_nb-consolidate-shared-device-ids.patch
patches.arch/x86-amd_nb-add-support-for-newer-pci-topologies.patch
patches.arch/x86-amd_nb-add-pci-device-ids-for-family-17h-model-30h.patch