Re: [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Arnd Bergmann
On Thursday 12 November 2015 20:51:10 Baolin Wang wrote: > On 12 November 2015 at 20:24, Jan Kara wrote: > > On Thu 12-11-15 19:46:26, Baolin Wang wrote: > >> On 12 November 2015 at 19:06, Jan Kara wrote: > >> > Well, one question is "can handle" and other question is how big gain in > >> > throu

RE: [PATCH V2 10/12] Drivers: hv: vmbus: channge vmbus_connection.channel_lock to mutex

2015-11-12 Thread Dexuan Cui
> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Thursday, November 12, 2015 18:41 > To: Dexuan Cui > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com; KY Srinivasan > Subject: Re:

[PATCH v8 4/4] ARM: dts: Add Ethernet chip to SMDK5410

2015-11-12 Thread Pavel Fedin
The chip is smsc9115, connected via SROMc bank 3. Additionally, some GPIO initialization is required. Signed-off-by: Pavel Fedin Reviewed-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5410-smdk5410.dts | 41 +++ arch/arm/boot/dts/exynos5410.dtsi | 6 ++

[PATCH v8 0/4] Exynos SROMc configuration and Ethernet support for SMDK5410

2015-11-12 Thread Pavel Fedin
This patch extends Exynos SROM controller driver with ability to configure controller outputs and enables SMSC9115 Ethernet chip on SMDK5410 board, which is connected via SROMc bank #3. With this patchset, support for the whole existing SMDK range can be added. Actually, only bank number is differ

[PATCH v8 3/4] drivers: exynos-srom: Add support for bank configuration

2015-11-12 Thread Pavel Fedin
Implement handling properties in subnodes and adding child devices to the system. Child devices will not be added if configuration fails. Since the driver now does more than suspend-resume support, dependency on CONFIG_PM is removed. Signed-off-by: Pavel Fedin Reviewed-by: Krzysztof Kozlowski -

[PATCH v8 2/4] ARM: dts: Add SROMc to Exynos 5410

2015-11-12 Thread Pavel Fedin
This machine uses own SoC device tree file, add missing part. Signed-off-by: Pavel Fedin Reviewed-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5410.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi index 4

[PATCH v8 1/4] Documentation: dt-bindings: Describe SROMc configuration

2015-11-12 Thread Pavel Fedin
Add documentation for new subnode properties, allowing bank configuration. Based on u-boot implementation, but heavily reworked. Also, fix size of SROMc mapping in the example. Signed-off-by: Pavel Fedin Reviewed-by: Krzysztof Kozlowski --- .../bindings/arm/samsung/exynos-srom.txt |

RE: [PATCH] ARM: xip: Use correct symbol for end of ROM marker

2015-11-12 Thread Chris Brandt
> I think below is required as well. > > --- a/arch/arm/kernel/module.c > +++ b/arch/arm/kernel/module.c > @@ -34,7 +36,7 @@ > * recompiling the whole kernel when CONFIG_XIP_KERNEL is turned on/off. > */ > #undef MODULES_VADDR > -#define MODULES_VADDR(((unsigned long)_etext + ~PMD_MASK

Re: [RFC PATCH 1/2] genirq: Add runtime resume/suspend support for IRQ chips

2015-11-12 Thread Lars-Peter Clausen
On 11/12/2015 11:59 AM, Jon Hunter wrote: > > On 11/11/15 15:41, Grygorii Strashko wrote: >> On 11/11/2015 12:13 PM, Jon Hunter wrote: >>> >>> On 10/11/15 18:07, Lars-Peter Clausen wrote: On 11/10/2015 05:47 PM, Grygorii Strashko wrote: [...] >> I was trying to simplify matters by pl

[PATCH] serial: 8250_mid: Add missing dependency

2015-11-12 Thread Heikki Krogerus
8250_mid uses rational_best_approximation() function, so the driver needs to select CONFIG_RATIONAL option. This fixes build error when CONFIG_RATIONAL is not enabled: drivers/built-in.o: In function `mid8250_set_termios': 8250_mid.c:(.text+0x10169a): undefined reference to `rational_best_approx

Re: [Patch v7 4/7] PCI/ACPI: Add interface acpi_pci_root_create()

2015-11-12 Thread Tomasz Nowicki
On 12.11.2015 09:43, Jiang Liu wrote: On 2015/11/12 1:46, Lorenzo Pieralisi wrote: On Tue, Nov 10, 2015 at 01:50:46PM +0800, Jiang Liu wrote: [...] In particular, I would like to understand, for an eg DWordIO descriptor, what Range Minimum, Range Maximum and Translation Offset represent, they

Re: [PATCH v2 13/11] mtd: assign mtd->dev.of_node when creating partition devices

2015-11-12 Thread Boris Brezillon
Hi Brian, On Wed, 11 Nov 2015 16:15:50 -0800 Brian Norris wrote: > On Mon, Nov 02, 2015 at 01:38:41AM +0100, Boris Brezillon wrote: > > MTD partitions may have been created from a DT definition, and in this case > > the ->of_node of the struct device embedded in mtd_info should point to > > the

Re: module: save load_info for livepatch modules

2015-11-12 Thread Miroslav Benes
On Thu, 12 Nov 2015, Petr Mladek wrote: > On Thu 2015-11-12 00:33:12, Jessica Yu wrote: > > +++ Miroslav Benes [11/11/15 15:17 +0100]: > > >On Mon, 9 Nov 2015, Jessica Yu wrote: > > > > > >>diff --git a/include/linux/module.h b/include/linux/module.h > > >>index 3a19c79..c8680b1 100644 > > >>--- a

Re: [PATCH v4 2/3] mtd: nand: Add support for Arasan Nand Flash Controller

2015-11-12 Thread punnaiah choudary kalluri
On Thu, Nov 12, 2015 at 4:02 PM, Andy Shevchenko wrote: > On Thu, 2015-11-12 at 10:18 +0530, punnaiah choudary kalluri wrote: >> On Mon, Nov 9, 2015 at 7:20 PM, Andy Shevchenko >> wrote: >> > On Thu, 2015-11-05 at 08:19 +0530, Punnaiah Choudary Kalluri wrote: >> > > Added the basic driver for Ara

[PATCH] blk-flush: Queue through IO scheduler when flush not required

2015-11-12 Thread Jan Kara
Currently blk_insert_flush() just adds flush request to q->queue_head when flush is not required. That completely bypasses IO scheduler so e.g. CFQ can be idling waiting for new request to arrive and will idle through the whole window unnecessarily. Luckily this only happens in rare cases as usuall

Re: [PATCH v6 13/17] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2015-11-12 Thread Arnd Bergmann
On Thursday 12 November 2015 10:44:55 Andreas Schwab wrote: > Arnd Bergmann writes: > > > What do you mean with 32-bit off_t? > > An ABI with 32-bit off_t, ie. all currently implemented 32-bit ABIs. > > > Do you mean that glibc emulates a 32-bit off_t on top of the 64-bit > > __kernel_loff_t? >

Re: [PATCH] i2c: tegra: fix a possible NULL dereference

2015-11-12 Thread Thierry Reding
On Thu, Nov 12, 2015 at 01:54:22PM +0100, LABBE Corentin wrote: > On Thu, Nov 12, 2015 at 01:29:23PM +0100, Thierry Reding wrote: > > On Thu, Nov 12, 2015 at 08:26:03AM +0100, LABBE Corentin wrote: > > > of_match_device could return NULL, and so cause a NULL pointer > > > > No. There is no way tha

[tip:x86/urgent] x86/mpx: Fix 32-bit address space calculation

2015-11-12 Thread tip-bot for Dave Hansen
Commit-ID: f3119b830264d89d216bfb378ab65065dffa02d9 Gitweb: http://git.kernel.org/tip/f3119b830264d89d216bfb378ab65065dffa02d9 Author: Dave Hansen AuthorDate: Wed, 11 Nov 2015 10:19:34 -0800 Committer: Ingo Molnar CommitDate: Thu, 12 Nov 2015 09:20:37 +0100 x86/mpx: Fix 32-bit address

[tip:x86/urgent] x86/mpx: Do proper get_user() when running 32-bit binaries on 64-bit kernels

2015-11-12 Thread tip-bot for Dave Hansen
Commit-ID: 46561c3959d6307d22139c24cd0bf196162e5681 Gitweb: http://git.kernel.org/tip/46561c3959d6307d22139c24cd0bf196162e5681 Author: Dave Hansen AuthorDate: Wed, 11 Nov 2015 10:19:31 -0800 Committer: Ingo Molnar CommitDate: Thu, 12 Nov 2015 09:20:37 +0100 x86/mpx: Do proper get_user(

[tip:x86/urgent] x86/fpu: Fix 32-bit signal frame handling

2015-11-12 Thread tip-bot for Dave Hansen
Commit-ID: ab6b52947545a5355154f64f449f97af9d05845f Gitweb: http://git.kernel.org/tip/ab6b52947545a5355154f64f449f97af9d05845f Author: Dave Hansen AuthorDate: Tue, 10 Nov 2015 16:23:54 -0800 Committer: Ingo Molnar CommitDate: Thu, 12 Nov 2015 09:23:45 +0100 x86/fpu: Fix 32-bit signal f

[tip:x86/urgent] x86/fpu: Fix get_xsave_addr() behavior under virtualization

2015-11-12 Thread tip-bot for Huaitong Han
Commit-ID: a05917b6ba9dc9a95fc42bdcbe3a875e8ad83935 Gitweb: http://git.kernel.org/tip/a05917b6ba9dc9a95fc42bdcbe3a875e8ad83935 Author: Huaitong Han AuthorDate: Fri, 6 Nov 2015 17:00:23 +0800 Committer: Ingo Molnar CommitDate: Thu, 12 Nov 2015 09:34:58 +0100 x86/fpu: Fix get_xsave_addr(

Re: [PATCH V4 1/4] dma: qcom_bam_dma: move to qcom directory

2015-11-12 Thread Timur Tabi
Sinan Kaya wrote: @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. I don't think this is appropriate. You're not making any real changes to this driver, so you can't make any co

Re: [RFC PATCH 1/2] genirq: Add runtime resume/suspend support for IRQ chips

2015-11-12 Thread Grygorii Strashko
On 11/12/2015 03:20 PM, Lars-Peter Clausen wrote: > On 11/12/2015 11:59 AM, Jon Hunter wrote: >> >> On 11/11/15 15:41, Grygorii Strashko wrote: >>> On 11/11/2015 12:13 PM, Jon Hunter wrote: On 10/11/15 18:07, Lars-Peter Clausen wrote: > On 11/10/2015 05:47 PM, Grygorii Strashko wrote:

Re: [PATCH] x86/mm: fix regression with huge pages on PAE

2015-11-12 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Thu, Nov 12, 2015 at 09:54:18AM +0100, Ingo Molnar wrote: > > > > * Kirill A. Shutemov wrote: > > > > > diff --git a/arch/x86/include/asm/page_types.h > > > b/arch/x86/include/asm/page_types.h > > > index c5b7fb2774d0..cc071c6f7d4d 100644 > > > --- a/arch/x86

[tip:perf/urgent] perf/x86/intel/rapl: Remove the unused RAPL_EVENT_DESC() macro

2015-11-12 Thread tip-bot for Huang Rui
Commit-ID: 41ac18ebfc429ce3f4d369ef07447d652999a0cd Gitweb: http://git.kernel.org/tip/41ac18ebfc429ce3f4d369ef07447d652999a0cd Author: Huang Rui AuthorDate: Wed, 4 Nov 2015 17:43:53 +0800 Committer: Ingo Molnar CommitDate: Thu, 12 Nov 2015 09:44:25 +0100 perf/x86/intel/rapl: Remove the

Re: [RFC][PATCH] mips: Fix arch_spin_unlock()

2015-11-12 Thread Måns Rullgård
Peter Zijlstra writes: > Hi > > I think the MIPS arch_spin_unlock() is borken. > > spin_unlock() must have RELEASE semantics, these require that no LOADs > nor STOREs leak out from the critical section. > > From what I know MIPS has a relaxed memory model which allows reads to > pass stores, and

Re: [PATCH v5] net: ethernet: add driver for Aurora VLSI NB8800 Ethernet controller

2015-11-12 Thread Mason
On 10/11/2015 20:25, Måns Rullgård wrote: > Mason writes: > >> On 10/11/2015 17:14, Mans Rullgard wrote: >> >>> This adds a driver for the Aurora VLSI NB8800 Ethernet controller. >>> It is an almost complete rewrite of a driver originally found in >>> a Sigma Designs 2.6.22 tree. >>> >>> Signed-o

Re: drm: Bogus WARN() in drm_atomic_helper_update_legacy_modeset_state() ?

2015-11-12 Thread Thierry Reding
On Thu, Nov 12, 2015 at 06:49:38PM +0800, Mark yao wrote: > On 2015年11月12日 18:36, Liviu Dudau wrote: > >On Thu, Nov 12, 2015 at 04:32:33PM +0800, Mark yao wrote: > >>On 2015年11月10日 23:01, Liviu Dudau wrote: > >> > >> Hello, > >> > >> When booting my Juno board with the HDLCD driver that I hav

Re: [PATCH v2 3/3] tty: Add software emulated RS485 support for 8250

2015-11-12 Thread Peter Hurley
On 11/12/2015 07:34 AM, Matwey V. Kornilov wrote: > 2015-11-10 19:12 GMT+03:00 Peter Hurley : >> On 11/07/2015 05:09 AM, Matwey V. Kornilov wrote: >>> Implementation of software emulation of RS485 direction handling is based >>> on omap-serial driver. It is acts as the following. At transmission s

Re: [RFC PATCH 1/2] genirq: Add runtime resume/suspend support for IRQ chips

2015-11-12 Thread Lars-Peter Clausen
On 11/12/2015 02:29 PM, Grygorii Strashko wrote: > On 11/12/2015 03:20 PM, Lars-Peter Clausen wrote: >> On 11/12/2015 11:59 AM, Jon Hunter wrote: >>> >>> On 11/11/15 15:41, Grygorii Strashko wrote: On 11/11/2015 12:13 PM, Jon Hunter wrote: > > On 10/11/15 18:07, Lars-Peter Clausen wrot

Re: [RFC PATCH 1/2] genirq: Add runtime resume/suspend support for IRQ chips

2015-11-12 Thread Jon Hunter
On 12/11/15 13:20, Lars-Peter Clausen wrote: > On 11/12/2015 11:59 AM, Jon Hunter wrote: >> >> On 11/11/15 15:41, Grygorii Strashko wrote: >>> On 11/11/2015 12:13 PM, Jon Hunter wrote: On 10/11/15 18:07, Lars-Peter Clausen wrote: > On 11/10/2015 05:47 PM, Grygorii Strashko wrote: >>>

[PATCH] fs:affs:Replace time_t with time64_t

2015-11-12 Thread DengChao
The affs code uses "time_t" and "get_seconds()". This will cause problems on 32-bit architectures in 2038 when time_t overflows. This patch replaces them with "time64_t" and "ktime_get_real_seconds()". This patch introduces expensive 64-bit divsion in "secs_to_datestamp()", considering this functio

Re: [PATCH] i2c: tegra: fix a possible NULL dereference

2015-11-12 Thread Jon Hunter
On 12/11/15 12:29, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Thu, Nov 12, 2015 at 08:26:03AM +0100, LABBE Corentin wrote: >> of_match_device could return NULL, and so cause a NULL pointer > > No. There is no way that of_match_device() can ever fail. The driver > core uses the

Re: Flush requests not going through IO scheduler

2015-11-12 Thread Jan Kara
On Tue 03-11-15 10:24:12, Jens Axboe wrote: > On 11/03/2015 10:18 AM, Jeff Moyer wrote: > >Jens Axboe writes: > > > Certainly, the current behavior is undoubtedly broken. The least > intrusive fix would be to kick off scheduling when we add it to the > request, but the elevator should

[PATCH] i2c: core: fix wakeup irq parsing

2015-11-12 Thread Grygorii Strashko
This patch fixes obvious copy-past error in wake up irq parsing code which leads to the fact that dev_pm_set_wake_irq() will be called with wrong IRQ number when "wakeup" IRQ is not defined in DT. Cc: Dmitry Torokhov Cc: Felipe Balbi Cc: # v4.3 Fixes: 3fffd1283927 ("i2c: allow specifying separa

Re: [PATCH] i2c: tegra: fix a possible NULL dereference

2015-11-12 Thread Uwe Kleine-König
On Thu, Nov 12, 2015 at 02:28:37PM +0100, Thierry Reding wrote: > On Thu, Nov 12, 2015 at 01:54:22PM +0100, LABBE Corentin wrote: > > On Thu, Nov 12, 2015 at 01:29:23PM +0100, Thierry Reding wrote: > > > On Thu, Nov 12, 2015 at 08:26:03AM +0100, LABBE Corentin wrote: > > > > of_match_device could r

Re: [Y2038] [PATCH] fs:affs:Replace time_t with time64_t

2015-11-12 Thread Arnd Bergmann
On Thursday 12 November 2015 21:40:41 DengChao wrote: > The affs code uses "time_t" and "get_seconds()". This will cause > problems on 32-bit architectures in 2038 when time_t overflows. > This patch replaces them with "time64_t" and > "ktime_get_real_seconds()". This patch introduces expensive 64-

Re: [PATCH] vhost: move is_le setup to the backend

2015-11-12 Thread Michael S. Tsirkin
On Fri, Oct 30, 2015 at 12:42:35PM +0100, Greg Kurz wrote: > The vq->is_le field is used to fix endianness when accessing the vring via > the cpu_to_vhost16() and vhost16_to_cpu() helpers in the following cases: > > 1) host is big endian and device is modern virtio > > 2) host has cross-endian su

[PATCH V1] serial:bfin-uart:Remove 'struct timeval'

2015-11-12 Thread DengChao
The bfin-uart code uses real time with struct timeval. This will cause problems on 32-bit architectures in 2038 when time_t overflows. Since the code just needs delta value of time, it is not necessary to record them in real time. This patch changes the code to use the monotonic time instead, repla

Re: [RFC PATCH 1/2] genirq: Add runtime resume/suspend support for IRQ chips

2015-11-12 Thread Lars-Peter Clausen
On 11/12/2015 02:35 PM, Jon Hunter wrote: > > On 12/11/15 13:20, Lars-Peter Clausen wrote: >> On 11/12/2015 11:59 AM, Jon Hunter wrote: >>> >>> On 11/11/15 15:41, Grygorii Strashko wrote: On 11/11/2015 12:13 PM, Jon Hunter wrote: > > On 10/11/15 18:07, Lars-Peter Clausen wrote: >>

Re: [PATCH v6 13/17] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2015-11-12 Thread Andreas Schwab
Arnd Bergmann writes: > On Thursday 12 November 2015 10:44:55 Andreas Schwab wrote: >> Arnd Bergmann writes: >> >> > What do you mean with 32-bit off_t? >> >> An ABI with 32-bit off_t, ie. all currently implemented 32-bit ABIs. >> >> > Do you mean that glibc emulates a 32-bit off_t on top of

[PATCH] KVM: svm: add support for RDTSCP

2015-11-12 Thread Paolo Bonzini
RDTSCP was never supported for AMD CPUs, which nobody noticed because Linux does not use it. But exactly the fact that Linux does not use it makes the implementation very simple; we can freely trash MSR_TSC_AUX while running the guest. Cc: Joerg Roedel Signed-off-by: Paolo Bonzini --- arch/x86

[PATCH] KVM: x86: expose MSR_TSC_AUX to userspace

2015-11-12 Thread Paolo Bonzini
If we do not do this, it is not properly saved and restored across migration. Windows notices due to its self-protection mechanisms, and is very upset about it (blue screen of death). Cc: Radim Krcmar Cc: sta...@vger.kernel.org Signed-off-by: Paolo Bonzini --- arch/x86/kvm/x86.c | 11 ++---

Re: [Y2038] [PATCH V1] serial:bfin-uart:Remove 'struct timeval'

2015-11-12 Thread Arnd Bergmann
On Thursday 12 November 2015 21:45:47 DengChao wrote: > The bfin-uart code uses real time with struct timeval. This will > cause problems on 32-bit architectures in 2038 when time_t > overflows. > Since the code just needs delta value of time, it is not > necessary to record them in real time. > Th

Re: [kbuild-all] [PATCH V3 4/4] dma: add Qualcomm Technologies HIDMA channel driver

2015-11-12 Thread Arnd Bergmann
On Thursday 12 November 2015 16:20:15 Fengguang Wu wrote: > Hi Arnd, > > On Wed, Nov 11, 2015 at 09:42:00AM +0100, Arnd Bergmann wrote: > > On Wednesday 11 November 2015 10:21:03 Fengguang Wu wrote: > > > Hi Sinan, > > > > > > Sorry please ignore this warning -- it's actually a problem specific >

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-12 Thread Paul E. McKenney
On Wed, Nov 11, 2015 at 06:34:56PM +0800, Boqun Feng wrote: > On Wed, Nov 11, 2015 at 05:39:40PM +0800, Boqun Feng wrote: > > Hi Oleg, > > > > On Tue, Nov 03, 2015 at 06:59:58PM +0100, Oleg Nesterov wrote: > > [snip] > > > > > > Unfortunately this doesn't look exactly right... > > > > > > spin_u

[PATCH] PCI: designware: bail out if host_init failed

2015-11-12 Thread Jisheng Zhang
There's no reason to continue the initialization such as configure register, scan root bus etc. if customized host_init() failed. This patch tries to check the host_init result, bail out if failed. Signed-off-by: Jisheng Zhang --- drivers/pci/host/pci-dra7xx.c | 4 +++- drivers/pci/host/pc

Re: [PATCH] i2c: tegra: fix a possible NULL dereference

2015-11-12 Thread Thierry Reding
On Thu, Nov 12, 2015 at 01:40:56PM +, Jon Hunter wrote: > > On 12/11/15 12:29, Thierry Reding wrote: > > * PGP Signed by an unknown key > > > > On Thu, Nov 12, 2015 at 08:26:03AM +0100, LABBE Corentin wrote: > >> of_match_device could return NULL, and so cause a NULL pointer > > > > No. Ther

Re: [PATCH] i2c: tegra: fix a possible NULL dereference

2015-11-12 Thread Thierry Reding
On Thu, Nov 12, 2015 at 02:45:20PM +0100, Uwe Kleine-König wrote: > On Thu, Nov 12, 2015 at 02:28:37PM +0100, Thierry Reding wrote: > > On Thu, Nov 12, 2015 at 01:54:22PM +0100, LABBE Corentin wrote: > > > On Thu, Nov 12, 2015 at 01:29:23PM +0100, Thierry Reding wrote: > > > > On Thu, Nov 12, 2015

Re: drm: Bogus WARN() in drm_atomic_helper_update_legacy_modeset_state() ?

2015-11-12 Thread Liviu Dudau
On Thu, Nov 12, 2015 at 01:16:55PM +0100, Thierry Reding wrote: > On Wed, Nov 11, 2015 at 04:09:42PM +, Liviu Dudau wrote: > > On Tue, Nov 10, 2015 at 05:56:15PM +0100, Thierry Reding wrote: > > > On Tue, Nov 10, 2015 at 03:01:03PM +, Liviu Dudau wrote: > > > > Hello, > > > > > > > > When

Re: [PATCH v2] regulator: tps65217: remove tps65217.dtsi file

2015-11-12 Thread Rob Herring
On Tue, Oct 27, 2015 at 01:36:36PM +0100, Heiko Schocher wrote: > remove tps65217.dtsi and adapt all boards, which > used it. > > Signed-off-by: Heiko Schocher > Tested-by: Keerthy > Acked-by: Mark Brown Acked-by: Rob Herring > --- > Suggested by Mark Brown, see: > https://lkml.org/lkml/2015

Re: [RFC PATCH 1/2] genirq: Add runtime resume/suspend support for IRQ chips

2015-11-12 Thread Jon Hunter
On 12/11/15 13:47, Lars-Peter Clausen wrote: > On 11/12/2015 02:35 PM, Jon Hunter wrote: >> >> On 12/11/15 13:20, Lars-Peter Clausen wrote: >>> On 11/12/2015 11:59 AM, Jon Hunter wrote: On 11/11/15 15:41, Grygorii Strashko wrote: > On 11/11/2015 12:13 PM, Jon Hunter wrote: >> >>>

Re: drm: Bogus WARN() in drm_atomic_helper_update_legacy_modeset_state() ?

2015-11-12 Thread Liviu Dudau
On Thu, Nov 12, 2015 at 02:34:11PM +0100, Thierry Reding wrote: > On Thu, Nov 12, 2015 at 06:49:38PM +0800, Mark yao wrote: > > On 2015年11月12日 18:36, Liviu Dudau wrote: > > >On Thu, Nov 12, 2015 at 04:32:33PM +0800, Mark yao wrote: > > >>On 2015年11月10日 23:01, Liviu Dudau wrote: > > >> > > >> H

Re: [PATCH v5] net: ethernet: add driver for Aurora VLSI NB8800 Ethernet controller

2015-11-12 Thread Måns Rullgård
Mason writes: > On 10/11/2015 20:25, Måns Rullgård wrote: > >> Mason writes: >> >>> On 10/11/2015 17:14, Mans Rullgard wrote: >>> This adds a driver for the Aurora VLSI NB8800 Ethernet controller. It is an almost complete rewrite of a driver originally found in a Sigma Designs 2.6

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-12 Thread Oleg Nesterov
On 11/12, Boqun Feng wrote: > > On Wed, Nov 11, 2015 at 08:39:53PM +0100, Oleg Nesterov wrote: > > > > object_t *object; > > spinlock_t lock; > > > > void update(void) > > { > > object_t *o; > > > > spin_lock(&lock); > > o = READ_ONCE(object); > >

Re: [Patch v7 4/7] PCI/ACPI: Add interface acpi_pci_root_create()

2015-11-12 Thread Jiang Liu
On 2015/11/12 21:21, Tomasz Nowicki wrote: > On 12.11.2015 09:43, Jiang Liu wrote: >> On 2015/11/12 1:46, Lorenzo Pieralisi wrote: >>> On Tue, Nov 10, 2015 at 01:50:46PM +0800, Jiang Liu wrote: >>> >>> [...] >>> >> In particular, I would like to understand, for an eg DWordIO >> descriptor,

[PATCH v2 3/5] arm: dts: add dm816x pwm property to timers

2015-11-12 Thread Neil Armstrong
Adds ti,timer-pwm property to timers 4 to 7 to permit usage of their PWM output fonctionnality via the dmtimer driver. Cc: Brian Hutchinson Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/dm816x.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/dm816x.dtsi b/arc

[PATCH v2 2/5] arm: dts: add dm816x missing spi DT dma handles

2015-11-12 Thread Neil Armstrong
Add the missing SPI controller DMA handler in the dm816x DT node, only properties for the two channels on four were present. Cc: Brian Hutchinson Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/dm816x.dtsi | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/b

[PATCH v2 0/5] arm: dts: complete dm816x device tree

2015-11-12 Thread Neil Armstrong
In order to fix support for the dm816x platform, add missing bits in the dm816x dtsi and cleanup OCP. The last patch adds support for the omap4-hwspinlock. v2: add ocp hwmod cleanup Neil Armstrong (5): arm: dts: add dm816x missing #mbox-cells arm: dts: add dm816x missing spi DT dma handles

[PATCH v2 4/5] arm: dts: remove dm816x invalid DT l3_main hwmod

2015-11-12 Thread Neil Armstrong
Remove invalid l3_main hwmod entry from dm816x DT ocp node. Cc: Brian Hutchinson Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/dm816x.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/dm816x.dtsi b/arch/arm/boot/dts/dm816x.dtsi index 51ad4a9..b9feeea 100644 --- a/a

Re: [PATCH 0/3] Infinite loops in microcode while running guests

2015-11-12 Thread Jan Kiszka
On 2015-11-11 14:12, Austin S Hemmelgarn wrote: > On 2015-11-11 08:07, Paolo Bonzini wrote: >> >> >> On 11/11/2015 13:47, Austin S Hemmelgarn wrote: >>> I just finished running a couple of tests in a KVM instance running >>> nested on a Xen HVM instance, and found no issues, so for the set as

[PATCH v2 5/5] arm: dts: Add omap4-hwspinlock support in dm816x

2015-11-12 Thread Neil Armstrong
Add dm816x DT entries for omap4-hwspinlock support as hwmod spinbox. Cc: Brian Hutchinson Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/dm816x.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/dm816x.dtsi b/arch/arm/boot/dts/dm816x.dtsi index b9feeea..eb9be

[PATCH v2 1/5] arm: dts: add dm816x missing #mbox-cells

2015-11-12 Thread Neil Armstrong
Add missing #mbox-cells for dm816x mbox DT node. Cc: Brian Hutchinson Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/dm816x.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/dm816x.dtsi b/arch/arm/boot/dts/dm816x.dtsi index 3c99cfa..a7a34e4 100644 --- a/arch/arm/bo

[PATCH] stmmac: avoid ipq806x constant overflow warning

2015-11-12 Thread Arnd Bergmann
Building dwmac-ipq806x on a 64-bit architecture produces a harmless warning from gcc: stmmac/dwmac-ipq806x.c: In function 'ipq806x_gmac_probe': include/linux/bitops.h:6:19: warning: overflow in implicit constant conversion [-Woverflow] val = QSGMII_PHY_CDR_EN | stmmac/dwmac-ipq806x.c:333:8: not

Re: [PATCH 1/4] arm: omap2+: add missing HWMOD_NO_IDLEST in 81xx hwmod data

2015-11-12 Thread Neil Armstrong
On 10/24/2015 12:09 PM, Neil Armstrong wrote: > Hi, > > 2015-10-24 3:21 GMT+02:00 Tony Lindgren : >> >> Hi, >> >> * Neil Armstrong [151022 02:19]: >>> Add missing HWMOD_NO_IDLEST hwmod flag for entries no >>> having omap4 clkctrl values. >> >> Have you checked this is the case both in dm814x and

[PATCH] pinctrl: at91-pio4: use %pr format string for resource

2015-11-12 Thread Arnd Bergmann
resource_size_t may be defined as 32 or 64 bit depending on configuration, so it cannot be printed using the normal format strings, as gcc correctly warns: pinctrl-at91-pio4.c: In function 'atmel_pinctrl_probe': pinctrl-at91-pio4.c:1003:41: warning: format '%u' expects argument of type 'unsigned

Re: [PATCH v2 0/6] net: dsa: mv88e6060: cleanup and fix setup

2015-11-12 Thread Neil Armstrong
On 11/10/2015 05:14 PM, Andrew Lunn wrote: > On Tue, Nov 10, 2015 at 04:51:09PM +0100, Neil Armstrong wrote: >> This patchset introduces some fixes and a registers addressing cleanup for >> the mv88e6060 DSA driver. > > Hi Neil > > It is normal for netdev to put into the email subject of patches

[PATCH] dma: at_xdmac: use %pad format string for dma_addr_t

2015-11-12 Thread Arnd Bergmann
dma_addr_t may be defined as 32 or 64 bit depending on configuration, so it cannot be printed using the normal format strings, as gcc correctly warns: drivers/dma/at_xdmac.c: In function 'at_xdmac_interleaved_queue_desc': drivers/dma/at_xdmac.c:922:51: warning: format '%x' expects argument of type

Re: [PATCH 1/2] tools: Actually install tmon in the install rule

2015-11-12 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 11, 2015 at 02:25:33PM -0800, Kamal Mostafa escreveu: > Signed-off-by: Kamal Mostafa > --- > tools/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks, applied both patches. - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

[PATCH] dma: at_hdmac: use %pad format string for dma_addr_t

2015-11-12 Thread Arnd Bergmann
dma_addr_t may be defined as 32 or 64 bit depending on configuration, so it cannot be printed using the normal format strings, as gcc correctly warns: drivers/dma/at_hdmac.c: In function 'atc_prep_dma_interleaved': drivers/dma/at_hdmac.c:731:28: warning: format '%x' expects argument of type 'unsi

Re: module: save load_info for livepatch modules

2015-11-12 Thread Miroslav Benes
On Thu, 12 Nov 2015, Petr Mladek wrote: > On Wed 2015-11-11 23:44:08, Jessica Yu wrote: > > +++ Petr Mladek [11/11/15 15:31 +0100]: > > >On Mon 2015-11-09 23:45:52, Jessica Yu wrote: > > >>diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c > > >>index 6e53441..087a8c7 100644 > > >>---

[PATCH] mmc: dw_mmc: use resource_size_t to store physical address

2015-11-12 Thread Arnd Bergmann
The dw_mmc driver stores the physical address of the MMIO registers in a pointer, which requires the use of type casts, and is actually broken if anyone ever has this device on a 32-bit SoC in registers above 4GB. Gcc warns about this possibility when the driver is built with ARM LPAE enabled: mmc

[PATCH] ARM64: mark cpus_have_hwcap as __maybe_unused

2015-11-12 Thread Arnd Bergmann
cpus_have_hwcap() is defined as a 'static' function an only used in one place that is inside of an #ifdef, so we get a warning when the only user is disabled: arch/arm64/kernel/cpufeature.c:699:13: warning: 'cpus_have_hwcap' defined but not used [-Wunused-function] This marks the function as __m

[PATCH] sched/rt: hide push_irq_work_func declaration

2015-11-12 Thread Arnd Bergmann
The push_irq_work_func() function is conditionally defined only when both CONFIG_SMP and HAVE_RT_PUSH_IPI are defined, but the forward declaration remains visibile without HAVE_RT_PUSH_IPI, causing a gcc warning in ARM64 allnoconfig: kernel/sched/rt.c:68:13: warning: 'push_irq_work_func' declared

[GIT PULL] tracing: Three more clean up patches for 4.4

2015-11-12 Thread Steven Rostedt
Linus, This contains three more clean up patches. One patch is needed to make tracing work without debugfs now that tracing uses its own tracefs. The second is removing an unused variable. The third is fixing a warning about unused variables when MAX_TRACER is not configured. Note, this warnin

Re: [PATCH] mm: change trace_mm_vmscan_writepage() proto type

2015-11-12 Thread Steven Rostedt
On Thu, 12 Nov 2015 15:42:33 +0800 yalin wang wrote: > Move trace_reclaim_flags() into trace function, > so that we don't need caculate these flags if the trace is disabled. > > Signed-off-by: yalin wang Reviewed-by: Steven Rostedt -- Steve -- To unsubscribe from this list: send the line "un

[PATCH] clk: st: avoid uninitialized variable use

2015-11-12 Thread Arnd Bergmann
quadfs_pll_fs660c32_round_rate prints a few structure members that are never initialized, and also doesn't print the only one it cares about. We get a gcc warning about the ones that are printed: clk/st/clkgen-fsyn.c:560:93: warning: 'params.sdiv' may be used uninitialized in this function clk/st

Re: [PATCH] vhost: move is_le setup to the backend

2015-11-12 Thread Greg Kurz
On Thu, 12 Nov 2015 15:46:30 +0200 "Michael S. Tsirkin" wrote: > On Fri, Oct 30, 2015 at 12:42:35PM +0100, Greg Kurz wrote: > > The vq->is_le field is used to fix endianness when accessing the vring via > > the cpu_to_vhost16() and vhost16_to_cpu() helpers in the following cases: > > > > 1) host

URGENT ATTENTION:

2015-11-12 Thread Lucas McCleary
Greetings from Greece, Bearing in mind the nature of the content of this letter coming from a person without any referral, I apologize for any inconvenience, but please read and objectively consider if we can work together. It is a business proposal that i believe will benefit both parties if

Re: [PATCH V4] mm: fix kernel crash in khugepaged thread

2015-11-12 Thread Steven Rostedt
On Thu, 12 Nov 2015 16:21:02 +0800 yalin wang wrote: > This crash is caused by NULL pointer deference, in page_to_pfn() marco, > when page == NULL : > > [ 182.639154 ] Unable to handle kernel NULL pointer dereference at virtual > address > add the trace point with TP_CONDITION(page)

Re: [PATCH 2/3 v4] livepatch: add old_sympos as disambiguator field to klp_reloc

2015-11-12 Thread Petr Mladek
On Wed 2015-11-11 11:57:31, Josh Poimboeuf wrote: > On Wed, Nov 11, 2015 at 10:29:00AM -0600, Chris J Arges wrote: > > diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c > > index 26f9778..4eb8691 100644 > > --- a/kernel/livepatch/core.c > > +++ b/kernel/livepatch/core.c > > @@ -261,7 +

Re: [PATCH] mm: change mm_vmscan_lru_shrink_inactive() proto types

2015-11-12 Thread Steven Rostedt
On Thu, 12 Nov 2015 15:54:56 +0800 yalin wang wrote: > Move node_id zone_idx shrink flags into trace function, > so thay we don't need caculate these args if the trace is disabled, > and will make this function have less arguments. > > Signed-off-by: yalin wang Reviewed-by: Steven Rostedt --

Re: [PATCH 09/10 RFC] KVM: x86: MMU: Move parent_pte handling from kvm_mmu_get_page() to link_shadow_page()

2015-11-12 Thread Paolo Bonzini
On 12/11/2015 12:56, Takuya Yoshikawa wrote: > diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h > index 9d21b44..f414ca6 100644 > --- a/arch/x86/kvm/paging_tmpl.h > +++ b/arch/x86/kvm/paging_tmpl.h > @@ -598,7 +598,7 @@ static int FNAME(fetch)(struct kvm_vcpu *vcpu, gva_t addr

Re: [RFC][PATCH] mips: Fix arch_spin_unlock()

2015-11-12 Thread Paul E. McKenney
On Thu, Nov 12, 2015 at 01:31:23PM +0100, Peter Zijlstra wrote: > Hi > > I think the MIPS arch_spin_unlock() is borken. > > spin_unlock() must have RELEASE semantics, these require that no LOADs > nor STOREs leak out from the critical section. > > >From what I know MIPS has a relaxed memory mode

Re: [PATCH] smpboot: Add smpboot state variables instead of reusing CPU hotplug states

2015-11-12 Thread Daniel Wagner
Hi Paul, On 11/07/2015 08:17 AM, Paul E. McKenney wrote: > On Thu, Oct 15, 2015 at 01:32:44PM +0200, Daniel Wagner wrote: >> The cpu hotplug state machine in smpboot.c is reusing the states from >> cpu.h. That is confusing when it comes to the CPU_DEAD_FROZEN usage. >> Paul explained to me that he

[PATCH v3 0/5] tty: Introduce software RS485 direction control support

2015-11-12 Thread Matwey V. Kornilov
Changes from v2: - Introduced SER_RS485_SOFTWARE to show that software implementation is being used - serial8250_rs485_config is located as required - Timers are used to implement delay_before and delay_after timeouts -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

[PATCH v3 5/5] tty: Add software emulated RS485 support for 8250

2015-11-12 Thread Matwey V. Kornilov
Implementation of software emulation of RS485 direction handling is based on omap-serial driver. Before and after transmission RTS is set to the appropriate value. Signed-off-by: Matwey V. Kornilov --- drivers/tty/serial/8250/8250_port.c | 152 ++-- include/linux/

[PATCH v3 3/5] tty: Implement default fallback serial8250_rs485_config

2015-11-12 Thread Matwey V. Kornilov
When 8250 driver doesn't have its own hardware RS485 support and doesn't want to override rs485_config callback, then default serial8250_rs485_config is used. It just stores supplied by user-space config and sets SER_RS485_SOFTWARE Signed-off-by: Matwey V. Kornilov --- drivers/tty/serial/8250/82

Re: [PATCH 0/3] Infinite loops in microcode while running guests

2015-11-12 Thread Paolo Bonzini
On 12/11/2015 15:08, Jan Kiszka wrote: > On 2015-11-11 14:12, Austin S Hemmelgarn wrote: >> On 2015-11-11 08:07, Paolo Bonzini wrote: >>> >>> >>> On 11/11/2015 13:47, Austin S Hemmelgarn wrote: > I just finished running a couple of tests in a KVM instance running nested on a Xen HVM

[PATCH v3 2/5] tty: Introduce SER_RS485_SOFTWARE read-only flag for struct serial_rs485

2015-11-12 Thread Matwey V. Kornilov
This flag is supposed to be used by uart drivers using software rs485 direction control. Signed-off-by: Matwey V. Kornilov --- include/uapi/linux/serial.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/serial.h b/include/uapi/linux/serial.h index 25331f9..95b15ca 1006

[PATCH] ARM64: build vdso without libgcov

2015-11-12 Thread Arnd Bergmann
On a cross-toolchain without glibc support, libgcov may not be available, and attempting to build an arm64 kernel with GCOV enabled then results in a build error: /home/arnd/cross-gcc/lib/gcc/aarch64-linux/5.2.1/../../../../aarch64-linux/bin/ld: cannot find -lgcov We don't really want to link li

Re: [RFC PATCH 1/2] genirq: Add runtime resume/suspend support for IRQ chips

2015-11-12 Thread Lars-Peter Clausen
On 11/12/2015 03:02 PM, Jon Hunter wrote: [...] One easy way out might be to always call pm_get/pm_but from bus_lock,/bus_unlock. This way the chip is guaranteed to be powered up when accessed happens. In addition pm_get is called when the IRQ is request and pm_put is called whe

[PATCH v3 4/5] tty: Move serial8250_stop_rx in front of serial8250_start_tx

2015-11-12 Thread Matwey V. Kornilov
Signed-off-by: Matwey V. Kornilov --- drivers/tty/serial/8250/8250_port.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index 067ef55..3f6d8a2 100644 --- a/drivers/tty/ser

[PATCH v3 1/5] tty: Introduce UART_CAP_HW485

2015-11-12 Thread Matwey V. Kornilov
Introduce new capability UART_CAP_HW485 to mark 8250 UARTs which have hardware support of line direction control. Signed-off-by: Matwey V. Kornilov --- drivers/tty/serial/8250/8250.h | 1 + drivers/tty/serial/8250/8250_fintek.c | 1 + drivers/tty/serial/8250/8250_lpc18xx.c | 1 + driver

[PATCH] ARM64: use linux/types.h in kvm.h

2015-11-12 Thread Arnd Bergmann
We should always use linux/types.h instead of asm/types.h for consistency, and Kbuild actually warns about it: ./usr/include/asm/kvm.h:35: include of is preferred over This patch does as Kbuild asks us. Signed-off-by: Arnd Bergmann --- Found on ARM64 allmodconfig diff --git a/arch/arm64/inc

[PATCH] media: fix kernel hang in media_device_unregister() during device removal

2015-11-12 Thread Shuah Khan
Media core drivers (dvb, v4l2, bridge driver) unregister their entities calling media_device_unregister_entity() during device removal from their unregister paths. In addition media_device_unregister() tries to unregister entity calling media_device_unregister_entity() for each one of them. This ad

Re: [PATCH v3 1/2] devicetree: add binding for Aurora VLSI NB8800 Ethernet controller

2015-11-12 Thread Rob Herring
On Mon, Oct 26, 2015 at 09:34:54PM +, Mans Rullgard wrote: > This adds a binding for the Aurora VLSI NB8800 Ethernet controller > using the "aurora,nb8800" compatible string. When used in Sigma > Designs chips a few additional features are available. These variants > are indicated by a "sigma

Re: [PATCH] dma: at_hdmac: use %pad format string for dma_addr_t

2015-11-12 Thread Nicolas Ferre
Le 12/11/2015 15:18, Arnd Bergmann a écrit : > dma_addr_t may be defined as 32 or 64 bit depending on configuration, > so it cannot be printed using the normal format strings, as > gcc correctly warns: > > drivers/dma/at_hdmac.c: In function 'atc_prep_dma_interleaved': > drivers/dma/at_hdmac.c:731

Re: [PATCH] KVM: svm: add support for RDTSCP

2015-11-12 Thread Joerg Roedel
Hi Paolo, On Thu, Nov 12, 2015 at 02:49:16PM +0100, Paolo Bonzini wrote: > RDTSCP was never supported for AMD CPUs, which nobody noticed because > Linux does not use it. But exactly the fact that Linux does not > use it makes the implementation very simple; we can freely trash > MSR_TSC_AUX while

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-12 Thread Paul E. McKenney
On Thu, Nov 12, 2015 at 04:00:58PM +0100, Oleg Nesterov wrote: > On 11/12, Boqun Feng wrote: > > > > On Wed, Nov 11, 2015 at 08:39:53PM +0100, Oleg Nesterov wrote: > > > > > > object_t *object; > > > spinlock_t lock; > > > > > > void update(void) > > > { > > > object_t *o; > > > >

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