Re: [PATCH 3/3] pinctrl: sunxi: Remove old sun5i pinctrl drivers

2017-01-09 Thread Linus Walleij
On Sun, Jan 8, 2017 at 10:31 PM, Maxime Ripard wrote: > Now that we have a common pinctrl driver for all the sun5i SoCs, we can > remove the old, separate drivers. > > Signed-off-by: Maxime Ripard Patch applied. Yours, Linus Walleij

Re: [PATCH V1 1/2] usb:serial: Implement Fintek F81232 break on/off

2017-01-09 Thread Johan Hovold
On Fri, Dec 09, 2016 at 01:39:33PM +0800, Ji-Ze Hong (Peter Hong) wrote: > Implement Fintek F81232 break on/off with LCR register, > it's the same with 16550A LCR register layout. > > Signed-off-by: Ji-Ze Hong (Peter Hong) > --- > drivers/usb/serial/f81232.c | 40

[PATCH v4 3/3] watchdog: introduce CONFIG_WATCHDOG_OPEN_TIMEOUT

2017-01-09 Thread Rasmus Villemoes
This allows setting a default value for the watchdog.open_timeout commandline parameter via Kconfig. Signed-off-by: Rasmus Villemoes --- Documentation/watchdog/watchdog-parameters.txt | 9 + drivers/watchdog/Kconfig | 9 + drivers/watchdog/watchdog_dev.c

[PATCH v4 2/3] watchdog: introduce watchdog.open_timeout commandline parameter

2017-01-09 Thread Rasmus Villemoes
The watchdog framework takes care of feeding a hardware watchdog until userspace opens /dev/watchdogN. If that never happens for some reason (buggy init script, corrupt root filesystem or whatnot) but the kernel itself is fine, the machine stays up indefinitely. This patch allows setting an upper l

[PATCH v4 0/3] watchdog: allow setting deadline for opening /dev/watchdogN

2017-01-09 Thread Rasmus Villemoes
If a watchdog driver tells the framework that the device is running, the framework takes care of feeding the watchdog until userspace opens the device. If the userspace application which is supposed to do that never comes up properly, the watchdog is fed indefinitely by the kernel. This can be espe

[RFC ADD HYPERVISOR CALL SUPPORT 0/2]: Add hypervisor call support to enable mss rproc on msm8996

2017-01-09 Thread Avaneesh Kumar Dwivedi
This Patch series consist two patches. 1- Add hypervisor call support to enable stage two translation applicable for armv8 and above. 2- Add and enable mss remoteproc support for msm8996 This patchseries is dependednt on https://patchwork.kernel.org/patch/9492177/ Avaneesh Kumar

Re: [PATCH net-next v2] net: dsa: make "label" property optional for dsa2

2017-01-09 Thread Jiri Pirko
Mon, Jan 09, 2017 at 04:04:50PM CET, vivien.dide...@savoirfairelinux.com wrote: >Hi Jiri, > >Jiri Pirko writes: > >>># cat /etc/udev/rules.d/90-net-dsa.rules >>>SUBSYSTEM=="net", ACTION=="add", ENV{DEVTYPE}=="dsa", >>> PROGRAM="/lib/udev/dsanitizer $attr{phys_switch_id} $attr{phys_port_id

[char-misc for 4.10-rc4] mei: bus: enable OS version only for SPT and newer

2017-01-09 Thread Tomas Winkler
From: Alexander Usyskin Sending OS version for support of TPM2_ChangeEPS() is required only for SPT FW (HMB version 2.0) and newer. On older platforms the command should be just ignored by the firmware but some older platforms misbehave so it's safer to send the command only if required. Bugzill

Re: [PATCH V1 2/2] usb:serial: Implement Fintek f81534 break on/off

2017-01-09 Thread Johan Hovold
On Fri, Dec 09, 2016 at 01:39:34PM +0800, Ji-Ze Hong (Peter Hong) wrote: > Implement Fintek f81534 break on/off with LCR register > It's the same with 16550A LCR register layout > > We'll add a shadow LCR variable to save the final LCR we > had set due to the "read ep0" operations maybe slow down

Re: [PATCH] libata-eh: Use switch() instead of sparse array for protocol strings

2017-01-09 Thread Tejun Heo
On Mon, Jan 09, 2017 at 03:49:28PM +0100, Geert Uytterhoeven wrote: > Replace the sparse 256-pointer array for looking up protocol strings by > a switch() statement to reduce kernel size. > > According to bloat-o-meter, this saves 910 bytes on m68k (32-bit), and > 1892 bytes on arm64 (64-bit). >

[PATCH] vhost: scsi: constify target_core_fabric_ops structures

2017-01-09 Thread Bhumika Goyal
Declare target_core_fabric_ops strucrues as const as they are only passed as an argument to the functions target_register_template and target_unregister_template. The arguments are of type const struct target_core_fabric_ops *, so target_core_fabric_ops structures having this property can be dec

Re: [PATCH 1/2] arc: rename xCCM sections so they are not merged in global .data/.text

2017-01-09 Thread Alexey Brodkin
Hi Vineet, On Thu, 2016-12-22 at 16:25 -0800, Vineet Gupta wrote: > On 12/22/2016 06:09 AM, Alexey Brodkin wrote: > > diff --git a/arch/arc/include/asm/linkage.h b/arch/arc/include/asm/linkage.h > > index b29f1a9fd6f7..3a5f13d65ee1 100644 > > --- a/arch/arc/include/asm/linkage.h > > +++ b/arch/arc

Re: [PATCH 2/2] arc: Fix xCCM size check

2017-01-09 Thread Alexey Brodkin
Hi Vineet, On Thu, 2016-12-22 at 16:34 -0800, Vineet Gupta wrote: > On 12/22/2016 06:09 AM, Alexey Brodkin wrote: > > > > CONFIG_ARC_ICCM_SZ in menuconfig is specified in kB while > > "cpu->Xccm.sz" contains value in bytes thus direct comparison fails > > leading to boot-time panic like that: > >

Re: [PATCH net-next v2] net: dsa: make "label" property optional for dsa2

2017-01-09 Thread Vivien Didelot
Hi Jiri, Jiri Pirko writes: >># cat /etc/udev/rules.d/90-net-dsa.rules >>SUBSYSTEM=="net", ACTION=="add", ENV{DEVTYPE}=="dsa", >> PROGRAM="/lib/udev/dsanitizer $attr{phys_switch_id} $attr{phys_port_id}", >> NAME="$result" > > I know this is kind of confusing, but phys_port_id is to be

Re: [PATCH V9 3/3] irqchip: qcom: Add IRQ combiner driver

2017-01-09 Thread Marc Zyngier
On 06/01/17 13:17, Agustin Vega-Frias wrote: > Hey Marc, > > On 2017-01-05 11:48, Marc Zyngier wrote: >> Hi Agustin, >> >> On 14/12/16 22:10, Agustin Vega-Frias wrote: >>> Driver for interrupt combiners in the Top-level Control and Status >>> Registers (TCSR) hardware block in Qualcomm Technologie

[PATCH] mm,compaction: serialize waitqueue_active() checks

2017-01-09 Thread Davidlohr Bueso
Without a memory barrier, the following race can occur with a high-order allocation: wakeup_kcompactd(order == 1) kcompactd() [L] waitqueue_active(kcompactd_wait) [S] prepare_to_wait_event(kcompactd_wait)

Re: [PATCH net-next] bridge: multicast to unicast

2017-01-09 Thread michael-dev
Am 09.01.2017 13:15, schrieb Johannes Berg: That is bridge fdb entries (need to) expire so the bridge might "forget" a still-connected station not sending but only consuming broadcast traffic. Ok, that I don't know. Somehow if you address a unicast packet there the bridge has to make a decision

[PATCH] locking/spinlock: Remove the unused spin_lock_bh_nested API

2017-01-09 Thread Waiman Long
The spin_lock_bh_nested() API is defined but is not used anywhere in the kernel. So all spin_lock_bh_nested() and related APIs are now removed. Signed-off-by: Waiman Long --- include/linux/spinlock.h | 8 include/linux/spinlock_api_smp.h | 2 -- include/linux/spinlock_api_up.h

Re: [PATCH 1/3] ARM: configs: stm32: enable ADC driver

2017-01-09 Thread Alexandre Torgue
Hi Fabrice On 12/02/2016 02:57 PM, Fabrice GASNIER wrote: ADC driver depends on REGULATOR and IIO that are not yet selected. Current hardware boards (like stm32f429i-eval) is using fixed regulators. Signed-off-by: Fabrice Gasnier --- arch/arm/configs/stm32_defconfig | 5 + 1 file changed,

Re: [PATCH 1/3] pinctrl: sunxi: Add pinctrl variants

2017-01-09 Thread Linus Walleij
On Sun, Jan 8, 2017 at 10:31 PM, Maxime Ripard wrote: > Some SoCs are either supposed to be pin compatible (A10 and A20 for > example), or are just repackaged versions of the same die (A10s, A13, GR8). > > In those case, having a full blown pinctrl driver just introduces > duplication in both dat

Re: [PATCH] do_direct_IO: Use inode->i_blkbits to compute block count to be cleaned

2017-01-09 Thread Jens Axboe
On 01/08/2017 07:47 AM, Chandan Rajendra wrote: > The code currently uses sdio->blkbits to compute the number of blocks to > be cleaned. However sdio->blkbits is derived from the logical block size > of the underlying block device (Refer to the definition of > do_blockdev_direct_IO()). Due to this,

Re: [PATCH v3 01/11] power: supplies: bq275xx: move overtemp tests to a switch statement.

2017-01-09 Thread Andrew F. Davis
On 01/08/2017 06:47 PM, Chris Lapa wrote: > From: Chris Lapa > > This is done for readability as the upcoming commits will add a lot of > cases. > > tested: no > > Signed-off-by: Chris Lapa > --- > drivers/power/supply/bq27xxx_battery.c | 13 + > 1 file changed, 9 insertions(+), 4

[PATCH] media/usbvision: remove ctrl_urb_wq

2017-01-09 Thread Davidlohr Bueso
While the wakeup path seems to be set up, this waitqueue is actually never used as no-one enqueues themselves on the list. As such, wakeups are meaningless without waiters, so lets just get rid of the whole thing. Signed-off-by: Davidlohr Bueso --- drivers/media/usb/usbvision/usbvision-core.c |

Re: [PATCH 2/2] usb: host: ohci-exynos: Decrese node refcount on exynos_ehci_get_phy() error paths

2017-01-09 Thread Javier Martinez Canillas
Hello Krzysztof, On 01/07/2017 05:41 AM, Krzysztof Kozlowski wrote: > Returning from for_each_available_child_of_node() loop requires cleaning > up node refcount. Error paths lacked it so for example in case of > deferred probe, the refcount of phy node was left increased. > > Fixes: 6d40500ac9b

Re: [PATCH v4 1/3] xattr: add simple initxattrs function

2017-01-09 Thread David Graziano
On Sun, Jan 8, 2017 at 3:55 AM, Christoph Hellwig wrote: >> +/* >> + * Callback for security_inode_init_security() for acquiring xattrs. >> + */ >> +int simple_xattr_initxattrs(struct inode *inode, >> + const struct xattr *xattr_array, >> + void *fs_

Re: [PATCH] libata-eh: Use switch() instead of sparse array for protocol strings

2017-01-09 Thread Geert Uytterhoeven
Hi Tejun, On Mon, Jan 9, 2017 at 4:23 PM, Tejun Heo wrote: > On Mon, Jan 09, 2017 at 03:49:28PM +0100, Geert Uytterhoeven wrote: >> Replace the sparse 256-pointer array for looking up protocol strings by >> a switch() statement to reduce kernel size. >> >> According to bloat-o-meter, this saves 9

Re: [Xen-devel] [PATCH] xen: do not re-use pirq number cached in pci device msi msg data

2017-01-09 Thread Dan Streetman
On Mon, Jan 9, 2017 at 9:59 AM, Boris Ostrovsky wrote: > On 01/06/2017 08:06 PM, Konrad Rzeszutek Wilk wrote: >> On Thu, Jan 05, 2017 at 02:28:56PM -0500, Dan Streetman wrote: >>> Do not read a pci device's msi message data to see if a pirq was >>> previously configured for the device's msi/msix,

Re: [PATCH 2/3] pinctrl: sunxi: Add common sun5i pinctrl driver

2017-01-09 Thread Linus Walleij
On Sun, Jan 8, 2017 at 10:31 PM, Maxime Ripard wrote: > The sun5i SoCs (A10s, A13, GR8) are all based on the same die fit in > different packages. Hence, the pins and functions available are just the > based on the same set, each SoC having a different subset. > > Introduce a common pinctrl drive

Re: [PATCH 1/2] usb: host: ehci-exynos: Decrese node refcount on exynos_ehci_get_phy() error paths

2017-01-09 Thread Javier Martinez Canillas
Hello Krzysztof, On 01/07/2017 05:41 AM, Krzysztof Kozlowski wrote: > Returning from for_each_available_child_of_node() loop requires cleaning > up node refcount. Error paths lacked it so for example in case of > deferred probe, the refcount of phy node was left increased. > > Fixes: 6d40500ac9b

Re: [PULL] Documentation changes for 4.10

2017-01-09 Thread Geert Uytterhoeven
Hi Jon, Jani, On Sun, Dec 11, 2016 at 11:00 PM, Jonathan Corbet wrote: > Jani Nikula (13): > Documentation/admin-guide: split the kernel parameter list to a > separate file > Documentation/admin-guide: split the device list to a separate file Please note that in the mean time, sever

Re: [PATCH net-next] bridge: multicast to unicast

2017-01-09 Thread Johannes Berg
On Mon, 2017-01-09 at 16:25 +0100, michael-dev wrote: > Am 09.01.2017 13:15, schrieb Johannes Berg: > > > That is bridge fdb entries (need to) expire so the bridge might > > > "forget" a still-connected station not sending but only consuming > > > broadcast traffic. > > > > Ok, that I don't know.

Re: [PATCH net-next v2] net: dsa: make "label" property optional for dsa2

2017-01-09 Thread Vivien Didelot
Hi Jiri, Jiri Pirko writes: >>Extra question: shouldn't phys_port_{id,name} be switchdev attributes in > > Again, phys_port_id has nothing to do with switches. Should be removed > from dsa because its use there is incorrect. Florian, since 3a543ef just got in, can it be reverted? >>> I guess t

Re: [PATCH] virtio_blk: avoid DMA to stack for the sense buffer

2017-01-09 Thread Jens Axboe
On 01/09/2017 06:35 AM, Christoph Hellwig wrote: > Is someone going to pick the patch up and send it to Linus? I keep > running into all kinds of boot failures whenever I forget to cherry > pick it into my development trees.. I'll add it. -- Jens Axboe

Re: [PATCH 4/8] xfs: use memalloc_nofs_{save,restore} instead of memalloc_noio*

2017-01-09 Thread Brian Foster
On Fri, Jan 06, 2017 at 03:11:03PM +0100, Michal Hocko wrote: > From: Michal Hocko > > kmem_zalloc_large and _xfs_buf_map_pages use memalloc_noio_{save,restore} > API to prevent from reclaim recursion into the fs because vmalloc can > invoke unconditional GFP_KERNEL allocations and these function

Re: [PATCH net-next v2] net: dsa: make "label" property optional for dsa2

2017-01-09 Thread Andrew Lunn
> > No. That should be unique within one switch. In mlxsw we name it "p1", > > "p2", ... > > > > The final netdev names are: > > enp3s0np1, enp3s0np2, ... > mlxsw are pci devices, so it follows this convention, i think: * [P]ps[f][n|d] * PCI geographi

Re: [PATCH 1/3] ata: allow subsystem to be used on m68k arch

2017-01-09 Thread Bartlomiej Zolnierkiewicz
Hi, On Sunday, January 08, 2017 02:08:23 AM Christoph Hellwig wrote: > On Fri, Dec 30, 2016 at 06:14:36PM +0100, Bartlomiej Zolnierkiewicz wrote: > > * m32r: I don't know why it was restricted but it builds fine nowadays > > (I will fix it later in incremental patch) > > > > * s390: no PATA ha

Re: [PATCH 1/4] ARM: dts: exynos: Fix indentation of EHCI and OHCI ports

2017-01-09 Thread Javier Martinez Canillas
Hello Krzysztof, On 01/07/2017 05:52 AM, Krzysztof Kozlowski wrote: > Replace spaces with tabs in EHCI and OHCI ports indentation. > > Signed-off-by: Krzysztof Kozlowski > --- Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research A

Re: __GFP_REPEAT usage in fq_alloc_node

2017-01-09 Thread Eric Dumazet
On Mon, Jan 9, 2017 at 2:22 AM, Michal Hocko wrote: > > the changelog doesn't mention it but this, unlike other kvmalloc > conversions is not without functional changes. The kmalloc part > will be weaker than it is with the original code for !costly (<64kB) > requests, because we are enforcing __G

[PATCH 1/2] rhashtable: simplify a strange allocation pattern

2017-01-09 Thread Michal Hocko
From: Michal Hocko alloc_bucket_locks allocation pattern is quite unusual. We are preferring vmalloc when CONFIG_NUMA is enabled. The rationale is that vmalloc will respect the memory policy of the current process and so the backing memory will get distributed over multiple nodes if the requester

Re: [Xen-devel] [PATCH] xen: do not re-use pirq number cached in pci device msi msg data

2017-01-09 Thread Konrad Rzeszutek Wilk
On Mon, Jan 09, 2017 at 10:42:41AM -0500, Dan Streetman wrote: > On Mon, Jan 9, 2017 at 9:59 AM, Boris Ostrovsky > wrote: > > On 01/06/2017 08:06 PM, Konrad Rzeszutek Wilk wrote: > >> On Thu, Jan 05, 2017 at 02:28:56PM -0500, Dan Streetman wrote: > >>> Do not read a pci device's msi message data t

[PATCH 2/2] ila: simplify a strange allocation pattern

2017-01-09 Thread Michal Hocko
From: Michal Hocko alloc_ila_locks seemed to c&p from alloc_bucket_locks allocation pattern which is quite unusual. The default allocation size is 320 * sizeof(spinlock_t) which is sub page unless lockdep is enabled when the performance benefit is really questionable and not worth the subtle code

Re: [PATCH 1/2] usb: host: ehci-exynos: Decrese node refcount on exynos_ehci_get_phy() error paths

2017-01-09 Thread Alan Stern
On Sat, 7 Jan 2017, Krzysztof Kozlowski wrote: > Returning from for_each_available_child_of_node() loop requires cleaning > up node refcount. Error paths lacked it so for example in case of > deferred probe, the refcount of phy node was left increased. > > Fixes: 6d40500ac9b6 ("usb: ehci/ohci-ex

Re: [PATCH 2/2] usb: host: ohci-exynos: Decrese node refcount on exynos_ehci_get_phy() error paths

2017-01-09 Thread Alan Stern
On Sat, 7 Jan 2017, Krzysztof Kozlowski wrote: > Returning from for_each_available_child_of_node() loop requires cleaning > up node refcount. Error paths lacked it so for example in case of > deferred probe, the refcount of phy node was left increased. > > Fixes: 6d40500ac9b6 ("usb: ehci/ohci-ex

Re: [PATCH] libata-eh: Use switch() instead of sparse array for protocol strings

2017-01-09 Thread Tejun Heo
Hello, On Mon, Jan 09, 2017 at 04:40:19PM +0100, Geert Uytterhoeven wrote: > There are two more that annoy me, but I don't know how to fix them: > > ata_scsi_rbuf -4096 +4096 > ata_force_param_buf-4096 +4096 ata_force_param

Re: [PATCH v3 fpga 3/4] fpga: Add scatterlist based programming

2017-01-09 Thread Alan Tull
On Fri, 6 Jan 2017, Jason Gunthorpe wrote: > Requiring contiguous kernel memory is not a good idea, this is a limited > resource and allocation can fail under normal work loads. > > This introduces a .write_sg op that supporting drivers can provide > to DMA directly from dis-contiguous memory and

Re: [PATCH] do_direct_IO: Use inode->i_blkbits to compute block count to be cleaned

2017-01-09 Thread Jeff Moyer
Chandan Rajendra writes: > The code currently uses sdio->blkbits to compute the number of blocks to > be cleaned. However sdio->blkbits is derived from the logical block size > of the underlying block device (Refer to the definition of > do_blockdev_direct_IO()). Due to this, generic/299 test wou

Re: [PATCH net-next v2] net: dsa: make "label" property optional for dsa2

2017-01-09 Thread Jiri Pirko
Mon, Jan 09, 2017 at 05:00:19PM CET, and...@lunn.ch wrote: >> > No. That should be unique within one switch. In mlxsw we name it "p1", >> > "p2", ... >> > >> > The final netdev names are: >> > enp3s0np1, enp3s0np2, ... >> > >mlxsw are pci devices, so it follows this convention, i think: > > * [P

Re: [PATCH net-next v2] net: dsa: make "label" property optional for dsa2

2017-01-09 Thread Jiri Pirko
Mon, Jan 09, 2017 at 04:45:33PM CET, vivien.dide...@savoirfairelinux.com wrote: >Hi Jiri, > >Jiri Pirko writes: > >>>Extra question: shouldn't phys_port_{id,name} be switchdev attributes in >> >> Again, phys_port_id has nothing to do with switches. Should be removed >> from dsa because its use the

Re: [PATCH 0/3] ata: add m68k/Atari Falcon PATA support

2017-01-09 Thread Bartlomiej Zolnierkiewicz
Hi, On Tuesday, January 03, 2017 11:49:16 AM Geert Uytterhoeven wrote: > Hi Bartlomiej, > > On Fri, Dec 30, 2016 at 3:01 PM, Bartlomiej Zolnierkiewicz > wrote: > > This patchset adds m68k/Atari Falcon PATA support to libata. > > Thanks for your series! > > That leaves us with 4 to go ;-) > >

[RESEND 0/3] davinci_all_defconfig patches for LEGO MINDSTORMS EV3

2017-01-09 Thread David Lechner
Resending the patches that were missing my Signed-off-by: David Lechner (3): ARM: davinci_all_defconfig: enable DA8xx pinconf ARM: davinci_all_defconfig: Enable PWM modules ARM: davinci_all_defconfig: enable iio and ADS7950 arch/arm/configs/davinci_all_defconfig | 11 +++ 1 file ch

[RESEND 2/3] ARM: davinci_all_defconfig: Enable PWM modules

2017-01-09 Thread David Lechner
This enables PWM and the TI ECAP and EHRWPM modules. These are used on LEGO MINDSTORMS EV3. Signed-off-by: David Lechner --- arch/arm/configs/davinci_all_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defcon

Re: [PATCH v3 fpga 3/4] fpga: Add scatterlist based programming

2017-01-09 Thread Jason Gunthorpe
On Mon, Jan 09, 2017 at 10:04:36AM -0600, Alan Tull wrote: > > diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c > > index f0a69d3e60a584..30f9778d0632d2 100644 > > +++ b/drivers/fpga/fpga-mgr.c > > @@ -1,4 +1,4 @@ > > -/* > > + /* > > Hi Jason, > > Need to take these added 2 space

[RESEND 3/3] ARM: davinci_all_defconfig: enable iio and ADS7950

2017-01-09 Thread David Lechner
This enables the iio subsystem and the TI ADS7950 driver. This is used by LEGO MINDSTORMS EV3, which has an ADS7957 chip. Signed-off-by: David Lechner --- arch/arm/configs/davinci_all_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/configs/davinci_all_defconfig b/a

[RESEND 1/3] ARM: davinci_all_defconfig: enable DA8xx pinconf

2017-01-09 Thread David Lechner
This enables the DA8xx pinconf driver by default. It is needed by LEGO MINDSTORMS EV3. Signed-off-by: David Lechner --- arch/arm/configs/davinci_all_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defconfig inde

[PATCH v6 06/17] mtd: nand: Kill the MTD_NAND_IDS Kconfig option

2017-01-09 Thread Boris Brezillon
MTD_NAND_IDS is selected by MTD_NAND, which makes it useless. Remove the Kconfig option and link nand_ids.o into the nand.o object file. Doing that also prevents adding an extra nand_ids.ko module when MTD_NAND is activated as a module. Since nand_ids.c is no longer compiled as a standalone module

Re: [PATCH 1/3] ata: allow subsystem to be used on m68k arch

2017-01-09 Thread Geert Uytterhoeven
On Fri, Dec 30, 2016 at 3:01 PM, Bartlomiej Zolnierkiewicz wrote: > When libata was merged m68k lacked IOMAP support. This has not been > true for a long time now so allow subsystem to be used on m68k. > > Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s

Re: usb/gadget: warning in dummy_free_request

2017-01-09 Thread Andrey Konovalov
On Tue, Dec 27, 2016 at 12:40 PM, Felipe Balbi wrote: > > Hi, > > Andrey Konovalov writes: >> Hi! >> >> I've got the following error report while running the syzkaller fuzzer. >> >> On commit 3c49de52d5647cda8b42c4255cf8a29d1e22eff5 (Dec 2). >> >> WARNING: CPU: 0 PID: 5257 at drivers/usb/gadget/u

Re: [PATCH 3/4] ARM: exynos_defconfig: Enable power sequence for Odroid U3

2017-01-09 Thread Javier Martinez Canillas
Hello Krzysztof, On 01/07/2017 05:52 AM, Krzysztof Kozlowski wrote: > Odroid U3 needs a power sequence for lan9730, if it was enabled by > bootloader. Enable also GPIO_SYSFS which is useful for playing with > GPIO during debug process. > > Signed-off-by: Krzysztof Kozlowski > --- Reviewed-by:

Re: [PATCH] libata-eh: Use switch() instead of sparse array for protocol strings

2017-01-09 Thread Christoph Hellwig
On Mon, Jan 09, 2017 at 11:04:24AM -0500, Tejun Heo wrote: > ata_force_param_buf is __initdata and shouldn't really matter. > ata_scsi_rbuf, hmmm, idk. Maybe we can allocate it dynamically when > registering the first ATA device so that systems w/o them can avoid > the wastage. Having it global i

Re: [HMM v15 01/16] mm/free_hot_cold_page: catch ZONE_DEVICE pages

2017-01-09 Thread Dave Hansen
On 01/09/2017 01:19 AM, Balbir Singh wrote: >> +/* >> + * This should never happen ! Page from ZONE_DEVICE always must have an >> + * active refcount. Complain about it and try to restore the refcount. >> + */ >> +if (is_zone_device_page(page)) { >> +VM_BUG_ON_PAGE(i

[PATCH] ibmvscsis: Fix srp_transfer_data fail return code

2017-01-09 Thread Bryant G. Ly
From: "Bryant G. Ly" If srp_transfer_data fails within ibmvscsis_write_pending, then the most likely scenario is that the client timed out the op and removed the TCE mapping. Thus it will loop forever retrying the op that is pretty much guaranteed to fail forever. A better return code would be EI

Re: [PATCH 2/4] ARM: dts: exynos: Fix LAN9730 on Odroid U3 after tftpboot

2017-01-09 Thread Javier Martinez Canillas
Hello Krzysztof, On 01/07/2017 05:52 AM, Krzysztof Kozlowski wrote: > The ethernet adapter LAN9730, after enabling in bootloader (e.g. for > tftpboot) requires reset during boot. Otherwise it won't come up. > > The schematics of Odroid U3 are detailed enough but after grabbing > knowledge also f

Re: [PATCH v1.1] ARM: multi_v7_defconfig: Enable power sequence for Odroid U3

2017-01-09 Thread Javier Martinez Canillas
Hello Krzysztof, I think it would had been clearer if the subject prefix was "[PATCH v1.1 4/4]" :) On 01/07/2017 06:16 AM, Krzysztof Kozlowski wrote: > Odroid U3 needs a power sequence for lan9730, if it was enabled by > bootloader. Also enable the USB3503 HSCI to USB2.0 driver (device > is pre

Re: [PATCH v4 1/9] clk: stm32f4: Update DT bindings documentation

2017-01-09 Thread Alexandre Torgue
Hi Stephen, On 12/22/2016 01:10 AM, Stephen Boyd wrote: On 12/13, gabriel.fernan...@st.com wrote: From: Gabriel Fernandez Creation of dt include file for specific stm32f4 clocks. These specific clocks are not derived from system clock (SYSCLOCK) We should use index 1 to use these clocks in DT

Re: [PATCH] libata-eh: Use switch() instead of sparse array for protocol strings

2017-01-09 Thread Geert Uytterhoeven
Hi Tejun, On Mon, Jan 9, 2017 at 5:04 PM, Tejun Heo wrote: > On Mon, Jan 09, 2017 at 04:40:19PM +0100, Geert Uytterhoeven wrote: >> There are two more that annoy me, but I don't know how to fix them: >> >> ata_scsi_rbuf -4096 +4096 >> ata_force_param_buf

Re: Problem on SCTP

2017-01-09 Thread Sun Paul
what kind of information do you need? the whole INIT packet? On Mon, Jan 9, 2017 at 8:25 PM, Neil Horman wrote: > On Mon, Jan 09, 2017 at 06:00:36PM +0800, Sun Paul wrote: >> Hi >> >> the linux router just change the destination, so it can arrive on the >> the SERVER. >> > Please post the relevan

Re: [PATCH net-next] net: dsa: select NET_SWITCHDEV

2017-01-09 Thread Vivien Didelot
Hi Randy, Randy Dunlap writes: > On 01/08/17 17:18, Florian Fainelli wrote: >> On 01/08/2017 03:17 PM, Vivien Didelot wrote: >>> DSA wraps SWITCHDEV, thus select it instead of depending on it. >>> >>> Signed-off-by: Vivien Didelot >> >> Reviewed-by: Florian Fainelli >> > > but when CONFIG_IN

Re: [PATCH] virtio_blk: avoid DMA to stack for the sense buffer

2017-01-09 Thread Michael S. Tsirkin
On Wed, Jan 04, 2017 at 08:25:05AM +0300, Christoph Hellwig wrote: > Most users of BLOCK_PC requests allocate the sense buffer on the stack, > so to avoid DMA to the stack copy them to a field in the heap allocated > virtblk_req structure. Without that any attempt at SCSI passthrough I/O, > includ

[PATCH] soc: dove: constify reset_control_ops structures

2017-01-09 Thread Bhumika Goyal
Declare reset_control_ops as const as they are only stored in the ops field of a reset_controller_dev structure. This field is of type const struct reset_control_ops *, so reset_control_ops structures having this property can be declared as const. Done using Coccinelle: @r1 disable optional_qualif

Re: [PATCH V5 03/17] blk-throttle: add .low interface

2017-01-09 Thread Tejun Heo
Happy new year, Shaohua. Sorry about the long delay. On Thu, Dec 15, 2016 at 12:32:54PM -0800, Shaohua Li wrote: > Add low limit for cgroup and corresponding cgroup interface. It'd be nice to explain why we're adding separate _conf fields. > +static void blk_throtl_update_valid_limit(struct thr

[PATCH 3/4] mm, page_allocator: Only use per-cpu allocator for irq-safe requests

2017-01-09 Thread Mel Gorman
Many workloads that allocate pages are not handling an interrupt at a time. As allocation requests may be from IRQ context, it's necessary to disable/enable IRQs for every page allocation. This cost is the bulk of the free path but also a significant percentage of the allocation path. This patch a

[RFC PATCH 0/4] Fast noirq bulk page allocator v2r7

2017-01-09 Thread Mel Gorman
The biggest changes are in the final patch. In v1, it was a rough untested prototype. This version corrected a number of issues, tested it and includes a comparison between bulk allocating pages and allocating them one at a time. While there are still no in-kernel users, it is hoped that the bulk A

[PATCH 1/4] mm, page_alloc: Split buffered_rmqueue

2017-01-09 Thread Mel Gorman
buffered_rmqueue removes a page from a given zone and uses the per-cpu list for order-0. This is fine but a hypothetical caller that wanted multiple order-0 pages has to disable/reenable interrupts multiple times. This patch structures buffere_rmqueue such that it's relatively easy to build a bulk

[PATCH 2/4] mm, page_alloc: Split alloc_pages_nodemask

2017-01-09 Thread Mel Gorman
alloc_pages_nodemask does a number of preperation steps that determine what zones can be used for the allocation depending on a variety of factors. This is fine but a hypothetical caller that wanted multiple order-0 pages has to do the preparation steps multiple times. This patch structures __alloc

[PATCH 4/4] mm, page_alloc: Add a bulk page allocator

2017-01-09 Thread Mel Gorman
This patch adds a new page allocator interface via alloc_pages_bulk, __alloc_pages_bulk and __alloc_pages_bulk_nodemask. A caller requests a number of pages to be allocated and added to a list. They can be freed in bulk using free_pages_bulk(). Note that it would theoretically be possible to use fr

[LSF/MM TOPIC] [LSF/MM ATTEND] md raid general discussion

2017-01-09 Thread Coly Li
Hi Folks, I'd like to propose a general md raid discussion, it is quite necessary for most of active md raid developers sit together to discuss current challenge of Linux software raid and development trends. In the last years, we have many development activities in md raid, e.g. raid5 cache, rai

Re: [PATCH] regulator: core: Unset supplies when regulators are unregistered

2017-01-09 Thread Mark Brown
On Mon, Jan 09, 2017 at 01:37:18PM +, Jon Hunter wrote: > On 06/01/17 18:29, Mark Brown wrote: > > Why is a parent device doing this? This doesn't seem like safe or > > helpful behaviour and with probe deferral we'd generally expect the > > device to acquire resources before it starts making

Re: [Intel-gfx] 4.10-rc2 oops in DRM connector code

2017-01-09 Thread Daniel Vetter
On Mon, Jan 9, 2017 at 2:40 PM, Dave Hansen wrote: > Well, now I found where the -2 comes from. > intel_dp_register_mst_connector() calls drm_connector_register(), which > fails to add the kobject (warning below). But, it does zero error > checking on the drm_connector_register() call and leaves

Re: [PATCH] PCI: designware: fix asynchronous external abort in keystone PCIe h/w

2017-01-09 Thread Murali Karicheri
On 01/04/2017 02:32 PM, Murali Karicheri wrote: > Recent fixes for iATU unroll support introduced a bug that causes > asynchronous external abort in Keystone PCIe h/w which doesn't have > ATU port and the corresponding register. So the check should be moved > below where dw_pcie_prog_outbound_atu()

Re: [PATCH v3 1/5] drm/dp: add connector backpointer to drm_dp_aux

2017-01-09 Thread Sean Paul
On Mon, Jan 9, 2017 at 4:03 AM, Tomeu Vizoso wrote: > On 6 January 2017 at 16:56, Sean Paul wrote: >> On Fri, Jan 6, 2017 at 9:30 AM, Tomeu Vizoso >> wrote: >>> This backpointer allows DP helpers to access the connector it's being >>> used for. >>> >>> Signed-off-by: Tomeu Vizoso >>> --- >>> >

Re: [PATCH v4 3/5] drm/dp: add helpers for capture of frame CRCs

2017-01-09 Thread Sean Paul
On Mon, Jan 9, 2017 at 8:32 AM, Tomeu Vizoso wrote: > Adds helpers for starting and stopping capture of frame CRCs through the > DPCD. When capture is on, a worker waits for vblanks and retrieves the > frame CRC to put it in the queue on the CRTC that is using the > eDP connector, so it's passed t

Re: [PATCH] ibmvscsis: Fix srp_transfer_data fail return code

2017-01-09 Thread Greg KH
On Mon, Jan 09, 2017 at 10:21:20AM -0600, Bryant G. Ly wrote: > From: "Bryant G. Ly" > > If srp_transfer_data fails within ibmvscsis_write_pending, then > the most likely scenario is that the client timed out the op and > removed the TCE mapping. Thus it will loop forever retrying the > op that i

[PATCH v2 2/6] mmc: sunxi: Enable the new timings for the A64 MMC controllers

2017-01-09 Thread Maxime Ripard
The A64 MMC controllers need to set a "new timings" bit when a new rate is set. The actual meaning of that bit is not clear yet, but not setting it leads to some corner-case issues, like the CMD53 failing, which is used to implement SDIO packet aggregation. Signed-off-by: Maxime Ripard --- driv

[PATCH v2 0/6] arm64: allwinner: a64: Enable MMC support

2017-01-09 Thread Maxime Ripard
Hi, Here is a second attempt at getting the MMC controllers running, the first having been done by Andre. This has been tested on a board with one SDIO device (a Marvell WiFi chip) and a Kingston eMMC with 1.8V IOs. For SDIO, the HS DDR mode works just fine. There's a little bit of work to get t

[PATCH v2 3/6] mmc: sunxi: Add EMMC (MMC2) controller compatible

2017-01-09 Thread Maxime Ripard
The MMC2 controller on the A64 is kind of a special beast. While the general controller design is the same than the other MMC controllers in the SoC, it also has a bunch of features and changes that prevent it to be driven in the same way. It has for example a different bus width limit, a differe

[PATCH v2 6/6] arm64: allwinner: a64: Increase the MMC max frequency

2017-01-09 Thread Maxime Ripard
All the controllers can have a maximum frequency of 200MHz. Since older SoCs cannot go that high, we cannot change the default maximum frequency, but fortunately for us we have a property for that in the DT. This also has the side effect of allowing to use the MMC HS200 mode for the boards that s

[PATCH v2 5/6] arm64: allwinner: a64: Add MMC pinctrl nodes

2017-01-09 Thread Maxime Ripard
The A64 only has a single set of pins for each MMC controller. Since we already have boards that require all of them, let's add them to the DTSI. Signed-off-by: Maxime Ripard --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 25 - 1 file changed, 25 insertions(+), 0 deletio

Re: [PATCHv3 3/8] rtc: add STM32 RTC driver

2017-01-09 Thread Amelie DELAUNAY
Hi, Thanks for reviewing! Alexandre, could you please review this v3 and say when you plan to take this driver in the cycle ? Thanks, Amelie On 01/05/2017 06:33 PM, Mathieu Poirier wrote: On Thu, Jan 05, 2017 at 02:43:24PM +0100, Amelie Delaunay wrote: This patch adds support for the STM32 R

[PATCH v2 4/6] arm64: allwinner: a64: Add MMC nodes

2017-01-09 Thread Maxime Ripard
From: Andre Przywara The A64 has 3 MMC controllers, one of them being especially targeted to eMMC. Among other things, it has a data strobe signal and a 8 bits data width. The two other are more usual controllers that will have a 4 bits width at most and no data strobe signal, which limits it to

Re: [PATCH net-next] net: dsa: select NET_SWITCHDEV

2017-01-09 Thread Randy Dunlap
On 01/09/17 08:32, Vivien Didelot wrote: > Hi Randy, > > Randy Dunlap writes: > >> On 01/08/17 17:18, Florian Fainelli wrote: >>> On 01/08/2017 03:17 PM, Vivien Didelot wrote: DSA wraps SWITCHDEV, thus select it instead of depending on it. Signed-off-by: Vivien Didelot >>> >>> Re

Re: [PATCH v2] drm: Schedule the output_poll_work with 1s delay if we have delayed event

2017-01-09 Thread Sean Paul
On Mon, Jan 9, 2017 at 9:31 AM, Peter Ujfalusi wrote: > Instead of scheduling the work to handle the initial delayed event, use 1s > delay. > > This delay should not be needed, but Optimus/nouveau will fail in a > mysterious way if the delayed event is handled as soon as possible like it Has anyo

Re: [Intel-gfx] 4.10-rc2 oops in DRM connector code

2017-01-09 Thread Dave Hansen
On 01/09/2017 08:41 AM, Daniel Vetter wrote: > On Mon, Jan 9, 2017 at 2:40 PM, Dave Hansen wrote: >> Well, now I found where the -2 comes from. >> intel_dp_register_mst_connector() calls drm_connector_register(), which >> fails to add the kobject (warning below). But, it does zero error >> checki

[PATCH] reset: constify reset_control_ops structures

2017-01-09 Thread Bhumika Goyal
Declare reset_control_ops structures as const as they are only stored in the ops field of a reset_controller_dev structure. This field is of type const struct reset_control_ops *, so reset_control_ops structures having this property can be declared as const. Done using Coccinelle: @r1 disable opti

[PATCH] staging: wlan-ng: remove unnecessary blank lines

2017-01-09 Thread Markus Buettner
checkpatch.pl complained about two unnecessary blank lines after an opening '{' in prism2mib.c. Those were removed in order to get rid of those warnings. There are more issues pointed out by checkpatch.pl. Those require additional work to be done. Signed-off-by: Markus Buettner Signed-off-by: Ar

[PATCH v2 1/6] mmc: sunxi: Always set signal delay to 0 for A64

2017-01-09 Thread Maxime Ripard
Experience have shown that the using the autocalibration could severely degrade the performances of the MMC bus. Allwinner is using in its BSP a delay set to 0 for all the modes but HS400. Remove the calibration code for now, and add comments to document our findings. Signed-off-by: Maxime Ripar

Re: [PATCH 2/2] printk: always report lost messages on serial console

2017-01-09 Thread Petr Mladek
On Sat 2016-12-24 23:09:02, Sergey Senozhatsky wrote: > The "printk messages dropped" report is 'attached' to a kernel > message located at console_idx offset. This does not work well > if we skip that message due to loglevel filtering, because in > this case we also skip/lose dropped message repor

Re: [HMM v15 01/16] mm/free_hot_cold_page: catch ZONE_DEVICE pages

2017-01-09 Thread Jerome Glisse
On Mon, Jan 09, 2017 at 08:21:25AM -0800, Dave Hansen wrote: > On 01/09/2017 01:19 AM, Balbir Singh wrote: > >> + /* > >> + * This should never happen ! Page from ZONE_DEVICE always must have an > >> + * active refcount. Complain about it and try to restore the refcount. > >> + */ > >> + if

Re: [Intel-gfx] 4.10-rc2 oops in DRM connector code

2017-01-09 Thread Daniel Vetter
On Mon, Jan 9, 2017 at 5:50 PM, Dave Hansen wrote: > On 01/09/2017 08:41 AM, Daniel Vetter wrote: >> On Mon, Jan 9, 2017 at 2:40 PM, Dave Hansen wrote: >>> Well, now I found where the -2 comes from. >>> intel_dp_register_mst_connector() calls drm_connector_register(), which >>> fails to add the k

Re: [PATCHv14 2/3] usb: USB Type-C connector class

2017-01-09 Thread Guenter Roeck
Hello Heikki, On Thu, Jan 05, 2017 at 02:01:18PM +0300, Heikki Krogerus wrote: > The purpose of USB Type-C connector class is to provide > unified interface for the user space to get the status and > basic information about USB Type-C connectors on a system, > control over data role swapping, and

Re: [HMM v15 01/16] mm/free_hot_cold_page: catch ZONE_DEVICE pages

2017-01-09 Thread Dave Hansen
On 01/09/2017 08:57 AM, Jerome Glisse wrote: > On Mon, Jan 09, 2017 at 08:21:25AM -0800, Dave Hansen wrote: >> On 01/09/2017 01:19 AM, Balbir Singh wrote: + /* + * This should never happen ! Page from ZONE_DEVICE always must have an + * active refcount. Complain about it and try

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