Home Home > GIT Browse > openSUSE-15.0
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2019-06-15 17:40:19 +0200
committerBorislav Petkov <bp@suse.de>2019-06-15 17:40:19 +0200
commit26d3159a79867c5855fb3cd3c4dbf3c6b93aaf21 (patch)
tree97bc44b9d6613777af81f1cda01587b177e56258
parent32d89f9ceb00c2e4e8db8e6b4cf31ed2b60dc00b (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 1312572317..6106b4fb3e 100644
--- a/series.conf
+++ b/series.conf
@@ -20636,6 +20636,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.arch/x86-vdso-remove-obsolete-fake-section-table-reservation.patch
patches.arch/x86-mm-drop-usage-of-_flush_tlb_all-in-kernel_physical_mapping_init.patch
patches.arch/powerpc-xmon-Fix-invocation-inside-lock-region.patch