Re: [PATCH 1/4] ARM: dts: exynos: Add missing used PMIC regulators on Exynos5422 Odroid boards

2018-08-11 Thread Anand Moon
Hi Krzysztof, These patches should also be ported to u-boot to enable PMIC. I was just looking into S2MPS11B data sheet According to the 1.2 Key Features of S2MPS11 BUCK1, BUCK2, BUCK3, BUCK4, BUCK6 have (0.65 V to 1.6 V) min /max range. BUCK5 have (0.65 V to 2.0 V) min /max range. BUCK7 have

Re: [PATCH v8 4/6] Uprobes/sdt: Prevent multiple reference counter for same uprobe

2018-08-11 Thread Song Liu
On Wed, Aug 8, 2018 at 9:18 PM, Ravi Bangoria wrote: > We assume to have only one reference counter for one uprobe. > Don't allow user to register multiple uprobes having same > inode+offset but different reference counter. > > Signed-off-by: Ravi Bangoria > --- > kernel/events/uprobes.c | 9

[PATCH] 9p: Remove Ron Minnich from MAINTAINERS

2018-08-11 Thread Dominique Martinet
From: Dominique Martinet Ron Minnich has left Sandia in 2011, and has not been involved in any 9p commit in the recent years. Signed-off-by: Dominique Martinet Cc: Eric Van Hensbergen Cc: Ron Minnich Cc: Ronald G. Minnich Cc: Latchesar Ionkov --- Thanks for agreeing Ron. MAINTAINERS | 1

Re: [PATCH v8 1/6] Uprobes: Simplify uprobe_register() body

2018-08-11 Thread Song Liu
On Wed, Aug 8, 2018 at 9:18 PM, Ravi Bangoria wrote: > Simplify uprobe_register() function body and let __uprobe_register() > handle everything. Also move dependency functions around to fix build > failures. > > Signed-off-by: Ravi Bangoria Reviewed-by: Song Liu > --- >

Re: [PATCH v8 2/6] Uprobe: Additional argument arch_uprobe to uprobe_write_opcode()

2018-08-11 Thread Song Liu
On Wed, Aug 8, 2018 at 9:18 PM, Ravi Bangoria wrote: > Add addition argument 'arch_uprobe' to uprobe_write_opcode(). > We need this in later set of patches. > > Signed-off-by: Ravi Bangoria Reviewed-by: Song Liu > --- > arch/arm/probes/uprobes/core.c | 2 +- > arch/mips/kernel/uprobes.c

DEAR FRIEND.

2018-08-11 Thread Daouda Ali
Dear Friend, I am Mr.Daouda Ali the head of file department of Bank of Africa(B.O.A) here in Burkina Faso / Ouagadougou. In my department we discover an abandoned sum of (US$18 million US Dollars) in an account that belongs to one of our foreign customer who died along with his family in plane

BUG: corrupted list in end_requests

2018-08-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1236568ee3cb Merge tag 'gpio-v4.18-3' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10bf0c9c40 kernel config: https://syzkaller.appspot.com/x/.config?x=152cb8ccd35b1f70

Re: [PATCH 3/3] mm/memory_hotplug: Cleanup unregister_mem_sect_under_nodes

2018-08-11 Thread Oscar Salvador
On Fri, Aug 10, 2018 at 03:37:27PM -0700, Andrew Morton wrote: > I guess so. But the node_online() check was silently removed? A node can only get offline if all the memory and CPUs associated with it are removed. This is being checked in remove_memory()->try_offline_node(). There we check

Re: KASAN errors from unwind_frame

2018-08-11 Thread Greg KH
On Fri, Aug 10, 2018 at 07:29:30PM -0700, Sodagudi Prasad wrote: > Hi All, > > I have observed following KASAN error with 4.14.56 kernel. > Can you please copy change-[1](kasan: add no_sanitize attribute for clang > builds) into stable kernels? Applied to 4.14 and 4.9 now, thanks. greg k-h

Re: [PATCH v8 3/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-08-11 Thread Song Liu
On Fri, Aug 10, 2018 at 12:58 PM, Steven Rostedt wrote: > On Thu, 9 Aug 2018 16:38:28 +0200 > Oleg Nesterov wrote: > >> I need to read this (hopefully final) version carefully. I'll try to do >> this before next Monday. >> > > Monday may be the opening of the merge window (more likely Sunday).

Re: [PATCH v8 3/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-08-11 Thread Song Liu
On Wed, Aug 8, 2018 at 9:18 PM, Ravi Bangoria wrote: > Userspace Statically Defined Tracepoints[1] are dtrace style markers > inside userspace applications. Applications like PostgreSQL, MySQL, > Pthread, Perl, Python, Java, Ruby, Node.js, libvirt, QEMU, glib etc > have these markers embedded in

Re: [PATCH v8 5/6] trace_uprobe/sdt: Prevent multiple reference counter for same uprobe

2018-08-11 Thread Song Liu
Do we really need this given we already have PATCH 4/6? uprobe_regsiter() can be called out of trace_uprobe, this patch won't catch all conflicts anyway. Song On Wed, Aug 8, 2018 at 9:18 PM, Ravi Bangoria wrote: > We assume to have only one reference counter for one uprobe. > Don't allow user

[PATCH] perf tools: Fix check-headers.sh AND list path of execution

2018-08-11 Thread Alexander Kapshuk
The '||' path of execution in the 'test' block of the check_2() function may also be taken if file2 does not exist, in which case the warning message about the ABI headers being different would still be printed where it should not be. See below. % file1=file1; file2=file2 % cmd="echo diff $file1

general protection fault in kvm_lapic_hv_timer_in_use

2018-08-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8c8399e0a3fb Add linux-next specific files for 20180806 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1796b8e240 kernel config: https://syzkaller.appspot.com/x/.config?x=1b6bc1781e49e93e

Re: [PATCH] clk: qcom: Add Global Clock controller (GCC) driver for SDM660

2018-08-11 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Craig-Tatlor/clk-qcom-Add-Global-Clock-controller-GCC-driver-for-SDM660/20180811-150111 base: https://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git for-next reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig

[RFC PATCH] clk: qcom: gcc_sdm660_hws[] can be static

2018-08-11 Thread kbuild test robot
Fixes: 851e534f5d75 ("clk: qcom: Add Global Clock controller (GCC) driver for SDM660") Signed-off-by: kbuild test robot --- gcc-sdm660.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-sdm660.c b/drivers/clk/qcom/gcc-sdm660.c index bdb445a..cec8b41

[PATCH] staging: gasket: remove null ptr check before kfree

2018-08-11 Thread Sumit Kumar
Remove null ptr check before kfree because kfree is null ptr safe. Issue found by checkpatch. Signed-off-by: Sumit Kumar --- drivers/staging/gasket/gasket_page_table.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/gasket/gasket_page_table.c

Re: [PATCH 28/33] vfs: syscall: Add fsconfig() for configuring and managing a context [ver #11]

2018-08-11 Thread Andy Lutomirski
On Sat, Aug 11, 2018 at 1:20 PM, David Howells wrote: > Miklos Szeredi wrote: > >> You can determine at fsopen() time whether the filesystem is able to >> support the O_EXCL behavior? If so, then it's trivial to enable this >> conditionally. I think that's what Eric is asking for, it's

[RESEND PATCH] iio: dac: mcp4725: avoid using CONFIG_PM_SLEEP

2018-08-11 Thread Marcus Folkesson
This is already handled by SIMPLE_DEV_PM_OPS(). Signed-off-by: Marcus Folkesson --- Somehow git-send-email messed up (?!) the format for (at least) gmail, so resend it. Mutt still read the mail correct though. drivers/iio/dac/mcp4725.c | 12 +++- 1 file changed, 3 insertions(+), 9

[RESEND PATCH] iio: dac: max5821: avoid using CONFIG_PM_SLEEP

2018-08-11 Thread Marcus Folkesson
This is already handled by SIMPLE_DEV_PM_OPS(). Signed-off-by: Marcus Folkesson --- Somehow git-send-email messed up (?!) the format for (at least) gmail, so resend it. Mutt still read the mail correct though. drivers/iio/dac/max5821.c | 11 +++ 1 file changed, 3 insertions(+), 8

[RESEND PATCH] iio: dac: max517: avoid using CONFIG_PM_SLEEP

2018-08-11 Thread Marcus Folkesson
This is already handled by SIMPLE_DEV_PM_OPS(). Signed-off-by: Marcus Folkesson --- Somehow git-send-email messed up (?!) the format for (at least) gmail, so resend it. Mutt still read the mail correct though. drivers/iio/dac/max517.c | 11 +++ 1 file changed, 3 insertions(+), 8

[PATCH] ARM: drop experimental mark for ARM stack unwinding

2018-08-11 Thread Stefan Agner
ARM stack unwinding is upstream since 2009 and has been proven working well. At this time it is the preferred stack unwinding support since it also supports Thumb 2. Do not scare people and drop the EXPERIMENTAL mark. Signed-off-by: Stefan Agner --- arch/arm/Kconfig.debug | 2 +- 1 file

Re: [PATCH 0/5 - V2] locks: avoid thundering-herd wake-ups

2018-08-11 Thread Jeff Layton
On Fri, 2018-08-10 at 11:47 -0400, J. Bruce Fields wrote: > On Fri, Aug 10, 2018 at 01:17:14PM +1000, NeilBrown wrote: > > On Thu, Aug 09 2018, J. Bruce Fields wrote: > > > > > On Fri, Aug 10, 2018 at 11:50:58AM +1000, NeilBrown wrote: > > > > You're good at this game! > > > > > > Everybody's

drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:1981 same_hw_devs() error: uninitialized symbol 'fsystem_guid'.

2018-08-11 Thread Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f313b43be461f157755a57c1156f86abe10588de commit: 816f670623692b5da2787f278cbfdb331ed29b8a net/mlx5e: Properly check if hairpin is possible between two functions New smatch warnings:

the editing is that you need

2018-08-11 Thread Jeff
We would like to check if your photos need editing. We can do it for you. Our image editing is for web store photos, jewelries images and beauty and portrait photos etc. It is including cut out and clipping path , and also retouching if it is needed. We can do test on your photos. Just send us

the photos is what you need

2018-08-11 Thread Jeff
We would like to check if your photos need editing. We can do it for you. Our image editing is for web store photos, jewelries images and beauty and portrait photos etc. It is including cut out and clipping path , and also retouching if it is needed. We can do test on your photos. Just send us

[PATCH v3 11/17] x86/mce: enable Hygon support to MCE infrastructure

2018-08-11 Thread Pu Wen
Hygon machine check arch is similar to AMD family 17h. To enable the MCE infrastructure support, add CPU vendor check for Hygon to share the code path of AMD. Add hygon mce init function mce_hygon_feature_init() to minimize further maintenance effort. Signed-off-by: Pu Wen ---

[PATCH v3 12/17] x86/kvm: enable Hygon support to KVM infrastructure

2018-08-11 Thread Pu Wen
Hygon Dhyana CPU has the SVM feature as AMD family 17h does. Add Hygon support in the KVM infrastructure. Signed-off-by: Pu Wen --- arch/x86/include/asm/kvm_emulate.h | 4 arch/x86/include/asm/virtext.h | 5 +++-- arch/x86/kvm/emulate.c | 11 ++- 3 files changed,

[PATCH v3 10/17] x86/events: enable Hygon support to PMU infrastructure

2018-08-11 Thread Pu Wen
Hygon PMU arch is similar to AMD Family 17h. To support Hygon PMU, the initialization flow for it just call amd_pmu_init() and change PMU name to "HYGON". To share AMD's flow, add code check for Hygon family ID 18h to run the code path of AMD family 17h in core/uncore functions. Signed-off-by: Pu

[PATCH v3 08/17] x86/apic: add modern APIC support for Hygon

2018-08-11 Thread Pu Wen
Hygon processors use modern APIC, so just return in modern_apic() and sync_Arb_IDs(). And should break in switch case in detect_init_API(). When running on 32 bit mode, should set bigsmp if there are more than 8 cores. Signed-off-by: Pu Wen --- arch/x86/kernel/apic/apic.c | 19

[PATCH v3 07/17] x86/pci: add Hygon PCI vendor and northbridge support

2018-08-11 Thread Pu Wen
As Hygon register its PCI Vendor ID as a new one "0x1d94", so add a new definition PCI_VENDOR_ID_HYGON in include/linux/pci_ids.h. Also Hygon PCI Device ID(0x1450/0x1463/0x1464) for Host bridge is added to amd_nb.c. And it need to define new arrays for Hygon: hygon_root_ids[],

[PATCH v3 09/17] x86/bugs: add lfence mitigation to spectre v2 and no meltdown for Hygon

2018-08-11 Thread Pu Wen
To share codes between AMD and Hygon to mitigate Spectre V2 Retpoline vulnerability, rename macros SPECTRE_V2_RETPOLINE_MINIMAL_AMD to SPECTRE_V2_RETPOLINE_MINIMAL_LFENCE, and SPECTRE_V2_CMD_RETPOLINE_AMD to SPECTRE_V2_CMD_RETPOLINE_LFENCE. As Hygon processors are not affected by meltdown

[PATCH v3 05/17] x86/perfctr: return perf counter and event selection bit offset

2018-08-11 Thread Pu Wen
Hygon Dhyana shares similar perfctr arch with AMD family 17h. It returns the bit offset of the performance counter register and the event selection register for Hygon CPU in the similar way as AMD does. Signed-off-by: Pu Wen --- arch/x86/kernel/cpu/perfctr-watchdog.c | 2 ++ 1 file changed, 2

[PATCH v3 06/17] x86/nops: init ideal_nops for Hygon

2018-08-11 Thread Pu Wen
The ideal_nops for Dhyana processors should be p6_nops. Signed-off-by: Pu Wen --- arch/x86/kernel/alternative.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index a481763..8f4925b 100644 --- a/arch/x86/kernel/alternative.c

[for-next][PATCH 21/34] tracing: Make tracer_tracing_is_on() return bool

2018-08-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" There's code that expects tracer_tracing_is_on() to be either true or false, not some random number. Currently, it should only return one or zero, but just in case, change its return value to bool, to enforce it. Signed-off-by: Steven Rostedt (VMware) ---

[for-next][PATCH 22/34] ring-buffer: Make ring_buffer_record_is_on() return bool

2018-08-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The value of ring_buffer_record_is_on() is either true or false, so have its return value be bool. Signed-off-by: Steven Rostedt (VMware) --- include/linux/ring_buffer.h | 2 +- kernel/trace/ring_buffer.c | 2 +- 2 files changed, 2 insertions(+), 2

[for-next][PATCH 12/34] selftest/ftrace: Move kprobe selftest function to separate compile unit

2018-08-11 Thread Steven Rostedt
From: Francis Deslauriers Move selftest function to its own compile unit so it can be compiled with the ftrace cflags (CC_FLAGS_FTRACE) allowing it to be probed during the ftrace startup tests. Link: http://lkml.kernel.org/r/153294604271.32740.16490677128630177030.stgit@devbox Signed-off-by:

[for-next][PATCH 11/34] tracing: kprobes: Prohibit probing on notrace function

2018-08-11 Thread Steven Rostedt
From: Masami Hiramatsu Prohibit kprobe-events probing on notrace functions. Since probing on a notrace function can cause a recursive event call. In most cases those are just skipped, but in some cases it falls into an infinite recursive call. This protection can be disabled by the kconfig

[for-next][PATCH 14/34] lockdep: Use this_cpu_ptr instead of get_cpu_var stats

2018-08-11 Thread Steven Rostedt
From: "Joel Fernandes (Google)" get_cpu_var disables preemption which has the potential to call into the preemption disable trace points causing some complications. There's also no need to disable preemption in uses of get_lock_stats anyway since preempt is already disabled. So lets simplify the

[for-next][PATCH 25/34] tracing/kprobes: Fix within_notrace_func() to check only notrace functions

2018-08-11 Thread Steven Rostedt
From: Masami Hiramatsu Fix within_notrace_func() to check only notrace functions and to ignore the kprobe-event which can not solve symbol addresses. within_notrace_func() returns true if the given kprobe events probe point seems to be out-of-range. But that is not the correct place to check

[for-next][PATCH 23/34] ring-buffer: Make ring_buffer_record_is_set_on() return bool

2018-08-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The value of ring_buffer_record_is_set_on() is either true or false, so have its return value be bool. Signed-off-by: Steven Rostedt (VMware) --- include/linux/ring_buffer.h | 2 +- kernel/trace/ring_buffer.c | 2 +- 2 files changed, 2 insertions(+), 2

[for-next][PATCH 15/34] tracepoint: Make rcuidle tracepoint callers use SRCU

2018-08-11 Thread Steven Rostedt
From: "Joel Fernandes (Google)" In recent tests with IRQ on/off tracepoints, a large performance overhead ~10% is noticed when running hackbench. This is root caused to calls to rcu_irq_enter_irqson and rcu_irq_exit_irqson from the tracepoint code. Following a long discussion on the list [1]

[for-next][PATCH 28/34] tracing: Partial revert of "tracing: Centralize preemptirq tracepoints and unify their usage"

2018-08-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Joel Fernandes created a nice patch that cleaned up the duplicate hooks used by lockdep and irqsoff latency tracer. It made both use tracepoints. But it caused lockdep to trigger several false positives. We have not figured out why yet, but removing lockdep from

[for-next][PATCH 27/34] tracing: irqsoff: Account for additional preempt_disable

2018-08-11 Thread Steven Rostedt
From: "Joel Fernandes (Google)" Recently we tried to make the preemptirqsoff tracer to use irqsoff tracepoint probes. However this causes issues as reported by Masami: [2.271078] Testing tracer preemptirqsoff: .. no entries found ..FAILED! [2.381015] WARNING: CPU: 0 PID: 1 at

[for-next][PATCH 16/34] tracing: Centralize preemptirq tracepoints and unify their usage

2018-08-11 Thread Steven Rostedt
From: "Joel Fernandes (Google)" This patch detaches the preemptirq tracepoints from the tracers and keeps it separate. Advantages: * Lockdep and irqsoff event can now run in parallel since they no longer have their own calls. * This unifies the usecase of adding hooks to an irqsoff and irqson

[for-next][PATCH 10/34] tracing: preemptirq_delay_run() can be static

2018-08-11 Thread Steven Rostedt
From: kbuild test robot Automatically found by kbuild test robot. Fixes: ffdc73a3b2ad ("lib: Add module for testing preemptoff/irqsoff latency tracers") Signed-off-by: kbuild test robot Signed-off-by: Steven Rostedt (VMware) --- kernel/trace/preemptirq_delay_test.c | 2 +- 1 file changed, 1

[for-next][PATCH 18/34] tracing: Do not call start/stop() functions when tracing_on does not change

2018-08-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Currently, when one echo's in 1 into tracing_on, the current tracer's "start()" function is executed, even if tracing_on was already one. This can lead to strange side effects. One being that if the hwlat tracer is enabled, and someone does "echo 1 > tracing_on"

[for-next][PATCH 20/34] tracing: Do a WARN_ON() if start_thread() in hwlat is called when thread exists

2018-08-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The start function of the hwlat tracer should never be called when the hwlat thread already exists. If it is called, do a WARN_ON(). Signed-off-by: Steven Rostedt (VMware) --- kernel/trace/trace_hwlat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[for-next][PATCH 17/34] tracefs: Annotate tracefs_ops with __ro_after_init

2018-08-11 Thread Steven Rostedt
From: Zubin Mithra tracefs_ops is initialized inside tracefs_create_instance_dir and not modified after. tracefs_create_instance_dir allows for initialization only once, and is called from create_trace_instances(marked __init), which is called from tracer_init_tracefs(marked __init). Also, mark

[for-next][PATCH 08/34] tracing: Remove orphaned function ftrace_nr_registered_ops()

2018-08-11 Thread Steven Rostedt
From: Masami Hiramatsu Remove ftrace_nr_registered_ops() because it is no longer used. ftrace_nr_registered_ops() has been introduced by commit ea701f11da44 ("ftrace: Add selftest to test function trace recursion protection"), but its caller has been removed by commit 05cbbf643b8e ("tracing:

[for-next][PATCH 09/34] tracing/kprobes: Simplify the logic of enable_trace_kprobe()

2018-08-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The function enable_trace_kprobe() performs slightly differently if the file parameter is passed in as NULL on non-NULL. Instead of checking file twice, move the code between the two tests into a static inline helper function to make the code easier to follow.

[PATCH] staging:r8188eu: load lib80211 crypto ops from interruptible context

2018-08-11 Thread Ivan Safonov
Preloading lib80211_crypt_* modules from an ioctl handlers prevents the module loading from a tasklet. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ap.c | 4 +- drivers/staging/rtl8188eu/core/rtw_cmd.c | 8 +-

[PATCH] ARM: require GCC for FRAME_POINTER

2018-08-11 Thread Stefan Agner
To produce a meaningful backtrace with FRAME_POINTER enabled the kernel needs a specific function prologue: movip, sp stmfdsp!, {fp, ip, lr, pc} subfp, ip, #4 To get to the required prologue gcc uses apcs and no-sched-prolog. This compiler options are not available on

[PATCH] iio: chemical: bme680: Add check for val2 in the write_raw function

2018-08-11 Thread Himanshu Jha
val2 is responsible for the floating part of the number to be written to the device. We don't need the floating part while writing the oversampling ratio for BME680 since the available oversampling ratios are pure natural numbers. So, add a sanity check to make sure val2 is 0. Signed-off-by:

[PATCH v3 17/17] tools/cpupower: enable Hygon support to cpupower tool

2018-08-11 Thread Pu Wen
Tool cpupower is useful to get CPU frequency information and monitor power stats on Hygon platforms. So enable platform support to cpupower for Hygon Dhyana Family 18h processors by checking vendor ID and vendor string. Signed-off-by: Pu Wen --- tools/power/cpupower/utils/cpufreq-info.c

[for-next][PATCH 03/34] tracing/irqsoff: Split reset into separate functions

2018-08-11 Thread Steven Rostedt
From: "Joel Fernandes (Google)" Split reset functions into seperate functions in preparation of future patches that need to do tracer specific reset. Link: http://lkml.kernel.org/r/20180628182149.226164-4-j...@joelfernandes.org Reviewed-by: Namhyung Kim Signed-off-by: Joel Fernandes (Google)

[for-next][PATCH 00/34] tracing: My official queue finally passed testing and ready for linux-next

2018-08-11 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: f8a79d5c7ef47c62d97a30e16064caf2ef91f648 Colin Ian King (1): ftrace: Remove unused pointer ftrace_swapper_pid Erica Bugden (1): ftrace: Add missing check for existing hwlat thread Francis

[for-next][PATCH 02/34] srcu: Add notrace variant of srcu_dereference

2018-08-11 Thread Steven Rostedt
From: "Joel Fernandes (Google)" In the last patch in this series, we are making lockdep register hooks onto the irq_{disable,enable} tracepoints. These tracepoints use the _rcuidle tracepoint variant. In this series we switch the _rcuidle tracepoint callers to use SRCU instead of sched-RCU.

[for-next][PATCH 01/34] srcu: Add notrace variants of srcu_read_{lock,unlock}

2018-08-11 Thread Steven Rostedt
From: Paul McKenney This is needed for a future tracepoint patch that uses srcu, and to make sure it doesn't call into lockdep. tracepoint code already calls notrace variants for rcu_read_lock_sched so this patch does the same for srcu which will be used in a later patch. Keeps it consistent

[for-next][PATCH 07/34] tracing: Remove orphaned function using_ftrace_ops_list_func().

2018-08-11 Thread Steven Rostedt
From: Masami Hiramatsu Remove using_ftrace_ops_list_func() since it is no longer used. Using ftrace_ops_list_func() has been introduced by commit 7eea4fce0246 ("tracing/stack_trace: Skip 4 instead of 3 when using ftrace_ops_list_func") as a helper function, but its caller has been removed by

[for-next][PATCH 04/34] lib: Add module for testing preemptoff/irqsoff latency tracers

2018-08-11 Thread Steven Rostedt
From: "Joel Fernandes (Google)" Here we introduce a test module for introducing a long preempt or irq disable delay in the kernel which the preemptoff or irqsoff tracers can detect. This module is to be used only for test purposes and is default disabled. Following is the expected output (only

[for-next][PATCH 06/34] tracing: Make unregister_trigger() static

2018-08-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Nothing uses unregister_trigger() outside of trace_events_trigger.c file, thus it should be static. Not sure why this was ever converted, because its counter part, register_trigger(), was always static. Signed-off-by: Steven Rostedt (VMware) ---

[PATCH] gcc-plugins: require GCC

2018-08-11 Thread Stefan Agner
Unsurprisingly GCC plugins require GCC as a compiler. This avoids GCC plugins being selectable when using clang. Signed-off-by: Stefan Agner --- arch/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/Kconfig b/arch/Kconfig index 1aa59063f1fd..8c693a837ed7 100644

Re: [PATCH 0/5 - V2] locks: avoid thundering-herd wake-ups

2018-08-11 Thread Jeff Layton
On Thu, 2018-08-09 at 20:29 -0400, J. Bruce Fields wrote: > On Fri, Aug 10, 2018 at 08:12:43AM +1000, NeilBrown wrote: > > On Thu, Aug 09 2018, J. Bruce Fields wrote: > > > > > I think there's also a problem with multiple tasks sharing the same > > > lock owner. > > > > > > So, all locks are

Re: [PATCH 0/5 - V2] locks: avoid thundering-herd wake-ups

2018-08-11 Thread Jeff Layton
On Sat, 2018-08-11 at 08:21 -0400, J. Bruce Fields wrote: > On Sat, Aug 11, 2018 at 07:51:13AM -0400, Jeff Layton wrote: > > On Thu, 2018-08-09 at 20:29 -0400, J. Bruce Fields wrote: > > > On Fri, Aug 10, 2018 at 08:12:43AM +1000, NeilBrown wrote: > > > > On Thu, Aug 09 2018, J. Bruce Fields

[PATCH v3 16/17] driver/edac: enable Hygon support to AMD64 EDAC driver

2018-08-11 Thread Pu Wen
To make AMD64 EDAC and MCE drivers working on Hygon platforms, add vendor checking for Hygon by using the code path of AMD 0x17. Add a vendor field to struct amd64_pvt and initialize it in per_family_init for vendor checking. Also Hygon PCI Device ID DF_F0/DF_F6(0x1460/0x1466) of Host bridges is

[PATCH v3 15/17] driver/cpufreq: enable Hygon support to cpufreq driver

2018-08-11 Thread Pu Wen
Enable ACPI cpufreq driver support for Hygon by adding family ID check along with AMD. As Hygon platforms have SMBus device(PCI device ID 0x790b), enable Hygon support to function amd_freq_sensitivity_init(). Signed-off-by: Pu Wen --- drivers/cpufreq/acpi-cpufreq.c | 5 +

[PATCH v3 14/17] driver/acpi: enable Hygon support to ACPI driver

2018-08-11 Thread Pu Wen
For Dhyana processors have NONSTOP TSC feature, so enable the support to ACPI driver. Signed-off-by: Pu Wen --- drivers/acpi/acpi_pad.c | 1 + drivers/acpi/processor_idle.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index

[PATCH] iio: adc: max9611: explicitly cast gain_selectors

2018-08-11 Thread Stefan Agner
After finding a reasonable gain, the function converts the configured gain to a gain configuration option selector enum max9611_csa_gain. Make the conversion clearly visible by using an explicit cast. This also avoids a warning seen with clang: drivers/iio/adc/max9611.c:292:16: warning: implicit

drivers/android/.tmp_gl_binder.o:undefined reference to `__user_bad'

2018-08-11 Thread kbuild test robot
Hi Martijn, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f313b43be461f157755a57c1156f86abe10588de commit: 1190b4e38f97023154e6b3bef61b251aa5f970d0 ANDROID: binder: remove 32-bit binder interface. date: 3

Re: Fwd: PROBLEM: tpm_cpg can't request region with AMD/Dell fTPM

2018-08-11 Thread Tomas Winkler
On Sat, Aug 11, 2018 at 12:45 AM Jarkko Sakkinen wrote: > > On Fri, Aug 10, 2018 at 07:57:35PM +0300, Jarkko Sakkinen wrote: > > On Tue, Aug 07, 2018 at 02:43:10PM -0400, Harlan Lieberman-Berg wrote: > > > (Resending as it seems to have been spamfiltered out from the ml; > > > sorry Peter, Jarkko

Re: mmotm 2018-08-09-20-10 uploaded (mtd/nand/raw/atmel/)

2018-08-11 Thread Boris Brezillon
Hi Randy, On Fri, 10 Aug 2018 08:37:01 -0700 Randy Dunlap wrote: > On 08/09/2018 08:11 PM, a...@linux-foundation.org wrote: > > The mm-of-the-moment snapshot 2018-08-09-20-10 has been uploaded to > > > >http://www.ozlabs.org/~akpm/mmotm/ > > > > mmotm-readme.txt says > > > > README for

Re: [PATCH 0/5 - V2] locks: avoid thundering-herd wake-ups

2018-08-11 Thread J. Bruce Fields
On Sat, Aug 11, 2018 at 07:51:13AM -0400, Jeff Layton wrote: > On Thu, 2018-08-09 at 20:29 -0400, J. Bruce Fields wrote: > > On Fri, Aug 10, 2018 at 08:12:43AM +1000, NeilBrown wrote: > > > On Thu, Aug 09 2018, J. Bruce Fields wrote: > > > > > > > I think there's also a problem with multiple

Re: [PATCH 0/5 - V2] locks: avoid thundering-herd wake-ups

2018-08-11 Thread J. Bruce Fields
On Sat, Aug 11, 2018 at 07:56:25AM -0400, Jeff Layton wrote: > FWIW, I did a bit of testing with lockperf tests that I had written on > an earlier rework of this code: > > https://git.samba.org/jlayton/linux.git/?p=jlayton/lockperf.git;a=summary > > > The posix01 and flock01 tests in there

[PATCH v3 01/17] x86/cpu: create Dhyana init file and register new cpu_dev to system

2018-08-11 Thread Pu Wen
Add x86 architecture support for new processor Hygon Dhyana Family 18h. Rework to create a separated file(arch/x86/kernel/cpu/hygon.c) from the AMD init one(arch/x86/kernel/cpu/amd.c) to initialize Dhyana CPU. In this way we can remove old AMD architecture support codes from Hygon code path and

[PATCH v3 02/17] x86/cache: get cache size/leaves and setup cache cpumap for Dhyana

2018-08-11 Thread Pu Wen
Hygon Dhyana processor has the topology extensions bit in CPUID. With this bit kernel can get the cache info. So add support in cpuid4_cache_lookup_regs() to get the correct cache size. Dhyana also find num_cache_leaves via CPUID leaf 0x801d, so add Hygon support in find_num_cache_leaves().

[PATCH v3 04/17] x86/smpboot: smp init nodelay and no flush caches before sleep

2018-08-11 Thread Pu Wen
Dhyana use no delay in smp_quirk_init_udelay(), and return in mwait_play_dead() as AMD does. Signed-off-by: Pu Wen --- arch/x86/kernel/smpboot.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index db9656e..32eec7f

[PATCH v3 03/17] x86/mtrr: get MTRR number and support TOP_MEM2

2018-08-11 Thread Pu Wen
Hygon CPU have a special magic MSR way to force WB for memory >4GB, and also support TOP_MEM2. Therefore, it is necessary to add Hygon support in amd_special_default_mtrr(). The MtrrFixDramModEn bit on Hygon platform should also be set to 1 during BIOS initialization of the fixed MTRRs, then

[for-next][PATCH 31/34] ftrace: Remove unused pointer ftrace_swapper_pid

2018-08-11 Thread Steven Rostedt
From: Colin Ian King Pointer ftrace_swapper_pid is defined but is never used hence it is redundant and can be removed. The use of this variable was removed in commit 345ddcc882d8 ("ftrace: Have set_ftrace_pid use the bitmap like events do"). Cleans up clang warning: warning:

[for-next][PATCH 34/34] tracepoints: Free early tracepoints after RCU is initialized

2018-08-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" When enabling trace events via the kernel command line, I hit this warning: WARNING: CPU: 0 PID: 13 at kernel/rcu/srcutree.c:236 check_init_srcu_struct+0xe/0x61 Modules linked in: CPU: 0 PID: 13 Comm: watchdog/0 Not tainted 4.18.0-rc6-test+ #6 Hardware name: MSI

[for-next][PATCH 26/34] trace: Use rcu_dereference_raw for hooks from trace-event subsystem

2018-08-11 Thread Steven Rostedt
From: "Joel Fernandes (Google)" Since we switched to using SRCU for tracepoints used in the idle path, we can no longer use rcu_dereference_sched for dereferencing points in trace-event hooks. Since tracepoints can now use either SRCU or sched-RCU, just use rcu_dereference_raw for traceevents

[for-next][PATCH 24/34] ftrace: Use true and false for boolean values in ops_references_rec()

2018-08-11 Thread Steven Rostedt
From: "Gustavo A. R. Silva" Return statements in functions returning bool should use true or false instead of an integer value. This code was detected with the help of Coccinelle. Link: http://lkml.kernel.org/r/20180802010056.ga31...@embeddedor.com Signed-off-by: Gustavo A. R. Silva

[for-next][PATCH 29/34] tracing/irqsoff: Handle preempt_count for different configs

2018-08-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" I was hitting the following warning: WARNING: CPU: 0 PID: 1 at kernel/trace/trace_irqsoff.c:631 tracer_hardirqs_off+0x15/0x2a Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.18.0-rc6-test+ #13 Hardware name: MSI MS-7823/CSM-H87M-G43 (MS-7823),

[for-next][PATCH 13/34] selftests/ftrace: Fix kprobe string testcase to not probe notrace function

2018-08-11 Thread Steven Rostedt
From: Masami Hiramatsu Fix kprobe string argument testcase to not probe notrace function. Instead, it probes tracefs function which must be available with ftrace. Link: http://lkml.kernel.org/r/153294607107.32740.1664854684396589624.stgit@devbox Signed-off-by: Masami Hiramatsu Signed-off-by:

[for-next][PATCH 05/34] kselftests: Add tests for the preemptoff and irqsoff tracers

2018-08-11 Thread Steven Rostedt
From: "Joel Fernandes (Google)" Here we add unit tests for the preemptoff and irqsoff tracer by using a kernel module introduced previously to trigger long preempt or irq disabled sections in the kernel. Link: http://lkml.kernel.org/r/20180711063540.91101-3-j...@joelfernandes.org Reviewed-by:

[for-next][PATCH 19/34] ftrace: Add missing check for existing hwlat thread

2018-08-11 Thread Steven Rostedt
From: Erica Bugden The hwlat tracer uses a kernel thread to measure latencies. The function that creates this kernel thread, start_kthread(), can be called when the tracer is initialized and when the tracer is explicitly enabled. start_kthread() does not check if there is an existing hwlat

[for-next][PATCH 33/34] uprobes: Use synchronize_rcu() not synchronize_sched()

2018-08-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" While debugging another bug, I was looking at all the synchronize*() functions being used in kernel/trace, and noticed that trace_uprobes was using synchronize_sched(), with a comment to synchronize with {u,ret}_probe_trace_func(). When looking at those functions,

[for-next][PATCH 32/34] tracing: Fix synchronizing to event changes with tracepoint_synchronize_unregister()

2018-08-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Now that some trace events can be protected by srcu_read_lock(tracepoint_srcu), we need to make sure all locations that depend on this are also protected. There were many places that did a synchronize_sched() thinking that it was enough to protect againts access

[for-next][PATCH 30/34] tracing: More reverting of "tracing: Centralize preemptirq tracepoints and unify their usage"

2018-08-11 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Joel Fernandes created a nice patch that cleaned up the duplicate hooks used by lockdep and irqsoff latency tracer. It made both use tracepoints. But the latency tracer is triggering warnings when using tracepoints to call into the latency tracer's routines.

Re: [PATCH] ARM: spectre-v2: Try to set IBE bit for Cortex-A15 and Brahma-B15

2018-08-11 Thread Marek Vasut
On 06/08/2018 12:58 AM, Florian Fainelli wrote: > Per the ARM reference manual for the Cortex-A15, The ACTLR: > > Is a read/write register. > > Common to the Secure and Non-secure states. > > Is only accessible from PL1 or higher, with access rights that depend > on the mode: > > *

Re: [PATCH v6 1/2] iio: light: Add support for vishay vcnl4035

2018-08-11 Thread kbuild test robot
Hi Parthiban, Thank you for the patch! Yet something to improve: [auto build test ERROR on iio/togreg] [also build test ERROR on v4.18-rc8 next-20180810] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH v8 3/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-08-11 Thread Steven Rostedt
On Sat, 11 Aug 2018 00:57:12 -0700 Song Liu wrote: > > + > > +static void delayed_uprobe_delete(struct delayed_uprobe *du) > > +{ > > + if (!du) > > + return; > Do we really need this check? I'd suggest we keep it. It's not a fast path, and operations like this should

[PATCH] staging: netlogic: Fixed comments to include SPDX-License-Identifier

2018-08-11 Thread Michael Anckaert
This patch fixes some issues with missing SPDX-License-Identifier comments. Disclaimer: this is my first patch and instructions were taken from the KernelNewbies project. Signed-off-by: Michael Anckaert --- drivers/staging/netlogic/Kconfig| 6 +++---

Re: [PATCH] staging: netlogic: Fixed comments to include SPDX-License-Identifier

2018-08-11 Thread Greg KH
On Sat, Aug 11, 2018 at 06:15:05PM +0200, Michael Anckaert wrote: > This patch fixes some issues with missing SPDX-License-Identifier > comments. > > Disclaimer: this is my first patch and instructions were taken from the > KernelNewbies project. This does not belong in a changelog comment.

[PATCH] arm64: dts: sdm630 SoC and Sony Pioneer (Xperia XA2) support

2018-08-11 Thread Craig Tatlor
Initial device tree support for Qualcomm SDM630 SoC and Sony Pioneer (Xperia XA2). SDM630 is based off of the SDM660 soc and all SDM660 specific drivers are compatible with it. SDM660 is also based off of MSM8998 so it uses some of its drivers aswell. The device tree is based on the CAF 4.4

Re: [PATCH] cpuidle: menu: Handle stopped tick more aggressively

2018-08-11 Thread kbuild test robot
/linux/commits/Rafael-J-Wysocki/cpuidle-menu-Handle-stopped-tick-more-aggressively/20180811-191914 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next config: mips-allyesconfig (attached as .config) compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce

WARNING in kvm_set_tsc_khz

2018-08-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:2b769bb85b48 Add linux-next specific files for 20180807 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=154d667240 kernel config: https://syzkaller.appspot.com/x/.config?x=547d800b8773c2c5

[PATCH] soc: qcom: smd-rpm: Add sdm660 compatible

2018-08-11 Thread Craig Tatlor
Add the compatible for the RPM in SDM660, so that rpm resources can be made available. Signed-off-by: Craig Tatlor --- Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.txt | 1 + drivers/soc/qcom/smd-rpm.c | 1 + 2 files changed, 2 insertions(+) diff

[PATCH] pinctrl: qcom: Add sdm660 pinctrl driver

2018-08-11 Thread Craig Tatlor
Add initial pinctrl driver to support pin configuration with pinctrl framework for sdm660. Based off CAF implementation. Signed-off-by: Craig Tatlor --- .../bindings/pinctrl/qcom,sdm660-pinctrl.txt | 195 +++ drivers/pinctrl/qcom/Kconfig | 10 +

[PATCH] firmware: qcom: scm: Add sdm660 soc compatible

2018-08-11 Thread Craig Tatlor
Add the compatible for SDM660. This does not need clocks to do scm calls Signed-off-by: Craig Tatlor --- Documentation/devicetree/bindings/firmware/qcom,scm.txt | 1 + drivers/firmware/qcom_scm.c | 3 +++ 2 files changed, 4 insertions(+) diff --git

  1   2   3   >