[PATCH 04/11] alpha, rwsem: provide __down_write_killable

2016-04-01 Thread Michal Hocko
From: Michal Hocko Introduce ___down_write for the fast path and reuse it for __down_write resp. __down_write_killable each using the respective generic slow path (rwsem_down_write_failed resp. rwsem_down_write_failed_killable). Signed-off-by: Michal Hocko --- arch/alpha/include/asm/rwsem.h |

Re: [PATCH -mm v2 3/3] slub: make dead caches discard free slabs immediately

2016-04-01 Thread Vladimir Davydov
On Fri, Apr 01, 2016 at 11:04:41AM +0200, Peter Zijlstra wrote: > On Wed, Jan 28, 2015 at 07:22:51PM +0300, Vladimir Davydov wrote: > > +++ b/mm/slub.c > > @@ -2007,6 +2007,7 @@ static void put_cpu_partial(struct kmem_cache *s, > > struct page *page, int drain) > > int pages; > > int pobje

Re: [PATCH 2/2] ti-adc081c: Initial triggered buffer support

2016-04-01 Thread Leonard Crestez
On 04/01/2016 11:34 AM, Peter Meerwald-Stadler wrote: -static const struct iio_chan_spec adc081c_channel = { - .type = IIO_VOLTAGE, - .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), - .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), -}; the patch would look cleaner/shorter

[PATCH] sched/deadline: No need to check NULL later_mask

2016-04-01 Thread Xunlei Pang
Unlike rt tasks, we (should) have no deadline tasks in booting phase before the mask is allocated, so we can safely remove the check. Signed-off-by: Xunlei Pang --- kernel/sched/deadline.c | 4 1 file changed, 4 deletions(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c in

Re: [PATCH v3 3/3] perf tools: Hook up MIPS unwind and dwarf-regs in the Makefile

2016-04-01 Thread Ralf Baechle
On Fri, Apr 01, 2016 at 01:58:34PM +0300, Sergei Shtylyov wrote: > On 4/1/2016 11:56 AM, Ralf Baechle wrote: > > >From: David Daney > > > >Define a new symbol (ARCH_SUPPORTS_LIBUNWIND) in config/Makefile. > >Eh? Where is it? > > >Use this from x86 and MIPS to gate testing of libunwind. >

[PATCH v5 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral

2016-04-01 Thread Purna Chandra Mandal
Document the devicetree bindings for the SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Acked-by: Rob Herring --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: - fix indentation - add space after comma - moved 'cs-gpio

[PATCH v5 2/2] spi: spi-pic32: Add PIC32 SPI master driver

2016-04-01 Thread Purna Chandra Mandal
The PIC32 SPI driver is capable of performing SPI transfers using PIO or external DMA engine. GPIO controlled /CS support is made default in the driver for correct operation of the controller. This can be enabled by adding "cs-gpios" property of the SPI node in board dts file. Signed-off-by: Purna

Re: [PATCH 2/2] UBIFS: Implement ->migratepage()

2016-04-01 Thread Richard Weinberger
Am 01.04.2016 um 12:14 schrieb Vlastimil Babka: > On 03/31/2016 11:58 PM, Richard Weinberger wrote: >> From: "Kirill A. Shutemov" >> >> During page migrations UBIFS might get confused >> and the following assert triggers: >> UBIFS assert failed in ubifs_set_page_dirty at 1451 (pid 436) > > It wou

[PATCH 2/2] arm: mach-spear: Enable PHY_PLAT to meet dependency

2016-04-01 Thread Vivek Gautam
mach-spear enables PHY_ST_SPEAR1310_MIPHY and PHY_ST_SPEAR1340_MIPHY, which now fall under PHY_PLAT config. So select CONFIG_PHY_PLAT as well to resolve dependencies. Signed-off-by: Vivek Gautam Cc: Shiraz Hashim --- arch/arm/mach-spear/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --gi

[PATCH 1/2] phy: Group vendor specific phy drivers

2016-04-01 Thread Vivek Gautam
Adding vendor specific directories in phy to group phy drivers under their respective vendor umbrella. Signed-off-by: Vivek Gautam --- With growing number of phy drivers, it makes sense to group these drivers under their respective vendor/platform umbrella directory. Build-tested 'multi_v7_defc

Re: [PATCH] serial: 8250_dw: fix wrong logic in dw8250_check_lcr()

2016-04-01 Thread Kefeng Wang
On 2016/4/1 17:58, Andy Shevchenko wrote: > On Fri, 2016-04-01 at 17:06 +0800, Kefeng Wang wrote: >> Commit cdcea058e510("serial: 8250_dw: Avoid serial_outx code >> duplicate >> with new dw8250_check_lcr()") introduce a wrong logic when write val >> to >> LCR reg. When CONFIG_64BIT enabled, __raw

Re: [PATCH] sched/deadline: No need to check NULL later_mask

2016-04-01 Thread Peter Zijlstra
On Fri, Apr 01, 2016 at 07:13:18PM +0800, Xunlei Pang wrote: > Unlike rt tasks, we (should) have no deadline tasks in > booting phase before the mask is allocated, so we can > safely remove the check. Why? And have the kernel explode once it grows an early deadline task? Is there _any_ benefit to

Re: [RFC][PATCH v8 1/2] printk: Make printk() completely async

2016-04-01 Thread Petr Mladek
On Fri 2016-04-01 18:36:02, Sergey Senozhatsky wrote: > Hello Petr, > > On (04/01/16 10:59), Petr Mladek wrote: > [..] > > CPU0CPU1 > > > > printk() > > > > if (printk_kthread) > > # fails and need_flush_console > > # stays false > > > >

Re: [PATCH] sched/deadline/rtmutex: Fix a PI crash for deadline tasks

2016-04-01 Thread Peter Zijlstra
On Fri, Apr 01, 2016 at 07:00:18PM +0800, Xunlei Pang wrote: > I found a kernel crash while playing with deadline PI rtmutex. > > BUG: unable to handle kernel NULL pointer dereference at 0018 > IP: [] rt_mutex_get_top_task+0x1f/0x30 > PGD 232a75067 PUD 230947067 PMD 0 >

Re: [PATCH 1/2] phy: Group vendor specific phy drivers

2016-04-01 Thread Viresh Kumar
On 01-04-16, 16:59, Vivek Gautam wrote: > Adding vendor specific directories in phy to group > phy drivers under their respective vendor umbrella. > > Signed-off-by: Vivek Gautam > --- > drivers/phy/{ => st}/phy-spear1310-miphy.c| 0 > drivers/phy/{ => st}/phy-spear1340-miphy.c

Re: [PATCH -mm v2 3/3] slub: make dead caches discard free slabs immediately

2016-04-01 Thread Peter Zijlstra
On Fri, Apr 01, 2016 at 01:55:40PM +0300, Vladimir Davydov wrote: > > > + if (deactivate) { > > > + /* > > > + * Disable empty slabs caching. Used to avoid pinning offline > > > + * memory cgroups by kmem pages that can be freed. > > > + */ > > > + s->cpu_

Re: [PATCH 1/2] phy: Group vendor specific phy drivers

2016-04-01 Thread Maxime Ripard
Hi, On Fri, Apr 01, 2016 at 04:59:15PM +0530, Vivek Gautam wrote: > create mode 100644 drivers/phy/sunxi/Kconfig > create mode 100644 drivers/phy/sunxi/Makefile > rename drivers/phy/{ => sunxi}/phy-sun4i-usb.c (100%) > rename drivers/phy/{ => sunxi}/phy-sun9i-usb.c (100%) That would be allwin

Re: [PATCH 2/2] arm: mach-spear: Enable PHY_PLAT to meet dependency

2016-04-01 Thread Viresh Kumar
On 01-04-16, 16:59, Vivek Gautam wrote: > mach-spear enables PHY_ST_SPEAR1310_MIPHY and > PHY_ST_SPEAR1340_MIPHY, which now fall under PHY_PLAT > config. So select CONFIG_PHY_PLAT as well to resolve > dependencies. > > Signed-off-by: Vivek Gautam > Cc: Shiraz Hashim > --- > arch/arm/mach-spear/

Re: [PATCH] locking/qrwlock: Allow multiple spinning readers

2016-04-01 Thread Peter Zijlstra
> Ah, yes, I forgot about that. Lemme go find that discussions and see > what I can do there. Completely untested.. --- include/linux/compiler.h | 20 ++-- kernel/locking/qspinlock.c | 12 ++-- kernel/sched/core.c| 9 + kernel/sched/sched.h | 2 +- ke

Re: [PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event v2

2016-04-01 Thread Tomeu Vizoso
On 04/01/2016 01:26 PM, Mark yao wrote: > On 2016年03月31日 16:08, Tomeu Vizoso wrote: >> As per the docs, atomic_commit should return -EBUSY "if an asycnhronous >> updated is requested and there is an earlier updated pending". >> >> v2: Use the status of the workqueue instead of vop->event, and don't

Re: [PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event v2

2016-04-01 Thread Mark yao
On 2016年04月01日 19:47, Tomeu Vizoso wrote: On 04/01/2016 01:26 PM, Mark yao wrote: On 2016年03月31日 16:08, Tomeu Vizoso wrote: As per the docs, atomic_commit should return -EBUSY "if an asycnhronous updated is requested and there is an earlier updated pending". v2: Use the status of the workqueue

Re: [PATCH v3 2/2] usb:dwc3: pass arch data to xhci-hcd child

2016-04-01 Thread Felipe Balbi
Hi, Grygorii Strashko writes: > On 04/01/2016 01:20 PM, Felipe Balbi wrote: >> >> Hi, >> >> Grygorii Strashko writes: if of_dma_configure() does what you want, why don't you just stick it in dwc3-keystone.c and let the driver continue to copy things for now ? Something like bel

Re: [PATCH] phy: bcm-ns-usb2: new driver for USB 2.0 PHY on Northstar

2016-04-01 Thread Rafał Miłecki
On 1 April 2016 at 14:00, Rafał Miłecki wrote: > Northstar is a family of SoCs used in home routers. They have USB 2.0 > and 3.0 controllers with PHYs that need to be properly initialized. > This driver provides PHY init support in a generic way and can be bound > with an EHCI controller driver. >

Linux 3.2.79

2016-04-01 Thread Ben Hutchings
I'm announcing the release of the 3.2.79 kernel. All users of the 3.2 kernel series should upgrade. The updated 3.2.y git tree can be found at: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH] sched/deadline: No need to check NULL later_mask

2016-04-01 Thread Xunlei Pang
On 2016/04/01 at 19:29, Peter Zijlstra wrote: > On Fri, Apr 01, 2016 at 07:13:18PM +0800, Xunlei Pang wrote: >> Unlike rt tasks, we (should) have no deadline tasks in >> booting phase before the mask is allocated, so we can >> safely remove the check. > Why? And have the kernel explode once it grow

Re: [PATCH 3/4] perf: xgene: Add APM X-Gene SoC Performance Monitoring Unit driver

2016-04-01 Thread Mark Rutland
Hi, I haven't reviewed this in great detail, but I spotted a few issues. > +static int get_next_avail_cntr(struct xgene_pmu_dev *pmu_dev) > +{ > + int shift, cntr, retval; > + unsigned long flags; > + > + raw_spin_lock_irqsave(&pmu_dev->lock, flags); > + > + for (cntr = 0; cntr <

Re: [PATCH] sched/deadline/rtmutex: Fix a PI crash for deadline tasks

2016-04-01 Thread Xunlei Pang
On 2016/04/01 at 19:38, Peter Zijlstra wrote: > On Fri, Apr 01, 2016 at 07:00:18PM +0800, Xunlei Pang wrote: >> I found a kernel crash while playing with deadline PI rtmutex. >> >> BUG: unable to handle kernel NULL pointer dereference at 0018 >> IP: [] rt_mutex_get_top_task+0x1f

[PATCH v2] mtd: nand: document the NAND controller/NAND chip DT representation

2016-04-01 Thread Boris Brezillon
Standardize the NAND controller/NAND chip DT representation. Now, all new NAND controller drivers should comply with this representation, even if they are only supporting a single NAND chip. Existing drivers can keep support for the old representation (where only the NAND chip was described), but

[PATCH] iio: imu: Add initial support for Bosch BMI160

2016-04-01 Thread Daniel Baluta
BMI160 is an Inertial Measurement Unit (IMU) which provides acceleration and angular rate measurement. It also offers a secondary I2C interface for connecting a magnetometer sensor (usually BMM160). Current driver offers support for accelerometer and gyroscope readings via sysfs or via buffer inte

[PATCH, REBASED 0/3] fs, mm: get rid of PAGE_CACHE_* and page_cache_{get,release} macros

2016-04-01 Thread Kirill A. Shutemov
[ Rebased to current Linus' tree -- c05c2ec96bb8. The first patch was regenerated with coccinelle, the rest just re-applied on top. ] PAGE_CACHE_{SIZE,SHIFT,MASK,ALIGN} macros were introduced *long* time ago with promise that one day it will be possible to implement page cache with bigger chunks

[PATCH, REBASED 2/3] mm, fs: remove remaining PAGE_CACHE_* and page_cache_{get,release} usage

2016-04-01 Thread Kirill A. Shutemov
Mostly direct substitution with occasional adjustment or removing outdated comments. Signed-off-by: Kirill A. Shutemov Acked-by: Michal Hocko --- Documentation/filesystems/cramfs.txt | 2 +- Documentation/filesystems/tmpfs.txt| 2 +- Documentation/filesystems/vfs

Re: [PATCH V1 Resend 2/3] cpufreq: dt: Add generic platform-device creation support

2016-04-01 Thread Mason
On 01/04/2016 12:23, Viresh Kumar wrote: > Cc'ing Rob and Mason. > > On 30-03-16, 09:53, Arnd Bergmann wrote: > >> I think it should be something in the /cpus or the /opp_table hierarchy, >> not the root of the device tree, but other than that I don't care much >> whether it's a variation of the

[PATCH, REBASED 3/3] mm: drop PAGE_CACHE_* and page_cache_{get,release} definition

2016-04-01 Thread Kirill A. Shutemov
All users gone. We can remove these macros. Signed-off-by: Kirill A. Shutemov Acked-by: Michal Hocko --- include/linux/pagemap.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index b3fc0370c14f..7e1ab155c67c 100644 --- a/in

Re: [PATCH 2/4] Documentation: Add documentation for APM X-Gene SoC PMU DTS binding

2016-04-01 Thread Mark Rutland
Hi, As per Documentation/devicetree/bindings/submitting-patches.txt, please put binding patches earlier in a series than the code using them. On Thu, Mar 31, 2016 at 04:37:50PM -0700, Tai Nguyen wrote: > Documentation: Add documentation for APM X-Gene SoC PMU DTS binding > > Signed-off-by: Tai N

Re: [PATCH 2/4] Documentation: Add documentation for APM X-Gene SoC PMU DTS binding

2016-04-01 Thread Mark Rutland
On Fri, Apr 01, 2016 at 01:30:01PM +0100, Mark Rutland wrote: > Hi, > > As per Documentation/devicetree/bindings/submitting-patches.txt, please > put binding patches earlier in a series than the code using them. Whoops, this patch was in the right place; I'm just reading my mail wrong. Please ign

[PATCH] s390: fix build failure

2016-04-01 Thread Sudip Mukherjee
nfig build. Build logs of next-20160401 are at: https://travis-ci.org/sudipm-mukherjee/parport/jobs/119983952 (allmodconfig) and https://travis-ci.org/sudipm-mukherjee/parport/jobs/119983909 (defconfig) arch/s390/include/asm/seccomp.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/s39

Re: [intel-pstate driver regression] processor frequency very high even if in idle

2016-04-01 Thread Rafael J. Wysocki
On Friday, April 01, 2016 11:20:42 AM Jörg Otte wrote: > 2016-03-31 17:43 GMT+02:00 Rafael J. Wysocki : > > On Thursday, March 31, 2016 05:25:18 PM Jörg Otte wrote: > >> 2016-03-31 13:42 GMT+02:00 Rafael J. Wysocki : > >> > On Thursday, March 31, 2016 11:05:56 AM Jörg Otte wrote: > >> > > >> > [cut

Re: [PATCH] Syntactic and factual errors in the API document

2016-04-01 Thread Champ, Andy
Hi All, I've added remote git://git.lwn.net/linux.git to my tree. docs-next looks to point to commit 4817ebb144ffa5a1a2bc84b89ed9655dbe6c4502, and my patch applies cleanly to that commit. Jonathan, what problem did you have? Regards Andy From: Javi Mer

[PATCH] mm: slub: replace kick_all_cpus_sync with synchronize_sched in kmem_cache_shrink

2016-04-01 Thread Vladimir Davydov
When we call __kmem_cache_shrink on memory cgroup removal, we need to synchronize kmem_cache->cpu_partial update with put_cpu_partial that might be running on other cpus. Currently, we achieve that by using kick_all_cpus_sync, which works as a system wide memory barrier. Though fast it is, this met

Re: [PATCH net-next v2 0/6] net: dsa: mv88e6131: HW bridging support for 6185

2016-04-01 Thread Andrew Lunn
On Thu, Mar 31, 2016 at 04:53:40PM -0400, Vivien Didelot wrote: > All packets passing through a switch of the 6185 family are currently all > directed to the CPU port. This means that port bridging is software driven. > > To enable hardware bridging for this switch family, we need to implement the

Re: [PATCH 4/7] ARM: dts: Enable N950 keyboard sleep leds by default

2016-04-01 Thread Pavel Machek
Hi! > > On Tue, Mar 29, 2016 at 12:51:28PM +0200, Pavel Machek wrote: > > > For 1-3 in the series, Acked-by: Pavel Machek > > > > > > > Like the Nokia N900, the N950 has leds to show > > > > the state of sys_clkreq and sys_off_mode pins. > > > > > > > > A detailed description for the LEDs and >

Re: [PATCH] MIPS: Fix broken malta qemu

2016-04-01 Thread Paul Burton
On Thu, Mar 17, 2016 at 09:08:09PM +, Qais Yousef wrote: > Malta defconfig compiles with GIC on. Hence when compiling for SMP it causes > the > new IPI code to be activated. But on qemu malta there's no GIC causing a > BUG_ON(!ipidomain) to be hit in mips_smp_ipi_init(). > > Since in that con

Re: [PATCH v2] gpio: pca953x: Use correct u16 value for register word write

2016-04-01 Thread Linus Walleij
On Wed, Mar 30, 2016 at 8:49 AM, Yong Li wrote: > The current implementation only uses the first byte in val, > the second byte is always 0. Change it to use cpu_to_le16 > to write the two bytes into the register > > Signed-off-by: Yong Li Patch applied to fixes with Phil's review tag. It is a

Re: [PATCH 1/2] phy: Group vendor specific phy drivers

2016-04-01 Thread Vivek Gautam
Hi, On Fri, Apr 1, 2016 at 4:42 AM, Maxime Ripard wrote: > Hi, > > On Fri, Apr 01, 2016 at 04:59:15PM +0530, Vivek Gautam wrote: >> create mode 100644 drivers/phy/sunxi/Kconfig >> create mode 100644 drivers/phy/sunxi/Makefile >> rename drivers/phy/{ => sunxi}/phy-sun4i-usb.c (100%) >> rename

Re: [PATCH 1/2] phy: Group vendor specific phy drivers

2016-04-01 Thread Vivek Gautam
On Fri, Apr 1, 2016 at 4:39 AM, Viresh Kumar wrote: > On 01-04-16, 16:59, Vivek Gautam wrote: >> Adding vendor specific directories in phy to group >> phy drivers under their respective vendor umbrella. >> >> Signed-off-by: Vivek Gautam >> --- >> drivers/phy/{ => st}/phy-spear1310-miphy.c

Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's

2016-04-01 Thread Pavel Machek
Hi! > > To be fair... they _are_ separate LED devices. In N900 case, you can > > even see light comming from slightly different places if you look closely. > > > I mainly work with encapsulated USB HID LED devices like Thingm blink(1). > Due to the diffuse plastic cover you don't see the individu

Re: [PATCH V1 Resend 2/3] cpufreq: dt: Add generic platform-device creation support

2016-04-01 Thread Viresh Kumar
On 01-04-16, 14:30, Mason wrote: > Hmmm... I'm using the older operating-points prop in my platform's DT. > Why can't we define a new property (e.g. "enable-generic-cpufreq") > which registers the "cpufreq-dt" pseudo-device? DT is all about expressing hardware in a file. The same bindings should b

Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's

2016-04-01 Thread Pavel Machek
Hi! > >Ideally, I'd like to have "triggers", but different ones. As in: if > >charging, do yellow " .xX" pattern. If fully charged, do green steady > >light. If message is waiting, do blue " x x" pattern. If none of > >above, do slow white blinking. (Plus priorities of events). But that's > >quite

[PATCH 11/12] mtd: nand: sh_flctl: rely on generic DT parsing done in nand_scan_ident()

2016-04-01 Thread Boris Brezillon
The core now takes care of parsing generic DT properties in nand_scan_ident() when nand_set_flash_node() has been called. Rely on this initialization instead of calling of_get_nand_xxx() manually. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/sh_flctl.c | 31 ++-

[PATCH 12/12] mtd: nand: move of_get_nand_xxx() helpers into nand_base.c

2016-04-01 Thread Boris Brezillon
Now that all drivers go through nand_set_flash_node() to parse the generic NAND properties, we can move all of_get_nand_xxx() helpers in to nand_base.c, make them static and remove of_mtd.c and of_mtd.h. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 99 ++

[PATCH 10/12] mtd: nand: pxa3xx: rely on generic DT parsing done in nand_scan_ident()

2016-04-01 Thread Boris Brezillon
The core now takes care of parsing generic DT properties in nand_scan_ident() when nand_set_flash_node() has been called. Rely on this initialization instead of calling of_get_nand_xxx() manually. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/pxa3xx_nand.c | 28 +++-

Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's

2016-04-01 Thread Pavel Machek
Hi! > > pavel@duo:~$ ls -1 /sys/class/leds/ > > tpacpi:green:batt > > tpacpi:orange:batt > > > > This is physically 2 leds but hidden under one indicator, so you got > > "off", "green", "orange" and "green+orange". > > That's a good example. As long as you can recognize green+orange as > separate

[PATCH 09/12] mtd: nand: mxc: rely on generic DT parsing done in nand_scan_ident()

2016-04-01 Thread Boris Brezillon
The core now takes care of parsing generic DT properties in nand_scan_ident() when nand_set_flash_node() has been called. Rely on this initialization instead of calling of_get_nand_xxx() manually. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/mxc_nand.c | 50 ++-

[PATCH 06/12] mtd: nand: gpmi: rely on generic DT parsing done in nand_scan_ident()

2016-04-01 Thread Boris Brezillon
The core now takes care of parsing generic DT properties in nand_scan_ident() when nand_set_flash_node() has been called. Rely on this initialization instead of calling of_get_nand_xxx() manually. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 21 ++--

[PATCH 04/12] mtd: nand: brcm: rely on generic DT parsing done in nand_scan_ident()

2016-04-01 Thread Boris Brezillon
The core now takes care of parsing generic DT properties in nand_scan_ident() when nand_set_flash_node() has been called. Rely on this initialization instead of calling of_get_nand_xxx() manually. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/brcmnand/brcmnand.c | 5 ++--- 1 file changed,

[PATCH 07/12] mtd: nand: hisi504: rely on generic DT parsing done in nand_scan_ident()

2016-04-01 Thread Boris Brezillon
The core now takes care of parsing generic DT properties in nand_scan_ident() when nand_set_flash_node() has been called. Rely on this initialization instead of calling of_get_nand_xxx() manually. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/hisi504_nand.c | 14 +++--- 1 file chan

[PATCH 01/12] mtd: nand: remove unneeded of_mtd.h inclusions

2016-04-01 Thread Boris Brezillon
Some drivers are including linux/of_mtd.h even if they don't use any of the of_get_nand_xxx() helpers. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/jz4780_nand.c | 1 - drivers/mtd/nand/lpc32xx_mlc.c | 1 - drivers/mtd/nand/qcom_nandc.c | 1 - drivers/mtd/nand/sunxi_nand.c | 1 - driver

[PATCH 08/12] mtd: nand: lpc32xx: rely on generic DT parsing done in nand_scan_ident()

2016-04-01 Thread Boris Brezillon
The core now takes care of parsing generic DT properties in nand_scan_ident() when nand_set_flash_node() has been called. Rely on this initialization instead of calling of_get_nand_xxx() manually. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/lpc32xx_slc.c | 24 +--- 1

[PATCH 00/12] mtd: get rid of of_mtd.{c,h} and of_get_nand_xx()

2016-04-01 Thread Boris Brezillon
Hello, of_mtd.{h,c} are providing the of_get_nand_xxx() helpers to help NAND controller drivers parse some generic NAND DT properties. An infrastructure has recently been added to NAND core to automatically parse those properties when nand_scan_ident() is called, thus removing the need for NAND co

[PATCH 05/12] mtd: nand: davinci: rely on generic DT parsing done in nand_scan_ident()

2016-04-01 Thread Boris Brezillon
The core now takes care of parsing generic DT properties in nand_scan_ident() when nand_set_flash_node() has been called. Rely on this initialization instead of calling of_get_nand_xxx() manually. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/davinci_nand.c | 85 +++

[PATCH 02/12] mtd: nand: atmel: rely on generic DT parsing done in nand_scan_ident()

2016-04-01 Thread Boris Brezillon
The core now takes care of parsing generic DT properties in nand_scan_ident() when nand_set_flash_node() has been called. Rely on this initialization instead of calling of_get_nand_xxx() manually. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/atmel_nand.c | 133 +++-

Re: [PATCH v3 01/16] mm: use put_page to free page instead of putback_lru_page

2016-04-01 Thread Vlastimil Babka
On 03/30/2016 09:12 AM, Minchan Kim wrote: Procedure of page migration is as follows: First of all, it should isolate a page from LRU and try to migrate the page. If it is successful, it releases the page for freeing. Otherwise, it should put the page back to LRU list. For LRU pages, we have us

Re: [PATCH v4 0/4] SROP Mitigation: Sigreturn Cookies

2016-04-01 Thread Cyrill Gorcunov
On Thu, Mar 31, 2016 at 03:22:38PM -0500, Eric W. Biederman wrote: > > Cc' the Criu list to attempt to give them a heads up. Thanks Eric! I managed to miss this thread (I try to scan lkml descussions one a day in my inbox, but this one somehow escaped, thank you!) > Scotty Bauer writes: ... > >

[PATCH 03/12] mtd: nand: omap2: rely on generic DT parsing done in nand_scan_ident()

2016-04-01 Thread Boris Brezillon
The core now takes care of parsing generic DT properties in nand_scan_ident() when nand_set_flash_node() has been called. Rely on this initialization instead of calling of_get_nand_xxx() manually. Signed-off-by: Boris Brezillon --- drivers/memory/omap-gpmc.c | 7 --- drivers/mtd/nand/omap2.c

[RFC PATCH 3/3] staging: lustre: Remove typedef lnet_msg_t

2016-04-01 Thread Joe Perches
Just use struct lnet_msg instead. Signed-off-by: Joe Perches --- .../staging/lustre/include/linux/lnet/lib-lnet.h | 38 ++-- .../staging/lustre/include/linux/lnet/lib-types.h | 10 +-- .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h| 6 +- .../staging/lustre/lnet/klnds/o2iblnd/o2

[RFC PATCH 0/3] staging: lustre: detypedef

2016-04-01 Thread Joe Perches
Question about removing lustre typedefs. Various bits of lustre code use a mix of struct foo and foo_t. When would be an appropriate time to submit patches similar to below that individually remove various typedefs from lustre code? These are pretty trivial to produce and verify so there's no pa

[RFC PATCH 1/3] staging: lustre: Remove typedef lnet_peer_t

2016-04-01 Thread Joe Perches
Just use struct lnet_peer instead. Signed-off-by: Joe Perches --- .../staging/lustre/include/linux/lnet/lib-lnet.h | 18 ++--- .../staging/lustre/include/linux/lnet/lib-types.h | 6 ++--- drivers/staging/lustre/lnet/lnet/lib-move.c| 20 +++ drivers/staging/lustre/

[RFC PATCH 2/3] staging: lustre: Remove typedef lnd_t

2016-04-01 Thread Joe Perches
Just use struct lnet_lnd instead. Signed-off-by: Joe Perches --- drivers/staging/lustre/include/linux/lnet/lib-lnet.h | 6 +++--- drivers/staging/lustre/include/linux/lnet/lib-types.h | 6 +++--- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 4 ++-- drivers/staging/lustre/lnet/klnd

Re: [PATCH net-next 1/6] net: skbuff: don't use union for napi_id and sender_cpu

2016-04-01 Thread Eric Dumazet
On Fri, 2016-04-01 at 12:49 +0800, Jason Wang wrote: > > On 04/01/2016 10:55 AM, Eric Dumazet wrote: > > On Fri, 2016-04-01 at 10:13 +0800, Jason Wang wrote: > > > > > >> The problem is we want to support busy polling for tun. This needs > >> napi_id to be passed to tun socket by sk_mark_napi_id()

[PATCH] ALSA: hda/realtek - Enable the ALC292 dock fixup on the Thinkpad T460s

2016-04-01 Thread Sven Eckelmann
The Lenovo Thinkpad T460s requires the alc_fixup_tpt440_dock as well in order to get working sound output on the docking stations headphone jack. Patch tested on a Thinkpad T460s (20F9CT01WW) using a ThinkPad Ultradock on kernel 4.4.6. Signed-off-by: Sven Eckelmann Tested-by: Simon Wunderlich -

[PATCH v4 3/4] input: synaptics - change default width value of cr48 sensors

2016-04-01 Thread Gabriele Mazzotta
The minimum value these sensors can report is 4, so this should be the value used when W is not reporting the width. Signed-off-by: Gabriele Mazzotta --- drivers/input/mouse/synaptics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/mouse/synaptics.c b/drivers/

[PATCH v4 4/4] input: synaptics - make image sensors and cr48 sensors report widths

2016-04-01 Thread Gabriele Mazzotta
Despite claiming to report finger widths, image sensors and cr48 profile sensors were not doing it. Since the touchpad uses an abstract unit for the width of the fingers, report only the witdh of the first touch using ABS_TOOL_WIDTH. Link: https://bugzilla.kernel.org/show_bug.cgi?id=77161 Signed-o

[PATCH v4 0/4] input: synaptics - report correct width and pressure values

2016-04-01 Thread Gabriele Mazzotta
The problem of the previous set, v3, was the use of ABS_MT_TOUCH_MAJOR to report finger widths without them being expressed in surface units. In this set only the width of the first touch is reported, this time using ABS_TOOL_WIDTH. Gabriele Mazzotta (4): input: synaptics - fix pressure values c

Re: [PATCH 1/2] phy: Group vendor specific phy drivers

2016-04-01 Thread Kishon Vijay Abraham I
Hi, On Friday 01 April 2016 04:59 PM, Vivek Gautam wrote: > Adding vendor specific directories in phy to group > phy drivers under their respective vendor umbrella. > > Signed-off-by: Vivek Gautam > --- > > With growing number of phy drivers, it makes sense to > group these drivers under their

[PATCH v4 2/4] input: synaptics - fix width values calculation on image sensors

2016-04-01 Thread Gabriele Mazzotta
When multiple fingers are on the touchpad, W reports the finger count rather than the width. Retrieve the correct value that is encoded in X, Y and Z of AGM and SGM packets. The minimum width reported is 8 rather than 4 in this case, while the maximum remains 15. Signed-off-by: Gabriele Mazzotta

Re: [RFC PATCH 1/4] pinctrl: Rename pinctrl_utils_dt_free_map to pinctrl_utils_free_map

2016-04-01 Thread Linus Walleij
On Thu, Mar 31, 2016 at 1:44 PM, Irina Tirdea wrote: > Rename pinctrl_utils_dt_free_map to pinctrl_utils_free_map, since > it does not depend on device tree despite the current name. This > will enforce a consistent naming in pinctr-utils.c and will make > it clear it can be called from outside d

Re: [PATCH] extcon: palmas: Drop stray IRQF_EARLY_RESUME flag

2016-04-01 Thread Nishanth Menon
On 04/01/2016 02:59 AM, Lee Jones wrote: [...] > Please don't put all this in the commit message. Can you trim it > (right) down to only the critical information required please? Will do. thanks. -- Regards, Nishanth Menon

Re: [PATCH 01/12] mtd: nand: remove unneeded of_mtd.h inclusions

2016-04-01 Thread Harvey Hunt
Hi Boris, On 01/04/16 13:54, Boris Brezillon wrote: Some drivers are including linux/of_mtd.h even if they don't use any of the of_get_nand_xxx() helpers. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/jz4780_nand.c | 1 - drivers/mtd/nand/lpc32xx_mlc.c | 1 - drivers/mtd/nand/qcom_na

[PATCH v4 1/4] input: synaptics - fix pressure values calculation on image sensors

2016-04-01 Thread Gabriele Mazzotta
The pressure values retrieved from secondary packets was incorrectly shifted, making them lower than what they actually were. Since this only happened with secondary packets, the values reported when only one finger was present on the touchpad were correct. Signed-off-by: Gabriele Mazzotta --- d

Re: [PATCH] extcon: palmas: Drop stray IRQF_EARLY_RESUME flag

2016-04-01 Thread Nishanth Menon
Hi, On 03/31/2016 06:19 PM, Chanwoo Choi wrote: > Don't need to add the IRQF_ONE_SHOT flag for "palmas_usb_id" interrupt? > If don't need it, I'll merge it on extcon-fixes and then send the pull > request for rc cycle. It does not. This just fixes the remaining IRQF_EARLY_RESUME that was missed in

Re: [PATCH] sched/deadline/rtmutex: Fix a PI crash for deadline tasks

2016-04-01 Thread Peter Zijlstra
On 1 April 2016 14:23:58 CEST, Xunlei Pang wrote: >>> We need this iff lock owner has the deadline priority. >> How is this deadline specific, those functions you modify are >> deadline/rt agnostic. > >I checked the code, currently only deadline accesses the >pi_waiters/pi_waiters_leftmost >wit

Re: [PATCH] perf tools: Fix build errors on tsc functions for archs other than x86

2016-04-01 Thread Arnaldo Carvalho de Melo
Em Fri, Apr 01, 2016 at 03:49:32AM +, He Kuang escreveu: > Build errors on aarch64: > > libperf.a(libperf-in.o): In function `convert_timestamp': > util/jitdump.c:356: undefined reference to `tsc_to_perf_time' > collect2: error: ld returned 1 exit status > Makefile.perf:347: recipe for

[tip:x86/platform] x86/platform/uv: Disable UV BAU by default

2016-04-01 Thread tip-bot for Alex Thorlton
Commit-ID: 1c532e00a0c649ac6f0703e8c2e095c9c1d30625 Gitweb: http://git.kernel.org/tip/1c532e00a0c649ac6f0703e8c2e095c9c1d30625 Author: Alex Thorlton AuthorDate: Thu, 31 Mar 2016 14:18:29 -0500 Committer: Ingo Molnar CommitDate: Fri, 1 Apr 2016 11:45:54 +0200 x86/platform/uv: Disable UV

Re: [PATCH v2 06/11] phy: da8xx-usb: new driver for DA8XX SoC USB PHY

2016-04-01 Thread Kishon Vijay Abraham I
Hi, On Thursday 17 March 2016 07:56 AM, David Lechner wrote: > This is a new phy driver for the SoC USB controllers on the TI DA8XX > family of microcontrollers. The USB 1.1 PHY is just a simple on/off. > The USB 2.0 PHY also allows overriding the VBUS and ID pins. > > Signed-off-by: David Lechne

[PATCH] net: mvneta: fix changing MTU when using per-cpu processing

2016-04-01 Thread Marcin Wojtas
After enabling per-cpu processing it appeared that under heavy load changing MTU can result in blocking all port's interrupts and transmitting data is not possible after the change. This commit fixes above issue by disabling percpu interrupts for the time, when TXQs and RXQs are reconfigured. Sig

Re: [PATCH] perf tools: Fix build errors on tsc functions for archs other than x86

2016-04-01 Thread Hekuang
hi, 在 2016/4/1 21:13, Arnaldo Carvalho de Melo 写道: Em Fri, Apr 01, 2016 at 03:49:32AM +, He Kuang escreveu: Build errors on aarch64: libperf.a(libperf-in.o): In function `convert_timestamp': util/jitdump.c:356: undefined reference to `tsc_to_perf_time' collect2: error: ld returned

[PATCH 4/4] sched: Conditionally build cpu load decay code for nohz

2016-04-01 Thread Frederic Weisbecker
To complete the tick periodic kernel optimizations. Cc: Byungchul Park Cc: Chris Metcalf Cc: Christoph Lameter Cc: Ingo Molnar Cc: Luiz Capitulino Cc: Mike Galbraith Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thomas Gleixner Signed-off-by: Frederic Weisbecker --- kern

Re: [PATCH] net: mvneta: fix changing MTU when using per-cpu processing

2016-04-01 Thread Marcin Wojtas
Hi David, I've just realized I forgot to add an information, that this patch is intended for 'net' tree. Best regards, Marcin 2016-04-01 15:21 GMT+02:00 Marcin Wojtas : > After enabling per-cpu processing it appeared that under heavy load > changing MTU can result in blocking all port's interrup

[PATCH 1/4] sched: Gather cpu load functions under a common namespace

2016-04-01 Thread Frederic Weisbecker
This way they are easily grep'able and recognized. Cc: Byungchul Park Cc: Chris Metcalf Cc: Christoph Lameter Cc: Luiz Capitulino Cc: Mike Galbraith Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Rik van Riel Cc: Thomas Gleixner Signed-off-by: Frederic Weisbecker --- Documentation/trace/ft

[PATCH 3/4] sched: Optimize tick periodic cpu load updates

2016-04-01 Thread Frederic Weisbecker
Don't bother with the whole pending tickless cpu load machinery if we run a tick periodic kernel. That's less job for the CPU on ticks. Cc: Byungchul Park Cc: Chris Metcalf Cc: Christoph Lameter Cc: Ingo Molnar Cc: Luiz Capitulino Cc: Mike Galbraith Cc: Paul E. McKenney Cc: Peter Zijlstra

[PATCH 0/4] sched: Fix/improve nohz cpu load updates

2016-04-01 Thread Frederic Weisbecker
Here is another attempt to fix the nohz cpu load accounting after the first try (https://lwn.net/Articles/671749/), this time using an entirely different direction, probably more "natural". git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git sched/nohz HEAD: fccff162

Re: [PATCH v3 1/6] pinctrl: baytrail: Add pin control data structures

2016-04-01 Thread Linus Walleij
On Thu, Mar 31, 2016 at 10:04 AM, Mika Westerberg wrote: > My ack still applies to the whole series. I take it that I can just apply the v4 with your ACK on them. Yours, Linus Walleij

[PATCH 2/4] sched: Correctly handle nohz ticks cpu load accounting

2016-04-01 Thread Frederic Weisbecker
Ticks can happen in the middle of a nohz frame and cpu_load_update_active() doesn't handle these correctly. It forgets the whole previous tickless load and just records the current tick, ignoring potentially long idle periods. In order to solve this, record the load on nohz frame entry so we know

Re: [PATCH] mm: Exclude HugeTLB pages from THP page_mapped logic

2016-04-01 Thread Steve Capper
Hi Andrew, On Thu, Mar 31, 2016 at 04:06:50PM -0700, Andrew Morton wrote: > On Tue, 29 Mar 2016 17:39:41 +0100 Steve Capper wrote: > > > HugeTLB pages cannot be split, thus use the compound_mapcount to > > track rmaps. > > > > Currently the page_mapped function will check the compound_mapcount,

[PATCH] perf tools: Add sample types for bpf-output event

2016-04-01 Thread Wang Nan
Before this patch we can see very large time in the events before bpf-output event. For example: # ./perf trace -vv -T --ev sched:sched_switch \ --ev bpf-output/no-inherit,name=evt/ \ --ev ./test_bpf_trace.c/map:channel.event=evt/ \

Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's

2016-04-01 Thread Jacek Anaszewski
On 04/01/2016 02:55 PM, Pavel Machek wrote: Hi! pavel@duo:~$ ls -1 /sys/class/leds/ tpacpi:green:batt tpacpi:orange:batt This is physically 2 leds but hidden under one indicator, so you got "off", "green", "orange" and "green+orange". That's a good example. As long as you can recognize green

Re: [PATCH 1/1] gpio: mcp23s08: Add support for level triggered interrupts

2016-04-01 Thread Linus Walleij
On Thu, Mar 31, 2016 at 10:58 AM, Alexander Stein wrote: > On Thursday 31 March 2016 10:41:24, Linus Walleij wrote: > From the reference manual: >> The INTCAP register captures the GPIO port value at >> the time the interrupt occurred. The register is ‘read >> only’ and is updated only when an in

Re: perf trace + BPF

2016-04-01 Thread Wangnan (F)
On 2016/4/1 2:08, Arnaldo Carvalho de Melo wrote: Hi Wang, Trying to get back at working with 'perf trace' + BPF and I'm noticing that the perf_event_attr->sample_type for the BPF events are different than the ones for the raw_syscalls:sys_{enter,exit} or to other tracepoint events we

Re: [PATCH v3 1/6] pinctrl: baytrail: Add pin control data structures

2016-04-01 Thread Mika Westerberg
On Fri, Apr 01, 2016 at 03:25:26PM +0200, Linus Walleij wrote: > On Thu, Mar 31, 2016 at 10:04 AM, Mika Westerberg > wrote: > > > My ack still applies to the whole series. > > I take it that I can just apply the v4 with your ACK on them. That's right. Thanks!

Re: [PATCH] perf tools: Fix build errors on tsc functions for archs other than x86

2016-04-01 Thread Arnaldo Carvalho de Melo
Em Fri, Apr 01, 2016 at 10:13:12AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Apr 01, 2016 at 03:49:32AM +, He Kuang escreveu: > > Build errors on aarch64: > > > > libperf.a(libperf-in.o): In function `convert_timestamp': > > util/jitdump.c:356: undefined reference to `tsc_to_perf

<    1   2   3   4   5   6   7   8   9   >