Re: [PATCH v2] input: tablet: pegasus_notetaker: USB PM fixes

2016-06-23 Thread Dmitry Torokhov
Hi Martin, On Tue, Jun 14, 2016 at 01:20:15PM +0200, Martin Kepplinger wrote: > static int pegasus_reset_resume(struct usb_interface *intf) > { > + struct pegasus *pegasus = usb_get_intfdata(intf); > + > + if (pegasus->dev->users) > + pegasus_set_mode(pegasus, PEN_MODE_XY, NO

Re: [PATCH v2 3/4] input: touchscreen: mxs-lradc: Add support for touchscreen

2016-06-23 Thread Dmitry Torokhov
On Wed, Jun 15, 2016 at 11:26:18PM +0200, Stefan Wahren wrote: > Hi, > > unfortunately i still don't have a touchscreen to test this patch. > > > Ksenija Stanojevic hat am 8. Juni 2016 um > > 16:48 > > geschrieben: > > > > > > Add 4-wire/5-wire touchscreen controller. > > > > Signed-off-by:

Re: [PATCH] tcm_qla2xxx: fix spelling mistake: "seperator" -> "separator"

2016-06-23 Thread Laurence Oberman
- Original Message - > From: "Colin King" > To: "James E . J . Bottomley" , "Martin K . > Petersen" , > linux-s...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Sent: Thursday, June 23, 2016 1:12:25 PM > Subject: [PATCH] tcm_qla2xxx: fix spelling mistake: "seperator" -> "separato

Re: [PATCH] fbdev: atyfb: fix array overflow

2016-06-23 Thread Ville Syrjälä
On Thu, Jun 23, 2016 at 11:06:11AM +0200, Arnd Bergmann wrote: > On Thursday, June 23, 2016 3:28:25 AM CEST Ville Syrjälä wrote: > > On Wed, Jun 22, 2016 at 02:37:11PM +0200, Arnd Bergmann wrote: > > > When building with CONFIG_UBSAN_SANITIZE_ALL on ARM, I get this > > > gcc warning for atyfb: > >

Re: futex: Allow FUTEX_CLOCK_REALTIME with FUTEX_WAIT op

2016-06-23 Thread Thomas Gleixner
On Thu, 23 Jun 2016, Darren Hart wrote: > On Thu, Jun 23, 2016 at 03:40:36PM +0200, Thomas Gleixner wrote: > In my opinion, we should treat the timeout value as relative for FUTEX_WAIT > regardless of the CLOCK used. Which requires even more changes as you have to select which clock you are using

Re: [v3 PATCH 3/5] phy: Add USB Type-C PHY driver for rk3399

2016-06-23 Thread Guenter Roeck
Hi Chris, [ ... ] > + ret = extcon_register_notifier(tcphy->pd_extcon, EXTCON_USB, > + &tcphy->event_nb); > + if (ret) { > + dev_err(dev, "regitster EXTCON_USB notifer failed\n"); > + return ret; > + } > + > +

Re: [PATCH] pci: Add support for unbinding the generic PCI host controller

2016-06-23 Thread Jan Kiszka
On 2016-06-22 08:06, Will Deacon wrote: > Hi Jan, > > On Tue, Jun 21, 2016 at 08:07:50PM +0200, Jan Kiszka wrote: >> Particularly useful when working in virtual environments where the >> controller may come and go, but possibly not only there. >> >> Signed-off-by: Jan Kiszka >> --- >> drivers/pc

RE: [RFC v3 42/45] nfs: Add richacl support

2016-06-23 Thread Frank Filz
> First, let me say thanks for all the work! We (Primary Data) have been using > samba with the vfs_richacl module reexporting an nfsv4.2 mount and things > are working pretty well. You can count on us for testing, bug fixing and code > review. > > Now for my question: It looks like this call to r

Re: [PATCH v2 1/2] netfilter/nflog: nflog-range does not truncate packets

2016-06-23 Thread Pablo Neira Ayuso
On Tue, Jun 21, 2016 at 02:58:46PM -0400, Vishwanath Pai wrote: > netfilter/nflog: nflog-range does not truncate packets > > li->u.ulog.copy_len is currently ignored by the kernel, we should truncate > the packet to either li->u.ulog.copy_len (if set) or copy_range before > sending it to userspace

Re: [PATCH V4 1/3] x86/ioapic: Support hot-removal of IOAPICs present during boot

2016-06-23 Thread Bjorn Helgaas
On Thu, Jun 23, 2016 at 01:11:41PM +0800, wrote: > From: Rui Wang > > On Wed, June 22, 2016 11:15 PM Bjorn Helgaas wrote: > > [...] > > > @@ -1779,8 +1780,12 @@ void __init > > > pci_assign_unassigned_resources(void) > > > { > > > struct pci_bus *root_bus; > > > > > > - list_for_each_entry(ro

Re: [PATCH] fbdev: atyfb: fix array overflow

2016-06-23 Thread Ville Syrjälä
On Thu, Jun 23, 2016 at 11:22:20AM +0200, Arnd Bergmann wrote: > On Thursday, June 23, 2016 10:50:04 AM CEST Geert Uytterhoeven wrote: > > Hi Arnd, > > > > On Wed, Jun 22, 2016 at 2:37 PM, Arnd Bergmann wrote: > > > When building with CONFIG_UBSAN_SANITIZE_ALL on ARM, I get this > > > gcc warning

Re: [PATCH v2 1/3] block: add QUEUE_FLAG_DAX for devices to advertise their DAX support

2016-06-23 Thread Kani, Toshimitsu
On Thu, 2016-06-23 at 19:31 +0300, Yigal Korman wrote: > On Thu, Jun 23, 2016 at 2:54 AM, Toshi Kani wrote: > > > > > > Currently, presence of direct_access() in block_device_operations > > indicates support of DAX on its block device.  Because > > block_device_operations is instantiated with 'c

Re: [PATCH] bridge: netfilter: spanning tree: Add masked_ether_addr_equal and neatening

2016-06-23 Thread Pablo Neira Ayuso
On Wed, Jun 15, 2016 at 01:58:45PM -0700, Joe Perches wrote: > There is code duplication of a masked ethernet address comparison here > so make it a separate function instead. > > Miscellanea: > > o Neaten alignment of FWINV macro uses to make it clearer for the reader Applied, thanks. > Signed

[PATCH] ASoC: Samsung: s3c-i2s-v2: fix spelling mistake: "unknwon" -> "unknown"

2016-06-23 Thread Colin King
From: Colin Ian King trivial fix to spelling mistake in pr_err message Signed-off-by: Colin Ian King --- sound/soc/samsung/s3c-i2s-v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/samsung/s3c-i2s-v2.c b/sound/soc/samsung/s3c-i2s-v2.c index b6ab3fc..bf8ae79 100

Re: [PATCH v10 07/10] perf record: Read from overwritable ring buffer

2016-06-23 Thread Nilay Vaish
On 23 June 2016 at 09:31, pi3orama wrote: > > > 发自我的 iPhone > >> 在 2016年6月23日,下午10:27,Nilay Vaish 写道: >> >>> On 23 June 2016 at 00:27, Wang Nan wrote: >>> @@ -542,6 +568,79 @@ static struct perf_event_header finished_round_event = >>> { >>>.type = PERF_RECORD_FINISHED_ROUND, >>> }; >>>

Re: [PATCH v4 2/3] pwm: iproc: Add support for Broadcom iproc pwm controller

2016-06-23 Thread Boris Brezillon
On Wed, 22 Jun 2016 07:29:46 -0400 Yendapally Reddy Dhananjaya Reddy wrote: > Add support for the PWM controller present in Broadcom's iProc > family of SoCs. This driver is derived from the pwm-bcm-kona > driver, with changes to the register offsets and bit positions. I haven't looked at the 2

Re: [RESEND PATCH] thermal: helpers: Check return value of get_temp

2016-06-23 Thread Rhyland Klein
On 6/6/2016 12:53 PM, Rhyland Klein wrote: > Check the return value of get_temp, which can fail. If it does, then > unlock and return the error code. > > Signed-off-by: Rhyland Klein > --- > drivers/thermal/thermal_helpers.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/t

Re: [PATCH v2 2/2] netfilter/nflog: nflog-range does not truncate packets (userspace)

2016-06-23 Thread Pablo Neira Ayuso
On Tue, Jun 21, 2016 at 03:02:16PM -0400, Vishwanath Pai wrote: > netfilter/nflog: nflog-range does not truncate packets > > The option --nflog-range has never worked, but we cannot just fix this > because users might be using this feature option and their behavior would > change. Instead add a ne

Re: [PATCH v4 2/3] pwm: iproc: Add support for Broadcom iproc pwm controller

2016-06-23 Thread Yendapally Reddy Dhananjaya Reddy
Hi Boris, On Thu, Jun 23, 2016 at 11:09 PM, Boris Brezillon wrote: > On Wed, 22 Jun 2016 07:29:46 -0400 > Yendapally Reddy Dhananjaya Reddy wrote: > >> Add support for the PWM controller present in Broadcom's iProc >> family of SoCs. This driver is derived from the pwm-bcm-kona >> driver, with c

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Linus Torvalds
On Thu, Jun 23, 2016 at 10:03 AM, Oleg Nesterov wrote: > > Let me quote my previous email ;) > > And we can't free/nullify it when the parent/debuger reaps a zombie, > say, mark_oom_victim() expects that get_task_struct() protects > thread_info as well. > > probably we can

Re: [PATCH v4] power_supply: power_supply_read_temp only if use_cnt > 0

2016-06-23 Thread Rhyland Klein
On 6/22/2016 10:23 AM, Sebastian Reichel wrote: > * PGP Signed by an unknown key > > Hi Rhyland, > > On Tue, Jun 21, 2016 at 02:06:55PM -0400, Rhyland Klein wrote: >> Sebastian, might this be accepted soon? We can't enable the bq27xxx >> driver for Tegra210 Smaug without running into the crash th

Re: [PATCH] Input: elantech - add more IC body types to the list

2016-06-23 Thread Dmitry Torokhov
On Tue, Jun 21, 2016 at 04:15:35PM -0700, Dmitry Torokhov wrote: > The touchpad in HP Pavilion 14-ab057ca reports it's version as 12 and > according to Elan both 11 and 12 are valid IC types and should be > identified as hw_version 4. > > Reported-by: Patrick Lessard > Signed-off-by: Dmitry Torok

Re: [PATCH v4 2/3] pwm: iproc: Add support for Broadcom iproc pwm controller

2016-06-23 Thread Yendapally Reddy Dhananjaya Reddy
Hi Brian, On Wed, Jun 22, 2016 at 11:01 PM, Brian Norris wrote: > On Wed, Jun 22, 2016 at 07:29:46AM -0400, Yendapally Reddy Dhananjaya Reddy > wrote: >> Add support for the PWM controller present in Broadcom's iProc >> family of SoCs. This driver is derived from the pwm-bcm-kona >> driver, wit

[PATCH] char: xillybus: fix spelling mistake: "upgarde" -> "upgrade"

2016-06-23 Thread Colin King
From: Colin Ian King trivial fix to spelling mistake in dev_err message Signed-off-by: Colin Ian King --- drivers/char/xillybus/xillybus_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/xillybus/xillybus_core.c b/drivers/char/xillybus/xillybus_core.c ind

Re: [RESEND PATCH v2 1/5] ir-rx51: Fix build after multiarch changes broke it

2016-06-23 Thread Pali Rohár
On Wednesday 22 June 2016 21:22:17 Ivaylo Dimitrov wrote: > The ir-rx51 driver for n900 has been disabled since the multiarch > changes as plat include directory no longer is SoC specific. > > Let's fix it with minimal changes to pass the dmtimer calls in > pdata. Then the following changes can be

Re: [RESEND PATCH v2 0/5] ir-rx51 driver fixes

2016-06-23 Thread Pali Rohár
On Wednesday 22 June 2016 21:22:16 Ivaylo Dimitrov wrote: > ir-rx51 is a driver for Nokia N900 IR transmitter. The current series > fixes the remaining problems in the driver: > > - replace GP timer 9 with PWM framework usage > - replace pulse width timer dmtimer usage with hrtimer > - add DT s

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Linus Torvalds
On Thu, Jun 23, 2016 at 10:44 AM, Linus Torvalds wrote: > > The thread_info->tsk pointer, that was one of the most critical issues > and the main raison d'être of the thread_info, has been replaced on > x86 by just using the per-cpu "current_task". Yes,.there are probably > more than a few "ti->ta

[PATCH] staging: wilc1000: arrays can't be NULL

2016-06-23 Thread Luis de Bethencourt
hif_drv->usr_scan_req.net.net_info[i] contains found_net_info structs which have the following element: u8 bssid[6]; pstrNetworkInfo, of type network_info, also contains an u8 array named bssid. request->ssids is an array of cfg80211_ssid structs. Making ssid: u8 ssid[IEEE80211_MAX_SSID_LEN]; In

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Kees Cook
On Thu, Jun 23, 2016 at 10:52 AM, Linus Torvalds wrote: > On Thu, Jun 23, 2016 at 10:44 AM, Linus Torvalds > wrote: >> >> The thread_info->tsk pointer, that was one of the most critical issues >> and the main raison d'être of the thread_info, has been replaced on >> x86 by just using the per-cpu

Re: Documenting ptrace access mode checking

2016-06-23 Thread Stephen Smalley
On 06/21/2016 05:41 AM, Michael Kerrisk (man-pages) wrote: > Hi Jann, Stephen, et al. > > Jann, since you recently committed a patch in this area, and Stephen, > since you committed 006ebb40d3d much further back in time, I wonder if > you might help me by reviewing the text below that I propose to

Re: [PATCH v2 1/3] block: add QUEUE_FLAG_DAX for devices to advertise their DAX support

2016-06-23 Thread Yigal Korman
On Thu, Jun 23, 2016 at 8:36 PM, Kani, Toshimitsu wrote: > On Thu, 2016-06-23 at 19:31 +0300, Yigal Korman wrote: >> On Thu, Jun 23, 2016 at 2:54 AM, Toshi Kani wrote: >> > >> > >> > Currently, presence of direct_access() in block_device_operations >> > indicates support of DAX on its block devic

Re: [PATCH v3 0/2] nvmem: remove regmap dependency

2016-06-23 Thread Stefan Wahren
Hi Greg, > Greg Kroah-Hartman hat am 1. Juni 2016 um 19:55 > geschrieben: > > > On Wed, Jun 01, 2016 at 10:27:49AM +0200, Stefan Wahren wrote: > > Hi Greg, > > > > Am 02.05.2016 um 20:36 schrieb Srinivas Kandagatla: > > > Hi Greg, > > > > > > This is v3 patchset for the leftover 2 patches for

Re: [PATCH v2 1/3] block: add QUEUE_FLAG_DAX for devices to advertise their DAX support

2016-06-23 Thread Dan Williams
On Thu, Jun 23, 2016 at 11:05 AM, Yigal Korman wrote: > On Thu, Jun 23, 2016 at 8:36 PM, Kani, Toshimitsu wrote: >> On Thu, 2016-06-23 at 19:31 +0300, Yigal Korman wrote: >>> On Thu, Jun 23, 2016 at 2:54 AM, Toshi Kani wrote: >>> > >>> > >>> > Currently, presence of direct_access() in block_devi

Re: [PATCH] irqchip/mips-gic: Fix IRQs in gic_dev_domain

2016-06-23 Thread Jason Cooper
Qais, On Tue, May 24, 2016 at 11:43:07AM +0100, Qais Yousef wrote: > Hmm I certainly did test this on real hardware with GIC. Are you using the > new dev domain? The idea is that GIC is logically divided and shouldn't be > used directly. Sorry I'm travelling and can't check the code. Any update o

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Oleg Nesterov
On 06/23, Linus Torvalds wrote: > > Ugh. Looking around at this, it turns out that a great example of this > kind of legacy issue is the debug_mutex stuff. Heh ;) I am looking at it too. > It uses "struct thread_info *" as the owner pointer, and there is _no_ > existing reason for it. In fact, in

[PATCH] btrfs: Fix slab accounting flags

2016-06-23 Thread Nikolay Borisov
BTRFS is using a variety of slab caches to satisfy internal needs. Those slab caches are always allocated with the SLAB_RECLAIM_ACCOUNT, meaning allocations from the caches are going to be accounted as SReclaimable. At the same time btrfs is not registering any shrinkers whatsoever, thus preventing

Re: [PATCH v2 1/3] irqchip: exynos_combiner: fixup reg access on be

2016-06-23 Thread Jason Cooper
Matt, Ben, Both of you submitted similar patches for the same driver, same purpose. Since Ben's hit my inbox first, I'll take his. thx, Jason. On Wed, Jun 22, 2016 at 05:57:01PM +0100, Matthew Leach wrote: > Use the byte-order aware big endian accessors, allowing for kernels > running under big

Re: futex: Allow FUTEX_CLOCK_REALTIME with FUTEX_WAIT op

2016-06-23 Thread Darren Hart
On Thu, Jun 23, 2016 at 07:26:52PM +0200, Thomas Gleixner wrote: > On Thu, 23 Jun 2016, Darren Hart wrote: > > On Thu, Jun 23, 2016 at 03:40:36PM +0200, Thomas Gleixner wrote: > > In my opinion, we should treat the timeout value as relative for FUTEX_WAIT > > regardless of the CLOCK used. > > Whic

Re: [RFC PATCH v2 05/18] sched: add task flag for preempt IRQ tracking

2016-06-23 Thread Josh Poimboeuf
On Thu, Jun 23, 2016 at 09:35:29AM -0700, Andy Lutomirski wrote: > > So which is the least-bad option? To summarize: > > > > 1) task flag(s) for preemption and page faults > > > > 2) turn pt_regs into a stack frame > > > > 3) annotate all calls from entry code in a table > > > > 4) encode

Re: Kernel 4.7rc3 - Performance drop 30-40% for SPECjbb2005 and SPECjvm2008 benchmarks against 4.6 kernel

2016-06-23 Thread Peter Zijlstra
On Fri, Jun 17, 2016 at 01:04:23AM +0200, Jirka Hladky wrote: > > What kind of config and userspace setup? Do you run this cruft in a > > cgroup of sorts? > > No, we don't do any special setup except to control the number of threads. OK, so I'm fairly certain you _do_ run in a cgroup, because i

Re: [PATCH V8 4/9] vfio: platform: add support for ACPI probe

2016-06-23 Thread Alex Williamson
On Mon, 20 Jun 2016 11:51:14 -0400 Sinan Kaya wrote: > The code is using the compatible DT string to associate a reset driver > with the actual device itself. The compatible string does not exist on > ACPI based systems. HID is the unique identifier for a device driver > instead. > > Signed-off-

Re: futex: Allow FUTEX_CLOCK_REALTIME with FUTEX_WAIT op

2016-06-23 Thread Michael Kerrisk (man-pages)
Hi Darren, On 06/23/2016 06:16 PM, Darren Hart wrote: On Thu, Jun 23, 2016 at 03:40:36PM +0200, Thomas Gleixner wrote: On Thu, 23 Jun 2016, Michael Kerrisk (man-pages) wrote: On 06/23/2016 09:18 AM, Thomas Gleixner wrote: Once upon a time, you told me the following: On 15 May 2014 at 16:14, T

Re: futex: Allow FUTEX_CLOCK_REALTIME with FUTEX_WAIT op

2016-06-23 Thread Michael Kerrisk (man-pages)
On 06/23/2016 08:28 PM, Darren Hart wrote: On Thu, Jun 23, 2016 at 07:26:52PM +0200, Thomas Gleixner wrote: On Thu, 23 Jun 2016, Darren Hart wrote: On Thu, Jun 23, 2016 at 03:40:36PM +0200, Thomas Gleixner wrote: In my opinion, we should treat the timeout value as relative for FUTEX_WAIT regard

Re: Kernel 4.7rc3 - Performance drop 30-40% for SPECjbb2005 and SPECjvm2008 benchmarks against 4.6 kernel

2016-06-23 Thread Peter Zijlstra
On Thu, Jun 23, 2016 at 08:33:18PM +0200, Peter Zijlstra wrote: > On Fri, Jun 17, 2016 at 01:04:23AM +0200, Jirka Hladky wrote: > > > > What kind of config and userspace setup? Do you run this cruft in a > > > cgroup of sorts? > > > > No, we don't do any special setup except to control the numbe

Re: [PATCH] usb: xhci: handle uPD720201 and uPD720202 w/o ROM

2016-06-23 Thread Christian Lamparter
Hello, On Tuesday, June 21, 2016 05:56:58 AM Yoshihiro Shimoda wrote: > > From: Christian Lamparter > > Sent: Tuesday, June 21, 2016 12:32 AM > > > > On Wednesday, June 08, 2016 12:14:57 AM Christian Lamparter wrote: > > > This patch adds a firmware check for the uPD720201K8-711-BAC-A > > > and u

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Linus Torvalds
On Thu, Jun 23, 2016 at 10:52 AM, Linus Torvalds wrote: > > Ugh. Looking around at this, it turns out that a great example of this > kind of legacy issue is the debug_mutex stuff. Interestingly, the *only* other user of ti->task for a full allmodconfig build of x86-64 seems to be arch/x86/kern

[PATCH] hrtimer: spelling fixes

2016-06-23 Thread Pratyush Patel
Signed-off-by: Pratyush Patel --- kernel/time/hrtimer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index e99df0f..c7f6f5b 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -703,7 +703,7 @@ static void clock

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Oleg Nesterov
On 06/23, Linus Torvalds wrote: > > On Thu, Jun 23, 2016 at 10:03 AM, Oleg Nesterov wrote: > > > > Let me quote my previous email ;) > > > > And we can't free/nullify it when the parent/debuger reaps a zombie, > > say, mark_oom_victim() expects that get_task_struct() protects > >

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Peter Zijlstra
On Thu, Jun 23, 2016 at 10:52:58AM -0700, Linus Torvalds wrote: > Ugh. Looking around at this, it turns out that a great example of this > kind of legacy issue is the debug_mutex stuff. > > It uses "struct thread_info *" as the owner pointer, and there is _no_ > existing reason for it. In fact, in

[PATCH] Coccinelle: Add misc/boolconv.cocci

2016-06-23 Thread Andrew F. Davis
Add a script to check for unneeded conversions to bool. Signed-off-by: Andrew F. Davis --- scripts/coccinelle/misc/boolconv.cocci | 90 ++ 1 file changed, 90 insertions(+) create mode 100644 scripts/coccinelle/misc/boolconv.cocci diff --git a/scripts/coccinelle/

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Peter Zijlstra
On Thu, Jun 23, 2016 at 11:00:08AM -0700, Kees Cook wrote: > > Why does __mutex_lock_common() have "task" as a stack variable? That's actually a fairly common thing to do. The reason is that 'current' is far more expensive to evaluate than a local variable.

Re: [PATCH 1/2] ipc/sem.c: Fix complex_count vs. simple op race

2016-06-23 Thread Manfred Spraul
On 06/21/2016 01:04 AM, Andrew Morton wrote: On Sat, 18 Jun 2016 22:02:21 +0200 Manfred Spraul wrote: Commit 6d07b68ce16a ("ipc/sem.c: optimize sem_lock()") introduced a race: sem_lock has a fast path that allows parallel simple operations. There are two reasons why a simple operation cannot

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Peter Zijlstra
On Thu, Jun 23, 2016 at 08:12:16PM +0200, Oleg Nesterov wrote: > > And probably kill task_struct->blocked_on? I do not see the point of > this task->blocked_on != waiter check. I think that came about because of PI and or deadlock detection. Of course, the current mutex code doesn't have anything

[PATCH v2] config: Add android config fragments

2016-06-23 Thread Rob Herring
Copy the config fragments from the AOSP common kernel android-4.4 branch. It is becoming possible to run mainline kernels with Android, but the kernel defconfigs don't work as-is and debugging missing config options is a pain. Adding the config fragments into the kernel tree, makes configuring a ma

Re: [PATCH V7 6/9] vfio: platform: call _RST method when using ACPI

2016-06-23 Thread Alex Williamson
On Mon, 13 Jun 2016 00:26:38 -0400 Sinan Kaya wrote: > The device tree code checks for the presence of a reset driver and calls > the of_reset function pointer by looking up the reset driver as a module. > > ACPI defines _RST method to perform device level reset. After the _RST > method is execu

Re: [PATCH V8 7/9] vfio, platform: make reset driver a requirement by default

2016-06-23 Thread Alex Williamson
On Mon, 20 Jun 2016 11:51:17 -0400 Sinan Kaya wrote: > The code was allowing platform devices to be used without a supporting > VFIO reset driver. The hardware can be left in some inconsistent state > after a guest machine abort. > > The reset driver will put the hardware back to safe state and

Re: [PATCH] char: xillybus: fix spelling mistake: "upgarde" -> "upgrade"

2016-06-23 Thread Eli Billauer
I stand corrected. Thanks. Acked-by: Eli Billauer On 23/06/16 20:48, Colin King wrote: From: Colin Ian King trivial fix to spelling mistake in dev_err message Signed-off-by: Colin Ian King --- drivers/char/xillybus/xillybus_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

Re: [PATCH] namespaces: add transparent user namespaces

2016-06-23 Thread Eric W. Biederman
Jann Horn writes: > This allows the admin of a user namespace to mark the namespace as > transparent. All other namespaces, by default, are opaque. > > While the current behavior of user namespaces is appropriate for use in > containers, there are many programs that only use user namespaces becau

Re: [PATCH V3] vfio: platform: support No-IOMMU mode

2016-06-23 Thread Alex Williamson
On Sun, 12 Jun 2016 17:02:00 +0800 Peng Fan wrote: > Hi, > > Kindly ping.. Any comments on V3? > > Thanks, > Peng. > On Mon, May 23, 2016 at 05:47:30PM +0800, Peng Fan wrote: > >The vfio No-IOMMU mode was supported by this > >'commit 03a76b60f8ba2797 ("vfio: Include No-IOMMU mode")', > >but it

Re: [PATCH] char: xillybus: fix spelling mistake: "upgarde" -> "upgrade"

2016-06-23 Thread Joe Perches
On Thu, 2016-06-23 at 18:48 +0100, Colin King wrote: > trivial fix to spelling mistake in dev_err message [] > diff --git a/drivers/char/xillybus/xillybus_core.c > b/drivers/char/xillybus/xillybus_core.c [] > @@ -658,7 +658,7 @@ static int xilly_obtain_idt(struct xilly_endpoint > *endpoint) >  

Re: [PATCH] bridge: netfilter: spanning tree: Add masked_ether_addr_equal and neatening

2016-06-23 Thread Joe Perches
On Thu, 2016-06-23 at 19:36 +0200, Pablo Neira Ayuso wrote: > On Wed, Jun 15, 2016 at 01:58:45PM -0700, Joe Perches wrote: > > > > There is code duplication of a masked ethernet address comparison here > > so make it a separate function instead. > > > > Miscellanea: > > > > o Neaten alignment of

Re: [PATCH V7 6/9] vfio: platform: call _RST method when using ACPI

2016-06-23 Thread Alex Williamson
On Thu, 23 Jun 2016 12:59:48 -0600 Alex Williamson wrote: > On Mon, 13 Jun 2016 00:26:38 -0400 > Sinan Kaya wrote: > > > The device tree code checks for the presence of a reset driver and calls > > the of_reset function pointer by looking up the reset driver as a module. > > > > ACPI defines _

Re: Documenting ptrace access mode checking

2016-06-23 Thread Eric W. Biederman
"Michael Kerrisk (man-pages)" writes: > Hi Oleg, > > On 06/22/2016 11:51 PM, Oleg Nesterov wrote: >> On 06/21, Eric W. Biederman wrote: >>> >>> Adding Oleg just because he seems to do most of the ptrace related >>> maintenance these days. >> >> so I have to admit that I never even tried to actual

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Andy Lutomirski
On Thu, Jun 23, 2016 at 11:46 AM, Linus Torvalds wrote: > On Thu, Jun 23, 2016 at 10:52 AM, Linus Torvalds > wrote: >> >> Ugh. Looking around at this, it turns out that a great example of this >> kind of legacy issue is the debug_mutex stuff. > > Interestingly, the *only* other user of ti->task f

[PATCH] printk: Create pr_ functions

2016-06-23 Thread Joe Perches
Using functions instead of macros can reduce overall code size by eliminating unnecessary "KERN_SOH" prefixes from format strings. defconfig x86-64: $ size vmlinux* textdata bss dec hex filename 10193570 4331464 1105920 15630954 ee826a vmlinux.new 10192623 4335560 1105920 15

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Andy Lutomirski
On Thu, Jun 23, 2016 at 11:53 AM, Peter Zijlstra wrote: > On Thu, Jun 23, 2016 at 10:52:58AM -0700, Linus Torvalds wrote: >> Ugh. Looking around at this, it turns out that a great example of this >> kind of legacy issue is the debug_mutex stuff. >> >> It uses "struct thread_info *" as the owner po

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Peter Zijlstra
On Thu, Jun 23, 2016 at 04:31:26PM +0200, Oleg Nesterov wrote: > On 06/22, Linus Torvalds wrote: > > > > Oleg, what do you think? Would it be reasonable to free the stack and > > thread_info synchronously at exit time, clear the pointer (to catch > > any odd use), and only RCU-delay the task_struct

Re: [PATCH] Coccinelle: Add misc/boolconv.cocci

2016-06-23 Thread Joe Perches
On Thu, 2016-06-23 at 13:53 -0500, Andrew F. Davis wrote: > Add a script to check for unneeded conversions to bool. this could also be extended for bool functions that: return !!expression; and return expression != 0;

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Peter Zijlstra
On Thu, Jun 23, 2016 at 12:09:53PM -0700, Andy Lutomirski wrote: > On Thu, Jun 23, 2016 at 11:53 AM, Peter Zijlstra wrote: > > Yeah, that looks fine. Want me to take it or will you just commit? > > PeterZ, mind if I split it into a couple of patches, test it, and add > it to my series? Not at al

Re: [PATCH V7 6/9] vfio: platform: call _RST method when using ACPI

2016-06-23 Thread Sinan Kaya
On 6/23/2016 3:07 PM, Alex Williamson wrote: >> might be useful. > Oops, I accidentally picked the v7 version to reply to, but the nit > exists in v8 as well. Thanks, No problem. I'll work on your comments and post a follow up. -- Sinan Kaya Qualcomm Technologies, Inc. on behalf of Qualcomm In

Re: Documenting ptrace access mode checking

2016-06-23 Thread Eric W. Biederman
"Michael Kerrisk (man-pages)" writes: > Hi Eric, > > On 06/21/2016 09:55 PM, Eric W. Biederman wrote: >> Hmm. >> >> When I gave this level of detail about the user namespace permission >> checks you gave me some flack, because it was not particularly >> comprehensible to the end users. I think y

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Linus Torvalds
On Thu, Jun 23, 2016 at 11:53 AM, Peter Zijlstra wrote: >> >> So the attached patch seems to be the right thing to do regardless of >> this whole discussion. > > Yeah, that looks fine. Want me to take it or will you just commit? I'm committing these trivial non-semantic patches, I'm actually runn

Re: [PATCH] net: vrf: replace hard tab with space in assignment

2016-06-23 Thread David Miller
From: Chris Packham Date: Tue, 21 Jun 2016 15:39:43 +1200 > The assignment of rth->dst.output in vrf_rt6_create() and > vrf_rtable_create() used a hard tab before the '='. The neighboring > assignments did not. Make the assignment of rth->dst.output consistent > with the surrounding code. > > Si

Re: [PATCH] geneve: fix tx_errors statistics

2016-06-23 Thread David Miller
From: Haishuang Yan Date: Tue, 21 Jun 2016 16:26:49 +0800 > Tx errors present summation of errors encountered while transmitting > packets. > > Signed-off-by: Haishuang Yan Applied.

Re: [PATCH] net: ethernet: fix odd_ptr_err.cocci warnings

2016-06-23 Thread David Miller
From: Julia Lawall Date: Tue, 21 Jun 2016 12:03:28 +0200 (CEST) > PTR_ERR should normally access the value just tested by IS_ERR > > Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci > > CC: Tien Hock Loh > Signed-off-by: Julia Lawall > Signed-off-by: Fengguang Wu This doesn't apply

[GIT PULL] irqchip: Core changes for v4.8

2016-06-23 Thread Jason Cooper
Thomas, Here is the first round of changes for v4.8. Mostly minor stuff submitted by Ben Dooks. I have a bit more waiting in the wings that I'll send once it's had some time in -next. Please pull. thx, Jason. The following changes since commit 1a695a905c18548062509178b98bc91e67510864: Li

Re: pull-request: wireless-drivers 2016-06-21

2016-06-23 Thread David Miller
From: Kalle Valo Date: Tue, 21 Jun 2016 13:27:16 +0300 > here is a pull request for 4.7, really small fixes this time, some of > them fix important regressions. Please let me know if there are any > problems. Applied, thanks.

Re: [PATCH 1/2] ipc/sem.c: Fix complex_count vs. simple op race

2016-06-23 Thread Manfred Spraul
On 06/21/2016 02:30 AM, Davidlohr Bueso wrote: On Sat, 18 Jun 2016, Manfred Spraul wrote: diff --git a/include/linux/sem.h b/include/linux/sem.h index 976ce3a..d0efd6e 100644 --- a/include/linux/sem.h +++ b/include/linux/sem.h @@ -21,6 +21,7 @@ struct sem_array { struct list_headlist_id

[PATCH v3 0/2] ASoC: tpa6130a2: Add support for multiple instances

2016-06-23 Thread Helen Koike
The current tpa6130a2 driver supports only a single instance. This patch series add support for multiple instances by removing the global variable that holds the instance. This is performed by using the component API, regmap, the snd_soc_{info,put,get}_volsw API and DAPM. The first 3 pathes of thi

Re: [PATCH] Coccinelle: Add misc/boolconv.cocci

2016-06-23 Thread Andrew F. Davis
On 06/23/2016 02:12 PM, Joe Perches wrote: > On Thu, 2016-06-23 at 13:53 -0500, Andrew F. Davis wrote: >> Add a script to check for unneeded conversions to bool. > > this could also be extended for bool functions that: > > return !!expression; > and > return expression != 0; > Agree

[PATCH v3 1/2] ASoC: tpa6130a2: Add DAPM support

2016-06-23 Thread Helen Koike
Add DAPM support and updated rx51 accordingly. As a consequence: - the exported function tpa6130a2_stereo_enable is not needed anymore - the mutex is dealt in the DAPM - the power state is tracked by the DAPM Signed-off-by: Lars-Peter Clausen [koike: port for upstream] Signed-off-by: Helen Koike

Re: [PATCH] staging: wilc1000: arrays can't be NULL

2016-06-23 Thread Joe Perches
On Thu, 2016-06-23 at 18:57 +0100, Luis de Bethencourt wrote: > hif_drv->usr_scan_req.net.net_info[i] contains found_net_info structs > which have the following element: > u8 bssid[6]; [] > I am aware this patch gives a few checkpatch.pl warnings about lines being > over 80 characters. Fixing that

[PATCH v3 2/2] ASoC: tpa6130a2: Remove goto err_gpio

2016-06-23 Thread Helen Koike
Replace goto err_gpio by return ret Signed-off-by: Helen Koike Tested-by: Sebastian Reichel Reviewed-by: Sebastian Reichel --- Changes since v1: - this is a new patch in the series Changes since v2: - Add tested-by and reviewed-by from Sebastian sound/soc/codecs/tpa6130a2.c | 11 ---

Re: [PATCH] char: xillybus: fix spelling mistake: "upgarde" -> "upgrade"

2016-06-23 Thread Eli Billauer
This is getting increasingly embarrassing. I suppose a single patch, fixing both silly mistakes (of mine), would be in place. Colin, would you prefer to submit a patch with both issues fixed yourself, or should I take care of it? Thanks, both of you. Eli On 23/06/16 22:05, Joe Perches wro

Re: [PATCH v2] mac80211: mesh: Add support for HW RC implementation

2016-06-23 Thread Johannes Berg
> +void sta_get_expected_throughput(struct sta_info *sta, u32 *thr) > +{ > + struct ieee80211_sub_if_data *sdata = sta->sdata; > + struct ieee80211_local *local = sdata->local; > + struct rate_control_ref *ref = NULL; > + > + if (test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) > +

[PATCH 04/14] dt-bindings: document sun8i_ths

2016-06-23 Thread megous
From: Ondrej Jirman This patch adds the binding documentation for the sun8i_ths driver Signed-off-by: Ondřej Jirman --- .../devicetree/bindings/thermal/sun8i-ths.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal

[PATCH 03/14] thermal: Add support for sun8i THS on Allwinner H3

2016-06-23 Thread megous
From: Ondrej Jirman This patch adds support for the sun8i thermal sensor on Allwinner H3 SoC. Signed-off-by: Ondřej Jirman --- drivers/thermal/Kconfig | 7 ++ drivers/thermal/Makefile| 1 + drivers/thermal/sun8i_ths.c | 295 3 files chan

[PATCH 02/14] ARM: clk: sunxi: Add driver for the H3 THS clock

2016-06-23 Thread megous
From: Josef Gajdusek This patch adds a driver for the THS clock which is present on the Allwinner H3. Signed-off-by: Josef Gajdusek --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/Makefile| 1 + drivers/clk/sunxi/clk-h3-ths.c

[PATCH 08/14] ARM: dts: sun8i: Add r_twi I2C controller

2016-06-23 Thread megous
From: Ondrej Jirman H3 SoC contains I2C controller optionally available on the PL0 and PL1 pins. This patch makes this controller available. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3.dtsi | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff

RE: [PATCH] Input: elantech - add more IC body types to the list

2016-06-23 Thread Patrick Lessard
Hello Dmitry, Tested against 4.6.2 and it works fine! Here is a little log: [manager@archlaptop linux-4.6.2]$ cat elantech.patch --- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c @@ -1568,13 +1568,7 @@ static int elantech_set_properties(struct elantech_data *etd)

[PATCH 07/14] regulator: SY8106A regulator driver

2016-06-23 Thread megous
From: Ondrej Jirman SY8106A is I2C attached single output voltage regulator made by Silergy. Signed-off-by: Ondrej Jirman --- drivers/regulator/Kconfig | 8 +- drivers/regulator/Makefile| 2 +- drivers/regulator/sy8106a-regulator.c | 153

[PATCH 05/14] ARM: dts: sun8i: Add THS node to the sun8i-h3.dtsi

2016-06-23 Thread megous
From: Ondrej Jirman This patch adds nodes for the THS driver and the THS clock to the Allwinner sun8i-h3.dtsi file. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3.dtsi | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3

[PATCH 09/14] ARM: dts: sun8i: Enable r_twi on Orange Pi PC

2016-06-23 Thread megous
From: Ondrej Jirman Enable I2C controller where the SY8106A regulator for CPUX voltage is attached on Orange Pi PC SBC. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts

[PATCH 11/14] ARM: sun8i: clk: Add clk-factor rate application method

2016-06-23 Thread megous
From: Ondrej Jirman PLL1 on H3 requires special factors application algorithm, when the rate is changed. This algorithm was extracted from the arisc code that handles frequency scaling in the BSP kernel. This commit adds optional apply function to struct factors_data, that can implement non-triv

[PATCH 10/14] ARM: dts: sun8i: Add sy8106a regulator to Orange Pi PC

2016-06-23 Thread megous
From: Ondrej Jirman Add sy8106a regulator to r_twi bus on Orange Pi PC. This regulator controls the CPUX voltage. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-pc.d

[PATCH 06/14] ARM: dts: sun8i: Add cpu0 label to sun8i-h3.dtsi

2016-06-23 Thread megous
From: Ondrej Jirman Add label to the first cpu so that it can be referenced from derived dts files. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.

[PATCH 14/14] ARM: dts: sun8i: Enable DVFS on Orange Pi One

2016-06-23 Thread megous
From: Ondrej Jirman Use Xulong Orange Pi One GPIO based regulator for passive cooling and thermal management. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 39 + 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-

[PATCH 01/14] ARM: dts: sun8i: Add SID node

2016-06-23 Thread megous
From: Josef Gajdusek Add a node describing the Security ID memory to the Allwinner H3 .dtsi file. Signed-off-by: Josef Gajdusek --- arch/arm/boot/dts/sun8i-h3.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index

Re: [PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-23 Thread Linus Torvalds
On Thu, Jun 23, 2016 at 12:11 PM, Peter Zijlstra wrote: > > Didn't we talk about using SLAB_DESTROY_BY_RCU for task_struct before? > If that is possible, a reuse in per-cpu cache is equally possible. > > All we really want to guarantee is that the memory remains a > task_struct, it need not remain

Re: [kernel-hardening] [PATCH v7 0/9] x86/mm: memory area address KASLR

2016-06-23 Thread Jason Cooper
Hey Kees, Thomas, On Wed, Jun 22, 2016 at 10:05:51AM -0700, Kees Cook wrote: > On Wed, Jun 22, 2016 at 8:59 AM, Thomas Garnier wrote: > > On Wed, Jun 22, 2016 at 5:47 AM, Jason Cooper wrote: > >> Hey Kees, > >> > >> On Tue, Jun 21, 2016 at 05:46:57PM -0700, Kees Cook wrote: > >>> Notable problem

<    1   2   3   4   5   6   7   8   9   10   >