[PATCH v3 0/2] Add Cygnus PCIe Serdes/PHY support

2015-09-15 Thread Ray Jui
This patch series adds support for the Cygnus PCIe PHY This patch series is based on Linux v4.3-rc1 and is avaliable in: https://github.com/Broadcom/cygnus-linux/tree/cygnus-pcie-phy-v3 Changes from v2: - Dropped MDC/MDIO bus driver since it's not needed to enable/disable the analog-front-end

[PATCH v3 2/2] phy: cygnus: pcie: Add Cygnus PCIe PHY support

2015-09-15 Thread Ray Jui
This patch adds the PCIe PHY support for the Broadcom PCIe RC interface on Cygnus Signed-off-by: Ray Jui Reviewed-by: Arun Parameswaran Reviewed-by: JD (Jiandong) Zheng Reviewed-by: Scott Branden --- drivers/phy/Kconfig | 9 ++ drivers/phy/Makefile | 1 + driver

[PATCH 3/3] tps65912: Cleanup TPS65912 subdevice configuration dependencies

2015-09-15 Thread Andrew F. Davis
The TPS65912 subdevices depend on the mfd core and not any particular interface. The core is only enabled by enabling an interface so this is safe. Signed-off-by: Andrew F. Davis --- drivers/gpio/Kconfig | 2 +- drivers/regulator/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions

[PATCH 2/3] mfd: tps65912: Rewrite driver adding DT support and using regmap

2015-09-15 Thread Andrew F. Davis
The old driver does not support DT. Rewrite the driver adding DT support and use modern kernel features such as regmap and related helpers. Signed-off-by: Andrew F. Davis --- drivers/gpio/gpio-tps65912.c | 291 ++-- drivers/mfd/Kconfig| 20 +- drivers/mfd/M

[PATCH 0/3] mfd: tps65912: Driver rewrite with DT support

2015-09-15 Thread Andrew F. Davis
In an effort to cleanup this driver and add Device Tree support the driver has been rewritten based on new driver styles and modern kernel driver helpers. This has nearly halved the lines of code while keeping all previous functionality. Platform file based initialization has been dropped as there

Re: [PATCH] ARM: Remove __ref on hotplug cpu die path

2015-09-15 Thread Andy Gross
On Mon, Sep 14, 2015 at 05:23:17PM -0700, Stephen Boyd wrote: > Now that __cpuinit has been removed, the __ref markings on these > functions are useless. Remove them. This also reduces the size of > the multi_v7_defconfig image: > > $ size before after >textdata bss dec hex fil

[PATCH 1/3] Documentation: tps65912: Add DT bindings for the TPS65912 PMIC

2015-09-15 Thread Andrew F. Davis
The TPS65912 PMIC contains several regulators and a GPIO controller. Add bindings for the TPS65912 PMIC. Signed-off-by: Andrew F. Davis --- .../devicetree/bindings/gpio/gpio-tps65912.txt | 17 + Documentation/devicetree/bindings/mfd/tps65912.txt | 43 ++ .../bindi

Re: [PATCH 1/7] [media] dvb: use ktime_t for internal timeout

2015-09-15 Thread Andreas Oberritter
Hello Arnd, On 15.09.2015 17:49, Arnd Bergmann wrote: > The dvb demuxer code uses a 'struct timespec' to pass a timeout > as absolute time. This will cause problems on 32-bit architectures > in 2038 when time_t overflows, and it is racy with a concurrent > settimeofday() call. > > This patch chan

Re: [PATCH 4/6] PCI: generic: Correct, and avoid overflow, in bus_max calculation.

2015-09-15 Thread David Daney
On 09/15/2015 10:49 AM, Will Deacon wrote: On Sat, Sep 12, 2015 at 12:21:57AM +0100, David Daney wrote: From: David Daney There are two problems with the bus_max calculation: 1) The u8 data type can overflow for large config space windows. 2) The calculation is incorrect for a bus range that

Re: [PATCH 05/17] Update the md driver to use idr helper functions.

2015-09-15 Thread Mike Snitzer
Subject should really be: "dm: update to use idr helper functions" -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.t

Re: [PATCH RFC 1/8] dt-bindings: Document the hi6220 bindings for DRM driver

2015-09-15 Thread Rob Herring
On 09/15/2015 04:37 AM, Xinwei Kong wrote: > This adds documentation of device tree bindings for the > Graphics Processing Unit of hi6220 SOC. > > Signed-off-by: Xinliang Liu > Signed-off-by: Xinwei Kong > Signed-off-by: Andy Green > Signed-off-by: Jiwen Qi > Signed-off-by: Yu Gong > --- > .

Re: [PATCH v12 00/21] Compile-time stack metadata validation

2015-09-15 Thread Josh Poimboeuf
On Tue, Sep 15, 2015 at 11:57:00AM -0500, Chris J Arges wrote: > I got the following compiler error when building v12 of this patchset: > > DESCEND stacktool > CC stacktool.o > CC elf.o > CC special.o > CC arch/x86/decode.o > LD arch/x86/stacktool-in.o >

Re: dm: ioctl: prevent double freeing

2015-09-15 Thread Mike Snitzer
On Tue, Sep 15 2015 at 12:18pm -0400, Darrick J. Wong wrote: > On Fri, Sep 04, 2015 at 04:52:39PM +0530, Sudip Mukherjee wrote: > > DM_PARAMS_KMALLOC and DM_PARAMS_VMALLOC should never be set together in > > param_flags. We are setting these flags while allocating so we know that > > there is alm

Re: v2 of seccomp filter c/r patches

2015-09-15 Thread Andy Lutomirski
On Tue, Sep 15, 2015 at 9:07 AM, Tycho Andersen wrote: > Hi Andy, > > On Mon, Sep 14, 2015 at 10:52:46AM -0700, Andy Lutomirski wrote: >> >> I'm not sure I entirely like this solution... > > Ok. Since we also aren't going to do all the eBPF stuff now, how about > something that looks like this: >

Re: [PATCH v4 RESEND] x86/asm/entry/32, selftests: Add 'test_syscall_vdso' test

2015-09-15 Thread Andy Lutomirski
On Sep 14, 2015 11:00 PM, "Ingo Molnar" wrote: > > > * Andy Lutomirski wrote: > > > On Sep 14, 2015 1:15 AM, "Ingo Molnar" wrote: > > > > > > > > > * Denys Vlasenko wrote: > > > > > > > >> + /* INT80 syscall entrypoint can be used by > > > > >> +* 6

Re: [PATCH v1 1/2] soc: ti: display firmware file name as part of boot log

2015-09-15 Thread Murali Karicheri
On 09/09/2015 12:38 PM, Murali Karicheri wrote: On 09/04/2015 11:53 PM, santosh.shilim...@oracle.com wrote: On 9/4/15 5:46 PM, Murali Karicheri wrote: To help the user, print the PDSP file name as part of knav_queue_load_pdsp(). This will be useful for users to know what version of the firmware

Re: List corruption on epoll_ctl(EPOLL_CTL_DEL) an AF_UNIX socket

2015-09-15 Thread Mathias Krause
On Tue, Sep 15, 2015 at 06:07:05PM +0100, Rainer Weikusat wrote: > --- a/net/unix/af_unix.c > +++ b/net/unix/af_unix.c > -2233,10 +2233,14 static unsigned int > unix_dgram_poll(struct file *file, struct socket *sock, > writable = unix_writable(sk); > other = unix_peer_get(sk)

[PATCH] mm/memblock: Make memblock_remove_range() static

2015-09-15 Thread Alexander Kuleshov
The memblock_remove_range() function is only used in the mm/memblock.c, so we can do it static. Signed-off-by: Alexander Kuleshov --- include/linux/memblock.h | 4 mm/memblock.c| 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/include/linux/memblock.h b/inclu

[PATCH] arm64: Add support for PTE contiguous bit.

2015-09-15 Thread David Woods
The arm64 MMU supports a Contiguous bit which is a hint that the TTE is one of a set of contiguous entries which can be cached in a single TLB entry. Supporting this bit adds new intermediate huge page sizes. The set of huge page sizes available depends on the base page size. Without using contig

Re: [PATCH 01/17] Add ida and idr helper routines.

2015-09-15 Thread James Bottomley
On Tue, 2015-09-15 at 09:46 -0700, Lee Duncan wrote: > Clients of the ida and idr index-management routines > tend to use the same calling sequences much of the time, > so this change adds helper functions for allocating and > releasing indexes of either flavor, i.e. with or > without pointer manag

Re: [PATCH 0/6] PCI: generic: Misc. bug fixes and enhanced support for MSI.

2015-09-15 Thread David Daney
On 09/11/2015 04:21 PM, David Daney wrote: From: David Daney While using the pci-host-generic driver to add PCI support for the Cavium ThunderX processors, several bugs were discovered. We also need the ability to specify a per-bus MSI controller, so support for that was added. David Daney (6

Re: [PATCH v2] scsi: introduce short_inquiry flag for broken host adapters

2015-09-15 Thread James Bottomley
On Tue, 2015-09-15 at 16:27 +0200, Vitaly Kuznetsov wrote: > Vitaly Kuznetsov writes: > > > Some host adapters (e.g. Hyper-V storvsc) are known for not respecting the > > SPC-2/3/4 requirement for 'INQUIRY data (see table ...) shall contain at > > least 36 bytes'. As a result we get tons on 'scsi

Re: [PATCH 6/6] PCI: generic: Allow bus default MSI controller to be specified.

2015-09-15 Thread David Daney
On 09/15/2015 10:53 AM, Will Deacon wrote: On Sat, Sep 12, 2015 at 12:21:59AM +0100, David Daney wrote: From: David Daney If the device tree node for the bus has a "msi-parent" property, use that as the default MSI controller for devices on the bus. Add device tree binding documentation descr

Re: v2 of seccomp filter c/r patches

2015-09-15 Thread Tycho Andersen
Hi Andy, On Tue, Sep 15, 2015 at 11:13:51AM -0700, Andy Lutomirski wrote: > On Tue, Sep 15, 2015 at 9:07 AM, Tycho Andersen > wrote: > > Hi Andy, > > > > On Mon, Sep 14, 2015 at 10:52:46AM -0700, Andy Lutomirski wrote: > >> > >> I'm not sure I entirely like this solution... > > > > Ok. Since we a

Re: [PATCH RFC 6/8] drm: hisilicon: Add support for fbdev

2015-09-15 Thread Rob Herring
On 09/15/2015 04:37 AM, Xinwei Kong wrote: > If you config DRM_HISI_FBDEV optional, this patch will only support fbdev > mode while also supporting double buffer. This is a lot of duplicated code from CMA fbdev. Is double buffering the only reason why CMA fbdev can't be used or are there some othe

Re: [PATCH v5 1/5] arm/arm64: add smccc ARCH32

2015-09-15 Thread Will Deacon
On Mon, Sep 14, 2015 at 09:30:30AM +0100, Jens Wiklander wrote: > On Fri, Aug 21, 2015 at 01:43:31PM +0200, Jens Wiklander wrote: > > On Fri, Aug 21, 2015 at 10:24:30AM +0100, Will Deacon wrote: > > > On Thu, Aug 20, 2015 at 12:37:29PM +0100, Jens Wiklander wrote: > > > > On Wed, Aug 19, 2015 at 05

Re: [PATCH 01/17] Add ida and idr helper routines.

2015-09-15 Thread Tejun Heo
Hello, On Tue, Sep 15, 2015 at 09:46:01AM -0700, Lee Duncan wrote: > +/** > + * ida_get_index - allocate a ida index value > + * @ida idr handle > + * @lock spinlock handle protecting this index > + * @p_id pointer to allocated index value > + * > + * A helper function for saf

[PATCH] mm: slab: convert slab_is_available to boolean

2015-09-15 Thread Denis Kirjanov
A good one candidate to return a boolean result Signed-off-by: Denis Kirjanov --- include/linux/slab.h | 2 +- mm/slab_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/slab.h b/include/linux/slab.h index 7e37d44..7c82e3b 100644 --- a/include/linux

Re: [PATCH] spmi-pmic-arb: support configurable number of peripherals

2015-09-15 Thread Stephen Boyd
On 09/15, Ivan T. Ivanov wrote: > > On Mon, 2015-09-14 at 18:28 -0700, Stephen Boyd wrote: > > On 09/14/2015 02:54 PM, Stephen Boyd wrote: > > > The current driver implementation supports only 128 peripherals. > > > Add support for more than 128 peripherals by taking a lazy > > > caching approach

Re: [PATCHv6 2/7] slab, slub: use page->rcu_head instead of page->lru plus cast

2015-09-15 Thread Christoph Lameter
On Tue, 15 Sep 2015, Kirill A. Shutemov wrote: > We have properly typed page->rcu_head, no need to cast page->lru. Acked-by: Christoph Lameter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH 4/6] PCI: generic: Correct, and avoid overflow, in bus_max calculation.

2015-09-15 Thread Will Deacon
On Tue, Sep 15, 2015 at 07:02:54PM +0100, David Daney wrote: > On 09/15/2015 10:49 AM, Will Deacon wrote: > > On Sat, Sep 12, 2015 at 12:21:57AM +0100, David Daney wrote: > >>/* Limit the bus-range to fit within reg */ > >> - bus_max = pci->cfg.bus_range->start + > >> -(resource_si

Re: [PATCH 01/17] Add ida and idr helper routines.

2015-09-15 Thread James Bottomley
On Tue, 2015-09-15 at 14:27 -0400, Tejun Heo wrote: > Hello, > > On Tue, Sep 15, 2015 at 09:46:01AM -0700, Lee Duncan wrote: > > +/** > > + * ida_get_index - allocate a ida index value > > + * @idaidr handle > > + * @lock spinlock handle protecting this index > > + * @p_id pointer

Re: [PATCH] PCI: generic: Add support for Cavium ThunderX PCIe root complexes.

2015-09-15 Thread Will Deacon
On Sat, Sep 12, 2015 at 01:07:19AM +0100, David Daney wrote: > From: David Daney > > The config space for external PCIe root complexes on some Cavium > ThunderX SoCs is very similar to CAM and ECAM, but differs in the > shift values that have to be applied to the bus and devfn numbers to > compos

Re: [PATCH 09/13] Move bp_type_idx to kernel/event/hw_breakpoint.c

2015-09-15 Thread Palmer Dabbelt
On Tue, 15 Sep 2015 01:06:07 PDT (-0700), pet...@infradead.org wrote: > On Mon, Sep 14, 2015 at 03:50:43PM -0700, Palmer Dabbelt wrote: >> This has a "#ifdef CONFIG_*" that used to be exposed to userspace. >> >> The names in here are so generic that I don't think it's a good idea >> to expose them

Re: [PATCH 01/17] Add ida and idr helper routines.

2015-09-15 Thread Tejun Heo
Hello, On Tue, Sep 15, 2015 at 11:38:42AM -0700, James Bottomley wrote: > For most of the SCSI stuff, yes. I'm less sure about the sd numbers. > They go up very high and get hammered a lot during system bring up and > hot plug. I think having their own lock rather than wrapping everything > arou

Re: [PATCH 4/6] PCI: generic: Correct, and avoid overflow, in bus_max calculation.

2015-09-15 Thread David Daney
On 09/15/2015 11:35 AM, Will Deacon wrote: On Tue, Sep 15, 2015 at 07:02:54PM +0100, David Daney wrote: On 09/15/2015 10:49 AM, Will Deacon wrote: On Sat, Sep 12, 2015 at 12:21:57AM +0100, David Daney wrote: /* Limit the bus-range to fit within reg */ - bus_max = pci->cfg.bus_ran

Re: [PATCH v4 7/7] power: bq27xxx_battery: Add interrupt handling support

2015-09-15 Thread Andreas Dannenberg
On Mon, Sep 14, 2015 at 04:26:13PM -0500, Andrew F. Davis wrote: > Some devices have a pin that can generate an interrupt when > the battery's status changes. Add an interrupt handler to > read the new battery status. > > Signed-off-by: Andrew F. Davis > --- > drivers/power/bq27xxx_battery.c | 2

Re: [PATCH] SUNRPC: Fix a race in xs_reset_transport

2015-09-15 Thread Jeff Layton
On Tue, 15 Sep 2015 16:49:23 +0100 "Suzuki K. Poulose" wrote: > From: "Suzuki K. Poulose" > > Encountered the following BUG() with 4.3-rc1 on a fast model > for arm64 with NFS root filesystem. > > [ cut here ] > kernel BUG at fs/inode.c:1493! > > Internal error: Oops -

[PATCH] linux-firmware: Add qmss accumulator pdsp firmware for keystone SoCs

2015-09-15 Thread Murali Karicheri
This patch adds firmware for Keystone QMSS Accumulator PDSP. This is required to support Accumulator queues. Accumulator queues are one of the queue types supported in drivers/soc/ti/knav_qmss_acc.c. This queue can be part of a channel that supports one queue or multiple queue per channel and are m

[PATCH 1/2] s390/crash_dump: Use for_each_mem_range

2015-09-15 Thread Alexander Kuleshov
The already provides for_each_mem_range() macro that iterates through memblock areas from type_a and not included in type_b. We can remove custom for_each_dump_mem_range() macro and use the for_each_mem_range() instead. Signed-off-by: Alexander Kuleshov --- arch/s390/kernel/crash_dump.c | 16 ++

[PATCH 2/2] s390/crash_dump: Use PFN_PHYS and PFN_DOWN macros

2015-09-15 Thread Alexander Kuleshov
The provides PFN_PHYS and PFN_DOWN macros for the getting page frame number and physical address of a page frame number. This patch replaces (pfn << PAGE_SHIFT) and (addr >> PAGE_SHIFT) expressions with the PFN_PHYS and PFN_DOWN macros. Signed-off-by: Alexander Kuleshov --- arch/s390/kernel/cra

[PATCH] ASoC: fix broken pxa SoC support

2015-09-15 Thread Robert Jarzmik
The previous fix of pxa library support, which was introduced to fix the library dependency, broke the previous SoC behavior, where a machine code binding pxa2xx-ac97 with a coded relied on : - sound/soc/pxa/pxa2xx-ac97.c - sound/soc/codecs/XXX.c For example, the mioa701_wm9713.c machine code is

Re: [PATCH v2 2/2] irqchip: gic: Document optional Clock and Power Domain properties

2015-09-15 Thread Rob Herring
On 09/14/2015 03:06 PM, Geert Uytterhoeven wrote: > Depending on the GIC variant, the GIC module has one or more clock > inputs. Document the optional "clocks" and "clock-names" properties, > and their possible values, based on the Technical Reference Manuals. > optional. > > Add the optional "pow

Re: [PATCH] [PATCH v3] add stealth mode

2015-09-15 Thread David Miller
From: Matteo Croce Date: Wed, 2 Sep 2015 10:47:35 +0200 > Add option to disable any reply not related to a listening socket, > like RST/ACK for TCP and ICMP Port-Unreachable for UDP. > Also disables ICMP replies to echo request and timestamp. > The stealth mode can be enabled selectively for a s

Re: Multiple potential races on vma->vm_flags

2015-09-15 Thread Kirill A. Shutemov
On Tue, Sep 15, 2015 at 01:36:45PM -0400, Sasha Levin wrote: > On 09/11/2015 09:27 PM, Hugh Dickins wrote: > > I'm inclined to echo Vlastimil's comment from earlier in the thread: > > sounds like an overkill, unless we find something more serious than this. > > I've modified my tests to stress the

Re: [PATCH net-next 0/7] net: dsa: mv88e6xxx: improve ATU move operations

2015-09-15 Thread David Miller
From: Vivien Didelot Date: Fri, 4 Sep 2015 14:34:09 -0400 > This patchset completes the set of available Address Translation Unit > operations. > > These Marvell switches have 4 operations to flush or (re)move, all or > only non-static MAC addresses, from the entire set of databases or from > j

[PATCH] regualtor: core: Make error messages more informative

2015-09-15 Thread Stephen Boyd
The same error print exists 4 times in the regulator core : operation not allowed Unfortunately, seeing this in the dmesg is not very informative. Add what type of operation is not allowed to the message so that these errors are unique, hopefully pointing developers in the right direction

Re: [PATCH] sched/fair: adjust the depth of a sched_entity when its parent changes

2015-09-15 Thread Shayan Pooya
> Pretty good write up that, sad you did not Cc the guy. > > I got defeated by the github web shite (again!) and could not locate an > email address for him :( Ah.. Google to the rescue! > Thanks Peter, actually he *did* submit the patch: https://lkml.org/lkml/2014/10/24/456 Therefore, I think com

Re: [PATCH v2 2/3] platform/chrome: Support reading/writing the vboot context

2015-09-15 Thread Emilio López
Hi Javier, Thanks for the review. You'll find my answers inline On 15/09/15 10:47, Javier Martinez Canillas wrote: Hello Emilio, Patch looks mostly good to me, I just have a few comments. On Mon, Sep 14, 2015 at 2:34 PM, Emilio López wrote: Some EC implementations include a small nvram spac

Re: [PATCH] driver core: Ensure proper suspend/resume ordering

2015-09-15 Thread Alan Stern
On Tue, 15 Sep 2015, Thierry Reding wrote: > > There are a few things to watch out for. Since the dpm_list gets > > modified during system sleep transitions, we would have to make sure > > that nothing gets probed during those times. In principle, that's what > > the "prepare" stage is meant for

Re: [PATCH V6 0/6] Fast mmio eventfd fixes

2015-09-15 Thread Michael S. Tsirkin
On Tue, Sep 15, 2015 at 05:08:49PM +0200, Paolo Bonzini wrote: > > > On 15/09/2015 08:41, Jason Wang wrote: > > Hi: > > > > This series fixes two issues of fast mmio eventfd: > > > > 1) A single iodev instance were registerd on two buses: KVM_MMIO_BUS > >and KVM_FAST_MMIO_BUS. This will cau

Re: [PATCH 09/13] Move bp_type_idx to kernel/event/hw_breakpoint.c

2015-09-15 Thread Peter Zijlstra
On Tue, Sep 15, 2015 at 11:40:11AM -0700, Palmer Dabbelt wrote: > On Tue, 15 Sep 2015 01:06:07 PDT (-0700), pet...@infradead.org wrote: > > On Mon, Sep 14, 2015 at 03:50:43PM -0700, Palmer Dabbelt wrote: > >> This has a "#ifdef CONFIG_*" that used to be exposed to userspace. > >> > >> The names in

[PATCH 3/3] FIRMWARE: bcm47xx_nvram: Use __ioread32_copy() instead of open-coding

2015-09-15 Thread Stephen Boyd
Now that we have a generic library function for this, replace the open-coded instance. Cc: Hauke Mehrtens Cc: Rafał Miłecki Cc: Paul Walmsley Cc: Signed-off-by: Stephen Boyd --- drivers/firmware/broadcom/bcm47xx_nvram.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff

[PATCH 1/3] lib: iomap_copy: Add __ioread32_copy()

2015-09-15 Thread Stephen Boyd
Some drivers need to read data out of iomem areas 32-bits at a time. Add an API to do this. Cc: Bjorn Andersson Signed-off-by: Stephen Boyd --- include/linux/io.h | 1 + lib/iomap_copy.c | 23 +++ 2 files changed, 24 insertions(+) diff --git a/include/linux/io.h b/includ

[PATCH 0/3] Add __ioread32_copy() and use it

2015-09-15 Thread Stephen Boyd
The SMD driver is reading and writing chunks of data to iomem, and there's an __iowrite32_copy() function for the writing part, but no __ioread32_copy() function for the reading part. This series adds __ioread32_copy() and uses it in two places. Andrew is on Cc in case this should go through the -m

Re: [PATCH v2 2/3] platform/chrome: Support reading/writing the vboot context

2015-09-15 Thread Javier Martinez Canillas
Hello Emilio, On Tue, Sep 15, 2015 at 9:16 PM, Emilio López wrote: [snip] >>> >>> obj-$(CONFIG_CHROMEOS_LAPTOP) += chromeos_laptop.o >>> obj-$(CONFIG_CHROMEOS_PSTORE) += chromeos_pstore.o >>> -cros_ec_devs-objs := cros_ec_dev.o cros_ec_sysfs.o >>> cros_ec_lightbar.o >>> +cro

[PATCH 2/3] soc: qcom: smd: Use __ioread32_copy() instead of open-coding it

2015-09-15 Thread Stephen Boyd
Now that we have a generic library function for this, replace the open-coded instance. Cc: Bjorn Andersson Signed-off-by: Stephen Boyd --- Note this patch relies on a previous patch on the list that changes the readl() to __raw_readl()[1]. drivers/soc/qcom/smd.c | 13 - 1 file cha

Re: [PATCH] mv643xx_eth: Neaten mv643xx_eth_program_multicast_filter

2015-09-15 Thread David Miller
From: Joe Perches Date: Wed, 09 Sep 2015 17:40:56 -0700 > The code around the allocation and loops are a bit obfuscated. > > Neaten it by using: > > o kcalloc with decimal count and sizeof(u32) > o Decimal loop indexing and i++ not i += 4 > o A promiscuous block using a similar style > to the

Re: [PATCH -tip 2/3] sched/wake_q: Relax to acquire semantics

2015-09-15 Thread Davidlohr Bueso
On Tue, 15 Sep 2015, Peter Zijlstra wrote: Secondly, the wake queues are not concurrent, they're in context, so I don't see ordering matter at all. The only reason its a cmpxchg() is because there is the (small) possibility of two contexts wanting to wake the same task, and we use task_struct st

First kernel patch (optimization)

2015-09-15 Thread Eric Curtin
My first kernel patch, hope I did everything correctly! Instead of calling strlen on every iteration of the for loop, just call it once instead and store in a variable. Signed-off-by: Eric Curtin diff --git a/tools/usb/usbip/src/usbip_detach.c b/tools/usb/usbip/src/usbip_detach.c index 05c6d1

First kernel patch (optimization)

2015-09-15 Thread Eric Curtin
My first kernel patch, hope I did everything correctly! Instead of calling strlen on every iteration of the for loop, just call it once instead and store in a variable. Signed-off-by: Eric Curtin diff --git a/tools/usb/usbip/src/usbip_detach.c b/tools/usb/usbip/src/usbip_detach.c index 05c6d1

RE: [PATCH v2] scsi: introduce short_inquiry flag for broken host adapters

2015-09-15 Thread KY Srinivasan
> -Original Message- > From: James Bottomley [mailto:james.bottom...@hansenpartnership.com] > Sent: Tuesday, September 15, 2015 11:24 AM > To: Vitaly Kuznetsov > Cc: linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org; KY Srinivasan > ; Long Li ; Dexuan Cui > > Subject: Re: [PATCH

Re: v2 of seccomp filter c/r patches

2015-09-15 Thread Andy Lutomirski
On Tue, Sep 15, 2015 at 11:26 AM, Tycho Andersen wrote: > Hi Andy, > > On Tue, Sep 15, 2015 at 11:13:51AM -0700, Andy Lutomirski wrote: >> On Tue, Sep 15, 2015 at 9:07 AM, Tycho Andersen >> wrote: >> > Hi Andy, >> > >> > On Mon, Sep 14, 2015 at 10:52:46AM -0700, Andy Lutomirski wrote: >> >> >> >>

Re: [RFC v5 2/3] mm: make optimistic check for swapin readahead

2015-09-15 Thread Ebru Akagunduz
On Mon, Sep 14, 2015 at 02:33:55PM -0700, Andrew Morton wrote: > On Mon, 14 Sep 2015 22:31:44 +0300 Ebru Akagunduz > wrote: > > > This patch introduces new sysfs integer knob > > /sys/kernel/mm/transparent_hugepage/khugepaged/max_ptes_swap > > which makes optimistic check for swapin readahead to

Re: First kernel patch (optimization)

2015-09-15 Thread Felipe Balbi
On Tue, Sep 15, 2015 at 08:53:28PM +0100, Eric Curtin wrote: > My first kernel patch, hope I did everything correctly! Instead of calling > strlen on every iteration of the for loop, just call it once instead and > store in a variable. this should be broken up at 72 characters. Also, your subjec

Re: [PATCH v2 2/3] platform/chrome: Support reading/writing the vboot context

2015-09-15 Thread Greg Kroah-Hartman
On Tue, Sep 15, 2015 at 09:43:35PM +0200, Javier Martinez Canillas wrote: > Hello Emilio, > > On Tue, Sep 15, 2015 at 9:16 PM, Emilio López > wrote: > > [snip] > > >>> > >>> obj-$(CONFIG_CHROMEOS_LAPTOP) += chromeos_laptop.o > >>> obj-$(CONFIG_CHROMEOS_PSTORE) += chromeos_pstore.o > >>> -

Net: core dev_ioctl.c coding style fixes

2015-09-15 Thread Janusz Wolak
>From 089ca09ee90eb10f546bfb5bb80bca18616e9721 Mon Sep 17 00:00:00 2001 From: Janusz Wolak Date: Tue, 15 Sep 2015 21:23:52 +0200 Subject: [PATCH] Remove missing blank lines after declarations, remove spaces before tabs, remove lines over 80, insert * on subsequent lines, insert trailing */ on a

Re: [PATCH v2 2/3] platform/chrome: Support reading/writing the vboot context

2015-09-15 Thread Emilio López
Hi Javier, On 15/09/15 16:43, Javier Martinez Canillas wrote: Hello Emilio, On Tue, Sep 15, 2015 at 9:16 PM, Emilio López wrote: [snip] obj-$(CONFIG_CHROMEOS_LAPTOP) += chromeos_laptop.o obj-$(CONFIG_CHROMEOS_PSTORE) += chromeos_pstore.o -cros_ec_devs-objs := cros_ec_

Re: [PATCH 6/7] [RFC] [media]: v4l2: introduce v4l2_timeval

2015-09-15 Thread Arnd Bergmann
On Tuesday 15 September 2015 18:27:19 Hans Verkuil wrote: > On 09/15/2015 05:49 PM, Arnd Bergmann wrote: > > The v4l2 API uses a 'struct timeval' to communicate time stamps to user > > space. This is broken on 32-bit architectures as soon as we have a C library > > that defines time_t as 64 bit, wh

tools: usbip: detach: avoid calling strlen() at each iteration

2015-09-15 Thread Eric Curtin
Instead of calling strlen on every iteration of the for loop, just call it once and cache the result in a temporary local variable which will be used in the for loop instead. Signed-off-by: Eric Curtin diff --git a/tools/usb/usbip/src/usbip_detach.c b/tools/usb/usbip/src/usbip_detach.c index 05

Re: [Y2038] [PATCH 7/7] [RFC] [media] introduce v4l2_timespec type for timestamps

2015-09-15 Thread Arnd Bergmann
On Tuesday 15 September 2015 18:32:36 Hans Verkuil wrote: > > > > - ktime_get_ts(×tamp); > > + ktime_get_ts64(×tamp); > > + vts.tv_sec = timestamp.tv_sec; > > + vts.tv_nsec = timestamp.tv_nsec; > > I prefer to take this opportunity to create a v4l2_get_timespec helper > function,

Re: [Y2038] [PATCH 1/7] [media] dvb: use ktime_t for internal timeout

2015-09-15 Thread Arnd Bergmann
On Tuesday 15 September 2015 19:55:35 Andreas Oberritter wrote: > > /* show speed every SPEED_PKTS_INTERVAL packets */ > > if (!(demux->speed_pkts_cnt % SPEED_PKTS_INTERVAL)) { > > - cur_time = current_kernel_time(); > > + cur_time = ktim

Re: stmmac: improve logging

2015-09-15 Thread David Miller
From: LABBE Corentin Date: Thu, 10 Sep 2015 14:37:28 +0200 > This patch series try to improve logging of the stmmac driver. > > Changes since v1 > - Use netdev_xxx instead of dev_xxx > - Use netif_xxx instead of "if (netif_msg_type) dev_xxx" This series does not apply cleanly to the current tre

[PATCH 1/1] regulator: tps65218: Fix missing zero typo

2015-09-15 Thread Andrew F. Davis
Add missing zero to value. This will be needed when range checking is implemented. Signed-off-by: Andrew F. Davis --- drivers/regulator/tps65218-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps65218-regulator.c b/drivers/regulator/tps65218-re

Re: [PATCH 11/13] Always define MAX_RAW_MINORS as 65535 in userspace

2015-09-15 Thread H. Peter Anvin
On 09/14/2015 03:50 PM, Palmer Dabbelt wrote: > While I don't think this was ever meant to be exposed to userspace, if > anyone is using it then this will at least provide a correct (if > unlikely) definition. > > MAX_RAW_MINORS used to be used in the kernel, where it's been replaced > with CONFIG

Re: Request for submaintainer moderation: PFC pinctrl patches

2015-09-15 Thread Linus Walleij
On Fri, Sep 11, 2015 at 2:49 PM, Laurent Pinchart wrote: > The topic is on our agenda for a meeting on Monday, I believe we'll appoint > someone to submaintain the PFC patches and send you pull requests. How did it go? Linus -- To unsubscribe from this list: send the line "unsubscribe linux-ker

Re: [PATCH v4 7/7] power: bq27xxx_battery: Add interrupt handling support

2015-09-15 Thread Andrew F. Davis
On 09/15/2015 01:47 PM, Andreas Dannenberg wrote: On Mon, Sep 14, 2015 at 04:26:13PM -0500, Andrew F. Davis wrote: Some devices have a pin that can generate an interrupt when the battery's status changes. Add an interrupt handler to read the new battery status. Signed-off-by: Andrew F. Davis -

Re: [PATCH] x86: Wire up 32-bit direct socket calls

2015-09-15 Thread H. Peter Anvin
On 09/14/2015 06:35 AM, Ingo Molnar wrote: >> >> I missed sys_ipc entirely. >> >> Ingo, Thomas, want to just wire those up, too? I can send a patch >> next week, but it'll be as trivial as the socket one. > > Yeah, sure - split out system calls are so much better (and slightly faster) > than >

Re: tools: usbip: detach: avoid calling strlen() at each iteration

2015-09-15 Thread Aaro Koskinen
Hi, On Tue, Sep 15, 2015 at 09:27:20PM +0100, Eric Curtin wrote: > Instead of calling strlen on every iteration of the for loop, just call it > once and cache the result in a temporary local variable which will be used > in the for loop instead. > > Signed-off-by: Eric Curtin > > diff --git a/t

Re: [PATCH v5 1/5] arm/arm64: add smccc ARCH32

2015-09-15 Thread Jens Wiklander
On Tue, Sep 15, 2015 at 07:26:45PM +0100, Will Deacon wrote: > On Mon, Sep 14, 2015 at 09:30:30AM +0100, Jens Wiklander wrote: > > On Fri, Aug 21, 2015 at 01:43:31PM +0200, Jens Wiklander wrote: > > > On Fri, Aug 21, 2015 at 10:24:30AM +0100, Will Deacon wrote: > > > > On Thu, Aug 20, 2015 at 12:37

[PATCH] staging: fsl-mc: up-rev version of MC interface code

2015-09-15 Thread J. German Rivera
The DPAA2 management complex has a versioned binary interface that has to be kept in sync with the DPAA2 drivers. This patch uprevs the APIs that build MC commands and parse results. This uprev is needed to support object interrupts. MC binary interface changes -overall version from 6.0 to 8.0

Re: [4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm

2015-09-15 Thread Christian Borntraeger
Am 15.09.2015 um 18:42 schrieb Paolo Bonzini: > > > On 15/09/2015 15:36, Christian Borntraeger wrote: >> I am wondering why the old code behaved in such fatal ways. Is there >> some interaction between waiting for a reschedule in the >> synchronize_sched writer and some fork code actually waiting

Re: [PATCH v3 0/5] ACPI: Provide better MADT subtable sanity checks

2015-09-15 Thread Al Stone
On 09/09/2015 03:09 PM, Al Stone wrote: > Currently, the BAD_MADT_ENTRY macro is used to do a very simple sanity > check on the various subtables that are defined for the MADT. The check > compares the size of the subtable data structure as defined by ACPICA to > the length entry in the subtable.

Re: [PATCH 09/13] Move bp_type_idx to kernel/event/hw_breakpoint.c

2015-09-15 Thread Arnd Bergmann
On Tuesday 15 September 2015 10:06:07 Peter Zijlstra wrote: > > diff --git a/include/uapi/linux/hw_breakpoint.h > > b/include/uapi/linux/hw_breakpoint.h > > index b04000a2296a..7a6a5a7f9511 100644 > > --- a/include/uapi/linux/hw_breakpoint.h > > +++ b/include/uapi/linux/hw_breakpoint.h > > @@ -17,

Re: [PATCH 5/7] f2fs: enhance multithread dio write performance

2015-09-15 Thread Jaegeuk Kim
Hi Chao, On Fri, Sep 11, 2015 at 02:41:53PM +0800, Chao Yu wrote: > When dio writes perform concurrently, our performace will be low because of > Thread A's allocation of multi continuous blocks will be break by Thread B, > there are two cases as below: > - In Thread B, we may change current segm

Re: [PATCH v1 1/2] soc: ti: display firmware file name as part of boot log

2015-09-15 Thread santosh shilimkar
On 9/15/2015 11:14 AM, Murali Karicheri wrote: On 09/09/2015 12:38 PM, Murali Karicheri wrote: On 09/04/2015 11:53 PM, santosh.shilim...@oracle.com wrote: On 9/4/15 5:46 PM, Murali Karicheri wrote: To help the user, print the PDSP file name as part of knav_queue_load_pdsp(). This will be usefu

Re: [RFC][PATCH 0/5] Fixes for abs() usage on 64bit values

2015-09-15 Thread Andrew Morton
On Mon, 14 Sep 2015 23:46:32 -0400 Tejun Heo wrote: > Anyways, let's please get abs() working for all types, one way or the > other. That would be by far the best solution, of course. This seems to work OK: --- a/include/linux/kernel.h~a +++ a/include/linux/kernel.h @@ -207,8 +207,11 @@ extern

Re: [GIT PULL] Ext3 removal, quota & udf fixes

2015-09-15 Thread Jan Kara
On Wed 02-09-15 16:47:24, Linus Torvalds wrote: > On Wed, Sep 2, 2015 at 11:45 AM, Darrick J. Wong > wrote: > > On Wed, Sep 02, 2015 at 05:52:01PM +0100, Mel Gorman wrote: > >> On the flip side, there does not appear to be any good reason for > >> keeping the ext3 driver around because if there ev

Re: [PATCH block/for-linus] block: don't release bdi while request_queue has live references

2015-09-15 Thread Jan Kara
On Tue 08-09-15 12:20:22, Tejun Heo wrote: > bdi's are initialized in two steps, bdi_init() and bdi_register(), but > destroyed in a single step by bdi_destroy() which, for a bdi embedded > in a request_queue, is called during blk_cleanup_queue() which makes > the queue invisible and starts the dra

Re: [4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm

2015-09-15 Thread Tejun Heo
Hello, On Tue, Sep 15, 2015 at 11:11:45PM +0200, Christian Borntraeger wrote: > > In fact, I would say that any userspace-controlled call to *_expedited() > > is a bug waiting to happen and a bad idea---because userspace can, with > > little effort, end up calling it in a loop. > > Right. This al

Re: v2 of seccomp filter c/r patches

2015-09-15 Thread Tycho Andersen
Hi Andy, On Tue, Sep 15, 2015 at 01:01:23PM -0700, Andy Lutomirski wrote: > On Tue, Sep 15, 2015 at 11:26 AM, Tycho Andersen > wrote: > > Hi Andy, > > > > On Tue, Sep 15, 2015 at 11:13:51AM -0700, Andy Lutomirski wrote: > >> On Tue, Sep 15, 2015 at 9:07 AM, Tycho Andersen > >> wrote: > >> > Hi A

Re: [4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm

2015-09-15 Thread Paul E. McKenney
On Tue, Sep 15, 2015 at 05:26:22PM -0400, Tejun Heo wrote: > Hello, > > On Tue, Sep 15, 2015 at 11:11:45PM +0200, Christian Borntraeger wrote: > > > In fact, I would say that any userspace-controlled call to *_expedited() > > > is a bug waiting to happen and a bad idea---because userspace can, wit

Re: unpinning an unpinned lock

2015-09-15 Thread Paul E. McKenney
On Mon, Sep 14, 2015 at 04:22:53PM -0700, Tim Spriggs wrote: > Hello! Adding Sasha and LKML on CC. > I noticed some traffic at > http://www.gossamer-threads.com/lists/linux/kernel/2229593 that you three > generated. I’ve run into a similar issue and I’m wondering if I can > contribute anythi

Re: First kernel patch (optimization)

2015-09-15 Thread Alexander Duyck
On 09/15/2015 12:52 PM, Eric Curtin wrote: My first kernel patch, hope I did everything correctly! Instead of calling strlen on every iteration of the for loop, just call it once instead and store in a variable. Signed-off-by: Eric Curtin diff --git a/tools/usb/usbip/src/usbip_detach.c b/to

Re: Linux 4.3-rc1 build error on CentOS 5.11 "scripts/sign-file.c:23:25: fatal error: openssl/cms.h: No such file or directory"

2015-09-15 Thread Vinson Lee
On Tue, Sep 15, 2015 at 6:40 AM, David Howells wrote: > Does this patch fix the problem? > > David > --- > commit 8c8ed9de80bc1bbfd0f1e9a018a0feffcf3c11f8 > Author: David Howells > Date: Tue Sep 15 13:57:08 2015 +0100 > > MODSIGN: Change from CMS to PKCS#7 signing if the openssl is too old

Re: [PATCH 1/1] fs: global sync to not clear error status of individual inodes

2015-09-15 Thread Andrew Morton
On Tue, 15 Sep 2015 16:37:24 +0200 Andi Kleen wrote: > > This patch adds filemap_fdatawait_keep_errors() for call sites where > > writeback error is not handled so that they don't clear error status. > > Patch looks good to me. > Me too. It would be nice to capture the test case(s) somewhere

Re: [PATCH v2] net: stmmac: Use msleep rather then udelay for reset delay

2015-09-15 Thread David Miller
From: Sjoerd Simons Date: Fri, 11 Sep 2015 22:25:48 +0200 > The reset delays used for stmmac are in the order of 10ms to 1 second, > which is far too long for udelay usage, so switch to using msleep. > > Practically this fixes the PHY not being reliably detected in some cases > as udelay wouldn'

Re: [PATCH 6/8] mmc: dw_mmc: Generic MMC tuning with the clock phase framework

2015-09-15 Thread Heiko Stübner
Hi, Am Dienstag, 15. September 2015, 17:25:38 schrieb Jaehoon Chung: > On 09/01/2015 03:24 AM, Heiko Stuebner wrote: > > From: Alexandru M Stan > > > > This algorithm will try 1 degree increments, since there's no way to tell > > what resolution the underlying phase code uses. As an added bonus,

Re: [PATCH v2 2/3] platform/chrome: Support reading/writing the vboot context

2015-09-15 Thread Javier Martinez Canillas
Hello Emilio, On Tue, Sep 15, 2015 at 10:24 PM, Emilio López wrote: [snip] > + > + params = (struct ec_params_vbnvcontext *)msg->data; > + params->op = EC_VBNV_CONTEXT_OP_READ; > + > + msg->version = EC_VER_VBNV_CONTEXT; > + msg->command = EC_CMD_

Re: [4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm

2015-09-15 Thread Tejun Heo
Hello, On Tue, Sep 15, 2015 at 02:38:30PM -0700, Paul E. McKenney wrote: > I did take a shot at adding the rcu_sync stuff during this past merge > window, but it did not converge quickly enough to make it. It looks > quite good for the next merge window. There have been changes in most > of the

<    4   5   6   7   8   9   10   11   >