[PATCH 0/2] Misc RAPL updates

2016-05-23 Thread Jacob Pan
A couple of small updates to support Skylake server and make it less noisy on KVM. Jacob Pan (2): powercap/rapl: add support for skx powercap/rapl: reduce warning level drivers/powercap/intel_rapl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 1.9.1

[PATCH 2/2] powercap/rapl: reduce warning level

2016-05-23 Thread Jacob Pan
Since RAPL interface is not architectual, its enumeration depends on poking MSRs instead of using CPUID method. In KVM guest, RAPL driver probe will fail and emit the following message for every CPU: no valid rapl domains found in package This patch limit the warning to debug only. Still return E

[PATCH 1/2] powercap/rapl: add support for skx

2016-05-23 Thread Jacob Pan
SKX RAPL interface is similar to HSX/BDX. Signed-off-by: Jacob Pan --- drivers/powercap/intel_rapl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/powercap/intel_rapl.c b/drivers/powercap/intel_rapl.c index 470bb62..a417e68 100644 --- a/drivers/powercap/intel_rapl.c +++ b/drivers/p

Re: [PATCH 3/3] ACPI: ARM64: support for ACPI_TABLE_UPGRADE

2016-05-23 Thread Mark Rutland
On Tue, May 17, 2016 at 12:44:02PM -0400, Jon Masters wrote: > Hi Mark, > > On 05/17/2016 08:46 AM, Mark Rutland wrote: > > On Tue, May 17, 2016 at 03:06:03PM +0300, Aleksey Makarov wrote: > >> From: Jon Masters > >> > >> This patch adds support for ACPI_TABLE_UPGRADE for ARM64 > > > > This feel

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-23 Thread Guenter Roeck
On Mon, May 23, 2016 at 05:55:04PM +0200, Oliver Neukum wrote: > On Mon, 2016-05-23 at 07:43 -0700, Guenter Roeck wrote: > > On 05/23/2016 06:58 AM, Oliver Neukum wrote: > > > > Now I am confused. Are you saying that the choice of Alternate Mode does > > > not belong into user space? > > > > > >

Re: [PATCH] Input: wacom_w8001 - Ignore bogus idx values in interrupt

2016-05-23 Thread Dmitry Torokhov
On Sun, May 22, 2016 at 10:21:45PM -0700, Ping Cheng wrote: > Hi Chris, > > On Sun, May 22, 2016 at 6:42 PM, Chris J Arges > wrote: > > I've noticed crashes when using my x60t using a coreboot bios. When using > > the pen I can produce a crash simply by tapping a few times. This > > generates an

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

2016-05-23 Thread Josh Poimboeuf
On Mon, May 23, 2016 at 06:49:03AM -0500, Josh Poimboeuf wrote: > On Mon, May 23, 2016 at 06:47:22AM -0500, Josh Poimboeuf wrote: > > On Mon, May 23, 2016 at 07:14:14AM -0400, Brian Gerst wrote: > > > On Sun, May 22, 2016 at 10:34 PM, Josh Poimboeuf > > > wrote: > > > > On Sun, May 22, 2016 at 10

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

2016-05-23 Thread Dmitry Torokhov
On Mon, May 23, 2016 at 11:20:35AM +0100, Ian Abbott wrote: > On 21/05/16 17:50, Dmitry Torokhov wrote: > >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

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

2016-05-23 Thread Andy Lutomirski
On May 21, 2016 9:04 AM, "Brian Gerst" wrote: > > 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. Seems reasonable to me.

Re: [PATCH 2/4 v7] ASoC: dwc: Do not use devm_clk_get() if using platform data

2016-05-23 Thread Mark Brown
On Mon, May 23, 2016 at 11:02:23AM +0100, Jose Abreu wrote: > When using platform data the devm_clk_get() function is > called causing a probe failure if the clock is not > declared. As we can pass the clock handler by platform > data call only devm_clk_get() when platform data is not > used. No,

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-23 Thread Guenter Roeck
On Mon, May 23, 2016 at 01:25:19PM +0200, Oliver Neukum wrote: > On Mon, 2016-05-23 at 12:57 +0300, Heikki Krogerus wrote: > > Hi Oliver, > > > > On Fri, May 20, 2016 at 04:19:59PM +0200, Oliver Neukum wrote: > > > On Thu, 2016-05-19 at 15:44 +0300, Heikki Krogerus wrote: > > > > Like I've told so

Re: [PATCH] userns: Allow init_user_ns to be used from non-gpl modules

2016-05-23 Thread Eric W. Biederman
Nikolay Borisov writes: > This patch changes the export attributes of the init_user_ns from > GPL-only to any modules. This needed so that non-gpl modules, such as > ZFS, utilize functions like i_(uid|gid)_(read|write). It is my belief that linux kernel modules are of necessity derivatives of th

Re: [PATCH] soc: qcom: provide mechanism for drivers to access L2 registers

2016-05-23 Thread Stephen Boyd
On 05/23/2016 08:43 AM, Neil Leeder wrote: > > On 5/20/2016 05:19 PM, Stephen Boyd wrote: > >> >> Is there a patch to add sysreg.h to arch/arm? It would be nice to use >> one l2 accessor API on arm64 and arm. >> > Sounds like a good thing for the next person who submits a krait L2 patch to > consi

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

2016-05-23 Thread Andy Lutomirski
On Mon, May 23, 2016 at 9:46 AM, Josh Poimboeuf wrote: > On Mon, May 23, 2016 at 06:49:03AM -0500, Josh Poimboeuf wrote: >> On Mon, May 23, 2016 at 06:47:22AM -0500, Josh Poimboeuf wrote: >> > On Mon, May 23, 2016 at 07:14:14AM -0400, Brian Gerst wrote: >> > > On Sun, May 22, 2016 at 10:34 PM, Jos

[PATCH] hwrng: stm32 - fix build warning

2016-05-23 Thread Sudip Mukherjee
We have been getting build warning about: drivers/char/hw_random/stm32-rng.c: In function 'stm32_rng_read': drivers/char/hw_random/stm32-rng.c:82:19: warning: 'sr' may be used uninitialized in this function On checking the code it turns out that sr can never

Re: [PATCH 4/4] dell-wmi: Rework code for generating sparse keymap and processing WMI events

2016-05-23 Thread Andy Lutomirski
On Sun, May 22, 2016 at 4:36 AM, Pali Rohár wrote: > This patch unify procedure for generating sparse keymap and unify also big > switch code for processing WMI events of different types. After this patch > dell-wmi driver does not differ between "old" and "new" hotkey type. > > It construct spars

[PATCH 2/3] mm, thp: fix possible circular locking dependency caused by sum_vm_event()

2016-05-23 Thread Ebru Akagunduz
Nested circular locking dependency detected by kernel robot (udevadm). udevadm/221 is trying to acquire lock: (&mm->mmap_sem){++}, at: [] __might_fault+0x83/0x150 but task is already holding lock: (s_active#12){.+}, at: [] kernfs_fop_write+0x8e/0x250 which lock already depends

[PATCH 1/3] mm, thp: remove duplication of included header

2016-05-23 Thread Ebru Akagunduz
swapops.h included for a second time in the commit: http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=639040960a340f6f987065fc52e149f4ea25ce25 This patch removes the duplication. Signed-off-by: Ebru Akagunduz --- mm/huge_memory.c | 1 - 1 file changed, 1 deletion(-) di

[PATCH 3/3] mm, thp: make swapin readahead under down_read of mmap_sem

2016-05-23 Thread Ebru Akagunduz
Currently khugepaged makes swapin readahead under down_write. This patch supplies to make swapin readahead under down_read instead of down_write. The patch was tested with a test program that allocates 800MB of memory, writes to it, and then sleeps. The system was forced to swap out all. Afterward

[PATCH 0/3] mm, thp: remove duplication and fix locking issues in swapin

2016-05-23 Thread Ebru Akagunduz
This patch series removes duplication of included header and fixes locking inconsistency in khugepaged swapin Ebru Akagunduz (3): mm, thp: remove duplication of included header mm, thp: fix possible circular locking dependency caused by sum_vm_event() mm, thp: make swapin readahead under

Re: [PATCH v3] input: tablet: add Pegasus Notetaker tablet driver

2016-05-23 Thread Martin Kepplinger
Am 2016-05-23 um 15:00 schrieb Oliver Neukum: > On Mon, 2016-05-23 at 14:43 +0200, Martin Kepplinger wrote: >> Am 2016-05-23 um 14:26 schrieb Oliver Neukum: >>> On Mon, 2016-05-23 at 13:39 +0200, Martin Kepplinger wrote: >>> It's *really* fun to use as an input tablet though! So let's support

Re: [PATCH 1/4] isa: Allow ISA-style drivers on modern systems

2016-05-23 Thread Guenter Roeck
On Mon, May 23, 2016 at 10:58:41AM -0400, William Breathitt Gray wrote: > Several modern devices, such as PC/104 cards, are expected to run on > modern systems via an ISA bus interface. Since ISA is a legacy interface > for most modern architectures, ISA support should remain disabled in > general.

[PATCH] mm: make CONFIG_DEFERRED_STRUCT_PAGE_INIT depends on !FLATMEM explicitly

2016-05-23 Thread Yang Shi
Per the suggestion from Michal Hocko [1], CONFIG_DEFERRED_STRUCT_PAGE_INIT should be incompatible with FLATMEM, make this explicitly in Kconfig. [1] http://lkml.kernel.org/r/20160523073157.gd2...@dhcp22.suse.cz Signed-off-by: Yang Shi --- mm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -

[GIT PULL] Kselftest updates for 4.7-rc1

2016-05-23 Thread Shuah Khan
Hi Linus, Could you please the following Kselftest update for 4.7-rc1. diff attached. thanks, -- Shuah - The following changes since commit f55532a0c0b8bb6148f4e07853b876ef73bc69ca: Linux 4.6-rc1 (2016-03-26 16:0

Re: [PATCH] soc: qcom: provide mechanism for drivers to access L2 registers

2016-05-23 Thread Mark Rutland
On Fri, May 20, 2016 at 03:13:07PM -0400, Neil Leeder wrote: > L2 registers are accessed using a select register and data > register pair. To prevent multiple concurrent writes to the > select register by independent drivers, the write to the > select register and the associated access of the data

Re: [PATCH 0/3] mm, thp: remove duplication and fix locking issues in swapin

2016-05-23 Thread Ebru Akagunduz
On Mon, May 23, 2016 at 08:14:08PM +0300, Ebru Akagunduz wrote: > This patch series removes duplication of included header > and fixes locking inconsistency in khugepaged swapin > > Ebru Akagunduz (3): > mm, thp: remove duplication of included header > mm, thp: fix possible circular locking de

[PATCH] mm: check the return value of lookup_page_ext for all call sites

2016-05-23 Thread Yang Shi
Per the discussion with Joonsoo Kim [1], we need check the return value of lookup_page_ext() for all call sites since it might return NULL in some cases, although it is unlikely, i.e. memory hotplug. Tested with ltp with "page_owner=0". [1] http://lkml.kernel.org/r/20160519002809.GA10245@js1304-P

Re: [PATCH 1/4] isa: Allow ISA-style drivers on modern systems

2016-05-23 Thread William Breathitt Gray
On Mon, May 23, 2016 at 10:21:25AM -0700, Guenter Roeck wrote: >On Mon, May 23, 2016 at 10:58:41AM -0400, William Breathitt Gray wrote: >> +config ISA_BUS_API >> +def_bool ISA >> + >> +config ISA_BUS >> +bool "ISA-style bus support on modern systems" if (X86 && EXPERT) >> +default y > >

Re: [PATCH] mm: memcontrol: fix possible css ref leak on oom

2016-05-23 Thread Michal Hocko
On Mon 23-05-16 19:02:10, Vladimir Davydov wrote: > mem_cgroup_oom may be invoked multiple times while a process is handling > a page fault, in which case current->memcg_in_oom will be overwritten > leaking the previously taken css reference. Have you seen this happening? I was under impression th

Re: [PATCH 3/3] mm, thp: make swapin readahead under down_read of mmap_sem

2016-05-23 Thread Kirill A. Shutemov
On Mon, May 23, 2016 at 08:14:11PM +0300, Ebru Akagunduz wrote: > Currently khugepaged makes swapin readahead under > down_write. This patch supplies to make swapin > readahead under down_read instead of down_write. > > The patch was tested with a test program that allocates > 800MB of memory, wri

Re: [PATCH v2 2/2] i2c: qup: support SMBus block read

2016-05-23 Thread Christ, Austin
On 5/20/2016 2:31 AM, Sricharan wrote: Hi, @@ -1128,6 +1173,22 @@ static int qup_i2c_read_one_v2(struct qup_i2c_dev *qup, struct i2c_msg *msg) goto err; qup->blk.pos++; + + /* Handle SMBus block read length */ + if (qup_i2c

Re: [PATCH] x86: fix potential memleak in do_error_trap

2016-05-23 Thread Michal Hocko
On Mon 23-05-16 17:33:55, Oleg Nesterov wrote: > On 05/23, Michal Hocko wrote: > > > > @@ -271,6 +271,7 @@ static void do_error_trap(struct pt_regs *regs, long > > error_code, char *str, > > > > if (notify_die(DIE_TRAP, str, regs, error_code, trapnr, signr) != > > NOTIFY_ST

Re: [PATCH 3/3] ACPI: ARM64: support for ACPI_TABLE_UPGRADE

2016-05-23 Thread Lorenzo Pieralisi
On Tue, May 17, 2016 at 12:48:53PM -0400, Jon Masters wrote: > On 05/17/2016 12:44 PM, Jon Masters wrote: > > > 1). During development of a platform, it is much easier to debug > > problems with tables if you can test replacement ones without having to > > respin the firmware. In the server world,

Re: [PATCH 1/2] mtd: spi-nor: disable software protection for Macronix flash at startup

2016-05-23 Thread Cyrille Pitchen
Hi Matthias, Le 23/05/2016 18:32, Matthias Schiffer a écrit : > On 05/23/2016 04:01 PM, Cyrille Pitchen wrote: >> Hi Matthias, >> >> Le 18/05/2016 15:32, Matthias Schiffer a écrit : >>> This patch has been tested in OpenWrt for a few months and seems to work >>> correctly. >>> >>> Signed-off-by: F

Applied "ASoC: dwc: Add helper functions to disable/enable irqs" to the asoc tree

2016-05-23 Thread Mark Brown
The patch ASoC: dwc: Add helper functions to disable/enable irqs has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "regmap: Add file patterns for regmap device tree bindings" to the regmap tree

2016-05-23 Thread Mark Brown
The patch regmap: Add file patterns for regmap device tree bindings has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours

Applied "ASoC: Add file patterns for sound device tree bindings" to the asoc tree

2016-05-23 Thread Mark Brown
The patch ASoC: Add file patterns for sound device tree bindings has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "ASoC: kirkwood: fix build failure" to the asoc tree

2016-05-23 Thread Mark Brown
The patch ASoC: kirkwood: fix build failure has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during

Applied "regulator: mt6397: Constify struct regulator_ops" to the regulator tree

2016-05-23 Thread Mark Brown
The patch regulator: mt6397: Constify struct regulator_ops has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) a

Applied "regulator: pv880x0: Clean up unnecessary header inclusion" to the regulator tree

2016-05-23 Thread Mark Brown
The patch regulator: pv880x0: Clean up unnecessary header inclusion has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "spi: Add file patterns for spi device tree bindings" to the spi tree

2016-05-23 Thread Mark Brown
The patch spi: Add file patterns for spi device tree bindings has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent t

Re: [PATCH] kernel/kcov: unproxify debugfs file's fops

2016-05-23 Thread Kees Cook
bugfs_create_file(). > > Fixes: 49d200deaa68 ("debugfs: prevent access to removed files' private > data") > Fixes: 5c9a8750a640 ("kernel: add kcov code coverage") > Signed-off-by: Nicolai Stange > --- > Applicable to linux-next

Re: sem_lock() vs qspinlocks

2016-05-23 Thread Linus Torvalds
On Mon, May 23, 2016 at 5:25 AM, Peter Zijlstra wrote: > > Paul has smp_mb__after_unlock_lock() for the RCpc 'upgrade'. How about > something like: > > smp_mb__after_lock() I'd much rather make the naming be higher level. It's not necessarily going to be a "mb", and while the problem is a

Re: [PATCH] Input: wacom_w8001 - Ignore bogus idx values in interrupt

2016-05-23 Thread Ping Cheng
On Mon, May 23, 2016 at 9:52 AM, Dmitry Torokhov wrote: > On Sun, May 22, 2016 at 10:21:45PM -0700, Ping Cheng wrote: >> Hi Chris, >> >> On Sun, May 22, 2016 at 6:42 PM, Chris J Arges >> wrote: >> > I've noticed crashes when using my x60t using a coreboot bios. When using >> > the pen I can produ

Re: [PATCH v3] KVM: halt-polling: poll if emulated lapic timer will fire soon

2016-05-23 Thread David Matlack
On Sun, May 22, 2016 at 5:42 PM, Wanpeng Li wrote: > From: Wanpeng Li I'm ok with this patch, but I'd like to better understand the target workloads. What type of workloads do you expect to benefit from this? > > If an emulated lapic timer will fire soon(in the scope of 10us the > base of dynam

Re: [PATCH 1/4] isa: Allow ISA-style drivers on modern systems

2016-05-23 Thread Linus Torvalds
On Mon, May 23, 2016 at 7:58 AM, William Breathitt Gray wrote: > > For now, the ISA_BUS Kconfig option is only be available on X86 > architectures. Support for other architectures may be added as required. So I'd prefer to see that > +config ISA_BUS_API > + def_bool ISA part in arch/Kconf

Re: [PATCH v2] KVM: halt-polling: poll if emulated lapic timer will fire soon

2016-05-23 Thread David Matlack
On Sun, May 22, 2016 at 6:26 PM, Yang Zhang wrote: > On 2016/5/21 2:37, David Matlack wrote: >> >> It's not obvious to me why polling for a timer interrupt would improve >> context switch latency. Can you explain a bit more? > > > We have a workload which using high resolution timer(less than 1ms)

Re: [v2 PATCH] mm: move page_ext_init after all struct pages are initialized

2016-05-23 Thread Michal Hocko
On Mon 23-05-16 09:42:00, Shi, Yang wrote: > On 5/23/2016 12:31 AM, Michal Hocko wrote: > > On Fri 20-05-16 08:41:09, Shi, Yang wrote: > > > On 5/20/2016 6:16 AM, Michal Hocko wrote: > > > > On Thu 19-05-16 15:13:26, Yang Shi wrote: > > > > [...] > > > > > diff --git a/init/main.c b/init/main.c > >

Re: [PATCH] soc: qcom: provide mechanism for drivers to access L2 registers

2016-05-23 Thread Neil Leeder
On 5/23/2016 01:04 PM, Stephen Boyd wrote: > On 05/23/2016 08:43 AM, Neil Leeder wrote: >> >> On 5/20/2016 05:19 PM, Stephen Boyd wrote: >> >>> >>> Is there a patch to add sysreg.h to arch/arm? It would be nice to use >>> one l2 accessor API on arm64 and arm. >>> >> Sounds like a good thing for t

Applied "regulator: mt6397: Add buck change mode regulator interface for mt6397" to the regulator tree

2016-05-23 Thread Mark Brown
The patch regulator: mt6397: Add buck change mode regulator interface for mt6397 has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime i

[GIT PULL] ftracetest: Use proper logic to find process PID

2016-05-23 Thread Steven Rostedt
Linus, Reviewing the selftest I recently submitted, I realize that the second part of it uses my old hack to get the PID of the spawned background tasks, which doesn't work for all shells, instead of the common use of $!. Please pull the latest trace-v4.7-3 tree, which can be found at: git:

Re: [PATCH] soc: qcom: provide mechanism for drivers to access L2 registers

2016-05-23 Thread Neil Leeder
On 5/23/2016 01:25 PM, Mark Rutland wrote: > On Fri, May 20, 2016 at 03:13:07PM -0400, Neil Leeder wrote: >> L2 registers are accessed using a select register and data >> register pair. To prevent multiple concurrent writes to the >> select register by independent drivers, the write to the >> sele

Re: [PATCH] mm: make CONFIG_DEFERRED_STRUCT_PAGE_INIT depends on !FLATMEM explicitly

2016-05-23 Thread Michal Hocko
On Mon 23-05-16 09:54:31, Yang Shi wrote: > Per the suggestion from Michal Hocko [1], CONFIG_DEFERRED_STRUCT_PAGE_INIT > should be incompatible with FLATMEM, make this explicitly in Kconfig. I guess the changelog could benefit from some clarification. What do you think about the following: " DEFE

Re: powerpc/pseries: start rtasd before PCI probing

2016-05-23 Thread Thomas Huth
On 23.05.2016 10:28, Greg Kurz wrote: > A strange behaviour is observed when comparing PCI hotplug in QEMU, between > x86 and pseries. If you consider the following steps: > - start a VM > - add a PCI device via the QEMU monitor before the rtasd has started (for > example starting the VM in pause

Re: [PATCH 3/3] ACPI: ARM64: support for ACPI_TABLE_UPGRADE

2016-05-23 Thread Jon Masters
On 05/23/2016 01:56 PM, Lorenzo Pieralisi wrote: > On Tue, May 17, 2016 at 12:48:53PM -0400, Jon Masters wrote: >> On 05/17/2016 12:44 PM, Jon Masters wrote: >> >>> 1). During development of a platform, it is much easier to debug >>> problems with tables if you can test replacement ones without hav

Re: [PATCH] mm: make CONFIG_DEFERRED_STRUCT_PAGE_INIT depends on !FLATMEM explicitly

2016-05-23 Thread Shi, Yang
On 5/23/2016 11:22 AM, Michal Hocko wrote: On Mon 23-05-16 09:54:31, Yang Shi wrote: Per the suggestion from Michal Hocko [1], CONFIG_DEFERRED_STRUCT_PAGE_INIT should be incompatible with FLATMEM, make this explicitly in Kconfig. I guess the changelog could benefit from some clarification. Wha

Re: [RFC PATCH 03/15] Provide atomic_t functions implemented with ISO-C++11 atomics

2016-05-23 Thread Paul E. McKenney
On Fri, May 20, 2016 at 07:32:09PM +1000, Michael Ellerman wrote: > On Thu, 2016-05-19 at 08:00 -0700, Paul E. McKenney wrote: > > On Thu, May 19, 2016 at 04:41:17PM +0200, Peter Zijlstra wrote: > > > On Thu, May 19, 2016 at 07:22:52AM -0700, Paul E. McKenney wrote: > > > > Agreed, these sorts of i

Re: powerpc/pseries: start rtasd before PCI probing

2016-05-23 Thread Greg Kurz
On Mon, 23 May 2016 20:23:19 +0200 Thomas Huth wrote: > On 23.05.2016 10:28, Greg Kurz wrote: > > A strange behaviour is observed when comparing PCI hotplug in QEMU, between > > x86 and pseries. If you consider the following steps: > > - start a VM > > - add a PCI device via the QEMU monitor befo

[RFC 7/7] iio: Make trigger names unique

2016-05-23 Thread Crestez Dan Leonard
This changes the format of trigger names for some drivers so that the result always includes indio_dev->id and is thus unique. Signed-off-by: Crestez Dan Leonard --- drivers/iio/adc/max1027.c | 4 ++-- drivers/iio/common/st_sensors/st_sensors_trigger.c | 2 +- drivers/ii

[PATCHv3 1/7] iio: generic_buffer: Cleanup when receiving signals

2016-05-23 Thread Crestez Dan Leonard
This will clean (disable buffer/trigger/channels) when doing something like a CTRL-C. Otherwise restarting generic_buffer requires a manual echo 0 > buffer/enable This also cleanup up all the code freeing string buffers at the end of main. We initialize all pointers to NULL so that cleanup can all

[PATCHv3 3/7] iio: generic_buffer: Add --trigger-num option

2016-05-23 Thread Crestez Dan Leonard
Signed-off-by: Crestez Dan Leonard --- tools/iio/generic_buffer.c | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/tools/iio/generic_buffer.c b/tools/iio/generic_buffer.c index 3f16e9f..e8c3052 100644 --- a/tools/iio/generic_buffer.c +++ b/to

[PATCHv3 2/7] iio: generic_buffer: Add --device-num option

2016-05-23 Thread Crestez Dan Leonard
This makes it possible to distinguish between iio devices with the same name. Signed-off-by: Crestez Dan Leonard --- tools/iio/generic_buffer.c | 69 ++ 1 file changed, 51 insertions(+), 18 deletions(-) diff --git a/tools/iio/generic_buffer.c b/tools/

[RFC 5/7] iio: generic_buffer: Use current_trigger_id

2016-05-23 Thread Crestez Dan Leonard
This is a preferred alternative to 'current_trigger'. Signed-off-by: Crestez Dan Leonard --- tools/iio/generic_buffer.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/iio/generic_buffer.c b/tools/iio/generic_buffer.c index e8c3052..b23371a 100644 --- a/tools/ii

[RFC 0/7] Deal with iio trigger names

2016-05-23 Thread Crestez Dan Leonard
IIO documents that trigger names are unique but does not actually guarantee this. You can easily create a software trigger with a duplicate name if you enable CONFIG_IIO_HRTIMER_TRIGGER: mkdir /sys/kernel/config/iio/triggers/hrtimer/\ `cat /sys/bus/iio/devices/trigger0/name

[RFC 4/7] iio: Add current_trigger_id alternative

2016-05-23 Thread Crestez Dan Leonard
This allows controlling the current trigger by numeric ID rather than name. Signed-off-by: Crestez Dan Leonard --- Documentation/ABI/testing/sysfs-bus-iio | 9 +++ Documentation/DocBook/iio.tmpl | 4 +- drivers/iio/industrialio-trigger.c | 115

[RFC 6/7] iio: Refuse to register triggers with duplicate names

2016-05-23 Thread Crestez Dan Leonard
The trigger name is documented as unique but drivers are currently allowed to register triggers with duplicate names. This should be considered a bug since it makes the 'current_trigger' interface unusable. Signed-off-by: Crestez Dan Leonard --- drivers/iio/industrialio-trigger.c | 21 ++

[v2 PATCH] mm: make CONFIG_DEFERRED_STRUCT_PAGE_INIT depends on !FLATMEM explicitly

2016-05-23 Thread Yang Shi
Per the suggestion from Michal Hocko [1], DEFERRED_STRUCT_PAGE_INIT requires some ordering wrt other initialization operations, e.g. page_ext_init has to happen after the whole memmap is initialized properly. For SPARSEMEM this requires to wait for page_alloc_init_late. Other memory models (e.g. fl

Re: [PATCH 3/3] mm, thp: make swapin readahead under down_read of mmap_sem

2016-05-23 Thread Michal Hocko
On Mon 23-05-16 20:14:11, Ebru Akagunduz wrote: > Currently khugepaged makes swapin readahead under > down_write. This patch supplies to make swapin > readahead under down_read instead of down_write. You are still keeping down_write. Can we do without it altogether? Blocking mmap_sem of a remote p

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

2016-05-23 Thread Josh Poimboeuf
On Mon, May 23, 2016 at 10:03:54AM -0700, Andy Lutomirski wrote: > On Mon, May 23, 2016 at 9:46 AM, Josh Poimboeuf wrote: > > On Mon, May 23, 2016 at 06:49:03AM -0500, Josh Poimboeuf wrote: > >> On Mon, May 23, 2016 at 06:47:22AM -0500, Josh Poimboeuf wrote: > >> > On Mon, May 23, 2016 at 07:14:14

RE: livepatch: change to a per-task consistency model

2016-05-23 Thread Jiri Kosina
On Mon, 23 May 2016, David Laight wrote: > Related, please can we have a flag for the sleep and/or process so that > an uninterruptible sleep doesn't trigger the 'hung task' detector TASK_KILLABLE > and also stops the process counting towards the 'load average'. TASK_NOLOAD -- Jiri Kosina SUS

[PATCH] misc: at24: Fix typo in at24 header file

2016-05-23 Thread Moritz Fischer
This commit fixes a simple typo s/mvmem/nvmem in the example. Signed-off-by: Moritz Fischer --- include/linux/platform_data/at24.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/platform_data/at24.h b/include/linux/platform_data/at24.h index dc9a13e..be830b1 1

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

2016-05-23 Thread Jason Low
On Sat, 2016-05-21 at 09:04 -0700, Peter Hurley wrote: > On 05/18/2016 12:58 PM, Jason Low wrote: > > It should be fine to use the standard READ_ONCE here, even if it's just > > for documentation, as it's probably not going to cost anything in > > practice. It would be better to avoid adding any sp

Re: [PATCH 3/3] mm, thp: make swapin readahead under down_read of mmap_sem

2016-05-23 Thread Rik van Riel
On Mon, 2016-05-23 at 20:42 +0200, Michal Hocko wrote: > On Mon 23-05-16 20:14:11, Ebru Akagunduz wrote: > > > > Currently khugepaged makes swapin readahead under > > down_write. This patch supplies to make swapin > > readahead under down_read instead of down_write. > You are still keeping down_wr

[PATCH] drm/i915/ilk: Disable SSC for DPLLs if we're not using it

2016-05-23 Thread Lyude
Thanks to Ville Syrjälä for pointing me towards the cause of this issue. Unfortunately one of the sideaffects of having the refclk for a DPLL set to SSC is that as long as it's set to SSC, the GPU will prevent us from powering down any of the pipes or transcoders using it. A couple of BIOSes, desp

Re: [git pull] drm for v4.7

2016-05-23 Thread Linus Torvalds
On Sun, May 22, 2016 at 11:41 PM, Dave Airlie wrote: > > Here's the main drm pull request for 4.7, it's been > a busy one, and I've been a bit more distracted in > real life this merge window. Hmm. I pulled this, but I think I'll have to unpull again. Neither the diffstat not the shortlog match

Re: [PATCH 3/3] mm, thp: make swapin readahead under down_read of mmap_sem

2016-05-23 Thread Kirill A. Shutemov
On Mon, May 23, 2016 at 02:49:09PM -0400, Rik van Riel wrote: > On Mon, 2016-05-23 at 20:42 +0200, Michal Hocko wrote: > > On Mon 23-05-16 20:14:11, Ebru Akagunduz wrote: > > > > > > Currently khugepaged makes swapin readahead under > > > down_write. This patch supplies to make swapin > > > readah

Re: [PATCH] Fix RC5 decoding with Fintek CIR chipset

2016-05-23 Thread David Härdeman
On Sat, May 14, 2016 at 06:01:26PM +0100, Jonathan McDowell wrote: >Fix RC5 decoding with Fintek CIR chipset > >Commit e87b540be2dd02552fb9244d50ae8b4e4619a34b tightened up the RC5 >decoding by adding a check for trailing silence to ensure a valid RC5 >command had been received. Unfortunately the t

Re: [git pull] drm for v4.7

2016-05-23 Thread Linus Torvalds
On Mon, May 23, 2016 at 11:59 AM, Linus Torvalds wrote: > > I'll test this out and look what happens, but I hate getting different > results than what I'm told to expect. Hmm. I also get a lot of ./usr/include/drm/amdgpu_drm.h:38: userspace cannot reference function or variable defined in the

[RFC][PATCH] ftracetest: Fix hist unsupported result in hist selftests

2016-05-23 Thread Steven Rostedt
[ Folks, is this a proper work around? ] When histograms are not configured in the kernel, the ftracetest histogram selftests should return "unsupported" and not "Failed". To detect this, the test scripts have: FEATURE=`grep hist events/sched/sched_process_fork/trigger` if [ -z "$FEATURE" ]; t

Re: [git pull] drm for v4.7

2016-05-23 Thread Dave Airlie
On 24 May 2016 at 04:59, Linus Torvalds wrote: > On Sun, May 22, 2016 at 11:41 PM, Dave Airlie wrote: >> >> Here's the main drm pull request for 4.7, it's been >> a busy one, and I've been a bit more distracted in >> real life this merge window. > > Hmm. > > I pulled this, but I think I'll have t

Re: [git pull] drm for v4.7

2016-05-23 Thread Dave Airlie
On 24 May 2016 at 05:20, Dave Airlie wrote: > On 24 May 2016 at 04:59, Linus Torvalds wrote: >> On Sun, May 22, 2016 at 11:41 PM, Dave Airlie wrote: >>> >>> Here's the main drm pull request for 4.7, it's been >>> a busy one, and I've been a bit more distracted in >>> real life this merge window.

Re: [GIT PULL] drm/arcpgu: use dedicated memory area for frame buffer

2016-05-23 Thread David Airlie
- Original Message - > From: "Alexey Brodkin" > To: airl...@redhat.com, dan...@ffwll.ch, "Vineet Gupta" > , airl...@linux.ie > Cc: dri-de...@lists.freedesktop.org, linux-kernel@vger.kernel.org, > linux-snps-...@lists.infradead.org > Sent: Monday, 23 May, 2016 8:31:41 PM > Subject: Re:

Re: [Patch v5 5/8] firmware: qcom: scm: Convert to streaming DMA APIS

2016-05-23 Thread Kevin Hilman
e: qcom: scm: Convert to streaming DMA APIS), and kernelci.org found some boot breakage in next-20160523 on apq8064[1] which was bisected down to this commit. I reverted this commit on top of next-20160523 and it no longer builds, so I didn't validate if things boot again with this patch reverted.

Re: [PATCH 3/3] mm, thp: make swapin readahead under down_read of mmap_sem

2016-05-23 Thread Rik van Riel
On Mon, 2016-05-23 at 22:01 +0300, Kirill A. Shutemov wrote: > On Mon, May 23, 2016 at 02:49:09PM -0400, Rik van Riel wrote: > > > > On Mon, 2016-05-23 at 20:42 +0200, Michal Hocko wrote: > > > > > > On Mon 23-05-16 20:14:11, Ebru Akagunduz wrote: > > > > > > > > > > > > Currently khugepaged ma

Re: [PATCH v2 4/5] iommu/mediatek: add support for mtk iommu generation one HW

2016-05-23 Thread Robin Murphy
On 19/05/16 12:49, honghui.zh...@mediatek.com wrote: From: Honghui Zhang Mediatek SoC's M4U has two generations of HW architcture. Generation one uses flat, one layer pagetable, and was shipped with ARM architecture, it only supports 4K size page mapping. MT2701 SoC uses this generation one m4u

[PATCH] xtensa: defconfig: remove ZONE_DMA_FLAG

2016-05-23 Thread Yang Shi
commit a3187e438bc6565d6e54a550a19073d1b453f041 ("mm: slab: remove ZONE_DMA_FLAG") removed ZONE_DMA_FLAG completely, so it is pointless to still keep it in defconfig. Signed-off-by: Yang Shi --- arch/xtensa/configs/iss_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/xtensa/conf

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

2016-05-23 Thread Davidlohr Bueso
On Mon, 23 May 2016, Jason Low wrote: On Sat, 2016-05-21 at 09:04 -0700, Peter Hurley wrote: On 05/18/2016 12:58 PM, Jason Low wrote: > It should be fine to use the standard READ_ONCE here, even if it's just > for documentation, as it's probably not going to cost anything in > practice. It woul

Re: [PATCH v3 05/11] perf evlist: Introduce aux perf evlist

2016-05-23 Thread Arnaldo Carvalho de Melo
Em Mon, May 23, 2016 at 07:13:42AM +, Wang Nan escreveu: > Introduce auxiliary perf evlist. Such evlists created by > perf_evlist__new_aux() > using an existing evlist. A 'parent' pointer points to the template. You must define template above, otherwise I will not have how to compare the patc

Re: [git pull] drm for v4.7

2016-05-23 Thread Dave Airlie
On 24 May 2016 at 05:23, Dave Airlie wrote: > On 24 May 2016 at 05:20, Dave Airlie wrote: >> On 24 May 2016 at 04:59, Linus Torvalds >> wrote: >>> On Sun, May 22, 2016 at 11:41 PM, Dave Airlie wrote: Here's the main drm pull request for 4.7, it's been a busy one, and I've been a

Re: [PATCH] PCI: pcie: Call pm_runtime_no_callbacks() after device is registered

2016-05-23 Thread Bjorn Helgaas
On Mon, May 23, 2016 at 11:11:55AM +0300, Mika Westerberg wrote: > Commit 0195d2813547 ("PCI: Add runtime PM support for PCIe ports") added > call to pm_runtime_no_callbacks() for each port service device to prevent > them exposing unnecessary runtime PM sysfs files. However, that function > tries

[PATCH v2] drm/i915/ilk: Don't disable SSC source if it's in use

2016-05-23 Thread Lyude
Thanks to Ville Syrjälä for pointing me towards the cause of this issue. Unfortunately one of the sideaffects of having the refclk for a DPLL set to SSC is that as long as it's set to SSC, the GPU will prevent us from powering down any of the pipes or transcoders using it. A couple of BIOSes enabl

Re: [PATCH 1/2] Documentation: add binding description of Rockchip PCIe controller

2016-05-23 Thread Heiko Stuebner
Am Samstag, 21. Mai 2016, 11:55:35 schrieb Shawn Lin: > On 2016/5/20 19:20, Heiko Stuebner wrote: > > Hi Shawn, > > > > Am Freitag, 20. Mai 2016, 18:29:06 schrieb Shawn Lin: > >> This patch add some required and optional properties for Rockchip > >> PCIe controller. Also we add a example for how t

Re: [PATCH 3/3] mm, thp: make swapin readahead under down_read of mmap_sem

2016-05-23 Thread Kirill A. Shutemov
On Mon, May 23, 2016 at 03:26:47PM -0400, Rik van Riel wrote: > On Mon, 2016-05-23 at 22:01 +0300, Kirill A. Shutemov wrote: > > On Mon, May 23, 2016 at 02:49:09PM -0400, Rik van Riel wrote: > > > > > > On Mon, 2016-05-23 at 20:42 +0200, Michal Hocko wrote: > > > > > > > > On Mon 23-05-16 20:14:1

Re: [GIT PULL] drm/arcpgu: use dedicated memory area for frame buffer

2016-05-23 Thread Alexey Brodkin
Hi David, On Mon, 2016-05-23 at 15:23 -0400, David Airlie wrote: > > > - Original Message - > > > > From: "Alexey Brodkin" > > To: airl...@redhat.com, dan...@ffwll.ch, "Vineet Gupta" > > , airl...@linux.ie > > Cc: dri-de...@lists.freedesktop.org, linux-kernel@vger.kernel.org, > > lin

Re: [PATCH] f2fs: introduce on-disk layout version checking functionality

2016-05-23 Thread Viacheslav Dubeyko
On Mon, 2016-05-23 at 01:25 -0700, Christoph Hellwig wrote: > On Fri, May 20, 2016 at 11:30:43AM -0700, Viacheslav Dubeyko wrote: > > I am not sure that I follow to your point. The F2FS has "feature" field > > (__le32 feature) into on-disk superblock (struct f2fs_super_block). The > > suggested pat

[PATCH] doc: clarify that trace_events= takes a comma-separated list

2016-05-23 Thread Brian Norris
It took me browsing through the source code to determine that I was, indeed, using the wrong delimiter in my command lines. So I might as well document it for the next person. Signed-off-by: Brian Norris --- Documentation/kernel-parameters.txt | 7 ++- 1 file changed, 6 insertions(+), 1 dele

Re: [PATCH 3/3] mm, thp: make swapin readahead under down_read of mmap_sem

2016-05-23 Thread Rik van Riel
On Mon, 2016-05-23 at 23:02 +0300, Kirill A. Shutemov wrote: > On Mon, May 23, 2016 at 03:26:47PM -0400, Rik van Riel wrote: > > > > On Mon, 2016-05-23 at 22:01 +0300, Kirill A. Shutemov wrote: > > > > > > On Mon, May 23, 2016 at 02:49:09PM -0400, Rik van Riel wrote: > > > > > > > > > > > > On

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

2016-05-23 Thread Paul E. McKenney
On Mon, May 23, 2016 at 12:44:16PM -0700, Davidlohr Bueso wrote: > On Mon, 23 May 2016, Jason Low wrote: > > >On Sat, 2016-05-21 at 09:04 -0700, Peter Hurley wrote: > >>On 05/18/2016 12:58 PM, Jason Low wrote: > >>> It should be fine to use the standard READ_ONCE here, even if it's just > >>> for

Re: [PATCH] powerpc32: use stmw/lmw for non volatile registers save/restore

2016-05-23 Thread Segher Boessenkool
On Mon, May 23, 2016 at 10:46:36AM +0200, Christophe Leroy wrote: > lmw/stmw have a 1 cycle (2 cycles for lmw on some ppc) in addition > and implies serialising, however it reduces the amount of instructions > hence the amount of instruction fetch compared to the equivalent > operation with several

Re: [PATCH] doc: clarify that trace_events= takes a comma-separated list

2016-05-23 Thread Steven Rostedt
On Mon, 23 May 2016 13:08:31 -0700 Brian Norris wrote: Hi Brian, > It took me browsing through the source code to determine that I was, > indeed, using the wrong delimiter in my command lines. So I might as > well document it for the next person. > > Signed-off-by: Brian Norris > --- > Docum

<    1   2   3   4   5   6   7   8   9   >