Re: [PATCH 2/3] sched,fair: Fix local starvation

2016-05-21 Thread Wanpeng Li
2016-05-21 22:04 GMT+08:00 Mike Galbraith : > On Tue, 2016-05-10 at 19:43 +0200, Peter Zijlstra wrote: > > (Evolution authors must either not do patch review, or use some other > mailer. Squint hard, this crud really is your patch;) > >> --- a/kernel/sched/core.c >> +++ b/kernel/sched/core.c >> >>

Re: [rcutorture] 8704baab9b: WARNING: CPU: 0 PID: 30 at kernel/rcu/rcuperf.c:363 rcu_perf_writer

2016-05-21 Thread Boqun Feng
Hi Paul, On Sat, May 21, 2016 at 10:24:22PM -0700, Paul E. McKenney wrote: > On Sun, May 22, 2016 at 10:36:00AM +0800, kernel test robot wrote: > > Greetings, > > > > 0day kernel testing robot got the below dmesg and the first bad commit is > > > > https://git.kernel.org/pub/scm/linux/kernel/git

[GIT] Sparc

2016-05-21 Thread David Miller
Some 32-bit kgdb cleanups from Sam Ravnborg, and a hugepage TLB flush overhead fix on 64-bit from Nitin Gupta. Please pull, thanks a lot! The following changes since commit 33656a1f2ee5346c742d63ddd0e0970c95a56b70: Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jac

Re: [PATCHv9 2/2] selftest/x86: add mremap vdso test

2016-05-21 Thread Dmitry Safonov
2016-05-21 23:27 GMT+03:00 Ingo Molnar : > > * Andy Lutomirski wrote: > >> On Thu, May 19, 2016 at 11:48 PM, Ingo Molnar wrote: >> > >> > * Dmitry Safonov wrote: >> > >> >> Should print on success: >> >> [root@localhost ~]# ./test_mremap_vdso_32 >> >> AT_SYSINFO_EHDR is 0xf773f000 >> >> [N

[PATCH] clk: fixed-rate: add clk_hw_unregister_fixed_rate()

2016-05-21 Thread Masahiro Yamada
This will be used to migrate to the clk_hw APIs. Signed-off-by: Masahiro Yamada --- drivers/clk/clk-fixed-rate.c | 11 +++ include/linux/clk-provider.h | 1 + 2 files changed, 12 insertions(+) diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c index 8e4453e..2edb

Re: [rcutorture] 8704baab9b: WARNING: CPU: 0 PID: 30 at kernel/rcu/rcuperf.c:363 rcu_perf_writer

2016-05-21 Thread Paul E. McKenney
On Sun, May 22, 2016 at 10:36:00AM +0800, kernel test robot wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > commit 8704baab9bc848b58c129fed6b591bb84ec02f41 > Author

[PATCH v3] Drivers: hv: vmbus: fix the race when querying & updating the percpu list

2016-05-21 Thread Dexuan Cui
There is a rare race when we remove an entry from the global list hv_context.percpu_list[cpu] in hv_process_channel_removal() -> percpu_channel_deq() -> list_del(): at this time, if vmbus_on_event() -> process_chn_event() -> pcpu_relid2channel() is trying to query the list, we can get the kernel fa

[rcutorture] 8704baab9b: WARNING: CPU: 0 PID: 30 at kernel/rcu/rcuperf.c:363 rcu_perf_writer

2016-05-21 Thread kernel test robot
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit 8704baab9bc848b58c129fed6b591bb84ec02f41 Author: Paul E. McKenney AuthorDate: Thu Dec 31 18:33:22 2015 -0800 Commit: Paul

Re: [PATCH 1/4] x86: Save return value from kernel_thread

2016-05-21 Thread Brian Gerst
On Sat, May 21, 2016 at 9:44 PM, Andy Lutomirski wrote: > On Sat, May 21, 2016 at 9:04 AM, Brian Gerst wrote: >> Kernel threads should always return zero on success after calling >> do_execve(). The >> two existing cases in the kernel (kernel_init() and >> call_usermodehelper_exec_async()) >>

Re: [PATCH 1/4] x86: Save return value from kernel_thread

2016-05-21 Thread Andy Lutomirski
On Sat, May 21, 2016 at 9:04 AM, Brian Gerst wrote: > Kernel threads should always return zero on success after calling > do_execve(). The > two existing cases in the kernel (kernel_init() and > call_usermodehelper_exec_async()) > correctly do this. Save a few bytes by storing EAX/RAX instead

[GIT PULL] f2fs for 4.7-rc1

2016-05-21 Thread Jaegeuk Kim
Hi Linus, In this round, as Ted pointed out, fscrypto allows one more key prefix given by filesystem to resolve backward compatibility issue. Other than that, we could fix several error handling flow by introducing fault injection facility. We've also achieved performance improvement in some workl

Re: [PATCH] dell-smm-hwmon: Detect fan with index=2

2016-05-21 Thread Pali Rohár
On Sunday 22 May 2016 02:21:46 Guenter Roeck wrote: > On 05/21/2016 07:52 AM, Pali Rohár wrote: > > Some Dell machines (e.g. Dell Precision M3800) have two fans, first > > with index=0 and second with index=2. So export also attributes > > for third fan device with index=2. > > > > Reported-by: To

Re: [PATCH] dell-smm-hwmon: Cache fan_type() calls and use fan_status() for fan detection

2016-05-21 Thread Pali Rohár
On Sunday 22 May 2016 02:19:48 Guenter Roeck wrote: > On 05/21/2016 07:46 AM, Pali Rohár wrote: > > On more Dell machines (e.g. Dell Precision M3800) > > I8K_SMM_GET_FAN_TYPE call is too expensive (CPU is too long in SMM > > mode) and cause kernel to hang. This patch cache type for each fan > > (as

Re: [PATCH] dell-smm-hwmon: Detect fan with index=2

2016-05-21 Thread Guenter Roeck
On 05/21/2016 07:52 AM, Pali Rohár wrote: Some Dell machines (e.g. Dell Precision M3800) have two fans, first with index=0 and second with index=2. So export also attributes for third fan device with index=2. Reported-by: Tolga Cakir Signed-off-by: Pali Rohár --- drivers/hwmon/dell-smm-hwmon

Re: [PATCH] dell-smm-hwmon: Cache fan_type() calls and use fan_status() for fan detection

2016-05-21 Thread Guenter Roeck
On 05/21/2016 07:46 AM, Pali Rohár wrote: On more Dell machines (e.g. Dell Precision M3800) I8K_SMM_GET_FAN_TYPE call is too expensive (CPU is too long in SMM mode) and cause kernel to hang. This patch cache type for each fan (as it should not change) and change the way how fan presense is detect

Re: [PATCH] drm/gma500: use vma_pages().

2016-05-21 Thread Patrik Jakobsson
On Sat, May 21, 2016 at 3:21 PM, Muhammad Falak R Wani wrote: > Replace explicit computation of vma page count by a call to > vma_pages() > > Signed-off-by: Muhammad Falak R Wani Thanks, queued for gma500-next > --- > drivers/gpu/drm/gma500/framebuffer.c | 2 +- > 1 file changed, 1 insertion(+

[rcu:dev.2016.05.18a 28/28] kernel/rcu/tree_plugin.h:1168:2: error: implicit declaration of function 'for_each_leaf_node_cpu_bit'

2016-05-21 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2016.05.18a head: a396e98dae720a48c49795892d23ca17c87319b0 commit: a396e98dae720a48c49795892d23ca17c87319b0 [28/28] rcu: Correctly handle sparse possible CPUs config: x86_64-randconfig-n0-05220622 (attached as .co

[PATCH v2 1/1] rtc: ds1685: correct check of day of month

2016-05-21 Thread Heinrich Schuchardt
The day of month is checked in ds1685_rtc_read_alarm and ds1685_rtc_set_alarm. Multiple errors exist in the day of month check. Operator ! has a higher priority than &&. (!(mday >= 1) && (mday <= 31)) is false for mday == 32. When verifying the day of month the binary and the BCD mode have to be

[PATCH] libnvdimm, dax: fix deletion

2016-05-21 Thread Dan Williams
The ndctl unit tests discovered that the dax enabling omitted updates to nd_detach_and_reset(). This routine clears device the configuration when the namespace is detached. Without this clearing userspace may assume that the device is in the process of being configured by another agent in the sys

Re: [PATCHv9 2/2] selftest/x86: add mremap vdso test

2016-05-21 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Thu, May 19, 2016 at 11:48 PM, Ingo Molnar wrote: > > > > * Dmitry Safonov wrote: > > > >> Should print on success: > >> [root@localhost ~]# ./test_mremap_vdso_32 > >> AT_SYSINFO_EHDR is 0xf773f000 > >> [NOTE]Moving vDSO: [f773f000, f774] -> [a00

[PATCH] seqlock: fix raw_read_seqcount_latch()

2016-05-21 Thread Alexey Dobriyan
lockless_dereference() is supposed to take pointer not integer. Signed-off-by: Alexey Dobriyan --- include/linux/seqlock.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/include/linux/seqlock.h +++ b/include/linux/seqlock.h @@ -277,7 +277,7 @@ static inline void raw_write_s

Re: [PATCH 3/5] sched: cpufreq: call cpufreq hook from remote CPUs

2016-05-21 Thread Steve Muckle
Hi Peter, Ingo, On Thu, May 19, 2016 at 04:04:19PM -0700, Steve Muckle wrote: > On Thu, May 19, 2016 at 11:06:14PM +0200, Rafael J. Wysocki wrote: > > > In the case of a remote update the hook has to run (or not) after it is > > > known whether preemption will occur so we don't do needless work or

Re: [GIT PULL] RTC for 4.7

2016-05-21 Thread Alexandre Belloni
On 21/05/2016 at 11:18:15 -0700, Linus Torvalds wrote : > On Sat, May 21, 2016 at 8:15 AM, Alexandre Belloni > wrote: > > > > Here is the pull-request for the RTC subsystem for 4.7. > > Grr. I noticed this too late, but this has all been rebased very recently. > > Don't f*cking do this! Why do I

Re: [PATCH] max44000: Remove scale from proximity

2016-05-21 Thread Jonathan Cameron
On 20/05/16 15:44, Crestez Dan Leonard wrote: > This is not implemented and doesn't really make sense because IIO > proximity is unit-less. > > Remove IIO_CHAN_INFO_SCALE from info_mask because so that the _scale > sysfs entry won't appear. This fixes userspace tools like generic_buffer > which ab

Re: [PATCH] iio: light: jsa1212: remove unneeded i2c check functionality test

2016-05-21 Thread Jonathan Cameron
On 19/05/16 21:19, Matt Ranostay wrote: > Reviewed-by: Matt Ranostay Applied to the togreg branch of iio.git. Thanks, Jonathan > > On Thu, May 19, 2016 at 11:37 AM, sathyanarayanan kuppuswamy > wrote: >> Looks Good. >> >> Reviewed-by:Kuppuswamy Sathyanarayanan >> >> >> >> On 05/15/2016 11:37

Re: [PATCH v2 03/12] of: add J-Core interrupt controller bindings

2016-05-21 Thread Rich Felker
On Sat, May 21, 2016 at 08:07:54PM +0200, Geert Uytterhoeven wrote: > On Sat, May 21, 2016 at 12:34 AM, Rich Felker wrote: > > On Fri, May 20, 2016 at 10:04:26AM +0200, Geert Uytterhoeven wrote: > >> On Fri, May 20, 2016 at 4:53 AM, Rich Felker wrote: > >> > +Additional properties required for ai

Re: [PATCH v5] iio: max5487: Add support for Maxim digital potentiometers

2016-05-21 Thread Jonathan Cameron
On 19/05/16 06:55, Cristina Moraru wrote: > Add implementation for Maxim MAX5487, MAX5488, MAX5489 > digital potentiometers. > > Datasheet: > http://datasheets.maximintegrated.com/en/ds/MAX5487-MAX5489.pdf > > Signed-off-by: Cristina Moraru > CC: Daniel Baluta Applied to the togreg branch of ii

Re: [PATCH] iio: Export I2C module alias information

2016-05-21 Thread Jonathan Cameron
On 17/05/16 17:25, Javier Martinez Canillas wrote: > The I2C drivers have an i2c_device_id array but that information isn't > exported to the modules using the MODULE_DEVICE_TABLE() macro. So the > modules autoloading won't work if the I2C device is registered using > OF or legacy board files due m

Re: [PATCH 2/3] sched,fair: Fix local starvation

2016-05-21 Thread Mike Galbraith
On Sat, 2016-05-21 at 16:04 +0200, Mike Galbraith wrote: > Wakees that were not migrated/normalized eat an unwanted min_vruntime, > and likely take a size XXL latency hit. Big box running master bled > profusely under heavy load until I turned TTWU_QUEUE off. The below made big box a happy campe

[PATCH 0/2] f_fs: better handle excess data on read

2016-05-21 Thread Michal Nazarewicz
Between this set and Du, Changbin’s patch, we now have implementation for the following three possibilities to choose from: 1. Buffer excess data (this whole patch set). 2. Fail the transfer (Du, Changbin’s patch). 3. Drop excess data (the first patch from this set). As per earlier comments, I thi

[PATCH 2/2] usb: gadget: f_fs: buffer data from ‘oversized’ OUT requests

2016-05-21 Thread Michal Nazarewicz
f_fs rounds up read(2) requests to a multiple of a max packet size which means that host may provide more data than user has space for. So far, the excess data has been silently ignored. This introduces a buffer for a tail of such requests so that they are returned on next read instead of being ig

[PATCH 1/2] usb: gadget: f_fs: printk error when excess data is dropped on read

2016-05-21 Thread Michal Nazarewicz
Add a pr_err when host sent more data then the size of the buffer user space gave us. This may happen on UDCs which require OUT requests to be aligned to max packet size. The patch includes a description of the situation. Signed-off-by: Michal Nazarewicz --- drivers/usb/gadget/function/f_fs.c

RE: [PATCH] ftrace: As disabling interrupts is costly and write_lock variant of tasklist_lock is not held from interrupt context it is not necessary to disable interrupts.

2016-05-21 Thread N, Soumya P
On Thu, 19 May 2016 13:49:16 + "N, Soumya P" wrote: > Hi Steve, > > Thanks for the explanation. > I will take care of your comments and send v2 of the same patch. > >>No need, I just pulled in your patch and made the updates to the change log >>and subject myself. I'm starting my tests on

Re: [PATCH v8 2/4] power: reset: add reboot mode driver

2016-05-21 Thread Bjorn Andersson
On Sun, Apr 24, 2016 at 11:55 PM, Andy Yan wrote: [..] > diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig [..] > +config SYSCON_REBOOT_MODE > + bool "Generic SYSCON regmap reboot mode driver" > + depends on OF As this isn't really useful without syscon (but sti

Re: [GIT PULL] RTC for 4.7

2016-05-21 Thread Linus Torvalds
On Sat, May 21, 2016 at 8:15 AM, Alexandre Belloni wrote: > > Here is the pull-request for the RTC subsystem for 4.7. Grr. I noticed this too late, but this has all been rebased very recently. Don't f*cking do this! Why do I have to tell people every single merge window? Linus

Re: [PATCH] driver: input :touchscreen : add Raydium I2C touch driver

2016-05-21 Thread Dmitry Torokhov
On Wed, May 18, 2016 at 12:07:02AM +0800, jeffrey.lin wrote: > Hi Dmitry: > > >static int raydium_i2c_read_message(struct i2c_client *client, > > > u32 addr, void *data, size_t len) > > >{ > > > __be32 be_addr; > > > size_t xfer_len; > > > int error; > > > whil

[PATCH 1/2] iommu/amd: Remove entry from the list before freeing it

2016-05-21 Thread Jan Vesely
From: Jan Vesely Signed-off-by: Jan Vesely --- drivers/iommu/amd_iommu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 634f636..17c76f2 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@

[PATCH 2/2] iommu/amd: Destroy api_lock mutex when freeing domain

2016-05-21 Thread Jan Vesely
From: Jan Vesely Signed-off-by: Jan Vesely --- drivers/iommu/amd_iommu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 17c76f2..4ff5e40 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -3016,6 +3016,7 @@

Re: [PATCH v2 03/12] of: add J-Core interrupt controller bindings

2016-05-21 Thread Geert Uytterhoeven
On Sat, May 21, 2016 at 12:34 AM, Rich Felker wrote: > On Fri, May 20, 2016 at 10:04:26AM +0200, Geert Uytterhoeven wrote: >> On Fri, May 20, 2016 at 4:53 AM, Rich Felker wrote: >> > +Additional properties required for aic1: >> > + >> > +- reg : Memory region for configuration. >> > + >> > +- cpu

Re: [PATCH v6 2/8] debugfs: prevent access to removed files' private data

2016-05-21 Thread Nicolai Stange
Sasha Levin writes: > On 05/18/2016 12:05 PM, Greg Kroah-Hartman wrote: >> On Wed, May 18, 2016 at 11:18:16AM -0400, Sasha Levin wrote: >>> On 05/18/2016 11:01 AM, Nicolai Stange wrote: Thanks a million for reporting! 1.) Do you have lockdep enabled? >>> >>> Yup, nothing there. >>>

Re: [GIT PULL] Driver core update for 4.7-rc1

2016-05-21 Thread Linus Torvalds
On Sat, May 21, 2016 at 10:16 AM, William Breathitt Gray wrote: > > Would you like me to submit a patchset after your commit to introduce > the ISA_BUS/ISA_BUS_API Kconfig options, as well as adjust the relevant > drivers' Kconfig options to depend on the ISA_BUS_API? Yes please. Lin

Re: [GIT PULL] Driver core update for 4.7-rc1

2016-05-21 Thread William Breathitt Gray
On Sat, May 21, 2016 at 09:59:09AM -0700, Linus Torvalds wrote: >Author: Linus Torvalds >Date: Sat May 21 09:13:41 2016 -0700 > >x86 isa: add back X86_32 dependency on CONFIG_ISA > >Commit b3c1be1b789c ("base: isa: Remove X86_32 dependency") made ISA >support available on x86-64

Re: sem_lock() vs qspinlocks

2016-05-21 Thread Davidlohr Bueso
On Sat, 21 May 2016, Peter Zijlstra wrote: On Fri, May 20, 2016 at 05:48:39PM -0700, Davidlohr Bueso wrote: On Fri, 20 May 2016, Linus Torvalds wrote: >Oh, I definitely agree on the stable part, and yes, the "splt things >up" model should come later if people agree that it's a good thing. Th

Re: [PATCH v2 1/6] power: Introduce Broadcom kona reset driver

2016-05-21 Thread Florian Fainelli
Le 11/05/2016 14:36, Chris Brand a écrit : > This driver supports reset on both BCM21664 and BCM23550. > Code is being moved from arch/arm/mach-bcm/board_bcm21664.c > > Signed-off-by: Chris Brand Sebastian, Dmitry, I know we are in the merge window, let me know if you would want me to take this

Re: [GIT PULL] Driver core update for 4.7-rc1

2016-05-21 Thread Linus Torvalds
On Sat, May 21, 2016 at 9:31 AM, Linus Torvalds wrote: > > We're not suddenly enabling ISA on x86-64 after having successfully > gotten rid of that insane crap long long ago. > > If you have *specific* dribvers that are actually relevant for some > reason, make those ones available based on other

Re: [PATCH] spi: spidev: fix possible arithmetic overflow for multi-transfer message

2016-05-21 Thread Dmitry Torokhov
On Mon, Mar 23, 2015 at 10:50 AM, Ian Abbott wrote: > `spidev_message()` sums the lengths of the individual SPI transfers to > determine the overall SPI message length. It restricts the total > length, returning an error if too long, but it does not check for > arithmetic overflow. For example,

Re: PROBLEM: Resume form hibernate broken by setting NX on gap

2016-05-21 Thread Kees Cook
On Fri, May 20, 2016 at 6:57 PM, Logan Gunthorpe wrote: > On 20/05/16 04:16 PM, Kees Cook wrote: >> >> On Fri, May 20, 2016 at 2:59 PM, Kees Cook wrote: >>> >>> On Fri, May 20, 2016 at 2:46 PM, Rafael J. Wysocki >>> wrote: On Fri, May 20, 2016 at 3:56 PM, Stephen Smalley wrote: >

Re: [RFT PATCH] iio: magn: Add support for BMM150 magnetometer

2016-05-21 Thread Jonathan Cameron
On 18/05/16 15:01, Daniel Baluta wrote: > On Wed, May 4, 2016 at 1:26 PM, Jonathan Cameron wrote: >> On 27/04/16 15:55, Lucas De Marchi wrote: >>> On Tue, Apr 26, 2016 at 9:39 AM, Daniel Baluta >>> wrote: BMM150 is register compatible with magnetometer part of BMC156. Datashe

Re: [GIT PULL] Driver core update for 4.7-rc1

2016-05-21 Thread Linus Torvalds
On Sat, May 21, 2016 at 9:20 AM, William Breathitt Gray wrote: > > I'll submit patches to resolve these warnings and errors. No. I will disable that ISA config option. We're not randomly making old drivers available on modern platforms. Really. We're not suddenly enabling ISA on x86-64 after ha

Re: [PATCH 2/2] iio: generic_buffer: Add --device-num option

2016-05-21 Thread Jonathan Cameron
On 20/05/16 16:45, Crestez Dan Leonard wrote: > This makes it possible to distinguish between iio devices with the same > name. > > Signed-off-by: Crestez Dan Leonard happy with this and will pickup once the first patch is sorted. Jonathan > --- > tools/iio/generic_buffer.c | 53 >

Re: [PATCH 1/2] iio: generic_buffer: Cleanup when receiving signals

2016-05-21 Thread Jonathan Cameron
On 20/05/16 16:55, Peter Meerwald-Stadler wrote: > >> This also drops all the code freeing string buffers at the end of main. >> Memory is freed when the process exits anyway so there's no point in >> cluttering the code with all those gotos. > > well, it helps to see that all memory has been rel

Re: [PATCH] iio: humidity: hdc100x: add HDC1000 and HDC1008 product names

2016-05-21 Thread Jonathan Cameron
On 20/05/16 18:34, Matt Ranostay wrote: > On Fri, May 20, 2016 at 10:05 AM, Alison Schofield > wrote: >> hdc100x supports Texas Instruments HDC1000 and HDC1008 relative >> humidity and temperature sensors. Add these product names to >> Kconfig and to the drivers device id structure to enable find

Re: [PATCH] iio: humidity: hdc100x: correct humidity integration time mask

2016-05-21 Thread Jonathan Cameron
On 20/05/16 18:44, Matt Ranostay wrote: > Reviewed-by: Matt Ranostay > > On Fri, May 20, 2016 at 10:06 AM, Alison Schofield > wrote: >> Apply the correct mask to enable all available humidity integration >> times. Currently, the driver defaults to 6500 and all is okay with that. >> However, if

Re: [GIT PULL] Driver core update for 4.7-rc1

2016-05-21 Thread William Breathitt Gray
On Fri, May 20, 2016 at 10:04:38PM -0700, Greg KH wrote: >On Fri, May 20, 2016 at 09:51:18PM -0700, Linus Torvalds wrote: >> On Fri, May 20, 2016 at 8:23 PM, Greg KH wrote: >> > >> > William Breathitt Gray (13): >> > base: isa: Remove X86_32 dependency >> > isa: Decouple X86_32 depende

[PATCH] kcov: add AFL-style tracing

2016-05-21 Thread Vegard Nossum
From: Quentin Casasnovas AFL uses a fixed-size buffer (typically 64 KiB) where each byte is a counter representing how many times an A -> B branch was taken. Of course, since the buffer is fixed size, it's a little imprecise in that e.g. two different branches could map to the same counter, but i

[PATCH 1/4] x86: Save return value from kernel_thread

2016-05-21 Thread Brian Gerst
Kernel threads should always return zero on success after calling do_execve(). The two existing cases in the kernel (kernel_init() and call_usermodehelper_exec_async()) correctly do this. Save a few bytes by storing EAX/RAX instead of an immediate zero. Also fix the 64-bit case which should sa

[PATCH 3/4] x86: Rewrite switch_to() code

2016-05-21 Thread Brian Gerst
Move the low-level context switch code to an out-of-line asm stub instead of using complex inline asm. This allows constructing a new stack frame for the child process to make it seamlessly flow to ret_from_fork without an extra test and branch in __switch_to(). It also improves code generation f

[PATCH 2/4] x86-32, kgdb: Don't use thread.ip in sleeping_thread_to_gdb_regs()

2016-05-21 Thread Brian Gerst
Match 64-bit and set gdb_regs[GDB_PC] to zero. thread.ip is always the same point in the scheduler (except for newly forked processes), and will be removed in a future patch. Signed-off-by: Brian Gerst --- arch/x86/kernel/kgdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --gi

[PATCH 0/4] x86: Rewrite switch_to()

2016-05-21 Thread Brian Gerst
This patch set simplifies the switch_to() code, by moving the stack switch code out of line into an asm stub before calling __switch_to(). This ends up being more readable, and using the C calling convention instead of clobbering all registers improves code generation. It also allows newly forked

[PATCH 4/4] x86: Pass kernel thread parameters in fork_frame

2016-05-21 Thread Brian Gerst
Instead of setting up a fake pt_regs context, put the kernel thread function pointer and arg into the unused callee-restored registers of struct fork_frame. Signed-off-by: Brian Gerst --- arch/x86/entry/entry_32.S| 28 +++- arch/x86/entry/entry_64.S| 30 ++

Re: [PATCH v4 2/5] locking/rwsem: Protect all writes to owner by WRITE_ONCE

2016-05-21 Thread Peter Hurley
On 05/18/2016 12:58 PM, Jason Low wrote: > On Wed, 2016-05-18 at 14:29 -0400, Waiman Long wrote: >> On 05/18/2016 01:21 PM, Jason Low wrote: >>> On Wed, 2016-05-18 at 07:04 -0700, Davidlohr Bueso wrote: On Tue, 17 May 2016, Waiman Long wrote: > Without using WRITE_ONCE(), the compiler

Re: [PATCH v2 09/12] clocksource: add J-Core PIT/RTC driver

2016-05-21 Thread Rob Landley
On 05/20/2016 10:15 PM, Rich Felker wrote: > On Fri, May 20, 2016 at 04:01:56PM +0200, Daniel Lezcano wrote: >>> + return ((u64)sechi << 32 | seclo) * 10 + nsec; >> >> s/10/NSEC_PER_SEC/ ... >>> + hwirq = irq_get_irq_data(pit_irq)->hwirq; >>> + enable_val = (1<<26) | ((hwirq&0

[GIT PULL] RTC for 4.7

2016-05-21 Thread Alexandre Belloni
Hi Linus, Here is the pull-request for the RTC subsystem for 4.7. Note that you may have to refresh my key to verify the tag signature as I'm now using a subkey to sign tags and emails. The following changes since commit 2dcd0af568b0cf583645c8a317dd12e344b1c72a: Linux 4.6 (2016-05-15 15:43:1

[PATCH] dell-smm-hwmon: In debug mode log duration of SMM calls

2016-05-21 Thread Pali Rohár
This allow us to debug how long take each SMM call and how long is system freezed in SMM handler. Signed-off-by: Pali Rohár --- drivers/hwmon/dell-smm-hwmon.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/hwmon/dell-smm-hwmon.c b/drivers/hwmon/dell-smm-hwmon.c

[PATCH] dell-smm-hwmon: Detect fan with index=2

2016-05-21 Thread Pali Rohár
Some Dell machines (e.g. Dell Precision M3800) have two fans, first with index=0 and second with index=2. So export also attributes for third fan device with index=2. Reported-by: Tolga Cakir Signed-off-by: Pali Rohár --- drivers/hwmon/dell-smm-hwmon.c | 20 +++- 1 file change

[PATCH] dell-smm-hwmon: Cache fan_type() calls and use fan_status() for fan detection

2016-05-21 Thread Pali Rohár
On more Dell machines (e.g. Dell Precision M3800) I8K_SMM_GET_FAN_TYPE call is too expensive (CPU is too long in SMM mode) and cause kernel to hang. This patch cache type for each fan (as it should not change) and change the way how fan presense is detected. It revert and use function fan_status()

Re: [PATCH] usb: host: ehci-msm: Conditionally call ehci suspend/resume

2016-05-21 Thread Alan Stern
On Fri, 20 May 2016, Andy Gross wrote: > This patch fixes a suspend/resume issue where the driver is blindly > calling ehci_suspend/resume functions when the ehci hasn't been setup. > This results in a crash during suspend/resume operations. > > Signed-off-by: Andy Gross > --- > drivers/usb/hos

[GIT PULL] Btrfs

2016-05-21 Thread Chris Mason
Hi Linus, My for-linus-4.7 branch: git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus-4.7 Has our merge window series of cleanups and fixes. These target a wide range of issues, but do include some important fixes for qgroups, O_DIRECT, and fsync handling. Jeff Mah

Re: [PATCH 2/3] sched,fair: Fix local starvation

2016-05-21 Thread Mike Galbraith
On Tue, 2016-05-10 at 19:43 +0200, Peter Zijlstra wrote: (Evolution authors must either not do patch review, or use some other mailer. Squint hard, this crud really is your patch;) > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > > @@ -1762,7 +1770,11 @@ void sched_ttwu_pending(void)

Re: sem_lock() vs qspinlocks

2016-05-21 Thread Manfred Spraul
On 05/21/2016 09:37 AM, Peter Zijlstra wrote: On Fri, May 20, 2016 at 05:48:39PM -0700, Davidlohr Bueso wrote: As opposed to spin_is_locked(), spin_unlock_wait() is perhaps more tempting to use for locking correctness. For example, taking a look at nf_conntrack_all_lock(), it too likes to get s

[PATCH] drivers: dma-coherent: use vma_pages().

2016-05-21 Thread Muhammad Falak R Wani
Replace explicit computation of vma page count by a call to vma_pages() Signed-off-by: Muhammad Falak R Wani --- drivers/base/dma-coherent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/dma-coherent.c b/drivers/base/dma-coherent.c index bdf28f7..db122a0 100644

[PATCH] dma-buf: use vma_pages().

2016-05-21 Thread Muhammad Falak R Wani
Replace explicit computation of vma page count by a call to vma_pages() Signed-off-by: Muhammad Falak R Wani --- drivers/dma-buf/dma-buf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c index 4a2c07e..b0317ec 100644

[PATCH] dma-mapping: use vma_pages().

2016-05-21 Thread Muhammad Falak R Wani
Replace explicit computation of vma page count by a call to vma_pages() Signed-off-by: Muhammad Falak R Wani --- drivers/base/dma-mapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/dma-mapping.c b/drivers/base/dma-mapping.c index d799662..1d82f7e 100644 --

[PATCH] drm/gma500: use vma_pages().

2016-05-21 Thread Muhammad Falak R Wani
Replace explicit computation of vma page count by a call to vma_pages() Signed-off-by: Muhammad Falak R Wani --- drivers/gpu/drm/gma500/framebuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c i

[PATCH] HSI: cmt_speech: use vma_pages().

2016-05-21 Thread Muhammad Falak R Wani
Replace explicit computation of vma page count by a call to vma_pages() Signed-off-by: Muhammad Falak R Wani --- drivers/hsi/clients/cmt_speech.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hsi/clients/cmt_speech.c b/drivers/hsi/clients/cmt_speech.c index 95638df.

[PATCH] Staging: Android: Fix bracket alignment style issue in sync.c

2016-05-21 Thread Craig Inches
This patch changes 3 bracket alignment errors found by checkpatch. Signed-off-by: Craig Inches --- drivers/staging/android/sync.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index 3a8f210..4a64bdd 10064

[PATCH] misc: mic: scif: use vma_pages().

2016-05-21 Thread Muhammad Falak R Wani
Replace explicit computation of vma page count by a call to vma_pages() Signed-off-by: Muhammad Falak R Wani --- drivers/misc/mic/scif/scif_mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mic/scif/scif_mmap.c b/drivers/misc/mic/scif/scif_mmap.c index

[PATCH] xen/privcmd: use vma_pages().

2016-05-21 Thread Muhammad Falak R Wani
Replace explicit computation of vma page count by a call to vma_pages() Signed-off-by: Muhammad Falak R Wani --- drivers/xen/privcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c index df2e6f7..702040f 100644 --- a/drivers/xen

[PATCH] xen/gntdev: use vma_pages().

2016-05-21 Thread Muhammad Falak R Wani
Replace explicit computation of vma page count by a call to vma_pages() Signed-off-by: Muhammad Falak R Wani --- drivers/xen/gntdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c index 6793957..bb95212 100644 --- a/drivers/xen/gn

[PATCH] xen/gntalloc: use vma_pages().

2016-05-21 Thread Muhammad Falak R Wani
Replace explicit computation of vma page count by a call to vma_pages() Signed-off-by: Muhammad Falak R Wani --- drivers/xen/gntalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/gntalloc.c b/drivers/xen/gntalloc.c index 4547a91..7a47c4c 100644 --- a/drivers/

Re: Mount namespace "dominant peer group"?

2016-05-21 Thread Michael Kerrisk (man-pages)
Hello Ram, On 05/20/2016 06:15 PM, Ram Pai wrote: > On Fri, May 20, 2016 at 04:24:18PM -0500, Michael Kerrisk (man-pages) wrote: >> Hello Miklos, >> >> I'm working on some better documentation of mount namespaces, >> and there's a detail that puzzles me, and I hope you might be >> able to help, s

Re: [PATCH] perf, tools, report: Add srcline_from/to branch sort keys

2016-05-21 Thread Jiri Olsa
On Fri, May 20, 2016 at 01:15:08PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Add srcline_from and srcline_to branch sort keys that allow > to show the source lines of a branch. That makes it much easier > to track down where particular branches happen in the program, > for example to examin

Re: [PATCHv3] support for AD5820 camera auto-focus coil

2016-05-21 Thread Ivaylo Dimitrov
Hi, On 21.05.2016 13:56, Pavel Machek wrote: This adds support for AD5820 autofocus coil, found for example in Nokia N900 smartphone. Signed-off-by: Pavel Machek --- v2: simple cleanups, fix error paths, simplify probe v3: more cleanups, remove printk, add include diff --git a/drivers/media

Re: [PATCH 2/2] perf stat: Add missing aggregation headers for --metric-only CSV

2016-05-21 Thread Jiri Olsa
On Fri, May 20, 2016 at 12:50:15PM -0700, Andi Kleen wrote: > From: Andi Kleen > > When in CSV mode --metric-only outputs an header, unlike the other > modes. Previously it did not properly print headers for the > aggregation columns, so the headers were actually shifted against > the real values

Re: [PATCH 1/2] perf stat: Print topology/time headers with --metric-only

2016-05-21 Thread Jiri Olsa
On Fri, May 20, 2016 at 12:50:14PM -0700, Andi Kleen wrote: > From: Andi Kleen > > When --metric-only is enabled there were no headers for the topology > in interval mode. Also when headers were printed they were > on a separate line. > > Before: > > $ perf stat --metric-only -A -I 1000 -a >

[PATCHv3] support for AD5820 camera auto-focus coil

2016-05-21 Thread Pavel Machek
This adds support for AD5820 autofocus coil, found for example in Nokia N900 smartphone. Signed-off-by: Pavel Machek --- v2: simple cleanups, fix error paths, simplify probe v3: more cleanups, remove printk, add include diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig index 9

[PATCH v2 1/2] ip6_gre: Fix MTU setting for ip6gretap

2016-05-21 Thread Haishuang Yan
When creat an ip6gretap interface with an unreachable route, the MTU is about 14 bytes larger than what was needed. If the remote address is reachable: ping6 2001:0:130::1 -c 2 PING 2001:0:130::1(2001:0:130::1) 56 data bytes 64 bytes from 2001:0:130::1: icmp_seq=1 ttl=64 time=1.46 ms 64 bytes from

[PATCH v2 2/2] ip6_gre: Set flowi6_proto as IPPROTO_GRE in xmit path.

2016-05-21 Thread Haishuang Yan
In gre6 xmit path, we are sending a GRE packet, so set fl6 proto to IPPROTO_GRE properly. Signed-off-by: Haishuang Yan --- Changes in v2: - Initialize the flow protocol in ip6gre_tnl_link_config --- net/ipv6/ip6_gre.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv6/ip6_gre.c b/net

Re: [PATCH 1/1] ASoC: pxa: Fix module autoload for platform drivers

2016-05-21 Thread Robert Jarzmik
Andrea Adami writes: > These platform drivers are lacking MODULE_ALIAS so module autoloading > doesn't work. Tested on corgi and poodle with kernel 4.4. > > Signed-off-by: Andrea Adami Yes, why not. Acked-by: Robert Jarzmik Cheers. -- Robert

[GIT PULL] Mailbox changes for v4.7

2016-05-21 Thread Jassi Brar
Hi Linus, The following changes since commit c3b46c73264b03000d1e18b22f5caf63332547c9: Linux 4.6-rc4 (2016-04-17 19:13:32 -0700) are available in the git repository at: git://git.linaro.org/landing-teams/working/fujitsu/integration.git mailbox-for-next for you to fetch changes up to c430cf

[PATCH] ACPI / Thermal / video: fix max_level incorrect value

2016-05-21 Thread Aaron Lu
On Sat, May 21, 2016 at 11:29:33AM +0800, Aaron Lu wrote: > My bad, I see the problem here: the acpi_video_device_lcd_query_levels > called in acpi_video_run_bcl_for_osi didn't do the proper conversion. > The acpi_handle is a "void *" so there is no warnings... I think I have found the problem, pl

Re: Builtin microcode does nothing..

2016-05-21 Thread Borislav Petkov
On Sat, May 21, 2016 at 04:59:15AM +0200, Gabriel C wrote: > Should this check not be the other way around ? Actually, I've changed it to this: /* try built-in microcode first */ if (load_builtin_intel_microcode(&cd)) /* * clear start as we might'v

Re: Builtin microcode does nothing..

2016-05-21 Thread Borislav Petkov
On Sat, May 21, 2016 at 02:20:56AM +0200, Gabriel C wrote: > I got to test an kernel without CONFIG_BLK_DEV_INITRD and this way > does work. Good, this confirms what I've been debugging here too. Thanks. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham

Re: [REGRESSION] Headphones no longer working on MacPro6,1 with 4.4

2016-05-21 Thread Takashi Iwai
On Sat, 21 May 2016 08:41:28 +0200, Takashi Iwai wrote: > > On Sat, 21 May 2016 00:27:22 +0200, > Laura Abbott wrote: > > > > On 03/15/2016 12:49 PM, Takashi Iwai wrote: > > > On Tue, 15 Mar 2016 20:38:41 +0100, > > > Takashi Iwai wrote: > > >> > > >> On Tue, 15 Mar 2016 20:23:09 +0100, > > >> La

Re: sem_lock() vs qspinlocks

2016-05-21 Thread Peter Zijlstra
On Sat, May 21, 2016 at 12:01:00AM -0400, Waiman Long wrote: > On 05/20/2016 08:59 PM, Davidlohr Bueso wrote: > >On Fri, 20 May 2016, Peter Zijlstra wrote: > > > >>On Fri, May 20, 2016 at 04:47:43PM -0400, Waiman Long wrote: > >> > Similarly, and I know you hate it, but afaict, then semanticall

Re: sem_lock() vs qspinlocks

2016-05-21 Thread Peter Zijlstra
On Fri, May 20, 2016 at 05:48:39PM -0700, Davidlohr Bueso wrote: > On Fri, 20 May 2016, Linus Torvalds wrote: > > > >Oh, I definitely agree on the stable part, and yes, the "splt things > >up" model should come later if people agree that it's a good thing. > > The backporting part is quite nice,