Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARC: Enable PERF_EVENTS in nSIM driven platforms

Now when we have properly working performance counters in nSIM
even with interrupt support (fix should be a part of upcoming
nSIM engineering build 2016.12-005) we may enable perf support
by default for all platforms that use nSIM for ARC cores simulation.

Note 1: PCT node was missing for some reason in nsimosci.dts
while all other nSIM-related .dts files already had
PCT node for quite some time, so adding it now.

Note 2: All defconfigs were regenerated with "make savedefconfig"
which led to some clean-ups in nsimosci_hs_smp_defconfig:
CONFIG_FRAMEBUFFER_CONSOLE=y was removed because it is
automatically selected now by DRM.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>

authored by

Alexey Brodkin and committed by
Vineet Gupta
6227e9f0 a909d3e6

+12 -4
+1 -1
arch/arc/boot/dts/axc001.dtsi
··· 71 71 reg-io-width = <4>; 72 72 }; 73 73 74 - arcpmu0: pmu { 74 + arcpct0: pct { 75 75 compatible = "snps,arc700-pct"; 76 76 }; 77 77 };
+1 -1
arch/arc/boot/dts/nsim_700.dts
··· 69 69 }; 70 70 }; 71 71 72 - arcpmu0: pmu { 72 + arcpct0: pct { 73 73 compatible = "snps,arc700-pct"; 74 74 }; 75 75 };
+4
arch/arc/boot/dts/nsimosci.dts
··· 83 83 reg = <0xf0003000 0x44>; 84 84 interrupts = <7>; 85 85 }; 86 + 87 + arcpct0: pct { 88 + compatible = "snps,arc700-pct"; 89 + }; 86 90 }; 87 91 };
+1
arch/arc/configs/nsim_700_defconfig
··· 14 14 CONFIG_INITRAMFS_SOURCE="../arc_initramfs/" 15 15 CONFIG_KALLSYMS_ALL=y 16 16 CONFIG_EMBEDDED=y 17 + CONFIG_PERF_EVENTS=y 17 18 # CONFIG_SLUB_DEBUG is not set 18 19 # CONFIG_COMPAT_BRK is not set 19 20 CONFIG_KPROBES=y
+1
arch/arc/configs/nsim_hs_defconfig
··· 14 14 CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/" 15 15 CONFIG_KALLSYMS_ALL=y 16 16 CONFIG_EMBEDDED=y 17 + CONFIG_PERF_EVENTS=y 17 18 # CONFIG_SLUB_DEBUG is not set 18 19 # CONFIG_COMPAT_BRK is not set 19 20 CONFIG_KPROBES=y
+1
arch/arc/configs/nsim_hs_smp_defconfig
··· 12 12 CONFIG_INITRAMFS_SOURCE="../arc_initramfs_hs/" 13 13 CONFIG_KALLSYMS_ALL=y 14 14 CONFIG_EMBEDDED=y 15 + CONFIG_PERF_EVENTS=y 15 16 # CONFIG_SLUB_DEBUG is not set 16 17 # CONFIG_COMPAT_BRK is not set 17 18 CONFIG_KPROBES=y
+1
arch/arc/configs/nsimosci_defconfig
··· 14 14 CONFIG_INITRAMFS_SOURCE="../arc_initramfs/" 15 15 CONFIG_KALLSYMS_ALL=y 16 16 CONFIG_EMBEDDED=y 17 + CONFIG_PERF_EVENTS=y 17 18 # CONFIG_SLUB_DEBUG is not set 18 19 # CONFIG_COMPAT_BRK is not set 19 20 CONFIG_KPROBES=y
+1
arch/arc/configs/nsimosci_hs_defconfig
··· 14 14 CONFIG_INITRAMFS_SOURCE="../arc_initramfs_hs/" 15 15 CONFIG_KALLSYMS_ALL=y 16 16 CONFIG_EMBEDDED=y 17 + CONFIG_PERF_EVENTS=y 17 18 # CONFIG_SLUB_DEBUG is not set 18 19 # CONFIG_COMPAT_BRK is not set 19 20 CONFIG_KPROBES=y
+1 -2
arch/arc/configs/nsimosci_hs_smp_defconfig
··· 10 10 # CONFIG_PID_NS is not set 11 11 CONFIG_BLK_DEV_INITRD=y 12 12 CONFIG_INITRAMFS_SOURCE="../arc_initramfs_hs/" 13 + CONFIG_PERF_EVENTS=y 13 14 # CONFIG_COMPAT_BRK is not set 14 15 CONFIG_KPROBES=y 15 16 CONFIG_MODULES=y ··· 35 34 # CONFIG_INET_XFRM_MODE_TRANSPORT is not set 36 35 # CONFIG_INET_XFRM_MODE_TUNNEL is not set 37 36 # CONFIG_INET_XFRM_MODE_BEET is not set 38 - # CONFIG_INET_LRO is not set 39 37 # CONFIG_IPV6 is not set 40 38 # CONFIG_WIRELESS is not set 41 39 CONFIG_DEVTMPFS=y ··· 72 72 # CONFIG_HWMON is not set 73 73 CONFIG_DRM=y 74 74 CONFIG_DRM_ARCPGU=y 75 - CONFIG_FRAMEBUFFER_CONSOLE=y 76 75 CONFIG_LOGO=y 77 76 # CONFIG_HID is not set 78 77 # CONFIG_USB_SUPPORT is not set