summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-08-21Revert "WORKAROUND: security: smack: Allow ptracing even processes in ↵tizen_6.0.m2_releasesubmit/tizen_6.0_hotfix/20201103.115101submit/tizen_6.0_hotfix/20201102.192901submit/tizen_6.0/20201029.205501submit/tizen/20200820.145124accepted/tizen/unified/20200824.030014accepted/tizen/6.0/unified/hotfix/20201103.000028accepted/tizen/6.0/unified/20201030.104525tizen_6.0_hotfixtizen_6.0accepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedSeung-Woo Kim1-2/+0
onlycap set" This reverts commit 718567d336d0b0943385905bb12707552d8bef66. Now crash-worker has System::Privileged privilege, so not anymore ptrace related workaround is necessary. So revert the workaround. Change-Id: I42b535e4152eb742df011a5a08324764b49f989a Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-08-10WORKAROUND: security: smack: Allow ptracing even processes in onlycap setsubmit/tizen/20200810.050403accepted/tizen/unified/20200810.123103Karol Lewandowski1-0/+2
Change-Id: I708d19703da0f1b83950454fda1362bec7369b5c Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-08-03Revert "brcmfmac: move configuration of probe request IEs"submit/tizen/20200803.071449accepted/tizen/unified/20200803.122234Jaehoon Chung2-7/+4
This reverts commit bd99a3013bdc00f8fc7534c657b39616792b4467. It doesn't find any p2p-device with wpa_supplicant on Tien. - After reverted this, it's working fine. Change-Id: I1cd77e65ad17078370116473dd46adc7338d6695 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2020-07-17ARM64: configs: tizen_bcmrpi3_defconfig: Enable FUSE_FSsubmit/tizen/20200717.080515accepted/tizen/unified/20200720.125614Seung-Woo Kim1-0/+1
Tizen requires CONFIG_FUSE_FS for user space filesystem. Enable the option. Change-Id: Ia4eefdcd95b5be4944a9717e69a4ce2deb31a081 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-07-17ARM: configs: tizen_bcm2709_defconfig: Enable FUSE_FSSeung-Woo Kim1-0/+1
Tizen requires CONFIG_FUSE_FS for user space filesystem. Enable the option. Change-Id: Icf66feb085fee5ab30e3b680d1914a51f276d9bd Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-06-25ARM: configs: tizen_bcm2709: revert BLK_DEV_RAM_COUNT to 16submit/tizen/20200625.095326accepted/tizen/unified/20200626.133447Jaehoon Chung1-1/+0
Revert BLK_DEV_RAM_COUNT to 16 - default value. Becaues there is timing issue about booting fail, use default value. Change-Id: Ida3985e9a48863abbc2bd14476edb146c3f5744f Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2020-06-25ARM64: configs: tizen_bcmrpi3: revert BLK_DEV_RAM_COUNT to 16Jaehoon Chung1-1/+0
Revert BLK_DEV_RAM_COUNT to 16 - default value. Becaues there is timing issue about booting fail, use default value. Change-Id: I1bec8f42fc719522510971ad5ec25512e57ee8aa Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2020-06-22ARM: configs: tizen_bcm2709: change BLK_DEV_RAM_SIZE to 32MBsubmit/tizen/20200622.213607accepted/tizen/unified/20200623.080553Jaehoon Chung1-1/+2
Change BLK_DEV_RAM_SIZE from 12MB to 32MB. And also change BLK_DEV_RAM_COUNT from 16 to 2. It doesn't need to keep /dev/ram0-16. Change-Id: If6acb3813061827a260e5b6414a34e06cfc0965b Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2020-06-22ARM64: configs: tizen_bcmrpi3: change BLK_DEV_RAM_SIZE to 32MBJaehoon Chung1-1/+2
Change BLK_DEV_RAM_SIZE from 12MB to 32MB. And also change BLK_DEV_RAM_COUNT from 16 to 2. It doesn't need to keep /dev/ram0-16. Change-Id: I598dba4abc102a7ba51f5419ad6871875b73165c Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2020-04-20packaging: Add build perf with unwind call-graph supportsubmit/tizen/20200421.025351accepted/tizen/unified/20200422.032151Seung-Woo Kim1-3/+10
To support perf unwind call-graph, add BuildRequires for unwind, dw, elfutils and other related devel packages. Also add definition to remove not necessary perl dependency Change-Id: I8e94ec4642026841255bbec08ae3dea2a8f5b531 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-04-20perf version: Fix segfault due to missing OPT_END()Ravi Bangoria1-0/+1
'perf version' on powerpc segfaults when used with non-supported option: # perf version -a Segmentation fault (core dumped) Fix this. Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Tested-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Link: http://lkml.kernel.org/r/20190611030109.20228-1-ravi.bangoria@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> [sw0312.kim: cherry-pick mainline commit 916c31fff946 to fix possible seg.fault in Tizen armv7l] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: If19720350e2992d1f5e58711f1f708a4d4ec5683
2020-03-27brcmfmac: support firmware reporting 160 MHz channelsRafał Miłecki1-1/+3
So far 160 MHz channels were treated as 20 MHz ones which was breaking support for 40/80 MHz due to the brcmf_construct_chaninfo() logic and its assumptions. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> [sw0312.kim: backport mainline commit 30519cbe339a to show more 5G channels properly] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: I62ca12dfd97d0cd3233840d5b569e768dc4a1672
2020-03-16rpi3: config_64bit: boot from u-boot instead of splsubmit/tizen/20200320.002931submit/tizen/20200319.052222submit/tizen/20200317.014342accepted/tizen/unified/20200320.074825Seung-Woo Kim1-3/+3
Now, Tizen does not support OPTEE by default, so u-boot-spl is not required. Boot from u-boot instead of u-boot-spl. Change-Id: Iadaee5290ede214b4f85487eea8e9151f9ea98f9 Ref: https://bugs.tizen.org/browse/TRE-2318 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-03-16ARM64: tizen_bcmrpi3_defconfig: Disable OPTEESeung-Woo Kim1-1/+0
Now, Tizen does not support OPTEE by default. Disable OPTEE config options. Change-Id: I424d38f42ad0e3199bd84517fb477dc212785be8 Ref: https://bugs.tizen.org/browse/TRE-2318 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-03-16ARM: dts: bcm2710-rpi-3: Change build macro for opteeSeung-Woo Kim3-3/+5
Now, Tizen does not support optee by default. Change build macro for optee related nodes in default case. Change-Id: Ib925414ba6fd96099ca984cc8b665263812b9538 Ref: https://bugs.tizen.org/browse/TRE-2318 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-01-20ARM64: tizen_bcmrpi3_defconfig: Disable RAID6_PQ_BENCHMARKsubmit/tizen/20200121.011335accepted/tizen/unified/20200121.121402Junghoon Kim1-0/+1
Skip the algorithm benchmarking process of RAID6 for the fast kernel startup. The option is not crucial for the rpi boards. Change-Id: I9c959bcf2bbb178e72bc4315a0734d8059ebd46b Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
2020-01-20ARM: tizen_bcm2709_defconfig: Disable RAID6_PQ_BENCHMARKJunghoon Kim1-0/+1
Skip the algorithm benchmarking process of RAID6 for the fast kernel startup. The option is not crucial for the rpi boards. Change-Id: If0a4748febb2fad3349b4327624943bdf42454d4 Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
2020-01-20lib/raid6: add option to skip algo benchmarkingDaniel Verkamp3-0/+16
This is helpful for systems where fast startup time is important. It is especially nice to avoid benchmarking RAID functions that are never used (for example, BTRFS selects RAID6_PQ even if the parity RAID mode is not in use). This saves 250+ milliseconds of boot time on modern x86 and ARM systems with a dozen or more available implementations. The new option is defaulted to 'y' to match the previous behavior of always benchmarking on init. Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Signed-off-by: Shaohua Li <shli@fb.com> [jhoon20.kim: backport from mainline for the fast kernel startup] Change-Id: I38c270c413d60de65f27cf9c95d44bb2e2d07ac2 Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
2020-01-06ARM: configs: tizen_bcm2709_defconfig: Enable missing NETFILTER options for ↵submit/tizen/20200108.013416accepted/tizen/unified/20200108.131400Seung-Woo Kim1-11/+54
nether To properly support nether rules, netfilter options are required including udplite, raw, mangle and others. Enable the missing NETFILTER options for nether. Ref: nether rule in https://git.tizen.org/cgit/platform/core/security/nether/tree/conf/nether.rules?h=tizen Change-Id: I7cb0b1f669e412540085a05fcbb95d5fc7afaffc Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-01-06ARM64: configs: tizen_bcmrpi3_defconfig: Enable missing NETFILTER options ↵Seung-Woo Kim1-9/+54
for nether To properly support nether rules, netfilter options are required including udplite, raw, mangle and others. Enable the missing NETFILTER options for nether. Ref: nether rule in https://git.tizen.org/cgit/platform/core/security/nether/tree/conf/nether.rules?h=tizen Change-Id: I9017da2dc9bc74a83488f8b74e843d2ff23395a2 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-01-06ARM: configs: tizen_bcm2709_defconfig: Enable USB SERIAL drivers for modemSeung-Woo Kim1-0/+8
To support usb modem dongle and related devices, enable USB SERIAL drivers and ppp network interface to support the modem. Change-Id: I0f496f38e20f6816653dad354efde1519a54670c Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2020-01-06ARM64: configs: tizen_bcmrpi3_defconfig: Enable USB SERIAL drivers for modemSeung-Woo Kim1-0/+10
To support usb modem dongle and related devices, enable USB SERIAL drivers and ppp network interface to support the modem. Change-Id: I3caf00b94edc0ad98ae95687bfc8d0b845413cfb Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2019-12-31arm64: Don't unconditionally add -Wno-psabi to KBUILD_CFLAGSsubmit/tizen/20200102.014302accepted/tizen/unified/20200102.220851Nathan Chancellor1-1/+1
commit fa63da2ab046b885a7f70291aafc4e8ce015429b upstream. This is a GCC only option, which warns about ABI changes within GCC, so unconditionally adding it breaks Clang with tons of: warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option] and link time failures: ld.lld: error: undefined symbol: __efistub___stack_chk_guard >>> referenced by arm-stub.c:73 (/home/nathan/cbl/linux/drivers/firmware/efi/libstub/arm-stub.c:73) >>> arm-stub.stub.o:(__efistub_install_memreserve_table) in archive ./drivers/firmware/efi/libstub/lib.a These failures come from the lack of -fno-stack-protector, which is added via cc-option in drivers/firmware/efi/libstub/Makefile. When an unknown flag is added to KBUILD_CFLAGS, clang will noisily warn that it is ignoring the option like above, unlike gcc, who will just error. $ echo "int main() { return 0; }" > tmp.c $ clang -Wno-psabi tmp.c; echo $? warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option] 1 warning generated. 0 $ gcc -Wsometimes-uninitialized tmp.c; echo $? gcc: error: unrecognized command line option ‘-Wsometimes-uninitialized’; did you mean ‘-Wmaybe-uninitialized’? 1 For cc-option to work properly with clang and behave like gcc, -Werror is needed, which was done in commit c3f0d0bc5b01 ("kbuild, LLVMLinux: Add -Werror to cc-option to support clang"). $ clang -Werror -Wno-psabi tmp.c; echo $? error: unknown warning option '-Wno-psabi' [-Werror,-Wunknown-warning-option] 1 As a consequence of this, when an unknown flag is unconditionally added to KBUILD_CFLAGS, it will cause cc-option to always fail and those flags will never get added: $ clang -Werror -Wno-psabi -fno-stack-protector tmp.c; echo $? error: unknown warning option '-Wno-psabi' [-Werror,-Wunknown-warning-option] 1 This can be seen when compiling the whole kernel as some warnings that are normally disabled (see below) show up. The full list of flags missing from drivers/firmware/efi/libstub are the following (gathered from diffing .arm64-stub.o.cmd): -fno-delete-null-pointer-checks -Wno-address-of-packed-member -Wframe-larger-than=2048 -Wno-unused-const-variable -fno-strict-overflow -fno-merge-all-constants -fno-stack-check -Werror=date-time -Werror=incompatible-pointer-types -ffreestanding -fno-stack-protector Use cc-disable-warning so that it gets disabled for GCC and does nothing for Clang. Fixes: ebcc5928c5d9 ("arm64: Silence gcc warnings about arch ABI drift") Link: https://github.com/ClangBuiltLinux/linux/issues/511 Reported-by: Qian Cai <cai@lca.pw> Acked-by: Dave Martin <Dave.Martin@arm.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [sw0312.kim: cherry-pick from stable linux-4.19.y commit 85a3b1ef969b for gcc 9 build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: I264a7663478de10d196d8550349098552fe02544
2019-12-31arm64: Silence gcc warnings about arch ABI driftDave Martin1-0/+1
[ Upstream commit ebcc5928c5d925b1c8d968d9c89cdb0d0186db17 ] Since GCC 9, the compiler warns about evolution of the platform-specific ABI, in particular relating for the marshaling of certain structures involving bitfields. The kernel is a standalone binary, and of course nobody would be so stupid as to expose structs containing bitfields as function arguments in ABI. (Passing a pointer to such a struct, however inadvisable, should be unaffected by this change. perf and various drivers rely on that.) So these warnings do more harm than good: turn them off. We may miss warnings about future ABI drift, but that's too bad. Future ABI breaks of this class will have to be debugged and fixed the traditional way unless the compiler evolves finer-grained diagnostics. Signed-off-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Sasha Levin <sashal@kernel.org> [sw0312.kim: cherry-pick from stable linux-4.19.y commit 71d019a6dae9 for gcc 9 build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: I6a6ca56261860468207555d869f5a90882565c4b
2019-12-31tracing: Silence GCC 9 array bounds warningMiguel Ojeda3-10/+20
commit 0c97bf863efce63d6ab7971dad811601e6171d2f upstream. Starting with GCC 9, -Warray-bounds detects cases when memset is called starting on a member of a struct but the size to be cleared ends up writing over further members. Such a call happens in the trace code to clear, at once, all members after and including `seq` on struct trace_iterator: In function 'memset', inlined from 'ftrace_dump' at kernel/trace/trace.c:8914:3: ./include/linux/string.h:344:9: warning: '__builtin_memset' offset [8505, 8560] from the object at 'iter' is out of the bounds of referenced subobject 'seq' with type 'struct trace_seq' at offset 4368 [-Warray-bounds] 344 | return __builtin_memset(p, c, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In order to avoid GCC complaining about it, we compute the address ourselves by adding the offsetof distance instead of referring directly to the member. Since there are two places doing this clear (trace.c and trace_kdb.c), take the chance to move the workaround into a single place in the internal header. Link: http://lkml.kernel.org/r/20190523124535.GA12931@gmail.com Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> [ Removed unnecessary parenthesis around "iter" ] Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [sw0312.kim: cherry-pick stable linux-4.19.y commit c493ead38adb for gcc 9 build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: I660c183206836972e5e39ff54ccfdd23517b5295
2019-12-31gcc-9: don't warn about uninitialized variableLinus Torvalds1-1/+1
commit cf676908846a06443fa5e6724ca3f5dd7460eca1 upstream. I'm not sure what made gcc warn about this code now. The 'ret' variable does end up initialized in all cases, but it's definitely not obvious, so the compiler is quite reasonable to warn about this. So just add initialization to make it all much more obvious both to compilers and to humans. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [sw0312.kim: cherry-pick from stable linux-4.19.y commit a152a7b411a5 for gcc 9 build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: I9ffd18114904d32ebb631680c7ac40d9771771c2
2019-12-31gcc-9: silence 'address-of-packed-member' warningLinus Torvalds1-1/+1
commit 6f303d60534c46aa1a239f29c321f95c83dda748 upstream. We already did this for clang, but now gcc has that warning too. Yes, yes, the address may be unaligned. And that's kind of the point. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [sw0312.kim: cherry-pick from stable linux-4.19.y commit 76343a1363f8 for gcc 9 build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: Ia29a74ee9de68e0518c46e7cc0affad1f07d5f10
2019-12-31tools include uapi: Update linux/mmap.h copyArnaldo Carvalho de Melo1-0/+2
To pick up the changes from: 20916d4636a9 ("mm/hugetlb: add mmap() encodings for 32MB and 512MB page sizes") That do not entail changes in in tools, this just shows that we have to consider bits [26:31] of flags to beautify that in tools like 'perf trace' This silences this perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/mman.h' differs from latest version at 'include/uapi/linux/mman.h' diff -u tools/include/uapi/linux/mman.h include/uapi/linux/mman.h Cc: Anshuman Khandual <anshuman.khandual@arm.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-3rvc39lon93kgt5pl31d8g4x@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> [sw0312.kim: cherry-pick mainline commit 685626dc26bd for perf build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: Ifcded1bb028928b2d32c3c315c7bfa8cfd0a9d58
2019-12-31tools arch: Update arch/x86/lib/memcpy_64.S copy used in 'perf bench mem memcpy'Arnaldo Carvalho de Melo1-1/+2
To bring in the change made in this cset: b69656fa7ea2 ("x86/uaccess: Fix up the fixup") Silencing this perf build warning: Warning: Kernel ABI header at 'tools/arch/x86/lib/memcpy_64.S' differs from latest version at 'arch/x86/lib/memcpy_64.S' diff -u tools/arch/x86/lib/memcpy_64.S arch/x86/lib/memcpy_64.S No changes in the tooling using this, that was just to ease some objtool return checking. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lkml.kernel.org/n/tip-j0mxgqkuibhw5qid9saaspdu@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> [sw0312.kim: cherry-pick mainline commit a021b5400111 for perf build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: Icc22d689c8a1beacb4caa574c0a71bbd1b20f951
2019-12-31tools arch uapi: Sync the x86 kvm.h copyArnaldo Carvalho de Melo1-0/+1
To get the changes in: 59073aaf6de0 ("kvm: x86: Add exception payload fields to kvm_vcpu_events") This silences the following perf build warning: Warning: Kernel ABI header at 'tools/arch/x86/include/uapi/asm/kvm.h' differs from latest version at 'arch/x86/include/uapi/asm/kvm.h' diff -u tools/arch/x86/include/uapi/asm/kvm.h arch/x86/include/uapi/asm/kvm.h The changes in this file are in something not used at this time in any tools/perf/ tool. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jim Mattson <jmattson@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paolo Bonzini <pbonzini@redhat.com> Link: https://lkml.kernel.org/n/tip-6uh8tpraons0h22dmxgfyony@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> [sw0312.kim: cherry-pick mainline commit f98f10f35257 for perf build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: If00ae735efa27c7bad8a1f2cd5893b919cfc809d
2019-12-31tools arch x86: Sync asm/cpufeatures.h with the with the kernelArnaldo Carvalho de Melo1-0/+3
To pick up the changes in: ed5194c2732c ("x86/speculation/mds: Add basic bug infrastructure for MDS") e261f209c366 ("x86/speculation/mds: Add BUG_MSBDS_ONLY") That don't affect anything in tools/. This silences this perf build warning: Warning: Kernel ABI header at 'tools/arch/x86/include/asm/cpufeatures.h' differs from latest version at 'arch/x86/include/asm/cpufeatures.h' diff -u tools/arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/cpufeatures.h Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Brendan Gregg <brendan.d.gregg@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/n/tip-jp1afecx3ql1jkuirpgkqfad@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> [sw0312.kim: cherry-pick mainline commit b979540a7522 for perf build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: I879810548387101141f808c1c972f691c906c3e1
2019-12-31tools arch x86: Sync asm/cpufeatures.h with the kernel sourcesArnaldo Carvalho de Melo1-0/+1
To get the changes from: 52f64909409c ("x86: Add TSX Force Abort CPUID/MSR") That don't cause any changes in the generated perf binaries. And silence this perf build warning: Warning: Kernel ABI header at 'tools/arch/x86/include/asm/cpufeatures.h' differs from latest version at 'arch/x86/include/asm/cpufeatures.h' diff -u tools/arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/cpufeatures.h Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/n/tip-zv8kw8vnb1zppflncpwfsv2w@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> [sw0312.kim: cherry-pick mainline commit 949af89af02c for perf build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: I2c20b8306175133ee6445c69fb68575f2c4eba9e
2019-12-23perf help: Remove needless use of strncpy()Arnaldo Carvalho de Melo1-1/+1
commit b6313899f4ed2e76b8375cf8069556f5b94fbff0 upstream. Since we make sure the destination buffer has at least strlen(orig) + 1, no need to do a strncpy(dest, orig, strlen(orig)), just use strcpy(dest, orig). This silences this gcc 8.2 warning on Alpine Linux: In function 'add_man_viewer', inlined from 'perf_help_config' at builtin-help.c:284:3: builtin-help.c:192:2: error: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] strncpy((*p)->name, name, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ builtin-help.c: In function 'perf_help_config': builtin-help.c:187:15: note: length computed here size_t len = strlen(name); ^~~~~~~~~~~~ Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Fixes: 078006012401 ("perf_counter tools: add in basic glue from Git") Link: https://lkml.kernel.org/n/tip-2f69l7drca427ob4km8i7kvo@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [sw0312.kim: cherry-pick stable linux-4.19.y commit 0bf5d53b53c8 for gcc 9 build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: Id98e9ca8049d25d658b4f012fdede1b8745d875f
2019-12-23perf header: Fix unchecked usage of strncpy()Arnaldo Carvalho de Melo1-1/+1
commit 5192bde7d98c99f2cd80225649e3c2e7493722f7 upstream. The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. This fixes this warning on an Alpine Linux Edge system with gcc 8.2: util/header.c: In function 'perf_event__synthesize_event_update_name': util/header.c:3625:2: error: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] strncpy(ev->data, evsel->name, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util/header.c:3618:15: note: length computed here size_t len = strlen(evsel->name); ^~~~~~~~~~~~~~~~~~~ Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Fixes: a6e5281780d1 ("perf tools: Add event_update event unit type") Link: https://lkml.kernel.org/n/tip-wycz66iy8dl2z3yifgqf894p@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [sw0312.kim: cherry-pick stable linux-4.19.y commit 6461a4543b34 for gcc 9 build] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Change-Id: I2d116858af62b094276699c790b7ba090fe28513
2019-12-20ARM: configs: tizen_bcm2709_defconfig: Enable tethering config optionssubmit/tizen/20191223.042319accepted/tizen/unified/20191223.060218Seung-Woo Kim1-0/+5
In Tizen 6.0, network framework supports tethering from ethernet to wifi. Enable required config options for tethering. Ref: section 6-3 of https://git.tizen.org/cgit/platform/kernel/tizen-kernel-configs/tree/tizen/tizen_defconfig?h=tizen Change-Id: I162d6eb89ce8d25d85659c7a2e632dbfe0909dc6 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2019-12-20ARM64: tizen_bcmrpi3_defconfig: Enable tethering config optionsSeung-Woo Kim1-0/+5
In Tizen 6.0, network framework supports tethering from ethernet to wifi. Enable required config options for tethering. Ref: section 6-3 of https://git.tizen.org/cgit/platform/kernel/tizen-kernel-configs/tree/tizen/tizen_defconfig?h=tizen Change-Id: I5df076b13a3c02257f34e368dd99aaca2b3370b0 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2019-12-18scripts: mkbootimg_rpi3.sh: Create boot tarball for the lthor flashingsubmit/tizen/20191218.054411accepted/tizen/unified/20191218.120926Junghoon Kim1-2/+17
This patch is to create boot tarball for the lthor flashing. With this, we can easily test the rpi3 kernel in the local environment. Change-Id: Ib7bca6f7fa2c5a51be097042eda80c2d9297d4ac Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
2019-12-18ARM64: tizen_bcmrpi3_defconfig: Enable btrfs filesystemJunghoon Kim1-1/+2
Enable btrfs filesystem to use it as the rootfs mount for the RPI4 64-bit architecture. Change-Id: Ieb13f6970dbfd8c947c501cfad1c7eb9ee4d2799 Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
2019-12-18ARM: tizen_bcm2709_defconfig: Enable btrfs filesystemJunghoon Kim1-1/+2
Enable btrfs filesystem to use it as the rootfs mount for the RPI3 32-bit architecture. Change-Id: I697e2fc9cbf4c8f69a94afed0e2244c3b8accad7 Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
2019-12-05drm/vc4: fix wrong filp usage in gem_info debugfs nodesubmit/tizen/20191206.014708accepted/tizen/unified/20191206.053944Seung-Woo Kim2-8/+10
After the mainline commit 65101d8c9108 ("drm/vc4: Expose performance counters to userspace") applied in v4.17, vc4 drm has its own filp. So gem_info filp usage is not proper. Fix the wrong filp usage in gem_info debugfs node. Change-Id: I526a888f345378d66f96e9d6cd3d19527e56ddaa Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2019-11-20ARM: configs: tizen_bcm2709_defconfig: Enable HID_MULTITOUCHsubmit/tizen/20191122.013016accepted/tizen/unified/20191122.053238Seung-Woo Kim1-0/+1
To support usb multi-touch device, enable CONFIG_HID_MULTITOUCH. Change-Id: I2423291698367912d379787e94dc75659f414a31 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2019-11-20ARM64: configs: tizen_bcmrpi3_defconfig: Enable HID_MULTITOUCHSeung-Woo Kim1-0/+1
To support usb multi-touch device, enable CONFIG_HID_MULTITOUCH. Change-Id: I36f625f08b980e7a5ed8cea9e061ba0d4d56d39b Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2019-11-01packaging: replace -fPIC to -fPIE for perf executablesubmit/tizen/20191101.065513accepted/tizen/unified/20191104.010844Seung-Woo Kim1-2/+2
Build issue for perf is from linking perf executable, so pie flag is suitabler than pic flag. Replace -fPIC to -fPIE for perf executable and add the flag to missed perf install part. Change-Id: I0911dc2b3ffc54724927846f5e081da9d7335c39 Suggested-by: Dongkyun Son <dongkyun.s@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2019-10-31packaging: Add -fPIC flag to perf build cflagssubmit/tizen/20191031.023155Seung-Woo Kim1-1/+1
Current Tizen build environment requires -fPIC with relocation and without the flag, there is build error for perf like below: armv7l armv7l-tizen-linux-gnueabi/bin/ld: perf-in.o: relocation R_ARM_MOVW_ABS_NC against `__stack_chk_guard' can not be used when making a shared object; recompile with -fPIC aarch64 aarch64-tizen-linux-gnu/bin/ld: perf-in.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `__stack_chk_guard@@GLIBC_2.17' can not be used when making a shared object; recompile with -fPIC aarch64-tizen-linux-gnu/bin/ld: perf-in.o(.text+0x4): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `__stack_chk_guard@@GLIBC_2.17' Add -fPIC flag to perf build. Change-Id: Icca04801698c88180dfde493a3ef92e5c01612b5 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2019-10-11ARM: configs: tizen_bcm2709_defconfig: Enable EXTCON for hdmisubmit/tizen/20191031.012258Seung-Woo Kim1-0/+1
Enable CONFIG_EXTCON for hdmi connection uevent. Change-Id: I62cc93151019209661600af2a63f087d25112490 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2019-10-11ARM64: configs: tizen_bcmrpi3_defconfig: Enable EXTCON for hdmiSeung-Woo Kim1-0/+1
Enable CONFIG_EXTCON for hdmi connection uevent. Change-Id: I912b8dddf6e2fbc13075ad6f83fbd06ea55f6d90 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2019-10-11drm/vc4: add extcon hdmi connection ueventSeung-Woo Kim1-8/+56
Add extcon hdmi connection and disconnection ueven when extcon module is enabled. The vc4 hdmi detection is done by polling way, so extcon uevent for connection is a bit slow after changing real hdmi cable state. Change-Id: I962f7a39b7a3344f9793e436ef28c36b123571a8 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2019-09-23scripts: mkbootimg_rpi3.sh: Fix to install modules on non sudo statusSeung-Woo Kim1-3/+5
On sudo status, env variable is possible not to be preserved and it causes failure on modules_install. So fix to install modules on non sudo status and then move the directories and files to image area. Change-Id: Ie1e0ff695caf79b1ce3d25be8a70151a30fbfee0 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
2019-09-17build: script: combine rpi3 32bit and 64bit scriptsJaehoon Chung3-55/+50
Combine rpi3 32bit and 64bit scripts. e.g) build-rpi3.sh arm / arm64 Change-Id: I224b7944362245685e4557f2fe41837c3a685ad8 Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2019-09-05packaging: add perf package for perf tool and traceevent pluginsSeung-Woo Kim1-0/+26
Add perf package for perf tool and its traceevent plugins. Note: they are built from below directories. - perf: tools/perf - traceevent plugins: tools/lib/traceevent Change-Id: I418c52ec7dffb6b98e72e402af5bf67c3d837ba7 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>