[PATCH] block: fully initialize queue in blk_mq_init_allocated_queue

2015-03-13 Thread Sergey Senozhatsky
Commit c9e8c91f8a279b87eb0d94b037504ea9fc1bef7c Author: Mike Snitzer Date: Tue Mar 10 15:54:41 2015 -0400 blk-mq: fix use of incorrect goto label in blk_mq_init_queue error path for some reason has moved queue allocation 'q = blk_alloc_queue_node()' after 'percpu_ref_init(&q->mq_usage_count

Re: [PATCH v3 0/2] dma: at_hdmac: Fix residue calculation and add mem to

2015-03-13 Thread Vinod Koul
On Mon, Feb 23, 2015 at 05:54:09PM +0100, Torsten Fleischer wrote: > From: Torsten Fleischer > > This series fixes the calculation of the residual bytes and adds support for > memory to memory scatter-gather transfers. Applied both, Thanks -- ~Vinod -- To unsubscribe from this list: send the

Re: [PATCH] selftest: add a test case to check how locks are shown in fdinfo

2015-03-13 Thread Andrew Vagin
On Thu, Mar 12, 2015 at 02:43:19PM -0600, Shuah Khan wrote: > Hi Andrey, > > Looks good in general. Couple of comments. Thanks. The updated version is attached. > > On 03/12/2015 10:30 AM, Andrey Vagin wrote: > > The main idea of this test is to check that locks are shown correctly > > when the

Re: [PATCH resend v4] phy: Add driver to support individual USB PHYs on sun9i

2015-03-13 Thread Paul Bolle
Just a license nit. On Thu, 2015-03-12 at 17:54 +0800, Chen-Yu Tsai wrote: > --- /dev/null > +++ b/drivers/phy/phy-sun9i-usb.c > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Softw

[PATCH v3 0/6] mtd: nand: vf610_nfc: Freescale NFC for VF610

2015-03-13 Thread Stefan Agner
This adds support for Freescale NAND flash controller (NFC) found on various devices such as Vybrid (VF610), MPC5125, MCF54418 (ColdFire) and Kinetis K70. The patchset is based on the patchset by Bill Pringlemeir, see: http://thread.gmane.org/gmane.linux.ports.arm.kernel/295419 A variant of this

[PATCH v3 6/6] ARM: dts: vf-colibri: enable NAND flash controller

2015-03-13 Thread Stefan Agner
Enable NAND access by adding pinmux and NAND flash controller node to device tree. The NAND chips currently used on the Colibri VF61 requires 8-bit ECC per 512 byte page, hence specify 32-bit ECC strength per 2k page size. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/vf-colibri.dtsi | 32 +

[PATCH v3 5/6] ARM: dts: vf610: add NAND flash controller peripherial

2015-03-13 Thread Stefan Agner
This adds the NAND flash controller (NFC) peripherial. The driver supports the SLC NAND chips found on Freescale's Vybrid Tower System Module. The Micron NAND chip on the module needs 4-bit ECC per 512 byte page. Use 24-bit ECC per 2k page, which is supported by the driver. Signed-off-by: Bill Pri

[PATCH v3 1/6] mtd: nand: vf610_nfc: Freescale NFC for VF610, MPC5125 and others

2015-03-13 Thread Stefan Agner
This driver supports Freescale NFC (NAND flash controller) found on Vybrid (VF610), MPC5125, MCF54418 and Kinetis K70. Limitations: - DMA and pipelining not used - Pages larger than 2k are not supported - No hardware ECC The driver has only been tested on Vybrid (VF610). Signed-off-by: Bill Prin

arm64 crash in today's next due to 'blk-mq: fix use of incorrect goto label in blk_mq_init_queue error path'

2015-03-13 Thread Guenter Roeck
I see an arm64 crash in today's -next. [] blk_mq_freeze_queue_start+0x38/0x54 [] blk_mq_update_tag_set_depth+0x2c/0xb8 [] blk_mq_init_allocated_queue+0x6e4/0x71c [] blk_mq_init_queue+0x2c/0x6c [] loop_add+0xc0/0x24c [] loop_init+0x134/0x190 [] do_one_initcall+0x88/0x1a8 [] kernel_init_freeable+0x

[PATCH v3 3/6] mtd: nand: vf610_nfc: add device tree bindings

2015-03-13 Thread Stefan Agner
Signed-off-by: Bill Pringlemeir Signed-off-by: Stefan Agner --- .../devicetree/bindings/mtd/vf610-nfc.txt | 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/vf610-nfc.txt diff --git a/Documentation/devicetree/bindings

[PATCH v3 4/6] ARM: vf610: enable NAND Flash Controller

2015-03-13 Thread Stefan Agner
Enable the NAND Flash Controller driver which is part of the Vybrid SoC by default. Signed-off-by: Stefan Agner --- arch/arm/mach-imx/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index c8dffce..182e30e 100644 --- a/arch/arm/mac

[PATCH v3 2/6] mtd: nand: vf610_nfc: add hardware BCH-ECC support

2015-03-13 Thread Stefan Agner
This adds hardware ECC support using the BCH encoder in the NFC IP. The ECC encoder supports up to 32-bit correction by using 60 error correction bytes. There is no sub-page ECC step, ECC is calculated always accross the whole page (up to 2k pages). Signed-off-by: Bill Pringlemeir Signed-off-by:

Re: [PATCH v3 10/15] serial: stm32-usart: Add STM32 USART Driver

2015-03-13 Thread Paul Bolle
Just a license nit, I'm afraid. On Thu, 2015-03-12 at 22:55 +0100, Maxime Coquelin wrote: > --- /dev/null > +++ b/drivers/tty/serial/stm32-usart.c > @@ -0,0 +1,695 @@ > +/* > + * Copyright (C) Maxime Coquelin 2015 > + * Author: Maxime Coquelin > + * License terms: GNU General Public License (GP

Re: [PATCH v6 3/3] ARM: dts: vf610: add Miscellaneous System Control Module (MSCM)

2015-03-13 Thread Stefan Agner
On 2015-03-13 05:48, Shawn Guo wrote: > On Thu, Mar 12, 2015 at 10:03:08AM +0100, Stefan Agner wrote: >> On 2015-03-11 01:48, Shawn Guo wrote: >> > On Sun, Mar 01, 2015 at 11:41:29PM +0100, Stefan Agner wrote: >> >> Add the Miscellaneous System Control Module (MSCM) to the base >> >> device tree fo

Re: [PATCH] perf callchain: separate eh/debug frame offset cache.

2015-03-13 Thread Namhyung Kim
Hi Wang, On Fri, Mar 13, 2015 at 03:02:56PM +0800, Wang Nan wrote: > Commit f1f13af99a90 ("perf callchain: Cache eh/debug frame offset for > dwarf unwind") introduces a cache for .debug_frame and .eh_frame_hdr. > Unfortunately, it makes them share a same cache (dso->frame_offset). > Which causes u

Re: [RFC 1/6] drm: Add top level Kconfig option for DRM fbdev emulation

2015-03-13 Thread Jani Nikula
On Fri, 13 Mar 2015, Daniel Vetter wrote: > #if defined(CONFIG_FB) > #include > #else Side note, #if IS_ENABLED(CONFIG_FB) BR, Jani. -- Jani Nikula, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majo

Re: [PATCH] perf: fix a segfault problem.

2015-03-13 Thread Namhyung Kim
On Fri, Mar 13, 2015 at 08:41:32AM +, Wang Nan wrote: > Without this patch, perf report cause segfault if pass "" as '-t': > > $ perf report -t "" > > # To display the perf.data header info, please use --header/--header-only > options. > # > # Samples: 37 of event 'syscalls:sy

Re: [PATCH 1/4] x86/fpu: document user_fpu_begin()

2015-03-13 Thread Borislav Petkov
On Wed, Mar 11, 2015 at 06:34:09PM +0100, Oleg Nesterov wrote: > Currently user_fpu_begin() has a single caller and it is not clear that > why do we actually need it, and why we should not worry about preemption > right after preempt_enable(). > > Signed-off-by: Oleg Nesterov > --- > arch/x86/in

[PATCH 3/3] arm/dts/ls1021a: Add a TFT LCD panel dts node for DCU

2015-03-13 Thread Jianwei Wang
Add a required display-timings node for the TFT LCD panel the TFT LCD panel is WQVGA "480x272", and the bpp is 24. Signed-off-by: Alison Wang Signed-off-by: Xiubo Li Signed-off-by: Jianwei Wang --- arch/arm/boot/dts/ls1021a-twr.dts | 26 ++ 1 file changed, 26 insertions

[PATCH 2/3] arm/dts/ls1021a: Add DCU dts node

2015-03-13 Thread Jianwei Wang
Add DCU node, DCU is a display controller of Freescale named 2D-ACE. Signed-off-by: Alison Wang Signed-off-by: Xiubo Li Signed-off-by: Jianwei Wang --- arch/arm/boot/dts/ls1021a.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/

[PATCH v2 0/7] Add simple EEPROM Framework via regmap.

2015-03-13 Thread Srinivas Kandagatla
Thankyou all for providing inputs and comments on previous versions of this patchset. Here is the v2 of the patchset addressing all the issues raised as part of previous versions review. This patchset adds a new simple EEPROM framework to kernel. Up until now, EEPROM drivers were stored in driver

[PATCH v2 2/7] eeprom: Add a simple EEPROM framework for eeprom consumers

2015-03-13 Thread Srinivas Kandagatla
This patch adds just consumers part of the framework just to enable easy review. Up until now, EEPROM drivers were stored in drivers/misc, where they all had to duplicate pretty much the same code to register a sysfs file, allow in-kernel users to access the content of the devices they were drivin

[PATCH v2 4/7] eeprom: sunxi: Move the SID driver to the eeprom framework

2015-03-13 Thread Srinivas Kandagatla
From: Maxime Ripard Now that we have the EEPROM framework, we can consolidate the common driver code. Move the driver to the framework, and hopefully, it will fix the sysfs file creation race. Signed-off-by: Maxime Ripard [srinivas.kandagatla: Moved to regmap based EEPROM framework] Signed-off-

[PATCH v2 1/7] eeprom: Add a simple EEPROM framework for eeprom providers

2015-03-13 Thread Srinivas Kandagatla
This patch adds just providers part of the framework just to enable easy review. Up until now, EEPROM drivers were stored in drivers/misc, where they all had to duplicate pretty much the same code to register a sysfs file, allow in-kernel users to access the content of the devices they were drivin

[PATCH v2 3/7] eeprom: Add bindings for simple eeprom framework

2015-03-13 Thread Srinivas Kandagatla
This patch adds bindings for simple eeprom framework which allows eeprom consumers to talk to eeprom providers to get access to eeprom cell data. Signed-off-by: Maxime Ripard [Maxime Ripard: intial version of eeprom framework] Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/eepro

[PATCH v2 7/7] eeprom: Add to MAINTAINERS for eeprom framework

2015-03-13 Thread Srinivas Kandagatla
This patch adds MAINTAINERS to eeprom framework. Signed-off-by: Srinivas Kandagatla --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d66a97d..ee7ba92 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3657,6 +3657,15 @@ T: git git://g

[PATCH v2 6/7] eeprom: qfprom: Add bindings for qfprom

2015-03-13 Thread Srinivas Kandagatla
This patch adds bindings for qfprom found in QCOM SOCs. QFPROM driver is based on simple eeprom framework. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/eeprom/qfprom.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/dev

[PATCH v2 5/7] eeprom: qfprom: Add Qualcomm QFPROM support.

2015-03-13 Thread Srinivas Kandagatla
This patch adds QFPROM support driver which is used by other drivers like thermal sensor and cpufreq. On MSM parts there are some efuses (called qfprom) these fuses store things like calibration data, speed bins.. etc. Drivers like cpufreq, thermal sensors would read out this data for configuring

Re: [PATCH -next] mm: MEMTEST depends on MEMBLOCK

2015-03-13 Thread Vladimir Murzin
On 13/03/15 09:03, Guenter Roeck wrote: > Building alpha:allmodconfig fails with > > mm/memtest.c: In function 'reserve_bad_mem': > mm/memtest.c:38:2: error: implicit declaration of function 'memblock_reserve' > mm/memtest.c: In function 'do_one_pass': > mm/memtest.c:77:2: error: implicit declarat

Re: [PATCH net-next 1/2] bpf: allow extended BPF programs access skb fields

2015-03-13 Thread Daniel Borkmann
On 03/13/2015 03:21 AM, Alexei Starovoitov wrote: introduce user accessible mirror of in-kernel 'struct sk_buff': struct __sk_buff { __u32 len; __u32 pkt_type; __u32 mark; __u32 ifindex; __u32 queue_mapping; }; bpf programs can do: struct __sk_buff *ptr; var = ptr->pkt_t

Re: [RFC PATCH] Don't reset timestamps in include/generated if not needed

2015-03-13 Thread Michal Marek
Dne 13.3.2015 v 05:59 Masahiro Yamada napsal(a): > 2015-03-11 19:01 GMT+09:00 Michal Marek : >> We already have it and it is called "filechk." Valdis, can you check if >> the below patch works equally well for you? > > This looks almost nice, but a few comments below. Thanks for the review! >>

[PATCH 1/3] drm/layerscape: Add fsl dcu DRM driver

2015-03-13 Thread Jianwei Wang
This patch add support for Two Dimensional Animation and Compositing Engine (2D-ACE) on Freescale SoCs. 2D-ACE is a Freescale display controller. It provide an hardware cursor. This is a simplified version, only a primary plane, a fb created for fbdev, a crtc, a connector for TFT LCD panel, an en

Re: [PATCH v2.0 0/3] ARM: AT91: pm cleanup for 4.1

2015-03-13 Thread Nicolas Ferre
Le 09/03/2015 04:43, Wenyou Yang a écrit : > Hi, > > The patch series purpose is to clean up the AT91 PM code. > > It is based on the branch: at91-4.0-fixes > git://git.kernel.org/pub/scm/linux/kernel/git/nferre/linux-at91.git > + [PATCH] ARM: at91: pm: change at91_pm_set_standby() to stati

Re: [PATCH 14/15] ARM: cns3xxx: don't export static symbol

2015-03-13 Thread Arnd Bergmann
On Friday 13 March 2015 06:59:38 Krzysztof Hałasa wrote: > Arnd Bergmann writes: > > > Looks good. Krzysztof, do you want to pick this up and send me a > > pull request together with other patches, or should I apply this > > to the arm-soc fixes directly? > > The latter, please. > Acked-by: Krzy

Re: [PATCH v2.0 0/6] ARM: AT91: pm improvement for 4.1

2015-03-13 Thread Nicolas Ferre
Le 09/03/2015 04:47, Wenyou Yang a écrit : > Hi, > > The patch series purpose is to improve the AT91 pm code. > Create a procedure to handle the sdram self-fresh mode. > The standby mode uses same sram function as the suspend to memory mode, > > It is based on the branch, at91-4.0-fix

Re: [PATCH] perf: fix a segfault problem.

2015-03-13 Thread Wang Nan
On 2015/3/13 17:46, Namhyung Kim wrote: > On Fri, Mar 13, 2015 at 08:41:32AM +, Wang Nan wrote: >> Without this patch, perf report cause segfault if pass "" as '-t': >> >> $ perf report -t "" >> >> # To display the perf.data header info, please use >> --header/--header-only options. >>

Re: [PATCH 2/2] pinctrl: mediatek: Adjust mt8173 pinctrl kconfig

2015-03-13 Thread Arnd Bergmann
On Friday 13 March 2015 14:46:35 Yingjoe Chen wrote: > > which will let you turn on the options if COMPILE_TEST is set, but not > > let you turn them off when the drivers are required. > > Yes, this is preferred. Because we don't have MACH_MT8173, so it is > possible a ARM64 + ARCH_MEDIATEK system

Re: [PATCH] Fix page-flags build

2015-03-13 Thread Jiri Olsa
On Thu, Mar 12, 2015 at 03:54:39PM -0700, Andrew Morton wrote: > On Thu, 12 Mar 2015 15:39:13 -0700 Andi Kleen wrote: > > > From: Andi Kleen > > > > libabikfs.a doesn't exist anymore, so we now need to link with > > libapi.a > > > > Signed-off-by: Andi Kleen > > --- > > tools/vm/Makefile | 2

3.18 to 3.19+: moon key stopped working

2015-03-13 Thread Pavel Machek
Hi! Suspend-to-RAM works on the desktop, but moon key in X no longer triggers it. Booting to older kernel seems to fix it. 3.19+ may be 4.0-rc0, not sure. Let me try latest 4.0. Pavel -- (english) http://www.livejournal.com

[PATCH] tracing: add trace event for memory-failure

2015-03-13 Thread Xie XiuQi
Memory-failure as the high level machine check handler, it's necessary to report memory page recovery action result to user space by ftrace. This patch add a event at ras group for memory-failure. The output like below: # tracer: nop # # entries-in-buffer/entries-written: 2/2 #P:24 # #

Re: [PATCH v5 07/10] ARM: at91: time: move the system timer driver to drivers/clocksource

2015-03-13 Thread Daniel Lezcano
On 03/12/2015 01:07 PM, Alexandre Belloni wrote: Import at91rm9200_time.c from mach-at91 as timer-atmel-st.c. Further cleanup is required to get rid of the mach-at91 headers. Signed-off-by: Alexandre Belloni Acked-by: Boris Brezillon It would have make more sense to remove the mach headers f

Re: [PATCH] mmc: sdhci: fix card presence logic in sdhci_request function

2015-03-13 Thread Ulf Hansson
On 10 March 2015 at 19:35, Scott Branden wrote: > The sdhci_request function should consider a non-removable device > always present. > Call the correct logic already available in sdhci_do_get_cd function. > > This fixes some logic paths where MMC requests are being made to > non-removable devices

Re: [PATCH] mmc: sdhci-iproc: fix oops in sdhci_iproc_writew

2015-03-13 Thread Ulf Hansson
On 13 March 2015 at 02:11, Dmitry Torokhov wrote: > The driver co-allocates sdhci_iproc_host with sdhci_pltfm_host and so to > access it we need to use sdhci_pltfm_priv() and not pltfm_host->priv. > > Signed-off-by: Dmitry Torokhov Thanks, applied! Kind regards Uffe > --- > drivers/mmc/host/

Re: [PATCH v3 3/5] i2c: recovery: change input parameter to i2c_adapter for prepare/unprepare_recovery

2015-03-13 Thread grygorii.stras...@linaro.org
Hi Wolfram, On 03/12/2015 01:32 PM, Alexander Sverdlin wrote: > On 01/12/14 16:34, Grygorii Strashko wrote: >> This patch changes type of input parameter for .prepare/unprepare_recovery() >> callbacks from struct i2c_bus_recovery_info * to struct i2c_adapter *. >> This allows to simplify implement

Re: [PATCH v5 08/10] clocksource: atmel-st: use syscon/regmap

2015-03-13 Thread Daniel Lezcano
On 03/12/2015 01:07 PM, Alexandre Belloni wrote: The register range from the system timer is also used by the watchdog driver. Use a regmap to handle concurrent accesses. Signed-off-by: Alexandre Belloni Acked-by: Boris Brezillon Acked-by: Daniel Lezcano --- drivers/clocksource/timer-at

[PATCH v2] uio: Fix uio driver to refcount device

2015-03-13 Thread Brian Russell
Protect uio driver from crashing if its owner is hot unplugged while there are open fds. Signed-off-by: Brian Russell --- drivers/uio/uio.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index 6276f13..70ce015 100644 --- a/drivers

Re: [PATCH v5 09/10] clocksource: atmel-st: remove mach/hardware dependency

2015-03-13 Thread Daniel Lezcano
On 03/12/2015 01:07 PM, Alexandre Belloni wrote: Remove the mach/hardware dependency to prepare the driver for multiplatform support. Also switch from setup_irq() to request_irq() Signed-off-by: Alexandre Belloni --- drivers/clocksource/timer-atmel-st.c | 21 + 1 file cha

Re: [PATCH v5 10/10] ARM: at91: remove useless include

2015-03-13 Thread Daniel Lezcano
On 03/12/2015 01:07 PM, Alexandre Belloni wrote: Both drivers using the system timer are now converted to an MFD. mach/at91_st.h is now useless. Signed-off-by: Alexandre Belloni Acked-by: Boris Brezillon Acked-by: Daniel Lezcano --- arch/arm/mach-at91/include/mach/at91_st.h | 61 ---

Re: [PATCH v5 00/10] Atmel System Timer cleanups

2015-03-13 Thread Daniel Lezcano
On 03/12/2015 01:07 PM, Alexandre Belloni wrote: This patch set cleans up the system timer driver. The main goal is to get rid of the mach/ headers dependency. At the same time, it introduces proper probing and locking (using a regmap) for the watchdog driver. This is based on 4.0-rc1 and will

Re: [PATCH v3 05/12] clocksource: add dependencies for Vybrid pit clocksource

2015-03-13 Thread Daniel Lezcano
On 03/13/2015 12:36 AM, Stefan Agner wrote: Add the minimal dependencies required to use the Vybrid PIT clocksource driver. Those are not part of the SoC dependencies. Signed-off-by: Stefan Agner Acked-by: Daniel Lezcano --- drivers/clocksource/Kconfig | 2 ++ 1 file changed, 2 insertio

Re: [PATCH 00/56] staging: comedi: introduce comedi_pci.h header

2015-03-13 Thread Ian Abbott
On 12/03/15 10:29, Ian Abbott wrote: On 10/03/15 16:25, Joe Perches wrote: On Tue, 2015-03-10 at 16:10 +, Ian Abbott wrote: "comedidev.h" includes PCI-specific stuff that gets included by all comedi drivers including non-PCI ones. Separate it out into its own header "comedi_pci.h". Make t

[PATCHv3 1/7] zram: remove `num_migrated' device attr

2015-03-13 Thread Sergey Senozhatsky
Remove sysfs `num_migrated' attribute. We are moving away from per-stat device attrs towards 3 stat files that will accumulate io and mm stats in a format similar to block layer statistics in /sys/block//stat. That will be easier to use in user space, and reduce the number of syscalls needed to rea

[PATCHv3 2/7] zram: move compact_store() to sysfs functions area

2015-03-13 Thread Sergey Senozhatsky
A cosmetic change. We have a new code layout and keep zram per-device sysfs store and show functions in one place. Move compact_store() to that handlers block to conform to current layout. Acked-by: Minchan Kim Signed-off-by: Sergey Senozhatsky --- drivers/block/zram/zram_drv.c | 42 +++

[PATCHv3 0/7] new zram statistics reporting scheme

2015-03-13 Thread Sergey Senozhatsky
Hello, This patch introduces rework to zram stats. We have per-stat sysfs nodes, and it makes things a bit hard to use in user space: it doesn't give an immediate stats 'snapshot', it requires user space to use more syscals -- open, read, close for every stat file, with appropriate error checks on

[PATCHv3 4/7] zram: describe device attrs in documentation

2015-03-13 Thread Sergey Senozhatsky
Briefly describe exported device stat attrs in zram documentation. We will eventually get rid of per-stat sysfs nodes and, thus, clean up Documentation/ABI/testing/sysfs-block-zram file, which is the only source of information about device sysfs nodes. Add `num_migrated' description, since there i

[PATCH] parisc: fix pmd accounting with 3-level page tables

2015-03-13 Thread Kirill A. Shutemov
There's hack in pgd_alloc() on parisc to initialize one pmd, which is not accounted. It leads to underflow on exit. Let's adjust nr_pmds on pgd_alloc() to get accounting correct. Signed-off-by: Kirill A. Shutemov Cc: John David Anglin Cc: Aaro Koskinen Cc: Graham Gower Cc: Domenico Andreoli

[PATCHv3 7/7] zram: deprecate zram attrs sysfs nodes

2015-03-13 Thread Sergey Senozhatsky
Add Documentation/ABI/obsolete/sysfs-block-zram file and list obsolete and deprecated attributes there. The patch also adds additional information to zram documentation and describes the basic strategy: - the existing RW nodes will be downgraded to WO nodes (in 4.11) - deprecated RO sysfs nodes wil

Re: [rtc-linux] [PATCH 2/2] rtc: mediatek: Add MT63xx RTC driver

2015-03-13 Thread Eddie Huang
Hi, On Mon, 2015-02-23 at 13:50 -0800, Andrew Morton wrote: > On Wed, 28 Jan 2015 17:27:56 +0800 Eddie Huang > wrote: > > > From: Tianping Fang > > > > Add Mediatek MT63xx RTC driver > > There are a couple of checkpatch warnings which should be addressed, > please: > > WARNING: added, moved

[PATCHv3 6/7] zram: export new 'mm_stat' sysfs attrs

2015-03-13 Thread Sergey Senozhatsky
Per-device `zram/mm_stat' file provides mm statistics of a particular zram device in a format similar to block layer statistics. The file consists of a single line and represents the following stats (separated by whitespace): orig_data_size compr_data_size mem_used_total

Re: [PATCH] crypto: algif_rng - zeroize buffer holding random data

2015-03-13 Thread Herbert Xu
On Wed, Mar 11, 2015 at 07:45:35AM +0100, Stephan Mueller wrote: > Due to the change to RNGs to always return zero in success case, the RNG > interface must zeroize the buffer with the length provided by the > caller. > > Signed-off-by: Stephan Mueller Your patch is line-wrapped and doesn't appl

[PATCHv3 5/7] zram: export new 'io_stat' sysfs attrs

2015-03-13 Thread Sergey Senozhatsky
Per-device `zram/io_stat' file provides accumulated I/O statistics of particular zram device in a format similar to block layer statistics. The file consists of a single line and represents the following stats (separated by whitespace): failed_reads failed_writes invalid_io

[PATCHv3 3/7] zram: use generic start/end io accounting

2015-03-13 Thread Sergey Senozhatsky
Use bio generic_start_io_acct() and generic_end_io_acct() to account device's block layer statistics. This will let users to monitor zram activities using sysstat and similar packages/tools. Apart from the usual per-stat sysfs attr, zram IO stats are now also available in '/sys/block/zram/stat' an

Re: [PATCH v2] crypto: AES-NI - fix memory usage in GCM decryption

2015-03-13 Thread Herbert Xu
On Thu, Mar 12, 2015 at 09:17:51AM +0100, Stephan Mueller wrote: > The kernel crypto API logic requires the caller to provide the > length of (ciphertext || authentication tag) as cryptlen for the > AEAD decryption operation. Thus, the cipher implementation must > calculate the size of the plaintex

Re: [PATCH v5 00/10] Atmel System Timer cleanups

2015-03-13 Thread Alexandre Belloni
On 13/03/2015 at 11:23:05 +0100, Daniel Lezcano wrote : > On 03/12/2015 01:07 PM, Alexandre Belloni wrote: > >This patch set cleans up the system timer driver. > > > >The main goal is to get rid of the mach/ headers dependency. At the same > >time, > >it introduces proper probing and locking (usin

Re: [PATCH v5 00/10] Atmel System Timer cleanups

2015-03-13 Thread Daniel Lezcano
On 03/13/2015 11:33 AM, Alexandre Belloni wrote: On 13/03/2015 at 11:23:05 +0100, Daniel Lezcano wrote : On 03/12/2015 01:07 PM, Alexandre Belloni wrote: This patch set cleans up the system timer driver. The main goal is to get rid of the mach/ headers dependency. At the same time, it introduc

Re: [PATCH v3 2/4] arm64: dts: Add Qualcomm MSM8916 SoC and evaluation board dts

2015-03-13 Thread Mark Rutland
> > Which of spin-table/psci are you planning on using for SMP support, and > > when would that be likely to appear? > > We have a qcom specific SMP enablement method for this device. This > was one of our first devices so it utilized as much from arm 32-bit as > possible. Implementation specifi

Re: [PATCH 2/4] x86/fpu: introduce restore_init_xstate()

2015-03-13 Thread Borislav Petkov
On Wed, Mar 11, 2015 at 06:34:29PM +0100, Oleg Nesterov wrote: > Extract the "use_eager_fpu()" code from drop_init_fpu() into the new > simple helper, restore_init_xstate(). The next patch adds another user. > > - It is not clear why we do not check use_fxsr() like fpu_restore_checking() > does.

Re: [PATCH] selftests/kcmp: exit with non-zero code in a fail case

2015-03-13 Thread Michael Ellerman
On Fri, 2015-03-13 at 12:27 +0300, Andrey Vagin wrote: > diff --git a/tools/testing/selftests/kselftest.h > b/tools/testing/selftests/kselftest.h > index 572c888..a0ec8b8 100644 > --- a/tools/testing/selftests/kselftest.h > +++ b/tools/testing/selftests/kselftest.h > @@ -58,5 +58,17 @@ static inli

Re: [PATCH 4/15] crypto: don't export static symbol

2015-03-13 Thread Herbert Xu
On Wed, Mar 11, 2015 at 05:56:26PM +0100, Julia Lawall wrote: > From: Julia Lawall > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @r@ > type T; > identifier f; > @@ > > static T f (...) { ... } > > @@ > identifier r.f; > declarer name EXP

Re: [PATCH net-next 0/2] bpf: allow extended BPF programs access skb fields

2015-03-13 Thread Daniel Borkmann
On 03/13/2015 03:21 AM, Alexei Starovoitov wrote: ... Daniel, patch 1 includes a bit of code that does prog_realloc and branch adjustment to make room for new instructions. I think you'd need the same for your 'constant blinding' work. If indeed that would be the case, we'll make it into a helper

Re: [PATCH v5 02/10] mfd: syscon: Add atmel system timer registers definition

2015-03-13 Thread Alexandre Belloni
Hi, On 13/03/2015 at 08:03:15 +, Lee Jones wrote : > On Thu, 12 Mar 2015, Alexandre Belloni wrote: > > > AT91RM920 has a memory range reserved for timer and watchdog configuration. > > Expose those registers so that drivers can make use of the system timer > > syscon > > declared in at91 DTs

Re: [PATCH RT 16/39] locking/rt-mutex: avoid a NULL pointer dereference on deadlock

2015-03-13 Thread Sebastian Andrzej Siewior
* Steven Rostedt | 2015-03-12 15:13:23 [-0400]: >3.14.34-rt32-rc1 stable review patch. >If anyone has any objections, please let me know. If you take this, could you take 9d3e2d02f54160725d97f4ab1e1e8de493fbf33a ("locking/rtmutex: Set state back to running on error") it sits on my queue and is up

Re: [PATCH v5 09/10] clocksource: atmel-st: remove mach/hardware dependency

2015-03-13 Thread Alexandre Belloni
On 13/03/2015 at 11:21:35 +0100, Daniel Lezcano wrote : > On 03/12/2015 01:07 PM, Alexandre Belloni wrote: > >Remove the mach/hardware dependency to prepare the driver for multiplatform > >support. > >Also switch from setup_irq() to request_irq() > > > >Signed-off-by: Alexandre Belloni > >--- > >

[PATCH RESEND] crypto: algif_rng - zeroize buffer with random data

2015-03-13 Thread Stephan Mueller
Due to the change to RNGs to always return zero in success case, the RNG interface must zeroize the buffer with the length provided by the caller. Signed-off-by: Stephan Mueller --- crypto/algif_rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/algif_rng.c b/crypto

Re: [PATCH] iio: si7020: Fix endianness for I2C reads

2015-03-13 Thread Lars-Peter Clausen
On 03/13/2015 03:53 AM, Andrey Smirnov wrote: Si7020 outputs most significant byte of the measurement result first and least significant byte last. As a result the data returned by i2c_smbus_read_word_data appears as big endian. Fix this by making a call to an approbriate byte conversion routine.

Re: [PATCH 3/4] x86/fpu: use restore_init_xstate() instead of math_state_restore() on kthread exec

2015-03-13 Thread Borislav Petkov
On Wed, Mar 11, 2015 at 06:34:49PM +0100, Oleg Nesterov wrote: > Change flush_thread() to do user_fpu_begin() + restore_init_xstate() > and avoid math_state_restore(). > > Note: "TODO: cleanup this horror" is still valid. We do not need > init_fpu() at all, we only need fpu_alloc() + memset(0). Bu

[PATCH v2] powercap/rapl: handle domain energy unit

2015-03-13 Thread Jacob Pan
The current driver assumes all RAPL domains within a CPU package have the same energy unit. This is no longer true for HSW server CPUs since DRAM domain has is own fixed energy unit which can be different than the package energy unit enumerated by package power MSR. In fact, the default HSW EP pack

Re: [PATCH v4 2/4] arm64: dts: Add Qualcomm MSM8916 SoC and evaluation board dts

2015-03-13 Thread Mark Rutland
> +/ { > + chosen { > + stdout-path = &blsp1_uart2; > + }; It would be good if we had the configuration too (see Documentation/devicetree/bindings/chosen.txt), as that avoids any reliance on kernel defaults. You can refer to an alias, so this could be: aliases { seria

Re: [PATCH] powercap/rapl: handle domain energy unit

2015-03-13 Thread Jacob Pan
On Thu, 12 Mar 2015 17:50:20 -0500 kazutomo wrote: > On 03/12/2015 05:05 PM, Jacob Pan wrote: > > On Thu, 12 Mar 2015 16:59:43 -0500 > > kazutomo wrote: > > > >>> according to the document, future DRAM energy unit will always be > >>> hardcoded to 15.3uJ, no enumeration since there is no domain

Re: [PATCH 18/24] perf stat: Output running time and run/enabled ratio in CSV mode

2015-03-13 Thread Arnaldo Carvalho de Melo
Em Fri, Mar 13, 2015 at 08:34:41AM +0100, Ingo Molnar escreveu: > * Arnaldo Carvalho de Melo wrote: > > From: Andi Kleen > > +static void print_running(u64 run, u64 ena) > > +{ > > + if (csv_output) { > > + fprintf(output, "%s%" PRIu64 "%s%.2f", > > +

Re: [PATCH 4/4] x86/fpu: don't abuse drop_init_fpu() in flush_thread()

2015-03-13 Thread Borislav Petkov
On Wed, Mar 11, 2015 at 06:35:07PM +0100, Oleg Nesterov wrote: > drop_init_fpu() makes no sense. We need drop_fpu() and only if Oh, please explain why. I can try to rhyme it up as something like "we don't need to restore FPU context when flushing the thread" but I'm not sure... > !use_eager_fpu()

[PATCH v6 09/10] clocksource: atmel-st: remove mach/hardware dependency

2015-03-13 Thread Alexandre Belloni
Remove the mach/hardware dependency to prepare the driver for multiplatform support. Also switch from setup_irq() to request_irq() Signed-off-by: Alexandre Belloni Acked-by: Daniel Lezcano --- drivers/clocksource/timer-atmel-st.c | 23 +-- 1 file changed, 9 insertions(+), 14

Re: [PATCH RT 16/39] locking/rt-mutex: avoid a NULL pointer dereference on deadlock

2015-03-13 Thread Sebastian Andrzej Siewior
* Sebastian Andrzej Siewior | 2015-03-13 11:40:47 [+0100]: >If you take this, could you take 9d3e2d02f54160725d97f4ab1e1e8de493fbf33a >("locking/rtmutex: Set state back to running on error") it sits on my >queue and is upstream already. Or forget what I said. It is there already, it has been remo

Re: [rtc-linux] [PATCH 2/2] rtc: mediatek: Add MT63xx RTC driver

2015-03-13 Thread Sascha Hauer
Hi Eddie, On Fri, Mar 13, 2015 at 06:29:23PM +0800, Eddie Huang wrote: > > regmap_read() and regmap_write() can return errors. There is no > > checking for this. > > > > I encounter some trouble when I add code to check return value of > regmap_read and regmap_write. Every RTC register access t

Re: [RFC 1/6] drm: Add top level Kconfig option for DRM fbdev emulation

2015-03-13 Thread Archit Taneja
On 03/13/2015 02:36 PM, Daniel Vetter wrote: On Fri, Mar 13, 2015 at 11:55:07AM +0530, Archit Taneja wrote: On 03/11/2015 08:47 PM, Daniel Vetter wrote: On Wed, Mar 11, 2015 at 01:51:02PM +0530, Archit Taneja wrote: On 03/10/2015 05:47 PM, Daniel Vetter wrote: On Tue, Mar 10, 2015 at 03

Re: [PATCH RT 00/39] Linux 3.14.34-rt32-rc1

2015-03-13 Thread Sebastian Andrzej Siewior
* Steven Rostedt | 2015-03-12 15:13:07 [-0400]: >Please scream at me if I messed something up. Please test the patches too. Could you add Mike's "3.14.23-rt20 - fs,btrfs: fix rt deadlock on extent_buffer->loc" [0] and that is the upper chunk (ctree.c only). As I mentioned in the thread, the code

Re: [PATCH v10 18/21] ARM64 / ACPI: Select ACPI_REDUCED_HARDWARE_ONLY if ACPI is enabled on ARM64

2015-03-13 Thread Lorenzo Pieralisi
On Fri, Mar 13, 2015 at 03:28:45AM +, Hanjun Guo wrote: [...] > > /* > > * acpi_boot_table_init() called from setup_arch(), always. > > * 1. find RSDP and get its address, and then find XSDT > > * 2. extract all tables and checksums them all > > * 3. check ACPI FADT revision > > + *

Re: [PATCH v2 0/3] btrfs: ENOMEM bugfixes

2015-03-13 Thread David Sterba
On Wed, Mar 11, 2015 at 09:40:17PM -0700, Omar Sandoval wrote: > Ping. For anyone following along, it looks like commit cc87317726f8 > ("mm: page_alloc: revert inadvertent !__GFP_FS retry behavior change") > reverted the commit that exposed these bugs. Josef said he was okay with > taking these, wi

Re: [PATCH 2/2] Documentation: omap-twl4030: Remove ti,codec property

2015-03-13 Thread Arnd Bergmann
On Thursday 12 March 2015 22:14:59 Marek Belisko wrote: > diff --git a/Documentation/devicetree/bindings/sound/omap-twl4030.txt > b/Documentation/devicetree/bindings/sound/omap-twl4030.txt > index 1ab6bc8..656165f 100644 > --- a/Documentation/devicetree/bindings/sound/omap-twl4030.txt > +++ b/Docu

Re: [PATCH] selftests/kcmp: exit with non-zero code in a fail case

2015-03-13 Thread Andrey Wagin
2015-03-13 13:37 GMT+03:00 Michael Ellerman : > On Fri, 2015-03-13 at 12:27 +0300, Andrey Vagin wrote: >> diff --git a/tools/testing/selftests/kselftest.h >> b/tools/testing/selftests/kselftest.h >> index 572c888..a0ec8b8 100644 >> --- a/tools/testing/selftests/kselftest.h >> +++ b/tools/testing/s

Re: [PATCH v6 2/4] pci: iProc: define iProc PCIe platform bus binding

2015-03-13 Thread Arnd Bergmann
On Thursday 12 March 2015 16:14:48 Bjorn Helgaas wrote: > [+cc Rob, Pawel, Mark, Ian, Kumar] > > On Wed, Mar 11, 2015 at 11:06:07AM -0700, Ray Jui wrote: > > Document the Broadcom iProc PCIe platform interface device tree binding > > > > Signed-off-by: Ray Jui > > Reviewed-by: Scott Branden >

Re: [PATCH 01/16] staging: rtl8723au: Reformat whitespace to increase readability

2015-03-13 Thread M. Vefa Bicakci
On 13/03/15 12:53 AM, Sudip Mukherjee wrote: > you have not added the maintainers in your To list, and usually > initials are discouraged in the Signed-off-by. The name here should > be the name the way you use it to sign legal documents. Hello Sudip, This is a first for me, so thank you for the

Re: [rtc-linux] [PATCH 2/2] rtc: mediatek: Add MT63xx RTC driver

2015-03-13 Thread Matthias Brugger
On 13/03/15 11:29, Eddie Huang wrote: > > I encounter some trouble when I add code to check return value of > regmap_read and regmap_write. Every RTC register access through regmap, > and there are many register read/write in this driver. If I check every > return value, the driver will become u

Re: [PATCH] mmc: dw_mmc: Add a timeout for sending CMD11

2015-03-13 Thread Jaehoon Chung
Hi Doug. This patch is a right process. Just i wonder something. On 03/10/2015 08:18 AM, Doug Anderson wrote: > In the Designware databook's description of the "Voltage Switch Normal > Scenario" it instructs us to set a timer and fail the voltage change > if we don't see the voltage change interr

Re: Re: [PATCHv2 2/8] perf probe: Improve detection of file/function name in the probe pattern

2015-03-13 Thread Masami Hiramatsu
(2015/03/13 5:24), Arnaldo Carvalho de Melo wrote: > Em Mon, Dec 15, 2014 at 08:20:32PM +0530, Naveen N. Rao escreveu: >> Currently, perf probe considers patterns including a '.' to be a file. >> However, this causes problems on powerpc ABIv1 where all functions have >> a leading '.': >> >> $ per

Re: [PATCH] perf: fix a segfault problem.

2015-03-13 Thread Namhyung Kim
On Fri, Mar 13, 2015 at 06:07:34PM +0800, Wang Nan wrote: > On 2015/3/13 17:46, Namhyung Kim wrote: > > On Fri, Mar 13, 2015 at 08:41:32AM +, Wang Nan wrote: > >> Without this patch, perf report cause segfault if pass "" as '-t': > >> > >> $ perf report -t "" > >> > >> # To display the pe

Re: LZ4 : fix the data abort issue.

2015-03-13 Thread David Sterba
On Thu, Mar 12, 2015 at 08:28:55AM +, Yeon, JeHyeon (Tom) wrote: > If the part of the compression data are corrupted, or the compression > data is totally fake, the memory access over the limit is possible. > > This is the log from my system usning lz4 decompression. >[6502]data abort, hal

Re: [RFC][PATCH] amdkfd: Convert timestamping to use 64bit time accessors

2015-03-13 Thread Arnd Bergmann
On Thursday 12 March 2015 10:23:40 John Stultz wrote: > Convert the timestamping in the amdkfd driver to use > a timespec64 and 64bit time accessors. > > Cc: Arnd Bergmann > Cc: Oded Gabbay > Cc: David Airlie > Cc: dri-de...@lists.freedesktop.org > Signed-off-by: John Stultz > The patch look

[PATCH] mtd: fsl_ifc_nand: use msecs_to_jiffies for time conversion

2015-03-13 Thread Nicholas Mc Guire
CONFIG_MTD_NAND_FSL_IFC=y) Patch is against 4.0-rc3 (localversion-next is -next-20150313 drivers/mtd/nand/fsl_ifc_nand.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mtd/nand/fsl_ifc_nand.c index 4c05f4f..51394e5 100644 --- a

Re: [PATCH v6 tip 3/8] tracing: allow BPF programs to call bpf_ktime_get_ns()

2015-03-13 Thread He Kuang
Hi, Alexei I've followed up your bpf version. In bpf filter, sometimes we need to get 'pid' and some other context informations to decide whether to filter or not. For example, to trace a vfs read procedure, we can insert bpf program to '__vfs_read(struct file *file, char __user *buf ...)', mark

<    1   2   3   4   5   6   7   8   9   >