Re: [PATCH] spi-nor: use ERR_CAST in return

2017-02-13 Thread Nicholas Mc Guire
On Mon, Feb 13, 2017 at 08:53:11AM +0100, Boris Brezillon wrote: > On Mon, 13 Feb 2017 07:35:52 + > Nicholas Mc Guire wrote: > > > On Sun, Feb 12, 2017 at 11:04:10PM +0100, Boris Brezillon wrote: > > > +Mika > > > > > > On Sun, 12 Feb 2017 22:45:43 +0100 > > > Boris Brezillon wrote: > > >

RE: [PATCH v3 1/2] mtd: ifc: Update dependency of IFC for LS1021A

2017-02-13 Thread Alison Wang
> On Mon, 13 Feb 2017 07:39:41 + > Alison Wang wrote: > > > Hi, Boris, > > > > Sorry, I forgot to change them. Should I resend them or you help > to fix that when applying? > > I can fix that when applying, no need to resend. > Note that you missed 4.11 (already sent my PR to Brian), I'l

Re: 4.10-rc1: thinkpad x60: who ate my cpu?

2017-02-13 Thread Pavel Machek
Hi! > >>>And now it is: > >>>[692517.868523] ACPI: Preparing to enter system sleep state S3 > >>>[692518.172074] ACPI : EC: EC stopped > >>>[692518.172076] PM: Saving platform NVS memory > >>>[692518.172269] Disabling non-boot CPUs ... > >>>[692518.172269] ACPI: Low-level resume complete > >>>[692

Re: [lkp] [x86/acpi] dc6db24d24: BUG: unable to handle kernel paging request at 0000116007090008

2017-02-13 Thread Dou Liyang
Hi Xiaolong [...] Sorry for my neglect, the result for fd74da217df7d4bd25e95411da showed no dmesg because it's incomplete run and has no demsg stat at all. Is that means: you have already tested the Linux branch which contains the commit fd74da217df7d. and it doesn't work well. Btw, Why the

Re: [PATCH] atmel_serial: Use the fractional divider when possible

2017-02-13 Thread Richard Genoud
2017-02-10 16:49 GMT+01:00 Ludovic Desroches : > On Fri, Feb 10, 2017 at 04:24:46PM +0100, Romain Izard wrote: >> The fractional baud rate generator is available when using the >> asynchronous mode of Atmel USART controllers. It makes it possible to >> use higher baudrates, in exchange for a less p

Re: [PATCH 7/8] drm/sun4i: Add various bits and pieces to enable LVDS support on sun4i

2017-02-13 Thread Maxime Ripard
On Sat, Feb 11, 2017 at 07:44:04PM +0200, Priit Laes wrote: > TODO: We still rely on u-boot for lvds reset bit setup :( That needs to be figured out before merging :/ You also have a number of checkpatch warnings / errors that needs to be fixed. > > Signed-off-by: Priit Laes > --- > drivers/g

[PATCH V2 RFC] mtd: spi-nor: intel: provide a range for poll_timout

2017-02-13 Thread Nicholas Mc Guire
icheck finding reported and one spars finding (in separate patches) Patch is against 4.10-rc7 (localversion-next is next-20170213) drivers/mtd/spi-nor/intel-spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/intel-spi.c b/drivers/mtd/spi-nor/intel-spi.c

[PATCH V2] mtd: spi-nor: intel: use true/false for boolean

2017-02-13 Thread Nicholas Mc Guire
tested with: multi_v7_defconfig (implies CONFIG_MTD_SPI_NOR=y) Patch is against 4.10-rc7 (localversion-next is next-20170213) drivers/mtd/spi-nor/intel-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/intel-spi.c b/drivers/mtd/spi-nor/intel-spi.c index

Re: [PATCH 4/8] drm/sun4i: Add optional 'mode' property to TCON

2017-02-13 Thread Maxime Ripard
Hi, On Sat, Feb 11, 2017 at 07:44:01PM +0200, Priit Laes wrote: > Add variable to enable either 'rgb' or 'lvds' output. > > Signed-off-by: Priit Laes > --- > Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/

Re: [lkp-robot] [platform/x86] b925ff7dcd: BUG:unable_to_handle_kernel

2017-02-13 Thread Michał Kępień
> Michael > > On Mon, Feb 13, 2017 at 10:40:15AM +0800, kernel test robot wrote: > > FYI, we noticed the following commit: > > > > commit: b925ff7dcd1fc45b86baaebd3442f8b484123716 ("platform/x86: > > fujitsu-laptop: only register backlight device if FUJ02B1 is present") > > url: > > https://git

[PATCH] mtd: spi-nor: intel: use ERR_CAST in return statement

2017-02-13 Thread Nicholas Mc Guire
(localversion-next is next-20170213) drivers/mtd/spi-nor/intel-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/intel-spi.c b/drivers/mtd/spi-nor/intel-spi.c index 2956f2c..1a6de4b 100644 --- a/drivers/mtd/spi-nor/intel-spi.c +++ b/drivers/mtd/spi-nor/intel-spi.c

Re: [PATCH] staging: greybus: arpc.h: remove duplicate line.

2017-02-13 Thread Johan Hovold
On Fri, Feb 10, 2017 at 11:16:37PM -0500, Nathan Howard wrote: > Fix checkpatch.pl issue of the form: > "CHECK: Please don't use multiple blank lines". Don't take checkpatch too seriously. Using double blank lines as a separator is perfectly fine. Thanks, Johan

[PATCH v1 1/3] ASoC: zx-tdm: add documentation for zte's tdm controller

2017-02-13 Thread Baoyou Xie
This patch adds dt-binding documentation for zte's tdm controller. Signed-off-by: Baoyou Xie --- .../devicetree/bindings/sound/zte,tdm.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/zte,tdm.txt diff --git a/

[PATCH v1 3/3] ASoC: zx-tdm: add zte's tdm controller driver

2017-02-13 Thread Baoyou Xie
This patch adds tdm controller driver for zte's SoC family. Signed-off-by: Baoyou Xie --- sound/soc/zte/Kconfig | 8 + sound/soc/zte/Makefile | 1 + sound/soc/zte/zx-tdm.c | 466 + 3 files changed, 475 insertions(+) create mode 100644 sound/s

[PATCH v1 2/3] MAINTAINERS: add zte tdm controller driver to ARM ZTE architecture

2017-02-13 Thread Baoyou Xie
Add the zte tdm controller driver as maintained by ARM ZTE architecture maintainers, as they're parts of the core IP. Signed-off-by: Baoyou Xie --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e63063b..1269eb6 100644 --- a/MAINTAINERS +++ b/MA

Re: [PATCH] tools:perf:scripting-engines: Fix compile error with some perl5 versions

2017-02-13 Thread Jiri Olsa
On Sun, Feb 12, 2017 at 10:46:55AM +0800, Wang YanQing wrote: > Fix below compile error: > CC util/scripting-engines/trace-event-perl.o > In file included from /usr/lib/perl5/5.22.2/i686-linux/CORE/perl.h:5673:0, > from util/scripting-engines/trace-event-perl.c:31: > /usr/lib

Re: [PATCH v2] gpio: return NULL from gpiod_get_optional when GPIOLIB is disabled

2017-02-13 Thread Dmitry Torokhov
On Mon, Feb 13, 2017 at 08:45:06AM +0100, Uwe Kleine-König wrote: > Hello, > > On Sun, Feb 12, 2017 at 05:15:01PM -0800, Dmitry Torokhov wrote: > > On Sun, Feb 12, 2017 at 05:13:55PM -0800, Dmitry Torokhov wrote: > > > Given the intent behind gpiod_get_optional() and friends it does not make > > >

Re: [PATCH v2] gpio: return NULL from gpiod_get_optional when GPIOLIB is disabled

2017-02-13 Thread Uwe Kleine-König
On Mon, Feb 13, 2017 at 08:45:06AM +0100, Uwe Kleine-König wrote: > Hello, > > On Sun, Feb 12, 2017 at 05:15:01PM -0800, Dmitry Torokhov wrote: > > On Sun, Feb 12, 2017 at 05:13:55PM -0800, Dmitry Torokhov wrote: > > > Given the intent behind gpiod_get_optional() and friends it does not make > > >

[PATCH V3 4/4] PCI: exynos: support the using PHY generic framework

2017-02-13 Thread Jaehoon Chung
Switch the pci-exynos driver to generic PHY framework. At the same time backward compatibility is preserved: Warning will be printed for old DTB. Refer to the binding file: - Documentation/devictree/bindings/pci/samsung,exynos5440-pcie.txt Signed-off-by: Jaehoon Chung Acked-by: Krzysztof Kozlows

[PATCH V3 2/4] phy: phy-exynos-pcie: Add support for Exynos PCIe phy

2017-02-13 Thread Jaehoon Chung
This patch adds support for Generic PHY framework about Exynos SoCs. Current Exynos PCIe driver doesn't use the PHY framework. It's making a difficult to upstream the other Exynos variants because of different PHY registers. Move the codes relevant to PHY from Exnyos PCIe driver to PHY Exynos PCIe

[PATCH V3 1/4] Documetation: samsung-phy: add the exynos-pcie-phy binding

2017-02-13 Thread Jaehoon Chung
Adds the exynos-pcie-phy binding for Exynos PCIe PHY. This is for using generic PHY framework. Signed-off-by: Jaehoon Chung Acked-by: Rob Herring --- Changelog on V3: - None Changelog on V2: - Remove the child node. - Add 2nd address to the parent reg prop. Documentation/devicetree/bindings/p

[PATCH V3 3/4] Documetation: binding: modify the exynos5440 pcie binding

2017-02-13 Thread Jaehoon Chung
According to using PHY framework, updates the exynos5440-pcie binding. For maintaining backward compatibility, leaves the current dt-binding. (It should be deprecated.) Recommends to use the Phy Framework and "config" property to follow the designware-pcie binding. If you use the old way, can see

[PATCH V3 0/4] PCI: exynos: use the PHY generic framework

2017-02-13 Thread Jaehoon Chung
This patcheset is for using PHY generic framework. Current pci-exyns doesn't use the phy framework since there haven't been on PHY subsystem when Exynos5440 had bean upstreamed. It's making a difficult to upstream the other Exynos variants because of different PHY registers. This patcheset has th

Re: [PATCH v13 06/12] usb: xhci: use bus->sysdev for DMA configuration

2017-02-13 Thread Alexander Sverdlin
Hi! On 11/02/17 02:27, Peter Chen wrote: > For xhci-hcd platform device, all the DMA parameters are not > configured properly, notably dma ops for dwc3 devices. So, set > the dma for xhci from sysdev. sysdev is pointing to device that > is known to the system firmware or hardware. > > Cc: Baolin

Re: [PATCH v4 3/3] MIPS: ath79: Fix the USB PHY reset names

2017-02-13 Thread Alban
On Sat, 11 Feb 2017 22:01:29 + James Hogan wrote: > Hi Alban, > > On Sun, Feb 05, 2017 at 08:52:32PM +0100, Alban wrote: > > From: Alban Bedel > > > > The binding for the USB PHY went thru before the driver. However the > > new version of the driver now use the PHY core support for reset,

Re: [PATCH 3/3] mfd: wm831x: Add device tree binding document

2017-02-13 Thread Lee Jones
On Fri, 10 Feb 2017, Charles Keepax wrote: > This is just a very simple initial binding, supporting only registering > the chip and the GPIOs. More features will be added as support for > device tree in the driver is expanded. > > Signed-off-by: Charles Keepax > --- > Documentation/devicetree/b

Re: [PATCH 5/8] drm/sun4i: Add encoder type argument to sun4i_tcon0_mode_set

2017-02-13 Thread Maxime Ripard
On Sat, Feb 11, 2017 at 07:44:02PM +0200, Priit Laes wrote: > Depending on the output type, we have to enable/disable some > bits conditionally. > > Signed-off-by: Priit Laes > --- > drivers/gpu/drm/sun4i/sun4i_rgb.c | 2 +- > drivers/gpu/drm/sun4i/sun4i_tcon.c | 3 ++- > drivers/gpu/drm/sun4i/

Re: [PATCH 1/3] kprobes: introduce weak variant of kprobe_exceptions_notify

2017-02-13 Thread Naveen N. Rao
On 2017/02/10 02:41PM, Michael Ellerman wrote: > "Naveen N. Rao" writes: > > > kprobe_exceptions_notify() is not used on some of the architectures such > > as arm[64] and powerpc anymore. Introduce a weak variant for such > > architectures. > > I'll merge patch 1 & 3 via the powerpc tree for v4.

Re: [PATCH] MIPS: Allow compressed images to be loaded at the usual address

2017-02-13 Thread Alban
On Thu, 9 Feb 2017 13:22:37 +0100 Jonas Gorski wrote: > Hi, > > On 5 February 2017 at 21:21, Alban wrote: > > From: Alban Bedel > > > > Normally compressed images have to be loaded at a different address to > > allow the decompressor to run. This add an option to let vmlinuz copy > > itself to

Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box )

2017-02-13 Thread Thomas Gleixner
On Mon, 13 Feb 2017, Mike Galbraith wrote: > kernel/time/tick-broadcast.c |5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > --- a/kernel/time/tick-broadcast.c > +++ b/kernel/time/tick-broadcast.c > @@ -357,6 +357,7 @@ void tick_broadcast_control(enum tick_br > struct clock

Re: [PATCH v2 1/4] [media] exynos-gsc: Use 576p instead 720p as a threshold for colorspaces

2017-02-13 Thread Hans Verkuil
On 02/10/2017 08:38 PM, Russell King - ARM Linux wrote: > On Thu, Feb 09, 2017 at 05:04:17PM -0300, Thibault Saunier wrote: >> From: Javier Martinez Canillas >> >> The media documentation says that the V4L2_COLORSPACE_SMPTE170M colorspace >> should be used for SDTV and V4L2_COLORSPACE_REC709 for H

Please turn "Cannot use CONFIG_STACK_VALIDATION" into build error

2017-02-13 Thread Marc MERLIN
Hi Josh, I'll start with the story as to why. i've lost more hours than I care to list, because I was unable to build the virtualbox kernel driver with newer kernels. Sadly, it gives no useful debug info outside of make[1]: *** No rule to make target '/tmp/vbox.0/linux/SUPDrv-linux.o', needed by

Re: 4.10-rc1: thinkpad x60: who ate my cpu?

2017-02-13 Thread Thomas Gleixner
On Mon, 13 Feb 2017, Pavel Machek wrote: > cd /sys/devices/system/cpu/cpu1 > while true; do echo 0 > online; echo 1 > online; done > > ...crashes x60 with 4.10-rc in few minutes. [Which is bad -- it should > not die, but also good -- this is easier to reproduce then running 100 > suspend cycles.]

[tip:timers/urgent] tick/broadcast: Prevent deadlock on tick_broadcast_lock

2017-02-13 Thread tip-bot for Mike Galbraith
Commit-ID: 202461e2f3c15dbfb05825d29ace0d20cdf55fa4 Gitweb: http://git.kernel.org/tip/202461e2f3c15dbfb05825d29ace0d20cdf55fa4 Author: Mike Galbraith AuthorDate: Mon, 13 Feb 2017 03:31:55 +0100 Committer: Thomas Gleixner CommitDate: Mon, 13 Feb 2017 09:49:31 +0100 tick/broadcast: Preve

Re: [PATCH 3/3] mfd: wm831x: Add device tree binding document

2017-02-13 Thread Charles Keepax
On Mon, Feb 13, 2017 at 08:31:58AM +, Lee Jones wrote: > On Fri, 10 Feb 2017, Charles Keepax wrote: > > > This is just a very simple initial binding, supporting only registering > > the chip and the GPIOs. More features will be added as support for > > device tree in the driver is expanded. >

Re: [PATCH v2] gpio: return NULL from gpiod_get_optional when GPIOLIB is disabled

2017-02-13 Thread Uwe Kleine-König
Hello Dmitry, On Mon, Feb 13, 2017 at 12:20:08AM -0800, Dmitry Torokhov wrote: > On Mon, Feb 13, 2017 at 08:45:06AM +0100, Uwe Kleine-König wrote: > > My concern is still there. This might break some setups. IMHO it's not > > ok to request that a device in a certain configuration only works when >

Re: [PATCH] thermal: mt8173: minor mtk_thermal.c cleanups

2017-02-13 Thread Dawei Chien
Hi, Matthias, On Thu, 2017-02-09 at 22:25 +0100, Matthias Brugger wrote: > > On 02/08/2017 06:31 AM, Dawei Chien wrote: > > Thermal driver should read TEMP_MSR3 if thermal bank with 4 sensors. > > However, Currently thermal driver don't need read TEMP_MSR3 since > > thermal controller only use 3

RE: [PATCH v2 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP

2017-02-13 Thread Paul Durrant
> -Original Message- > From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] > Sent: 10 February 2017 17:45 > To: Paul Durrant ; xen-de...@lists.xenproject.org; > linux-kernel@vger.kernel.org > Cc: Juergen Gross > Subject: Re: [PATCH v2 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP > > On

Re: [PATCH 6/6] m68k: paging_init - remove dead code

2017-02-13 Thread Geert Uytterhoeven
On Sun, Feb 12, 2017 at 10:12 PM, Mathias Krause wrote: > The macro TEST_VERIFY_AREA can never be defined as there's no > wp_works_ok variable. So just remove the dead code. > > Cc: Geert Uytterhoeven > Signed-off-by: Mathias Krause Thanks, applied with rewritten one-line summary to match subsy

Re: [PATCH 3/5] IB/hfi1: Adjust another size determination in hfi1_user_sdma_alloc_queues()

2017-02-13 Thread Johannes Thumshirn
On 02/10/2017 10:03 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 10 Feb 2017 08:50:45 +0100 > > * Pass a product for a call of the function "vmalloc_user" without storing > it in an intermediate variable. > > * Delete the local variable "memsize" which became unnecessary wi

Re: [PATCH] rbd: constify device_type structure

2017-02-13 Thread Ilya Dryomov
On Sat, Feb 11, 2017 at 7:44 AM, Bhumika Goyal wrote: > Declare device_type structure as const as it is only stored in the > type field of a device structure. This field is of type const, so add > const to the declaration of device_type structure. > > File size before: >textdata bss

Re: [PATCH v3 3/4] dmaengine: Add Broadcom SBA RAID driver

2017-02-13 Thread Anup Patel
On Fri, Feb 10, 2017 at 11:20 PM, Dan Williams wrote: > On Fri, Feb 10, 2017 at 1:07 AM, Anup Patel wrote: >> The Broadcom stream buffer accelerator (SBA) provides offloading >> capabilities for RAID operations. This SBA offload engine is >> accessible via Broadcom SoC specific ring manager. >> >

Re: [PATCH 3/20] staging: rtl8192u: Prefer using the BIT macro

2017-02-13 Thread SIMRAN SINGHAL
Ok, I will send this patch again with the proper label. But do I have to send all the patches again of this patch series? Thanks, Simran Singhal

Re: [PATCH 1/3] mfd: wm831x: Add basic device tree binding

2017-02-13 Thread Lee Jones
On Fri, 10 Feb 2017, Charles Keepax wrote: > Add the basic ability to register the device through device tree, more > work is needed to get each individual sub-driver functioning correctly > but this is enough to get the device to probe from device tree. > > Signed-off-by: Charles Keepax > --- >

Re: [PATCH 2/8] ARM: sun4i: Add display blocks for the sun4i dtsi.

2017-02-13 Thread Maxime Ripard
Hi, On Sat, Feb 11, 2017 at 07:43:59PM +0200, Priit Laes wrote: > Added basic display pipeline consisting of tcon, display backend and > frontend blocks. > > Signed-off-by: Priit Laes > --- > arch/arm/boot/dts/sun4i-a10.dtsi | 104 > +++ > 1 file changed, 10

Re: [PATCH 5/6] cris: remove unused wp_works_ok macro

2017-02-13 Thread Jesper Nilsson
On Sun, Feb 12, 2017 at 10:12:11PM +0100, Mathias Krause wrote: > It had no use since it's introduction in v2.4.1.2. Get rid of it. Agreed. Acked-by: Jesper Nilsson > Cc: Mikael Starvik > Signed-off-by: Mathias Krause > --- > arch/cris/include/arch-v10/arch/processor.h |3 --- > 1 file c

Re: [PATCH 1/3] mfd: wm831x: Add basic device tree binding

2017-02-13 Thread Charles Keepax
On Mon, Feb 13, 2017 at 09:16:03AM +, Lee Jones wrote: > On Fri, 10 Feb 2017, Charles Keepax wrote: > > > Add the basic ability to register the device through device tree, more > > work is needed to get each individual sub-driver functioning correctly > > but this is enough to get the device t

Re: [PATCH v3 21/24] media: imx: Add MIPI CSI-2 Receiver subdev driver

2017-02-13 Thread Philipp Zabel
Hi Steve, On Thu, 2017-02-09 at 15:51 -0800, Steve Longerbeam wrote: > > On 02/09/2017 03:49 PM, Steve Longerbeam wrote: > > > > > > On 02/08/2017 03:42 PM, Russell King - ARM Linux wrote: > >> On Wed, Feb 08, 2017 at 03:23:53PM -0800, Steve Longerbeam wrote: > Actually, this exact function

Re: [PATCH 2/8] ARM: sun4i: Add display blocks for the sun4i dtsi.

2017-02-13 Thread Chen-Yu Tsai
On Mon, Feb 13, 2017 at 5:16 PM, Maxime Ripard wrote: > Hi, > > On Sat, Feb 11, 2017 at 07:43:59PM +0200, Priit Laes wrote: >> Added basic display pipeline consisting of tcon, display backend and >> frontend blocks. >> >> Signed-off-by: Priit Laes >> --- >> arch/arm/boot/dts/sun4i-a10.dtsi | 104

[PATCH 1/1] extcon: ext-usb-gpio: do not enable USB as wakeup source by default

2017-02-13 Thread Peter Chen
Whether the USB port as a wakeup source should be determined by user, but not enabled by default. Signed-off-by: Peter Chen --- drivers/extcon/extcon-usb-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c

Re: [PATCH 00/10] ARM: davinci: add vpif display support

2017-02-13 Thread Sekhar Nori
Hi Bartosz, On Tuesday 07 February 2017 10:11 PM, Bartosz Golaszewski wrote: > The following series adds support for v4l2 display on da850-evm with > a UI board in device tree boot mode. > > Patches 1/10 - 5/10 deal with the device tree: we fix whitespace > errors in dts files and bindings, exten

RE: [PATCH 2/2] x86/vdso: Add VCLOCK_HVCLOCK vDSO clock read method

2017-02-13 Thread Thomas Gleixner
On Mon, 13 Feb 2017, Dexuan Cui wrote: > > From: Thomas Gleixner [mailto:t...@linutronix.de] > > Sent: Saturday, February 11, 2017 02:02 > > ... > > That's important if the stuff happens cross CPU. If the update happens on > > the same CPU then this is a different story and as there are VMexits >

[GIT PULL] Subsequent immutable branch between MFD and Input due for the v4.11 merge window

2017-02-13 Thread Lee Jones
Dmitry, Enjoy! The following changes since commit 7ce7d89f48834cefece7804d38fc5d85382edf77: Linux 4.10-rc1 (2016-12-25 16:13:08 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-input-v4.11-1 for you to fetch changes up to 6ccc

[PATCH] drm/bridge: analogix_dp: Don't return -EBUSY when msg->size is 0 in aux transaction

2017-02-13 Thread zain wang
The analogix_dp_transfer() will return -EBUSY if num_transferred is zero. But sometimes we will send a bare address packet to start the transaction, like drm_dp_i2c_xfer() show: .. /* Send a bare address packet to start the transaction. * Zero sized messages specify an

Re: [PATCH 3/5] IB/hfi1: Adjust another size determination in hfi1_user_sdma_alloc_queues()

2017-02-13 Thread SF Markus Elfring
>> @@ -443,8 +442,8 @@ int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata >> *uctxt, struct file *fp) >> if (!cq) >> goto cq_nomem; >> >> -memsize = PAGE_ALIGN(sizeof(*cq->comps) * hfi1_sdma_comp_ring_size); >> -cq->comps = vmalloc_user(memsize); >> +cq->comps = v

Re: [PATCH] gpio: dwapb: Add support for next generation of X-Gene SoC

2017-02-13 Thread Jamie Iles
Hi Linus, On Mon, Feb 06, 2017 at 11:21:09AM +0100, Linus Walleij wrote: > On Tue, Jan 31, 2017 at 8:43 PM, Hoan Tran wrote: > > > Next generation of X-Gene SoC's GPIO hardware register map is very > > similar to DW GPIO. It only differs by a few register addresses. > > This patch modifies DW GP

Re: [RFC PATCH 02/33] irqchip/gic-v3: Add VLPI/DirectLPI discovery

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > Add helper functions that probe for VLPI and DirectLPI properties. > > Signed-off-by: Marc Zyngier Reviewed-by: Thomas Gleixner

Re: [RFC PATCH 01/33] irqchip/gic-v3: Add redistributor iterator

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > In order to discover the VLPI properties, we need to iterate over > the redistributor regions. As we already have code that does this, > let's factor it out and make it slightly more generic. > > Signed-off-by: Marc Zyngier Reviewed-by: Thomas Gleixner

Re: 4.10-rc1: thinkpad x60: who ate my cpu?

2017-02-13 Thread Pavel Machek
Hi! On Mon 2017-02-13 09:48:41, Thomas Gleixner wrote: > On Mon, 13 Feb 2017, Pavel Machek wrote: > > cd /sys/devices/system/cpu/cpu1 > > while true; do echo 0 > online; echo 1 > online; done > > > > ...crashes x60 with 4.10-rc in few minutes. [Which is bad -- it should > > not die, but also good

[PATCH] sched/isolcpus: Show isolated cpu map

2017-02-13 Thread Kefeng Wang
The commit a6e4491c682a ("sched/isolcpus: Output warning when the 'isolcpus=' kernel parameter is invalid") adds an error message when specified cpu bigger than nr_cpu_ids, but nr_cpumask_bits in cpulist_parse() could be nr_cpu_ids or NR_CPUS. eg, NR_CPUS=64, nr_cpu_ids=8 in ARM64, cpulist_parse()

Re: [PATCH] usb: misc: usbtest: remove redundant check on retval < 0

2017-02-13 Thread Peter Chen
On Sun, Feb 12, 2017 at 06:35:18PM +, Colin King wrote: > From: Colin Ian King > > The check for retval being less than zero is always true since > retval equal to -EPIPE at that point. Replace the existing > conditional with just return retval. > > Detected with CoverityScan, CID#114349 ("

Re: [PATCH 27/27] IB/hfi1: Code reuse with memdup_copy

2017-02-13 Thread SF Markus Elfring
> Thanks for the patch, but this one is already taken care of along with other > similar uses of kmalloc/copy: > http://marc.info/?l=linux-rdma&m=148656088729538&w=2 Thanks for your information. The shown source code is reasonable in the update step “[PATCH 27/27] IB/hfi1: Code reuse with memdup

Build regressions/improvements in v4.10-rc8

2017-02-13 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.10-rc8[1] compared to v4.9[2]. Summarized: - build errors: +1/-8 - build warnings: +1231/-830 JFYI, when comparing v4.10-rc8[1] to v4.10-rc7[3], the summaries are: - build errors: +1/-1 - build warnings: +619/-588 No

Re: [PATCH 3/5] IB/hfi1: Adjust another size determination in hfi1_user_sdma_alloc_queues()

2017-02-13 Thread Johannes Thumshirn
On 02/13/2017 10:32 AM, SF Markus Elfring wrote: >>> @@ -443,8 +442,8 @@ int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata >>> *uctxt, struct file *fp) >>> if (!cq) >>> goto cq_nomem; >>> >>> - memsize = PAGE_ALIGN(sizeof(*cq->comps) * hfi1_sdma_comp_ring_size); >>> - cq->

Re: Build regressions/improvements in v4.10-rc8

2017-02-13 Thread Geert Uytterhoeven
On Mon, Feb 13, 2017 at 10:50 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.10-rc8[1] to v4.10-rc7[3], the summaries are: > - build errors: +1/-1 Crickets. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68

Re: [PATCH] devicetree: Add video bus switch

2017-02-13 Thread Pavel Machek
Hi! > > Take a look at the wikipedia. If you do "one at a time" at 100Hz, you > > can claim it is time-domain multiplex. But we are plain switching the > > cameras. It takes second (or so) to setup the pipeline. > > > > This is not multiplex. > > The functionality is still the same, isn't it? Do

Re: [RFC PATCH 03/33] irqchip/gic-v3-its: Refactor command encoding

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > +static void its_mask_encode(u64 *raw_cmd, u64 val, int h, int l) I'd rather name h/l in a way which makes it clear that they are describing a bit range. msb/lsb perhaps. > +{ > + u64 mask = GENMASK_ULL(h, l); New line missing here. > + *raw_cm

[PATCH] Kbuild: add cpp_its_S in ksym_dep_filter

2017-02-13 Thread Marcin Nowakowski
Add a new command cpp_its_S introduced in: cf2a5e0bb4c6 ("MIPS: Support generating Flattened Image Trees (.itb)") to ksym_dep_filter handler - otherwise a warning is produced during the build of MIPS platforms (when vmlinux.*.itb target is chosen) Signed-off-by: Marcin Nowakowski --- scripts/Kbu

Re: [RFC PATCH 04/33] irqchip/gic-v3-its: Move LPI definitions around

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > The various LPI definitions are in the middle of the code, and > would be better placed at the beginning, given that we're going > to use some of them much earlier. > > Signed-off-by: Marc Zyngier Reviewed-by: Thomas Gleixner

Re: [RFC PATCH 05/33] irqchip/gic-v3-its: Zero command on allocation

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > When reusing commands from the ring buffer, it would be better > to zero them out, even if the ITS should ignore the unused > fields. > > Signed-off-by: Marc Zyngier > --- > drivers/irqchip/irq-gic-v3-its.c | 6 ++ > 1 file changed, 6 insertions(+)

Re: [PATCH v3 0/2] iov_iter: allow iov_iter_get_pages_alloc to allocate more pages per call

2017-02-13 Thread Steve Capper
On Fri, Feb 03, 2017 at 11:28:48AM -0800, Linus Torvalds wrote: > On Fri, Feb 3, 2017 at 11:08 AM, Al Viro wrote: > > > > On x86 it does. I don't see anything equivalent in mm/gup.c one, and the > > only kinda-sorta similar thing (access_ok() in __get_user_pages_fast() > > there) is vulnerable to

Re: [PATCH] proc/sysctl: prune stale dentries during unregistering

2017-02-13 Thread Eric W. Biederman
Konstantin Khlebnikov writes: > On 10.02.2017 10:47, Al Viro wrote: >> On Fri, Feb 10, 2017 at 10:35:02AM +0300, Konstantin Khlebnikov wrote: >> >>> # time sysctl -a > /dev/null >>> real1m12.806s >>> user0m0.016s >>> sys 1m12.400s >>> >>> Currently only memory reclaimer could remove t

Re: [PATCH] serial: st-asc: Use new GPIOD API to obtain RTS pin

2017-02-13 Thread Lee Jones
On Thu, 09 Feb 2017, Greg KH wrote: > On Thu, Feb 09, 2017 at 08:21:50AM +, Lee Jones wrote: > > On Wed, 08 Feb 2017, Greg KH wrote: > > > > > On Wed, Feb 08, 2017 at 09:24:25AM +, Lee Jones wrote: > > > > The commits mentioned below adapt the GPIO API to allow more information > > > > to

Re: [RFC PATCH 06/33] irqchip/gic-v3-its: Add probing for VLPI properties

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > + typer = gic_read_typer(its_base + GITS_TYPER); > its->base = its_base; > its->phys_base = res->start; > - its->ite_size = ((gic_read_typer(its_base + GITS_TYPER) >> 4) & 0xf) + > 1; > + its->ite_size = ((typer >> 4) & 0xf) + 1; >

Re: [PATCH] x86/vm86: fix compilation warning on a unused variable

2017-02-13 Thread Borislav Petkov
On Sun, Feb 12, 2017 at 11:20:07PM -0500, Jérémy Lefaure wrote: > I am not an expert in linux patch process but I think that as Kirill > wrote the patch, he should be the author of the patch and me I should > be in the "Reported-by" tag, isn't it ? It sounds to me like he doesn't care all that muc

Re: [PATCH v2 8/9] sched: Don't reinvent the wheel but use existing llist API

2017-02-13 Thread Peter Zijlstra
On Mon, Feb 13, 2017 at 04:21:08PM +0900, Byungchul Park wrote: > Although llist provides proper APIs, they are not used. Make them used. > > Signed-off-by: Byungchul Park > --- > kernel/sched/core.c | 13 ++--- > 1 file changed, 2 insertions(+), 11 deletions(-) > > diff --git a/kernel/

[PATCH 2/4] pinctrl: samsung: Register pinctrl before GPIO

2017-02-13 Thread Charles Keepax
If we request a GPIO hog, then gpiochip_add_data will attempt to request some of its own GPIOs. The driver also uses gpiochip_generic_request which means that for any GPIO request to succeed the pinctrl needs to be registered. Currently however the driver registers the GPIO and then the pinctrl mea

[PATCH 4/4] pinctrl: samsung: Remove unused local variable

2017-02-13 Thread Charles Keepax
Signed-off-by: Charles Keepax --- drivers/pinctrl/samsung/pinctrl-samsung.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c index f291cbf..eb08f30 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.c +++

[PATCH 3/4] pinctrl: samsung: Use devres version of gpiochip_add_data

2017-02-13 Thread Charles Keepax
Signed-off-by: Charles Keepax --- drivers/pinctrl/samsung/pinctrl-samsung.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c index 1134bc3..f291cbf 100644 --- a/drivers/pinctrl/samsu

[PATCH 1/4] pinctrl: Fix trivial spelling typo in a comment

2017-02-13 Thread Charles Keepax
Signed-off-by: Charles Keepax --- drivers/pinctrl/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index d690465..0bf6392f 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -525,7 +525,7 @@ pinctrl_find_gp

Re: [PATCH 2/2] staging: greybus: fix symbolic permission coding style issues

2017-02-13 Thread Johan Hovold
On Thu, Feb 09, 2017 at 05:30:12PM +0100, Gioh Kim wrote: > Fix "Octal permissions are preffered than symbolic ones" issues. > > Signed-off-by: Gioh Kim Acked-by: Johan Hovold

[PATCH RESEND] Kbuild: add cpp_its_S in ksym_dep_filter

2017-02-13 Thread Marcin Nowakowski
Add a new command cpp_its_S introduced in: cf2a5e0bb4c6 ("MIPS: Support generating Flattened Image Trees (.itb)") to ksym_dep_filter handler - otherwise a warning is produced during the build of MIPS platforms (when vmlinux.*.itb target is chosen) Signed-off-by: Marcin Nowakowski --- scripts/Kbu

[PATCHv3] x86/selftests: add clobbers for int80 on x86_64

2017-02-13 Thread Dmitry Safonov
Kernel erases R8..R11 registers prior returning to userspace from int80: https://lkml.org/lkml/2009/10/1/164 GCC can reuse this registers and doesn't expect them to change during syscall invocation. I met this kind of bug in CRIU once gcc 6.1 and clang stored local variables in those registers and

Re: 4.10-rc1: thinkpad x60: who ate my cpu?

2017-02-13 Thread lkml
On Mon, Feb 13, 2017 at 10:42:36AM +0100, Pavel Machek wrote: > Hi! > > On Mon 2017-02-13 09:48:41, Thomas Gleixner wrote: > > On Mon, 13 Feb 2017, Pavel Machek wrote: > > > cd /sys/devices/system/cpu/cpu1 > > > while true; do echo 0 > online; echo 1 > online; done > > > > > > ...crashes x60 with

Re: [PATCH] devicetree: Add video bus switch

2017-02-13 Thread Sakari Ailus
Hi Pavel, On Mon, Feb 13, 2017 at 10:54:20AM +0100, Pavel Machek wrote: > Hi! > > > > Take a look at the wikipedia. If you do "one at a time" at 100Hz, you > > > can claim it is time-domain multiplex. But we are plain switching the > > > cameras. It takes second (or so) to setup the pipeline. > >

Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount

2017-02-13 Thread Eric W. Biederman
James Bottomley writes: > On Thu, 2017-02-09 at 02:36 -0800, Josh Triplett wrote: >> On Wed, Feb 08, 2017 at 07:22:45AM -0800, James Bottomley wrote: >> > On Tue, 2017-02-07 at 17:54 -0800, Josh Triplett wrote: >> > > On Tue, Feb 07, 2017 at 11:49:33AM -0800, Christoph Hellwig >> > > wrote: >> >

Re: [PATCH 1/1] dma: imx-sdma: add 1ms delay to ensure SDMA channel is stopped

2017-02-13 Thread Vinod Koul
On Mon, Feb 13, 2017 at 03:30:19PM +0900, Jiada Wang wrote: > >>+static int sdma_disable_channel_with_delay(struct dma_chan *chan) > >>+{ > >>+ sdma_disable_channel(chan); > >>+ mdelay(1); > > > >what is the gaurantee that 1ms is fine? Shouldn't you poll the bit to see > >channel is disabled pr

Re: [RFC PATCH 07/33] irqchip/gic-v3-its: Macro-ize its_send_single_command

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > + > +static __its_send_single_cmd(its_send_single_command, its_cmd_builder_t, > + struct its_collection, its_build_sync_cmd) I'm fine with that macro magic, but the above is very unintuitive as it looks like a normal function. Th

Re: [RFC PATCH 08/33] irqchip/gic-v3-its: Implement irq_set_irqchip_state for pending state

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > Allow the pending state of an LPI to be set or cleared via > irq_set_irqchip_state. > > Signed-off-by: Marc Zyngier Reviewed-by: Thomas Gleixner

Re: [RFC PATCH 09/33] irqchip/gic-v3-its: Split out property table allocation

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > Move the LPI property table allocation into its own function, as > this is going to be required for those associated with VMs in > the future. > > Signed-off-by: Marc Zyngier Reviewed-by: Thomas Gleixner

Re: [RFC PATCH 10/33] irqchip/gic-v4-its: Allow use of indirect VCPU tables

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > The VCPU tables can be quite sparse as well, and it makes sense > to use indirect tables as well if possible. > > Signed-off-by: Marc Zyngier Reviewed-by: Thomas Gleixner

Re: [RFC PATCH 11/33] irqchip/gic-v3-its: Split out pending table allocation

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > Just as for the property table, let's move the pending table > allocation to a separate function. > > Signed-off-by: Marc Zyngier Reviewed-by: Thomas Gleixner

Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box )

2017-02-13 Thread Borislav Petkov
On Mon, Feb 13, 2017 at 02:26:20AM +0100, Gabriel C wrote: > I didn't tested your patch yet but did a boot with mce=off and nomce > which seems to not really works since is still want to mc_device_add() > even when off. mc_device_add() is microcode loader's ->add_dev() subsys pointer and that's no

Re: [PATCH/RFC] arm64: defconfig: Enlarge CMA alignment to 2 MiB

2017-02-13 Thread Geert Uytterhoeven
Hi Magnus, On Wed, Feb 1, 2017 at 2:45 PM, Magnus Damm wrote: > On Sat, Jan 28, 2017 at 1:03 AM, Geert Uytterhoeven > wrote: >> Some IOMMUs (e.g. Renesas IPMMU/VMSA) support only page sizes of 4 KiB, >> 2 MiB, and 1 GiB. >> >> With the default setting of CONFIG_CMA_ALIGNMENT = 8, allocations lar

Re: [PATCH] mtd: nand: gpio: make nCE GPIO optional

2017-02-13 Thread Boris Brezillon
On Fri, 10 Feb 2017 15:01:10 +0100 (CET) Christophe Leroy wrote: > On some hardware, the nCE signal is wired to the ChipSelect associated > to bus address of the NAND, so it is automatically driven during the > memory access and it is not managed by a GPIO. Hm, I'm not sure how this can work, be

Re: [RFC PATCH 12/33] irqchip/gic-v3-its: Rework LPI freeing

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > Rework LPI deallocation so that it can be reused by the v4 support > code. > > Signed-off-by: Marc Zyngier Reviewed-by: Thomas Gleixner

Re: [RFC PATCH 13/33] irqchip/gic-v3-its: Generalize device table allocation

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > As we want to use 2-level tables for VCPUs, let's hack the device > table allocator in order to make it slightly more generic. It > will get reused in subsequent patches. > > Signed-off-by: Marc Zyngier Reviewed-by: Thomas Gleixner

Re: [RFC PATCH 14/33] irqchip/gic-v3-its: Generalize LPI configuration

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > We're are going to need to change a bit more than just the enable > bit in the LPI property table in the future. So let's change the > LPI configuration funtion to take a set of bits to be cleared, > and a set of bits to be set. > > This way, we'll be ab

Re: [RFC PATCH 15/33] irqchip/gic-v4: Add management structure definitions

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > Add a bunch of GICv4-specific data structures that will get used in > subsequent patches. > > Signed-off-by: Marc Zyngier Reviewed-by: Thomas Gleixner

Re: [RFC PATCH 16/33] irqchip/gic-v3-its: Add GICv4 ITS command definitions

2017-02-13 Thread Thomas Gleixner
On Tue, 17 Jan 2017, Marc Zyngier wrote: > Add the new GICv4 ITS command definitions, most of them, being > defined in terms of their physical counterparts. > > Signed-off-by: Marc Zyngier Reviewed-by: Thomas Gleixner

  1   2   3   4   5   6   7   8   9   10   >