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] 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 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

[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 # #

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

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

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] 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 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 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

[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: [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! >>

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: [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

[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

[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 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 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 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 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 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

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

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: [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 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: [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 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

[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:

[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 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 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 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

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

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 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

[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 resend v4] phy: Add driver to support individual USB PHYs on sun9i

2015-03-13 Thread Maxime Ripard
On Fri, Mar 13, 2015 at 04:24:14PM +0800, Chen-Yu Tsai wrote: > >> + phy->vbus = devm_regulator_get_optional(dev, "vbus"); > > > > > > Looks like vbus-supply is not documented in the binding documentation. > > However you can use the phy-supply from the generic binding so that phy-core > > ca

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

2015-03-13 Thread Andrey Vagin
Currently this test always returs zero code and a child process returns non-zero code only if the last testcase failed. Cc: Shuah Khan Cc: Cyrill Gorcunov Signed-off-by: Andrey Vagin --- tools/testing/selftests/kcmp/kcmp_test.c | 16 ++-- tools/testing/selftests/kselftest.h |

Re: [PATCH 15/22] drm: %pF is only for function pointers

2015-03-13 Thread Daniel Vetter
On Wed, Mar 11, 2015 at 10:13:50PM -0500, Scott Wood wrote: > Use %pS for actual addresses, otherwise you'll get bad output > on arches like ppc64 where %pF expects a function descriptor. > > Signed-off-by: Scott Wood > Cc: dri-de...@lists.freedesktop.org Applied to drm-misc, thanks. -Daniel >

Re: [PATCH] fs: btrfs: Add missing include file

2015-03-13 Thread David Sterba
On Fri, Mar 13, 2015 at 01:58:46AM -0700, Guenter Roeck wrote: > Building alpha:allmodconfig fails with > > fs/btrfs/inode.c: In function 'check_direct_IO': > fs/btrfs/inode.c:8050:2: error: implicit declaration of function > 'iov_iter_alignment' > > due to a missing include file. > > Fixes: 37

question about drivers/mailbox/pcc.c

2015-03-13 Thread Julia Lawall
Hello, The patch 86c22f8c9a3b from Wed Nov 12 19:59:38 2014 in linux-next introduces a file that contains two exported functions: pcc_mbox_request_channel and pcc_mbox_free_channel. As far as I can see, these functions are not used by any modules in the kernel source tree. Is there some code comi

[tip:timers/core] clocksource: Add some debug info about clocksources being registered

2015-03-13 Thread tip-bot for John Stultz
Commit-ID: 8cc8c525ad4e7b581cacf84119e1a28dcb4044db Gitweb: http://git.kernel.org/tip/8cc8c525ad4e7b581cacf84119e1a28dcb4044db Author: John Stultz AuthorDate: Wed, 11 Mar 2015 21:16:39 -0700 Committer: Ingo Molnar CommitDate: Fri, 13 Mar 2015 08:07:07 +0100 clocksource: Add some debug

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

2015-03-13 Thread Daniel Vetter
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:52:41PM +0530, Archit Tane

[tip:timers/core] clocksource: Rename __clocksource_updatefreq_*( ) to __clocksource_update_freq_*()

2015-03-13 Thread tip-bot for John Stultz
Commit-ID: fba9e07208c0f9d92d9f73761c99c8612039da44 Gitweb: http://git.kernel.org/tip/fba9e07208c0f9d92d9f73761c99c8612039da44 Author: John Stultz AuthorDate: Wed, 11 Mar 2015 21:16:40 -0700 Committer: Ingo Molnar CommitDate: Fri, 13 Mar 2015 08:07:08 +0100 clocksource: Rename __clocks

[tip:timers/core] clocksource: Mostly kill clocksource_register()

2015-03-13 Thread tip-bot for John Stultz
Commit-ID: f8935983f110505daa38e8d36ee406807f83a069 Gitweb: http://git.kernel.org/tip/f8935983f110505daa38e8d36ee406807f83a069 Author: John Stultz AuthorDate: Wed, 11 Mar 2015 21:16:37 -0700 Committer: Ingo Molnar CommitDate: Fri, 13 Mar 2015 08:07:06 +0100 clocksource: Mostly kill clo

[tip:timers/core] clocksource, sparc32: Convert to using clocksource_register_hz()

2015-03-13 Thread tip-bot for John Stultz
Commit-ID: 3142f76022fe46f6e0a0d3940b23fb6ccb794692 Gitweb: http://git.kernel.org/tip/3142f76022fe46f6e0a0d3940b23fb6ccb794692 Author: John Stultz AuthorDate: Wed, 11 Mar 2015 21:16:38 -0700 Committer: Ingo Molnar CommitDate: Fri, 13 Mar 2015 08:07:07 +0100 clocksource, sparc32: Conver

[tip:timers/core] clocksource: Improve clocksource watchdog reporting

2015-03-13 Thread tip-bot for John Stultz
Commit-ID: 0b046b217ad4c64fbbeaaac24d0648cb1fa49ad8 Gitweb: http://git.kernel.org/tip/0b046b217ad4c64fbbeaaac24d0648cb1fa49ad8 Author: John Stultz AuthorDate: Wed, 11 Mar 2015 21:16:36 -0700 Committer: Ingo Molnar CommitDate: Fri, 13 Mar 2015 08:07:06 +0100 clocksource: Improve clockso

[tip:timers/core] timekeeping: Try to catch clocksource delta underflows

2015-03-13 Thread tip-bot for John Stultz
Commit-ID: 057b87e3161d1194a095718f9918c01b2c389e74 Gitweb: http://git.kernel.org/tip/057b87e3161d1194a095718f9918c01b2c389e74 Author: John Stultz AuthorDate: Wed, 11 Mar 2015 21:16:34 -0700 Committer: Ingo Molnar CommitDate: Fri, 13 Mar 2015 08:07:05 +0100 timekeeping: Try to catch cl

[tip:timers/core] timekeeping: Add warnings when overflows or underflows are observed

2015-03-13 Thread tip-bot for John Stultz
Commit-ID: 4ca22c2648f9c1cec0b242f58d7302136f5a4cbb Gitweb: http://git.kernel.org/tip/4ca22c2648f9c1cec0b242f58d7302136f5a4cbb Author: John Stultz AuthorDate: Wed, 11 Mar 2015 21:16:35 -0700 Committer: Ingo Molnar CommitDate: Fri, 13 Mar 2015 08:07:05 +0100 timekeeping: Add warnings wh

[PATCH -next] mm: MEMTEST depends on MEMBLOCK

2015-03-13 Thread Guenter Roeck
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 declaration of function 'for_each_free_mem_range' mm/memtes

[tip:timers/core] timekeeping: Add checks to cap clocksource reads to the 'max_cycles' value

2015-03-13 Thread tip-bot for John Stultz
Commit-ID: a558cd021d83b65c47ee5b9bec1fcfe5298a769f Gitweb: http://git.kernel.org/tip/a558cd021d83b65c47ee5b9bec1fcfe5298a769f Author: John Stultz AuthorDate: Wed, 11 Mar 2015 21:16:33 -0700 Committer: Ingo Molnar CommitDate: Fri, 13 Mar 2015 08:07:04 +0100 timekeeping: Add checks to c

[tip:timers/core] clocksource: Simplify the logic around clocksource wrapping safety margins

2015-03-13 Thread tip-bot for John Stultz
Commit-ID: 362fde0410377e468ca00ad363fdf3e3ec42eb6a Gitweb: http://git.kernel.org/tip/362fde0410377e468ca00ad363fdf3e3ec42eb6a Author: John Stultz AuthorDate: Wed, 11 Mar 2015 21:16:30 -0700 Committer: Ingo Molnar CommitDate: Thu, 12 Mar 2015 10:16:38 +0100 clocksource: Simplify the lo

[tip:timers/core] timekeeping: Add debugging checks to warn if we see delays

2015-03-13 Thread tip-bot for John Stultz
Commit-ID: 3c17ad19f0697ffe5ef7438cdafc2d2b7757d8a5 Gitweb: http://git.kernel.org/tip/3c17ad19f0697ffe5ef7438cdafc2d2b7757d8a5 Author: John Stultz AuthorDate: Wed, 11 Mar 2015 21:16:32 -0700 Committer: Ingo Molnar CommitDate: Fri, 13 Mar 2015 08:06:58 +0100 timekeeping: Add debugging c

[tip:timers/core] clocksource: Add 'max_cycles' to ' struct clocksource'

2015-03-13 Thread tip-bot for John Stultz
Commit-ID: fb82fe2fe8588745edd73aa3a6229facac5c1e15 Gitweb: http://git.kernel.org/tip/fb82fe2fe8588745edd73aa3a6229facac5c1e15 Author: John Stultz AuthorDate: Wed, 11 Mar 2015 21:16:31 -0700 Committer: Ingo Molnar CommitDate: Thu, 12 Mar 2015 10:16:38 +0100 clocksource: Add 'max_cycles

Re: [Patch v4 2/2] dmaengine: Add ADM driver

2015-03-13 Thread Vinod Koul
On Wed, Feb 11, 2015 at 11:46:05PM -0600, Andy Gross wrote: > +++ b/drivers/dma/qcom_adm.c > @@ -0,0 +1,901 @@ > +/* > + * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. shouldn't this be 15 :) +/* ADM registers - calculated from channel number and security domain */ > +#defi

[tip:timers/core] clocksource: Simplify the clocks_calc_max_nsecs () logic

2015-03-13 Thread tip-bot for John Stultz
Commit-ID: 6086e346fdea1ae64d974c94c1acacc2605567ae Gitweb: http://git.kernel.org/tip/6086e346fdea1ae64d974c94c1acacc2605567ae Author: John Stultz AuthorDate: Wed, 11 Mar 2015 21:16:29 -0700 Committer: Ingo Molnar CommitDate: Thu, 12 Mar 2015 10:16:38 +0100 clocksource: Simplify the cl

Re: [PATCH] fs: btrfs: Add missing include file

2015-03-13 Thread Guenter Roeck
On Fri, Mar 13, 2015 at 01:58:46AM -0700, Guenter Roeck wrote: > Building alpha:allmodconfig fails with > > fs/btrfs/inode.c: In function 'check_direct_IO': > fs/btrfs/inode.c:8050:2: error: implicit declaration of function > 'iov_iter_alignment' > > due to a missing include file. > > Fixes: 37

[PATCH] lib/vsprintf.c: silence sparse warnings about decpair[] initialization

2015-03-13 Thread Rasmus Villemoes
sparse is unhappy about the initialization of decpair[] and spews out a ton of "incorrect type in initializer (different base types)". Shut it up so useful warnings wouldn't drown in the noise. Signed-off-by: Rasmus Villemoes --- lib/vsprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

Re: [PATCH 00/12] Increased clocksource validation and cleanups (v4)

2015-03-13 Thread Ingo Molnar
* John Stultz wrote: > On Thu, Mar 12, 2015 at 2:19 AM, Ingo Molnar wrote: > > * John Stultz wrote: > >> New in v4: > >> * Lots and lots of typo corrections and minor cleanups suggested > >> by Ingo. > >> * Dropped "Remove clocksource_max_deferment()" patch > >> * Added "Rename __clocksource

[PATCH] fs: btrfs: Add missing include file

2015-03-13 Thread Guenter Roeck
Building alpha:allmodconfig fails with fs/btrfs/inode.c: In function 'check_direct_IO': fs/btrfs/inode.c:8050:2: error: implicit declaration of function 'iov_iter_alignment' due to a missing include file. Fixes: 3737c63e1fb0 ("fs: move struct kiocb to fs.h") Cc: Christoph Hellwig Signed-off-by

Re: linux-next: build failure after merge of the md tree

2015-03-13 Thread Guoqing Jiang
Stephen Rothwell wrote: > Hi Neil, > > On Mon, 2 Mar 2015 17:11:49 +1100 Stephen Rothwell > wrote: > >> On Mon, 2 Mar 2015 17:03:45 +1100 NeilBrown wrote: >> >>> I think >>> + bm_blocks = DIV_ROUND_UP(bm_blocks, 4096); >>> >>> needs DIV_ROUND_UP_SECTOR_T() >>> >> I t

[PATCH] Staging: lustre: fix space issue in workitem.c

2015-03-13 Thread Greg Kroah-Hartman
This patch fixes a space issue in the workitem.c file Signed-off-by: Greg Kroah-Hartman --- drivers/staging/lustre/lustre/libcfs/workitem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/libcfs/workitem.c b/drivers/staging/lustre/lustre/libcfs/

Re: [PATCH v3 06/15] drivers: reset: Add STM32 reset driver

2015-03-13 Thread Philipp Zabel
Am Donnerstag, den 12.03.2015, 22:55 +0100 schrieb Maxime Coquelin: > From: Maxime Coquelin > > The STM32 MCUs family IP can be reset by accessing some shared registers. > > The specificity is that some reset lines are used by the timers. > At timer initialization time, the timer has to be reset

Re: [PATCH v2 3/4] hwmon: (lm85) replace x_TO_REG() functions with find_closest()

2015-03-13 Thread Rasmus Villemoes
On Tue, Mar 10 2015, Bartosz Golaszewski wrote: > Replace RANGE_TO_REG() and FREQ_TO_REG() functions with calls > to find_closest(). > I think the other functions you've replaced only had a single caller, but RANGE_TO_REG is called in two places. It's not a huge function and 2 is not a big numbe

Re: [PATCH v3 05/15] dt-bindings: Document the STM32 reset bindings

2015-03-13 Thread Philipp Zabel
Hi Maxime, Am Donnerstag, den 12.03.2015, 22:55 +0100 schrieb Maxime Coquelin: > From: Maxime Coquelin > > This adds documentation of device tree bindings for the > STM32 reset controller. > > Signed-off-by: Maxime Coquelin > --- > .../devicetree/bindings/reset/st,stm32-rcc.txt | 102 > +

[PATCH] perf: fix a segfault problem.

2015-03-13 Thread Wang Nan
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:sys_enter_write' # Event count (approx.): 37 # # ChildrenSel

[PATCH] SUNRPC: fix build-warning due to format missmatch

2015-03-13 Thread Nicholas Mc Guire
fix build-warning introduced by commit: f0eede10fd4 ("SUNRPC: use jiffies_to_msecs for converting jiffies") which did not fixup the format properly (my bad). Signed-off-by: Nicholas Mc Guire --- This fixes the build warning reported by kbuild test robot - thanks ! >net/sunrpc/sched.c: In fu

[PATCH] ath9k_htc: check seq number instead of cmd id for timeout

2015-03-13 Thread Fred Chou
From: Fred Chou As the driver may send multiple wmi commands with identical cmd id, it is more robust to check seq number for timeout instead. Signed-off-by: Fred Chou --- drivers/net/wireless/ath/ath9k/wmi.c | 12 ++-- drivers/net/wireless/ath/ath9k/wmi.h | 2 +- 2 files changed, 7 i

Re: [PATCH 0/6] kbuild: mergeconfig: fix bugs, improve readability, and add generic entry point

2015-03-13 Thread Josh Triplett
On Fri, Mar 13, 2015 at 03:21:37PM +0900, Masahiro Yamada wrote: > > This series is related to mergeconfig (scripts/kconfig/merge_config.sh): > > 1/6 and 2/6 fix bugs related to the parallel build. (-j option). > 3/6 thru 5/6 are minor clean-ups. > 6/6 is a new feature; add a generic entry point

Re: [PATCH v2] mtd:spi-nor: Add Altera EPCQ Driver

2015-03-13 Thread Viet Nga Dao
Hi Brian, Thanks for your detail comment. I will make modification and submit the separated patches On Fri, Mar 13, 2015 at 3:38 PM, Brian Norris wrote: > Hi Viet, > > On Wed, Feb 11, 2015 at 12:53:00PM +0800, Viet Nga Dao wrote: >> From: Viet Nga Dao >> >> Altera EPCQ Controller is a soft IP wh

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

2015-03-13 Thread Chen-Yu Tsai
Hi, On Fri, Mar 13, 2015 at 2:37 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 12 March 2015 03:24 PM, Chen-Yu Tsai wrote: >> >> Unlike previous Allwinner SoCs, there is no central PHY control block >> on the A80. Also, OTG support is completely split off into a different >> controller.

[PATCH kernel v6 00/29] powerpc/iommu/vfio: Enable Dynamic DMA windows

2015-03-13 Thread Alexey Kardashevskiy
This enables sPAPR defined feature called Dynamic DMA windows (DDW). Each Partitionable Endpoint (IOMMU group) has an address range on a PCI bus where devices are allowed to do DMA. These ranges are called DMA windows. By default, there is a single DMA window, 1 or 2GB big, mapped at zero on a PCI

[PATCH kernel v6 03/29] vfio: powerpc/spapr: Check that TCE page size is equal to it_page_size

2015-03-13 Thread Alexey Kardashevskiy
This checks that the TCE table page size is not bigger that the size of a page we just pinned and going to put its physical address to the table. Otherwise the hardware gets unwanted access to physical memory between the end of the actual page and the end of the aligned up TCE page. Since compoun

[PATCH kernel v6 04/29] vfio: powerpc/spapr: Use it_page_size

2015-03-13 Thread Alexey Kardashevskiy
This makes use of the it_page_size from the iommu_table struct as page size can differ. This replaces missing IOMMU_PAGE_SHIFT macro in commented debug code as recently introduced IOMMU_PAGE_XXX macros do not include IOMMU_PAGE_SHIFT. Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson

[PATCH kernel v6 22/29] powerpc/iommu: Split iommu_free_table into 2 helpers

2015-03-13 Thread Alexey Kardashevskiy
The iommu_free_table helper release memory it is using (the TCE table and @it_map) and release the iommu_table struct as well. We might not want the very last step as we store iommu_table in parent structures. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/include/asm/iommu.h | 1 + arch/

[PATCH kernel v6 19/29] powerpc/powernv/ioda2: Rework iommu_table creation

2015-03-13 Thread Alexey Kardashevskiy
This moves iommu_table creation to the beginning. This is a mechanical patch. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/platforms/powernv/pci-ioda.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/platforms/powernv/pci-

[PATCH kernel v6 12/29] powerpc/iommu: Introduce iommu_table_alloc() helper

2015-03-13 Thread Alexey Kardashevskiy
This replaces multiple calls of kzalloc_node() with a new iommu_table_alloc() helper. Right now it calls kzalloc_node() but later it will be modified to allocate a iommu_table_group struct with a single iommu_table in it. Later the helper will allocate a iommu_table_group struct which embeds the i

[PATCH kernel v6 15/29] vfio: powerpc/spapr: powerpc/powernv/ioda2: Rework IOMMU ownership control

2015-03-13 Thread Alexey Kardashevskiy
At the moment the iommu_table struct has a set_bypass() which enables/ disables DMA bypass on IODA2 PHB. This is exposed to POWERPC IOMMU code which calls this callback when external IOMMU users such as VFIO are about to get over a PHB. The set_bypass() callback is not really an iommu_table functi

Re: [Cocci] [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-03-13 Thread Sebastian Andrzej Siewior
Hi Shawn, On Fri, Mar 13, 2015 at 11:29:32AM +0800, Shawn Guo wrote: > We did not add a DT property for it, because there was already enough > info (clock configuration) in DT for kernel to figure it out. Correct. My understanding is whatever can be figured out without DT should be done that way.

Re: [RFC/PATCHSET 0/6] perf kmem: Implement page allocation analysis (v1)

2015-03-13 Thread Namhyung Kim
Hi Ingo, On Thu, Mar 12, 2015 at 04:54:22PM +0100, Ingo Molnar wrote: > > * Namhyung Kim wrote: > > > > I.e. something like this (mockup) output: > > > > > >SUMMARY (page allocator) > > > > > > > > >Pages allocated+freed: 12,593 [ 51,630,080 byt

[PATCH kernel v6 20/29] powerpc/powernv/ioda2: Introduce pnv_pci_ioda2_create_table/pnc_pci_free_table

2015-03-13 Thread Alexey Kardashevskiy
This is a part of moving TCE table allocation into an iommu_ops callback to support multiple IOMMU groups per one VFIO container. This enforce window size to be a power of two. This is a pretty mechanical patch. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/platforms/powernv/pci-ioda.c

[PATCH kernel v6 06/29] vfio: powerpc/spapr: Disable DMA mappings on disabled container

2015-03-13 Thread Alexey Kardashevskiy
At the moment DMA map/unmap requests are handled irrespective to the container's state. This allows the user space to pin memory which it might not be allowed to pin. This adds checks to MAP/UNMAP that the container is enabled, otherwise -EPERM is returned. Signed-off-by: Alexey Kardashevskiy --

[PATCH kernel v6 02/29] vfio: powerpc/spapr: Do cleanup when releasing the group

2015-03-13 Thread Alexey Kardashevskiy
This clears the TCE table when a container is being closed as this is a good thing to leave the table clean before passing the ownership back to the host kernel. Signed-off-by: Alexey Kardashevskiy --- drivers/vfio/vfio_iommu_spapr_tce.c | 14 +++--- 1 file changed, 11 insertions(+), 3 d

[PATCH kernel v6 14/29] vfio: powerpc/spapr: powerpc/iommu: Rework IOMMU ownership control

2015-03-13 Thread Alexey Kardashevskiy
This replaces iommu_take_ownership()/iommu_release_ownership() calls with the callback calls and it is up to the platform code to call iommu_take_ownership()/iommu_release_ownership() if needed. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/include/asm/iommu.h| 4 +-- arch/powerpc/ke

[PATCH kernel v6 16/29] powerpc/iommu: Fix IOMMU ownership control functions

2015-03-13 Thread Alexey Kardashevskiy
This adds missing locks in iommu_take_ownership()/ iommu_release_ownership(). This marks all pages busy in iommu_table::it_map in order to catch errors if there is an attempt to use this table while ownership over it is taken. This only clears TCE content if there is no page marked busy in it_map

[PATCH kernel v6 18/29] powerpc/iommu/powernv: Release replaced TCE

2015-03-13 Thread Alexey Kardashevskiy
At the moment writing new TCE value to the IOMMU table fails with EBUSY if there is a valid entry already. However PAPR specification allows the guest to write new TCE value without clearing it first. Another problem this patch is addressing is the use of pool locks for external IOMMU users such a

[PATCH kernel v6 25/29] powerpc/powernv/ioda: Define and implement DMA table/window management callbacks

2015-03-13 Thread Alexey Kardashevskiy
This extends iommu_table_group_ops by a set of callbacks to support dynamic DMA windows management. query() returns IOMMU capabilities such as default DMA window address and supported number of DMA windows and TCE table levels. create_table() creates a TCE table with specific parameters. it recei

[PATCH kernel v6 08/29] vfio: powerpc/spapr: Register memory

2015-03-13 Thread Alexey Kardashevskiy
The existing implementation accounts the whole DMA window in the locked_vm counter which is going to be even worse with multiple containers and huge DMA windows. This introduces 2 ioctls to register/unregister DMA memory which receive user space address and size of a memory region which needs to b

Re: [PATCHv2 7/7] zram: deprecate zram attrs sysfs nodes

2015-03-13 Thread Sergey Senozhatsky
On (03/13/15 16:39), Minchan Kim wrote: > AFAIK, kernel rule doesn't prefer multi-line for printk string > because it makes hard to work with grep. Anyway, it's trivial. > For example, checkpatch will emit > > WARNING: quoted string split across lines > yes, exactly. that's why I mentioned it in

Re: [PATCH 1/4 V2] ocfs2: use retval instead of status for checking error

2015-03-13 Thread Richard Weinberger
Am 13.03.2015 um 04:59 schrieb DaeSeok Youn: > Hi, > > This patch have been pending for 2 weeks. > Do I need to check other things? > > please, check for me. I cannot speak for OCFS2 folks. But maybe you can give them a better feeling if you proof that your patch is tested. Thanks, //richard >

[PATCH kernel v6 17/29] powerpc/powernv/ioda/ioda2: Rework tce_build()/tce_free()

2015-03-13 Thread Alexey Kardashevskiy
The pnv_pci_ioda_tce_invalidate() helper invalidates TCE cache. It is supposed to be called on IODA1/2 and not called on p5ioc2. It receives start and end host addresses of TCE table. This approach makes it possible to get pnv_pci_ioda_tce_invalidate() unintentionally called on p5ioc2. Another issu

[PATCH kernel v6 07/29] vfio: powerpc/spapr: Moving pinning/unpinning to helpers

2015-03-13 Thread Alexey Kardashevskiy
This is a pretty mechanical patch to make next patches simpler. New tce_iommu_unuse_page() helper does put_page() now but it might skip that after the memory registering patch applied. As we are here, this removes unnecessary checks for a value returned by pfn_to_page() as it cannot possibly retu

[update][PATCH v10 06/21] ACPI / sleep: Introduce CONFIG_ACPI_GENERIC_SLEEP

2015-03-13 Thread Hanjun Guo
From: Graeme Gregory ACPI 5.1 does not currently support S states for ARM64 hardware but ACPI code will call acpi_target_system_state() and acpi_sleep_init() for device power management, so introduce CONFIG_ACPI_GENERIC_SLEEP and select it for x86 and ia64 only to make sleep functions available,

<    3   4   5   6   7   8   9   >