Re: Linux 4.6-rc2

2016-04-04 Thread Linus Torvalds
On Sun, Apr 3, 2016 at 8:55 AM, Linus Torvalds wrote: > > I'm just about to leave for the airport, so I probably will not get to > it until tomorrow, but if you still don't see it in 24 hours, ping me > and call me harebrained. Ok, it's merged in my tree now, just going through the built tests et

Incorrect use of blocking ops in lirc_dev_fop_read

2016-04-04 Thread Laura Abbott
Hi, We received a bug report (https://bugzilla.redhat.com/show_bug.cgi?id=1323440) WARNING: CPU: 3 PID: 765 at kernel/sched/core.c:7557 __might_sleep+0x75/0x80() do not call blocking ops when !TASK_RUNNING; state=1 set at [] lirc_dev_fop_read+0x1e1/0x590 [lirc_dev] CPU: 3 PID: 765 Comm: lirc

Re: [PATCH] mtd: gpmi: fix raw_buffer pointer double free issue

2016-04-04 Thread Richard Weinberger
Am 04.04.2016 um 19:25 schrieb Han Xu: > fix the raw_buffer pointer double free issue found by coverify. Can you please include the coverity message in you changelog? > Signed-off-by: Han Xu > --- > drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a

Re: [RFC][PATCH 1/3] locking: Replace smp_cond_acquire with smp_cond_load_acquire

2016-04-04 Thread Waiman Long
On 04/04/2016 08:22 AM, Peter Zijlstra wrote: This new form allows using hardware assisted waiting. Requested-by: Will Deacon Suggested-by: Linus Torvalds Signed-off-by: Peter Zijlstra (Intel) --- include/linux/compiler.h | 25 +++-- kernel/locking/qspinlock.c | 12 +

[PATCH v2 2/2] ti-adc081c: Initial triggered buffer support

2016-04-04 Thread Crestez Dan Leonard
Using this requires software triggers like CONFIG_IIO_HRTIMER_TRIGGER. The device can be configured to do internal periodic sampling but does not offer some sort of interrupt on data ready. Interrupts can only trigger when values get out of a specific range. Signed-off-by: Crestez Dan Leonard --

[PATCH v2 0/2] Add support for adc101c* and adc121c*

2016-04-04 Thread Crestez Dan Leonard
Changes since last version: * Use struct adcxx1_model in the first patch as well. * Use VLA buf in adc081c_trigger_handler. * Rerrange code so the diffs look nicer. * Fixed other smaller review comments. I did not add an enum for models because it's not clear how adding another layer of indire

Re: [RFC PATCH v1.9 12/14] livepatch: create per-task consistency model

2016-04-04 Thread Josh Poimboeuf
On Thu, Mar 31, 2016 at 03:12:39PM +0200, Miroslav Benes wrote: > On Fri, 25 Mar 2016, Josh Poimboeuf wrote: > > [...] > > > diff --git a/kernel/fork.c b/kernel/fork.c > > index d277e83..27b181e 100644 > > --- a/kernel/fork.c > > +++ b/kernel/fork.c > > @@ -76,6 +76,7 @@ > > #include > > #incl

[PATCH] gpio: zynq: Fix the error path

2016-04-04 Thread Shubhrajyoti Datta
pm_runtime_disable is called only in remove it is missed out in the error path. Fix the same. Signed-off-by: Shubhrajyoti Datta --- drivers/gpio/gpio-zynq.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index 66d3d

[PATCH v2 1/2] ti-adc081c: Add support for adc101c* and adc121c*

2016-04-04 Thread Crestez Dan Leonard
These chips has an almost identical interface but a deal with a different number of value bits. Datasheet links for comparison: * http://www.ti.com/lit/ds/symlink/adc081c021.pdf * http://www.ti.com/lit/ds/symlink/adc101c021.pdf * http://www.ti.com/lit/ds/symlink/adc121c021.pdf Signed-off-by: C

Re: Getting rid of inside_vm in intel8x0

2016-04-04 Thread Luis R. Rodriguez
On Sat, Apr 02, 2016 at 10:22:44PM +0200, Takashi Iwai wrote: > On Sat, 02 Apr 2016 20:05:21 +0200, > Andy Lutomirski wrote: > > > > On Apr 2, 2016 12:07 PM, "Takashi Iwai" wrote: > > > > > > On Sat, 02 Apr 2016 14:57:44 +0200, > > > Andy Lutomirski wrote: > > > > > > > > On Fri, Apr 1, 2016 at 1

Re: [RFC PATCH v1.9 12/14] livepatch: create per-task consistency model

2016-04-04 Thread Josh Poimboeuf
On Mon, Apr 04, 2016 at 08:27:59PM +0200, Vojtech Pavlik wrote: > On Mon, Apr 04, 2016 at 01:21:38PM -0500, Josh Poimboeuf wrote: > > > Hm, can you explain why it should be copied from the parent? > > > > I'm thinking the above code is correct for today, but it should still be > > changed to be m

Re: [PATCH v2 2/2] ti-adc081c: Initial triggered buffer support

2016-04-04 Thread kbuild test robot
Hi Crestez, [auto build test WARNING on iio/togreg] [also build test WARNING on v4.6-rc2 next-20160404] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Crestez-Dan-Leonard/Add-support-for

Re: [PATCH] Staging: android: timed_gpio: fixed bare use of 'unsigned'

2016-04-04 Thread Greg KH
On Mon, Apr 04, 2016 at 09:12:28PM +0530, Shyam Saini wrote: > 'unsigned int gpio' is added in place of 'unsigned gpio' > > Signed-off-by: Shyam Saini > --- > drivers/staging/android/timed_gpio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) This file is no longer in linux-next, pleas

Re: [tip:perf/core] perf/core: Verify we have a single perf_hw_context PMU

2016-04-04 Thread Borislav Petkov
On Mon, Apr 04, 2016 at 04:02:08PM +0200, Peter Zijlstra wrote: > This triggered on AMD machines.. > > --- > Subject: perf,amd: Do not register a task ctx for uncore PMUs > > Uncore PMUs are per node, they cannot have per-task counters. > > Reported-by: Borislav Petkov ^ -an

Re: [PATCH v7 1/4] gadget: Introduce the usb charger framework

2016-04-04 Thread Greg KH
On Mon, Apr 04, 2016 at 09:04:48AM -0700, Mark Brown wrote: > On Mon, Apr 04, 2016 at 01:47:50PM +0300, Felipe Balbi wrote: > > Mark Brown writes: > > > > It does in this new world order. IIRC on an earlier round of review > > > there was some code that didn't use a bus but that got complaints t

Re: [RFC] weird semantics of SG_DXFER_TO_FROM_DEV in BLK_DEV_SKD (drivers/block/skd*)

2016-04-04 Thread Al Viro
On Mon, Apr 04, 2016 at 06:16:12PM +0100, Al Viro wrote: > will see NULL map_data; the ->from_user case is sg_start_req() stuff. IOW, > SG_IO behaviour for /dev/sg* is different from the generic one... While we are at it: in bio_map_user_iov() we have iov_for_each(iov, i, *iter) {

Re: [PATCH 0/8] rtc: m41t80: update and add functionalities

2016-04-04 Thread Alexandre Belloni
On 29/03/2016 at 08:55:57 +0200, Mylène Josserand wrote : > This patchset updates the m41t80 driver : > - update the sysfs entries export to use DEVICE_ATTR_XX > - remove some unnecessary macro > - replace old i2c functions to smbus ones > - use BIT macro > - remove some warnings > - re

[GIT PULL] Kselftest fixes for 4.6-rc3

2016-04-04 Thread Shuah Khan
Hi Linus, Please pull the following fixes for 4.6-rc3. diff attached. thanks, -- Shuah - The following changes since commit f55532a0c0b8bb6148f4e07853b876ef73bc69ca: Linux 4.6-rc1 (2016-03-26 16:03:24 -0700) are

[PATCH] regulator: twl: Provide of_map_mode for twl4030

2016-04-04 Thread Ivaylo Dimitrov
of_map_mode is needed so to be possible to set initial regulators mode from the board DTS. Otherwise, for DT boot, regulators are left in their default state after reset/reboot. Document device specific modes as well. Signed-off-by: Ivaylo Dimitrov --- .../devicetree/bindings/regulator/twl-regul

Re: [bisect] Merge tag 'mmc-v4.6' of git://git.linaro.org/people/ulf.hansson/mmc (was [GIT PULL] MMC for v.4.6)

2016-04-04 Thread Linus Torvalds
On Mon, Apr 4, 2016 at 4:29 AM, Ulf Hansson wrote: > > The commit that's likely to cause the regression is: > 520bd7a8b415 ("mmc: core: Optimize boot time by detecting cards > simultaneously"). Peter, mind testing if you can revert that and get the old behavior back? It seems to still revert clea

Re: [PATCH 0/3] mm: support bigger cache workingsets and protect against writes

2016-04-04 Thread Andres Freund
Hi Johannes, On 2016-04-04 13:13:35 -0400, Johannes Weiner wrote: > this is a follow-up to http://www.spinics.net/lists/linux-mm/msg101739.html > where Andres reported his database workingset being pushed out by the > minimum size enforcement of the inactive file list - currently 50% of cache > -

Re: [RFC PATCH v1.9 12/14] livepatch: create per-task consistency model

2016-04-04 Thread Vojtech Pavlik
On Mon, Apr 04, 2016 at 01:21:38PM -0500, Josh Poimboeuf wrote: > Hm, can you explain why it should be copied from the parent? > > I'm thinking the above code is correct for today, but it should still be > changed to be more future-proof. > > Here's my thinking: > > A forked task starts out wit

Re: [RFC PATCH 0/9] ARM: start to move arch/arm/mach-* to arch/arm/platforms/*

2016-04-04 Thread Olof Johansson
On Sun, Apr 3, 2016 at 11:25 AM, Russell King - ARM Linux wrote: > On Sun, Apr 03, 2016 at 11:39:18PM +0900, Masahiro Yamada wrote: >> We have growing number of mach-* directories in arch/arm, and I guess >> it might be a good time to discuss moving them into a sub-directory. > > What does it buy

Re: [PATCH 2/3] percpu_stats: Simple per-cpu statistics count helper functions

2016-04-04 Thread Christoph Lameter
On Mon, 4 Apr 2016, Waiman Long wrote: > > > + if ((unsigned int)stat>= pcs->nstats) > > > + return; > > > + preempt_disable(); > > > + pstat = this_cpu_ptr(&pcs->stats[stat]); > > > + *pstat += cnt; > > > + preempt_enable(); > > > +} > > pstat = get_cpu_ptr(&pcs->stats[stat]); > > *pstat

Re: [PATCH] nohz_full: Make sched_should_stop_tick() more conservative

2016-04-04 Thread Rik van Riel
On Fri, 2016-04-01 at 15:42 -0400, Chris Metcalf wrote: > On arm64, when calling enqueue_task_fair() from migration_cpu_stop(), > we find the nr_running value updated by add_nr_running(), but the > cfs.nr_running value has not always yet been updated.  Accordingly, > the sched_can_stop_tick() false

Re: [PATCH] nohz_full: Make sched_should_stop_tick() more conservative

2016-04-04 Thread Peter Zijlstra
On 4 April 2016 21:12:23 CEST, Rik van Riel wrote: >What is the difference between cfs_rq->h_nr_running, >and rq->cfs.nr_running? > >Why do we have two? H is for hierarchy. That counts the total of runnable tasks in the entire child hierarchy. Nr_running is the number of se entities in the

Re: [bisect] Merge tag 'mmc-v4.6' of git://git.linaro.org/people/ulf.hansson/mmc (was [GIT PULL] MMC for v.4.6)

2016-04-04 Thread Peter Hurley
On 04/04/2016 11:59 AM, Linus Torvalds wrote: > On Mon, Apr 4, 2016 at 4:29 AM, Ulf Hansson wrote: >> >> The commit that's likely to cause the regression is: >> 520bd7a8b415 ("mmc: core: Optimize boot time by detecting cards >> simultaneously"). > > Peter, mind testing if you can revert that and

Re: [PATCH] nohz_full: Make sched_should_stop_tick() more conservative

2016-04-04 Thread Chris Metcalf
On 4/4/2016 3:12 PM, Rik van Riel wrote: On Fri, 2016-04-01 at 15:42 -0400, Chris Metcalf wrote: On arm64, when calling enqueue_task_fair() from migration_cpu_stop(), we find the nr_running value updated by add_nr_running(), but the cfs.nr_running value has not always yet been updated. Accordin

Re: [PATCH v2 5/5] LSM: LoadPin for kernel file loading restrictions

2016-04-04 Thread Kees Cook
On Thu, Mar 31, 2016 at 2:24 PM, Mimi Zohar wrote: > On Mon, 2016-03-28 at 14:14 -0700, Kees Cook wrote: > >> +static const char *id_str[READING_MAX_ID] = { >> + [READING_FIRMWARE] = "firmware", >> + [READING_MODULE] = "kernel module", >> + [READING_KEXEC_IMAGE] = "kexec image", >> +

Re: [RFC PATCH 06/10] spi: add support for ACPI reconfigure notifications

2016-04-04 Thread Octavian Purdila
On Mon, Apr 4, 2016 at 7:03 PM, Mark Brown wrote: > On Mon, Apr 04, 2016 at 01:25:56PM +0300, Octavian Purdila wrote: >> On Sat, Apr 2, 2016 at 7:24 PM, Mark Brown wrote: > >> > What I don't understand is why the flow on inital probe isn't simply to >> > register the controller which then trigger

Re: [PATCH] nohz_full: Make sched_should_stop_tick() more conservative

2016-04-04 Thread Rik van Riel
On Mon, 2016-04-04 at 15:31 -0400, Chris Metcalf wrote: > On 4/4/2016 3:12 PM, Rik van Riel wrote: > > > > On Fri, 2016-04-01 at 15:42 -0400, Chris Metcalf wrote: > > > > > > On arm64, when calling enqueue_task_fair() from > > > migration_cpu_stop(), > > > we find the nr_running value updated by

Re: [PATCHv10 1/3] rdmacg: Added rdma cgroup controller

2016-04-04 Thread Tejun Heo
Hello, Parav. Sorry about the delay. > +struct rdma_cgroup { > + struct cgroup_subsys_state css; > + > + /* protects resource pool list */ > + spinlock_t rpool_list_lock; Is this lock still being used? > + /* > + * head to keep track of all resourc

Re: tty: memory leak in tty_open

2016-04-04 Thread Peter Hurley
Hi Dmitry, On 04/04/2016 01:56 AM, Dmitry Vyukov wrote: > Hello, > > The following program causes a memory leak: Thanks for the report. This is the same problem fixed in 4.5 There was a merge snafu; Greg has the patch in his queue that fixes this for 4.6 Regards, Peter Hurley > unreferenced o

Re: [PATCH v5 3/9] x86/head: Move early exception panic code into early_fixup_exception

2016-04-04 Thread Borislav Petkov
On Mon, Apr 04, 2016 at 06:00:42PM +0200, Peter Zijlstra wrote: > On Mon, Apr 04, 2016 at 08:32:21AM -0700, Andy Lutomirski wrote: > > > Adding locking would be easy enough, wouldn't it? > > See patch in this thread.. > > > But do any platforms really boot a second CPU before switching to real >

Re: [PATCH] staging: vme: fix bare use of 'unsigned'

2016-04-04 Thread Greg KH
On Sun, Apr 03, 2016 at 09:36:31PM +0100, Martyn Welch wrote: > > > On 31/03/16 23:53, Clifton Barnes wrote: > > fix checkpatch.pl warning about 'Prefer 'unsigned int' to bare use of > > 'unsigned'' > > > > Signed-off-by: Clifton Barnes > > Acked-by: Martyn Welch > > Greg: Whilst this patch

Re: [RFC] sched: unused cpu in affine workload

2016-04-04 Thread Rik van Riel
On Mon, 2016-04-04 at 15:23 +0200, Peter Zijlstra wrote: > On Mon, Apr 04, 2016 at 11:38:44AM +0200, Ingo Molnar wrote: > > > > We'd upgrade that to O(nr_cpus^2), which is totally unrealistic > > with 16,000 CPUs  > > even in a slowpath - but it would probably cause problems even with > > 120 CPUs

Re: [RFC PATCH v6 1/5] Thread-local ABI system call: cache CPU number of running thread

2016-04-04 Thread Mathieu Desnoyers
- On Apr 4, 2016, at 1:11 PM, H. Peter Anvin h...@zytor.com wrote: > On 04/04/16 10:01, Mathieu Desnoyers wrote: >> >> Changes since v5: >> - Rename "getcpu_cache" to "thread_local_abi", allowing to extend >> this system call to cover future features such as restartable critical >> sectio

Re: [kernel-hardening] [PATCH v2 00/11] MIPS relocatable kernel & KASLR

2016-04-04 Thread Kees Cook
On Thu, Mar 31, 2016 at 2:05 AM, Matt Redfearn wrote: > > This series adds the ability for the MIPS kernel to relocate itself at > runtime, optionally to an address determined at random each boot. This > series is based on v4.4 and has been tested on the Malta, Boston and > SEAD3 platforms. > > He

Re: [bisect] Merge tag 'mmc-v4.6' of git://git.linaro.org/people/ulf.hansson/mmc (was [GIT PULL] MMC for v.4.6)

2016-04-04 Thread Linus Torvalds
On Mon, Apr 4, 2016 at 12:29 PM, Peter Hurley wrote: > > Yeah, a straight revert of 520bd7a8b415 resumes normal service: Ok, so we have that as an option. > Should I send a proper revert? Let's see if somebody can come up with a better serialization model. We're only at rc2, and we now have a f

Re: [RFC] weird semantics of SG_DXFER_TO_FROM_DEV in BLK_DEV_SKD (drivers/block/skd*)

2016-04-04 Thread Al Viro
On Mon, Apr 04, 2016 at 07:47:36PM +0100, Al Viro wrote: > On Mon, Apr 04, 2016 at 06:16:12PM +0100, Al Viro wrote: > > > will see NULL map_data; the ->from_user case is sg_start_req() stuff. IOW, > > SG_IO behaviour for /dev/sg* is different from the generic one... > > While we are at it: in bi

Re: [PATCH] drivers/idle: make intel_idle.c driver more explicitly non-modular

2016-04-04 Thread Paul Gortmaker
[[PATCH] drivers/idle: make intel_idle.c driver more explicitly non-modular] On 27/03/2016 (Sun 13:29) Paul Gortmaker wrote: > The Kconfig for this driver is currently declared with: > > config INTEL_IDLE > bool "Cpuidle Driver for Intel Processors" > > ...meaning that it currently is n

Re: [bisect] Merge tag 'mmc-v4.6' of git://git.linaro.org/people/ulf.hansson/mmc (was [GIT PULL] MMC for v.4.6)

2016-04-04 Thread Peter Hurley
On 04/04/2016 12:49 PM, Linus Torvalds wrote: > On Mon, Apr 4, 2016 at 12:29 PM, Peter Hurley > wrote: >> >> Yeah, a straight revert of 520bd7a8b415 resumes normal service: > > Ok, so we have that as an option. > >> Should I send a proper revert? > > Let's see if somebody can come up with a be

Re: tty: memory leak in tty_open

2016-04-04 Thread Dmitry Vyukov
On Mon, Apr 4, 2016 at 9:37 PM, Peter Hurley wrote: > Hi Dmitry, > > On 04/04/2016 01:56 AM, Dmitry Vyukov wrote: >> Hello, >> >> The following program causes a memory leak: > > Thanks for the report. This is the same problem fixed in 4.5 > There was a merge snafu; Greg has the patch in his queue

Re: [PATCH 1/2] ipv4: l2tp: fix a potential issue in l2tp_ip_recv

2016-04-04 Thread David Miller
From: Haishuang Yan Date: Sun, 3 Apr 2016 22:09:23 +0800 > pskb_may_pull() can change skb->data, so we have to load ptr/optr at the > right place. > > Signed-off-by: Haishuang Yan Applied and queued up for -stable.

Re: [PATCH 2/2] ipv6: l2tp: fix a potential issue in l2tp_ip6_recv

2016-04-04 Thread David Miller
From: Haishuang Yan Date: Sun, 3 Apr 2016 22:09:24 +0800 > pskb_may_pull() can change skb->data, so we have to load ptr/optr at the > right place. > > Signed-off-by: Haishuang Yan Applied and queued up for -stable.

Re: [GIT PULL] f2fs fixes for v4.6-rc3

2016-04-04 Thread Linus Torvalds
On Sun, Apr 3, 2016 at 10:21 PM, Jaegeuk Kim wrote: > > Could you please pull the below commits for v4.6-rc3? Pulled, but.. > git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git > tags/f2fs-for-linus .. the above is a tag, but it's not signed, nor even annotated. So it has no mess

Subject: [PATCH v2] ibft: Expose iBFT acpi header via sysfs

2016-04-04 Thread David Bond
Some ethernet adapter vendors are supplying products which support optional (payed license) features. On some adapters this includes a hardware iscsi initiator. The same adapters in a normal (no extra licenses) mode of operation can be used as a software iscsi initiator. In addition, software is

Re: [PATCH] bridge:Fix incorrect variable assignment on error path in br_sysfs_addbr

2016-04-04 Thread David Miller
From: Bastien Philbert Date: Sun, 3 Apr 2016 19:04:26 -0400 > This fixes the incorrect variable assignment on error path in > br_sysfs_addbr for when the call to kobject_create_and_add > fails to assign the value of -EINVAL to the returned variable of > err rather then incorrectly return zero ma

Re: [PATCH v2 5/5] lib: scatterlist: move SG pool code from SCSI driver to lib/sg_pool.c

2016-04-04 Thread Ming Lin
On Tue, Mar 22, 2016 at 7:38 PM, kbuild test robot wrote: > Hi Ming, > > [auto build test WARNING on scsi/for-next] > [also build test WARNING on v4.5 next-20160322] > [if your patch is applied to the wrong git tree, please drop us a note to > help improving the system] > > url: > https://git

[PATCH] mtd: gpmi: fix raw_buffer pointer double free issue

2016-04-04 Thread Han Xu
fix the raw_buffer pointer double free issue found by coverify. Signed-off-by: Han Xu --- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c index 8122c69..dcb60b0 100644 ---

Re: [PATCH v3 0/5] macb: Codingstyle cleanups

2016-04-04 Thread David Miller
From: Moritz Fischer Date: Tue, 29 Mar 2016 19:11:10 -0700 > resending almost unchanged v2 here: > > Changes from v2: > * Rebased onto net-next > * Changed 5th patches commit message > * Added Nicholas' and Michal's Acked-Bys > > Changes from v1: > * Backed out variable scope changes > * Separa

Re: [PATCH] bridge:Fix incorrect variable assignment on error path in br_sysfs_addbr

2016-04-04 Thread Bastien Philbert
On 2016-04-04 04:14 PM, David Miller wrote: > From: Bastien Philbert > Date: Sun, 3 Apr 2016 19:04:26 -0400 > >> This fixes the incorrect variable assignment on error path in >> br_sysfs_addbr for when the call to kobject_create_and_add >> fails to assign the value of -EINVAL to the returned v

Re: [PATCH v2 5/5] lib: scatterlist: move SG pool code from SCSI driver to lib/sg_pool.c

2016-04-04 Thread Christoph Hellwig
On Mon, Apr 04, 2016 at 01:15:45PM -0700, Ming Lin wrote: > cleanup_sdb: > for (i = 0; i < SG_MEMPOOL_NR; i++) { > struct sg_pool *sgp = sg_pools + i; > if (sgp->pool) > mempool_destroy(sgp->pool); > if (sgp->slab) >

[PATCH 3/5] leds: trigger: panic: Use led_trigger_event_nosleep

2016-04-04 Thread Ezequiel Garcia
Calling led_trigger_event may schedule a delayed LED set, if the LED was being used by a delayed blink trigger when the kernel paniced. Therefore, we must use led_trigger_event_nosleep to override this situation, and set the LED unconditionally. Signed-off-by: Ezequiel Garcia --- drivers/leds/t

[PATCH 4/5] devicetree: leds: Introduce "panic-blink" optional property

2016-04-04 Thread Ezequiel Garcia
It's desirable to specify which LEDs are to be blinked on a kernel panic. Therefore, introduce a devicetree boolean property to mark which LEDs should be treated this way. Signed-off-by: Ezequiel Garcia --- Documentation/devicetree/bindings/leds/common.txt | 2 ++ 1 file changed, 2 insertions(+)

[PATCH 5/5] leds: gpio: Support the panic-blink firmware property

2016-04-04 Thread Ezequiel Garcia
GPIO LEDs are relatively cheap, and so are ideal to blink on a kernel panic. This commit adds support for the new "panic-blink" firmware property, allowing to mark a given LED to blink on a kernel panic. Signed-off-by: Ezequiel Garcia --- drivers/leds/leds-gpio.c | 4 include/linux/leds.h

[PATCH 0/5] Extend the LED panic trigger

2016-04-04 Thread Ezequiel Garcia
As per commit 916fe61995 ("leds: trigger: Introduce a kernel panic LED trigger"), the kernel now supports a new LED trigger to hook on the panic blink. However, the only way of using this is to dedicate a LED device to this function. To overcome this limitation, the present series introduces the

[PATCH 1/5] leds: triggers: Allow to switch the trigger to "panic" on a kernel panic

2016-04-04 Thread Ezequiel Garcia
This commit adds a new led_cdev flag LED_BLINK_AT_PANIC, which allows to mark a specific LED to be switched to the "panic" trigger, on a kernel panic. This is useful to allow the user to assign a regular trigger to a given LED, and still blink that LED on a kernel panic. Signed-off-by: Ezequiel G

[PATCH 2/5] leds: triggers: Add a led_trigger_event_nosleep API

2016-04-04 Thread Ezequiel Garcia
Now that we can mark any LED (even those in use by delayed blink triggers) to trigger on a kernel panic, let's introduce a nosleep led_trigger_event API. This API is needed to skip the delayed blink path on led_trigger_event. LEDs that are switched on a kernel panic, might be in use by a delayed b

[PATCH 05/10] x86/cpufeature: Remove cpu_has_fpu

2016-04-04 Thread Borislav Petkov
From: Borislav Petkov Use static_cpu_has() in the timing-sensitive paths in fpstate_init() and fpu__copy(). While at it, simplify the use in init_cyrix() and get rid of the ternary operator. Signed-off-by: Borislav Petkov --- arch/x86/include/asm/cpufeature.h | 1 - arch/x86/kernel/cpu/cyrix.

[PATCH 03/10] x86/cpufeature: Remove cpu_has_avx

2016-04-04 Thread Borislav Petkov
From: Borislav Petkov Signed-off-by: Borislav Petkov Cc: linux-cry...@vger.kernel.org --- arch/x86/crypto/aesni-intel_glue.c | 2 +- arch/x86/crypto/camellia_aesni_avx2_glue.c | 3 ++- arch/x86/crypto/camellia_aesni_avx_glue.c | 2 +- arch/x86/crypto/chacha20_glue.c| 3 ++-

[PATCH 09/10] x86/cpufeature: Remove cpu_has_xsave

2016-04-04 Thread Borislav Petkov
From: Borislav Petkov Signed-off-by: Borislav Petkov Cc: k...@vger.kernel.org --- arch/x86/ia32/ia32_signal.c | 2 +- arch/x86/include/asm/cpufeature.h | 1 - arch/x86/kernel/fpu/regset.c | 8 arch/x86/kernel/fpu/xstate.c | 8 arch/x86/kernel/signal.c

[PATCH 06/10] x86/cpufeature: Remove cpu_has_tsc

2016-04-04 Thread Borislav Petkov
From: Borislav Petkov Signed-off-by: Borislav Petkov Cc: Dmitry Torokhov Cc: Thomas Sailer --- arch/x86/include/asm/cpufeature.h | 1 - arch/x86/include/asm/tsc.h| 2 +- arch/x86/kernel/apic/apic.c | 10 +- arch/x86/kernel/cpu/common.c | 2 +- arch/x86/kernel/tsc

Re: [PATCH v2 4/5] scsi: rename SCSI_MAX_{SG, SG_CHAIN}_SEGMENTS

2016-04-04 Thread Ming Lin
On Tue, Mar 22, 2016 at 3:03 PM, Ming Lin wrote: > From: Ming Lin > > Rename SCSI_MAX_SG_SEGMENTS to SG_CHUNK_SIZE, which means the amount > we fit into a single scatterlist chunk. > > Rename SCSI_MAX_SG_CHAIN_SEGMENTS to SG_MAX_SEGMENTS. > > Will move these 2 generic definitions to scatterlist.h

[PATCH 2/3] orangefs: strncpy -> strlcpy

2016-04-04 Thread Martin Brandenburg
From: Martin Brandenburg Almost everywhere we use strncpy we should use strlcpy. This affects path names (d_name mostly), symlink targets, and server names. Leave debugfs code as is for now, though it could use a review as well. Signed-off-by: Martin Brandenburg --- fs/orangefs/dcache.c

[PATCH 02/10] x86/cpufeature: Remove cpu_has_aes

2016-04-04 Thread Borislav Petkov
From: Borislav Petkov Signed-off-by: Borislav Petkov Cc: linux-cry...@vger.kernel.org --- arch/x86/crypto/camellia_aesni_avx2_glue.c | 3 ++- arch/x86/crypto/camellia_aesni_avx_glue.c | 4 +++- arch/x86/include/asm/cpufeature.h | 1 - 3 files changed, 5 insertions(+), 3 deletions(-)

[PATCH 10/10] x86/cpufeature: Remove cpu_has_xsaves

2016-04-04 Thread Borislav Petkov
From: Borislav Petkov Signed-off-by: Borislav Petkov Cc: --- arch/x86/include/asm/cpufeature.h | 6 -- arch/x86/kernel/fpu/xstate.c | 10 +- arch/x86/kvm/vmx.c| 2 +- arch/x86/kvm/x86.c| 4 ++-- 4 files changed, 8 insertions(+), 14 deletions(

[PATCH 08/10] x86/cpufeature: Remove cpu_has_fxsr

2016-04-04 Thread Borislav Petkov
From: Borislav Petkov Signed-off-by: Borislav Petkov --- arch/x86/include/asm/cpufeature.h | 1 - arch/x86/kernel/fpu/core.c| 6 +++--- arch/x86/kernel/fpu/init.c| 6 +++--- arch/x86/kernel/fpu/regset.c | 13 - 4 files changed, 14 insertions(+), 12 deletions(

[PATCH 07/10] x86/cpufeature: Remove cpu_has_apic

2016-04-04 Thread Borislav Petkov
From: Borislav Petkov Signed-off-by: Borislav Petkov Cc: oprofile-l...@lists.sf.net Cc: io...@lists.linux-foundation.org Cc: linux...@vger.kernel.org --- arch/x86/events/core.c | 2 +- arch/x86/include/asm/cpufeature.h| 1 - arch/x86/include/asm/irq_work.h |

[PATCH 3/3] orangefs: remove unused variable

2016-04-04 Thread Martin Brandenburg
From: Martin Brandenburg --- fs/orangefs/dir.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/orangefs/dir.c b/fs/orangefs/dir.c index ba7dec4..324f0af 100644 --- a/fs/orangefs/dir.c +++ b/fs/orangefs/dir.c @@ -153,7 +153,6 @@ static int orangefs_readdir(struct file *f

[PATCH 1/3] orangefs: clean up truncate ctime and mtime setting

2016-04-04 Thread Martin Brandenburg
From: Martin Brandenburg The ctime and mtime are always updated on a successful ftruncate and only updated on a successful truncate where the size changed. We handle the ``if the size changed'' bit. This matches FUSE's behavior. Signed-off-by: Martin Brandenburg --- fs/orangefs/inode.c | 16

[PATCH 01/10] x86/cpufeature: Remove cpu_has_avx2

2016-04-04 Thread Borislav Petkov
From: Borislav Petkov Signed-off-by: Borislav Petkov Cc: linux-cry...@vger.kernel.org --- arch/x86/crypto/camellia_aesni_avx2_glue.c | 2 +- arch/x86/crypto/chacha20_glue.c| 2 +- arch/x86/crypto/poly1305_glue.c| 2 +- arch/x86/crypto/serpent_avx2_glue.c| 2 +- a

[PATCH 00/10] x86/cpufeature: Bye bye cpu_has_YYY

2016-04-04 Thread Borislav Petkov
From: Borislav Petkov Here are the final 10. cpu_has_YYY is gone now. Good riddance. I have a bunch of misc cleanups on top, will send them tomorrow. Thanks. Borislav Petkov (10): x86/cpufeature: Remove cpu_has_avx2 x86/cpufeature: Remove cpu_has_aes x86/cpufeature: Remove cpu_has_avx

[PATCH 04/10] x86/cpufeature: Remove cpu_has_xmm

2016-04-04 Thread Borislav Petkov
From: Borislav Petkov Signed-off-by: Borislav Petkov --- arch/x86/include/asm/cpufeature.h | 1 - arch/x86/include/asm/xor_32.h | 2 +- arch/x86/kernel/fpu/core.c| 2 +- arch/x86/kernel/fpu/init.c| 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/x86

[PATCH 1/1] perf tools: Fix format value calculation

2016-04-04 Thread kan . liang
From: Kan Liang The calculation of format value also rely on the continuity of the format. However, uncore event format is not continuous. E.g. The bit 21 as qpi event is lost. perf stat -a -e uncore_qpi_0/event=0x200038,config1=0x1C00, config2=0x3FE00/ -vvv -

Re: [PATCH v2 5/5] lib: scatterlist: move SG pool code from SCSI driver to lib/sg_pool.c

2016-04-04 Thread Ming Lin
On Mon, Apr 4, 2016 at 1:17 PM, Christoph Hellwig wrote: > On Mon, Apr 04, 2016 at 01:15:45PM -0700, Ming Lin wrote: >> cleanup_sdb: >> for (i = 0; i < SG_MEMPOOL_NR; i++) { >> struct sg_pool *sgp = sg_pools + i; >> if (sgp->pool) >>

[PATCH] bluetooth: Fix locking issues in the function l2cap_connect_cfm

2016-04-04 Thread Bastien Philbert
This fixes a locking issue in the function l2cap_connect_cfm for not locking the mutex lock for channels on the l2cap_conn structure pointer conn before calling __l2cap_get_chan_by_dcid as all callers need to lock and unlock this mutex before calling this function due to issues with either concurre

RE: [PATCH 1/2] usb: dwc3: core: Introduce dwc3_device_reinit()

2016-04-04 Thread Shankar, Abhishek
Roger I am sorry but this mail chain is unreadable!! I am not able to filter out the >>>... Please send me a clean version of the mail if possible...i will be unable to respond without that.. ---Abhishek -Original Message- From: Felipe Balbi [mailto:ba...@kernel.org] Sent: Monday, Apri

[PATCH 01/11] x86, perf: Support sysfs files depending on SMT status

2016-04-04 Thread Andi Kleen
From: Andi Kleen Add a way to show different sysfs events attributes depending on HyperThreading is on or off. This is difficult to determine early at boot, so we just do it dynamically when the sysfs attribute is read. v2: Compute HT status only once in CPU online/offline hooks. Signed-off-by:

[PATCH 06/11] perf, tools, stat: Force --per-core mode for .aggr-per-core aliases

2016-04-04 Thread Andi Kleen
From: Andi Kleen When an event alias is used that the kernel marked as .aggr-per-core, force --per-core mode (and also require -a and forbid cgroups or per thread mode). This in term means, --topdown forces --per-core mode. This is needed for TopDown in SMT mode, because it needs to measure all

[PATCH 04/11] x86, perf: Use new ht_on flag in HT leak workaround

2016-04-04 Thread Andi Kleen
From: Andi Kleen Now that we have a convenient ht_on flag in x86_pmu use it to detect the HT workarounds for older CPUs. Signed-off-by: Andi Kleen --- arch/x86/events/intel/core.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/x86/events/intel/core.c b/arch/x86/

[PATCH 07/11] perf, tools, stat: Avoid fractional digits for integer scales

2016-04-04 Thread Andi Kleen
From: Andi Kleen When the scaling factor is a full integer don't display fractional digits. This avoids unnecessary .00 output for topdown metrics with scale factors. v2: Remove redundant check. Signed-off-by: Andi Kleen --- tools/perf/builtin-stat.c | 7 --- 1 file changed, 4 insertions(+

[PATCH 11/11] perf, tools, stat: Add extra output of counter values with -v

2016-04-04 Thread Andi Kleen
From: Andi Kleen Add debug output of raw counter values per CPU when perf stat -v is specified, together with their cpu numbers. This is very useful to debug problems with per core counters, where we can normally only see aggregated values. Signed-off-by: Andi Kleen --- tools/perf/builtin-stat

[PATCH 09/11] perf, tools, stat: Basic support for TopDown in perf stat

2016-04-04 Thread Andi Kleen
From: Andi Kleen Add basic plumbing for TopDown in perf stat Add a new --topdown options to enable events. When --topdown is specified set up events for all topdown events supported by the kernel. Add topdown-* as a special case to the event parser, as is needed for all events containing -. The

[PATCH 10/11] perf, tools, stat: Add computation of TopDown formulas

2016-04-04 Thread Andi Kleen
From: Andi Kleen Implement the TopDown formulas in perf stat. The topdown basic metrics reported by the kernel are collected, and the formulas are computed and output as normal metrics. See the kernel commit exporting the events for details on the used metrics. v2: Always print all metrics, onl

[PATCH 02/11] x86, perf: Add Top Down events to Intel Core

2016-04-04 Thread Andi Kleen
From: Andi Kleen Add declarations for the events needed for TopDown to the Intel big core CPUs starting with Sandy Bridge. We need to report different values if HyperThreading is on or off. The only thing this patch does is to export some events in sysfs. TopDown level 1 uses a set of abstracte

[PATCH 03/11] x86, perf: Add Top Down events to Intel Atom

2016-04-04 Thread Andi Kleen
From: Andi Kleen Add topdown event declarations to Silvermont / Airmont. These cores do not support the full Top Down metrics, but an useful subset (FrontendBound, Retiring, Backend Bound/Bad Speculation). The perf stat tool automatically handles the missing events and combines the available met

[PATCH 08/11] perf, tools, stat: Scale values by unit before metrics

2016-04-04 Thread Andi Kleen
From: Andi Kleen Scale values by unit before passing them to the metrics printing functions. This is needed for TopDown, because it needs to scale the slots correctly by pipeline width / SMTness. For existing metrics it shouldn't make any difference, as those generally use events that don't have

Add top down metrics to perf stat

2016-04-04 Thread Andi Kleen
Note to reviewers: includes both tools and kernel patches. The kernel patches are at the beginning. [v2: Address review feedback. Metrics are now always printed, but colored when crossing threshold. --topdown implies --metric-only. Various smaller fixes, see individual patches] [v3: Add --single-t

[PATCH 05/11] perf, tools: Parse an .aggr-per-core event attribute

2016-04-04 Thread Andi Kleen
From: Andi Kleen Add the basic code to parse an .aggr-per-core event attribute. The attribute means that the event needs to be measured in per core mode. v2: Support integer values for aggr-per-core Signed-off-by: Andi Kleen --- tools/perf/util/evsel.h| 1 + tools/perf/util/parse-even

[PATCH] kvm: x86: make lapic hrtimer pinned

2016-04-04 Thread Luiz Capitulino
When a vCPU runs on a nohz_full core, the hrtimer used by the lapic emulation code can be migrated to another core. When this happens, it's possible to observe milisecond latency when delivering timer IRQs to KVM guests. The huge latency is mainly due to the fact that apic_timer_fn() expects to ru

Re: [RFC PATCH v6 1/5] Thread-local ABI system call: cache CPU number of running thread

2016-04-04 Thread Mathieu Desnoyers
- On Apr 4, 2016, at 3:46 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Apr 4, 2016, at 1:11 PM, H. Peter Anvin h...@zytor.com wrote: > >> On 04/04/16 10:01, Mathieu Desnoyers wrote: >>> >>> Changes since v5: >>> - Rename "getcpu_cache" to "thread_local_abi", allowi

[PATCH] mtd: gpmi: fix raw_buffer pointer double free issue

2016-04-04 Thread Han Xu
fix the raw_buffer pointer double free issue found by coverify. CID 18344 (#2 of 2): Double free (USE_AFTER_FREE) 3. double_free: Calling gpmi_alloc_dma_buffer frees pointer this->raw_buffer which has already been freed Signed-off-by: Han Xu --- changes in v2: - add coverity check log --- dri

Re: [PATCH] kvm: x86: make lapic hrtimer pinned

2016-04-04 Thread Rik van Riel
On Mon, 2016-04-04 at 16:46 -0400, Luiz Capitulino wrote: > When a vCPU runs on a nohz_full core, the hrtimer used by > the lapic emulation code can be migrated to another core. > When this happens, it's possible to observe milisecond > latency when delivering timer IRQs to KVM guests. > > The hug

[PATCH 1/2] qcom: ipq4019: Add regulator support to DK04 device tree

2016-04-04 Thread Sreedhar Sambangi
This adds the regulator nodes to DK04 device tree to support Change-Id: I9c1df0e720a330bf6db1889fd2247f6a70ea6faa Signed-off-by: Sreedhar Sambangi --- .../bindings/regulator/ipq4019-regulator.txt | 19 +++ arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi | 11 ++

[PATCH 2/2] qcom: ipq4019: Add LDO regulator driver for SDHC controller

2016-04-04 Thread Sreedhar Sambangi
From: Kirthik Srinivasan Add LDO regulator driver to enable SD /MMC card to switch between 3.0 volts and 1.8 volts Change-Id: I66f770878570b1f5b1db044ba626e0f6989acc3f Signed-off-by: Kirthik Srinivasan Signed-off-by: Rajith Cherian Signed-off-by: Sreedhar Sambangi --- drivers/regulator/Kcon

Re: [PATCH v7 1/5] of/serial: move earlycon early_param handling to serial

2016-04-04 Thread Peter Hurley
On 03/31/2016 06:40 AM, Aleksey Makarov wrote: > From: Leif Lindholm > > We have multiple "earlycon" early_param handlers - merge the DT one into > the main earlycon one. It's a cleanup that also will be useful > to defer setting up DT console until ACPI/DT decision is made. > > Rename the expo

Re: [PATCH v7 5/5] serial: pl011: add console matching function

2016-04-04 Thread Peter Hurley
On 03/31/2016 06:40 AM, Aleksey Makarov wrote: > This patch adds function pl011_console_match() that implements > method match of struct console. It allows to match consoles against > data specified in a string, for example taken from command line or > compiled by ACPI SPCR table handler. Reviewe

Re: [GIT PULL] f2fs fixes for v4.6-rc3

2016-04-04 Thread Jaegeuk Kim
On Mon, Apr 04, 2016 at 01:07:11PM -0700, Linus Torvalds wrote: > On Sun, Apr 3, 2016 at 10:21 PM, Jaegeuk Kim wrote: > > > > Could you please pull the below commits for v4.6-rc3? > > Pulled, but.. > > > git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git > > tags/f2fs-for-linus >

[PATCH fix for v4.6] scsi: ufs: make ufshcd_query_descriptor_retry static

2016-04-04 Thread Tomas Winkler
This function was intended to be exported into the ufshcd API but after all it is not used outside ufshcd.c Make it static and drop EXPORT_SYMBOL; this can be restored when needed. Fixes warning: no previous prototype for ‘ufshcd_query_descriptor_retry’ Introduced by commit a70e91b8bbaa ("scsi: uf

<    2   3   4   5   6   7   8   9   >