Re: [PATCH v2] sched/fair: Care divide error in update_task_scan_period()

2014-10-21 Thread Peter Zijlstra
On Thu, Oct 16, 2014 at 06:48:15PM +0900, Yasuaki Ishimatsu wrote: > +++ b/kernel/sched/fair.c > @@ -1466,6 +1466,7 @@ static void update_task_scan_period(struct task_struct > *p, > > unsigned long remote = p->numa_faults_locality[0]; > unsigned long local =

Re: [PATCH 1/2] ftracetest: add kprobes on ftrace testcase

2014-10-21 Thread Masami Hiramatsu
(2014/10/20 19:52), Heiko Carstens wrote: > Add a kprobes on ftrace testcase. The testcase verifies that > - enabling and disabling function tracing works on a function which > already contains a dynamic kprobe > - adding and removing a dynamic kprobe works on a function which is > already

RE: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-21 Thread Thomas Shao
> -Original Message- > From: Richard Cochran [mailto:richardcoch...@gmail.com] > Sent: Tuesday, October 21, 2014 4:14 PM > To: Thomas Shao > Cc: Thomas Gleixner; gre...@linuxfoundation.org; LKML; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com; KY

[PATCH v5 1/3] power-domain: add power domain drivers for Rockchip platform

2014-10-21 Thread jinkun.hong
From: "jinkun.hong" Add power domain drivers based on generic power domain for Rockchip platform, and support RK3288. Signed-off-by: Jack Dai Signed-off-by: jinkun.hong --- Changes in v5: - delete idle_lock - add timeout in rockchip_pmu_set_idle_request() Changes in v4: - use list storage

Re: [PATCH 2/2] fs: Support compiling out sendfile

2014-10-21 Thread Christoph Hellwig
On Tue, Oct 21, 2014 at 02:04:22AM -0700, Josh Triplett wrote: > That's the plan, but since sendfile depends on some of the splice bits, > sendfile needs to be optional as well; SENDFILE_SYSCALL will then select > SPLICE_SYSCALLS. Just include sendfile with the splice syscalls - we don't really

Re: [RFC 5/5] x86,perf: Only allow rdpmc if a perf_event is mapped

2014-10-21 Thread Peter Zijlstra
On Mon, Oct 20, 2014 at 12:51:10PM +0200, Hendrik Brueckner wrote: > I think it would makes sense to return 0 as default in the > perf_event_idx_default() and let each PMU/arch that actually supports > reading PMCs from user space return the proper index. And according > to tools/perf/design.txt,

[PATCH v5 2/3] dt-bindings: add document of Rockchip power domain

2014-10-21 Thread jinkun.hong
From: "jinkun.hong" Signed-off-by: Jack Dai Signed-off-by: jinkun.hong --- Changes in v5: None Changes in v4: None Changes in v3: - DT structure has changed Changes in v2: - move clocks to "optional" .../bindings/arm/rockchip/power_domain.txt | 46 1 file

Re: [PATCH v3 5/6] Documentation: dt-bindings: Add binding info for X-Gene QMTM UIO driver

2014-10-21 Thread Mark Rutland
On Tue, Oct 21, 2014 at 06:56:49AM +0100, Ankit Jindal wrote: > This patch adds device tree binding documentation for > X-Gene QMTM UIO driver. > > Signed-off-by: Ankit Jindal > Signed-off-by: Tushar Jagad > --- > .../devicetree/bindings/uio/uio_xgene_qmtm.txt | 53 >

[PATCH v5 3/3] ARM: dts: add rk3288 power-domain node

2014-10-21 Thread jinkun.hong
From: "jinkun.hong" Signed-off-by: Jack Dai Signed-off-by: jinkun.hong --- Changes in v5: None Changes in v4: None Changes in v3: - Decomposition power-controller, changed to multiple controller (gpu-power-controller, hevc-power-controller) Changes in v2: - make pd_vio clocks all one

Re: [PATCH v4] dma: Add Xilinx AXI Direct Memory Access Engine driver support

2014-10-21 Thread Arnd Bergmann
On Tuesday 21 October 2014 09:06:13 Appana Durga Kedareswara Rao wrote: > The above mentioned API's and structures will be used by the dma test > client driver's to set hardware configuration information. The dma > client drivers are not mainlined yet and it is > Internally used by our git-tree

[PATCH v5 0/3] ARM: rk3288 : Add PM Domain support

2014-10-21 Thread jinkun.hong
From: "jinkun.hong" Add power domain drivers based on generic power domain for Rockchip platform, and support RK3288. https://chromium-review.googlesource.com/#/c/220253/9 This is the GPU driver, add the following information in DT, and it can support the PMDOMAIN. gpu: gpu@ffa3 {

Re: [GIT PULL] New Mailbox framework for 3.18

2014-10-21 Thread Jassi Brar
On 21 October 2014 13:13, Arnd Bergmann wrote: > On Monday 20 October 2014 15:23:38 Jassi Brar wrote: >> On 8 October 2014 11:09, Jassi Brar wrote: >> > Hi Linus, >> > >> > A framework for Mailbox controllers and clients have been cooking for >> > more than a year now. Everybody in the CC list

[PATCH v2 3/5] phy: berlin-sata: Document BG2 compatible

2014-10-21 Thread Sebastian Hesselbarth
Berlin BG2 SATA PHY is slightly different from currently supported BG2Q SATA PHY. Document the new compatible for BG2's PHY. Acked-by: Antoine Ténart Signed-off-by: Sebastian Hesselbarth --- Cc: Kishon Vijay Abraham I Cc: "Antoine Ténart" Cc: devicet...@vger.kernel.org Cc:

Re: [PATCH 1/2] regulator: max77686: Implement suspend disable for some LDOs

2014-10-21 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/21/2014 10:25 AM, Krzysztof Kozlowski wrote: > Some LDOs of Maxim 77686 PMIC support disabling during system suspend > (LDO{2,6,7,8,10,11,12,14,15,16}). This was already implemented as part You should also document what each regulator support in the max77686 DT binding

[PATCH v2 1/5] phy: berlin-sata: Move PHY_BASE into private data struct

2014-10-21 Thread Sebastian Hesselbarth
Currently, Berlin SATA PHY driver assumes PHY_BASE address being constant. While this PHY_BASE is correct for BG2Q, older BG2 PHY_BASE is different. Prepare the driver for BG2 support by moving the phy_base into private driver data. Acked-by: Antoine Ténart Signed-off-by: Sebastian Hesselbarth

[PATCH v2 0/5] Berlin BG2 AHCI and SATA PHY

2014-10-21 Thread Sebastian Hesselbarth
This patch set is v2 of the catch up with latest Berlin improvements provided by Antoine - in particular SATA PHY support and AHCI generic for Berlin BG2. Marvell BSP code for BG2 suggests more differences between the two PHY revisions found on BG2 and BG2Q, but the only important one seems to be

Re: [PATCH v2 2/4] ARM: mediatek: Add Pinctrl/GPIO driver for mt8135.

2014-10-21 Thread Linus Walleij
On Mon, Oct 6, 2014 at 12:35 PM, Joe.C wrote: > On Thu, 2014-10-02 at 15:38 +0200, Linus Walleij wrote: > (...) >> > +static struct mt_desc_function * >> > +mt_pctrl_desc_find_irq_by_name(struct mt_pinctrl *pctl, >> > +const char *pin_name) >> >> Why is it

[PATCH v2 5/5] ARM: berlin: Enable SATA on Sony NSZ-GS7

2014-10-21 Thread Sebastian Hesselbarth
Marvell Berlin BG2 based Sony NSZ-GS7 has an unpopulated SATA plug on its PCB solder side. As it is quite easy to populate and I have done it, enable AHCI and SATA by default. Acked-by: Antoine Ténart Signed-off-by: Sebastian Hesselbarth --- Cc: Kishon Vijay Abraham I Cc: "Antoine Ténart"

[PATCH v2 4/5] ARM: berlin: Add AHCI and SATA PHY nodes to BG2

2014-10-21 Thread Sebastian Hesselbarth
Add DT nodes for the AHCI controller and SATA PHY found on Marvell Berlin2 SoCs. Acked-by: Antoine Ténart Signed-off-by: Sebastian Hesselbarth --- Changelog: v1->v2: - remove status = "disabled" from SATA controller node (Suggested by Antoine) Cc: Kishon Vijay Abraham I Cc: "Antoine

[PATCH v2 2/5] phy: berlin-sata: Add support for BG2 SATA PHY

2014-10-21 Thread Sebastian Hesselbarth
Berlin BG2 also has a SATA PHY compatible with the current driver except different PHY_BASE. Add a new compatible to the driver reflecting the different PHY_BASE. Acked-by: Antoine Ténart Signed-off-by: Sebastian Hesselbarth --- Cc: Kishon Vijay Abraham I Cc: "Antoine Ténart" Cc:

Re: [RFC][PATCH 5/6] mm: Provide speculative fault infrastructure

2014-10-21 Thread Hillf Danton
Hey Peter > Date: Mon, 20 Oct 2014 23:56:38 +0200 > From: Peter Zijlstra > To: torva...@linux-foundation.org, paul...@linux.vnet.ibm.com, > t...@linutronix.de, a...@linux-foundation.org, r...@redhat.com, > mgor...@suse.de, o...@redhat.com, mi...@redhat.com, minc...@kernel.org, >

Re: [PATCH 2/2] fs: Support compiling out sendfile

2014-10-21 Thread Josh Triplett
On Tue, Oct 21, 2014 at 12:51:54AM -0700, Christoph Hellwig wrote: > On Mon, Oct 20, 2014 at 03:24:22PM -0700, j...@joshtriplett.org wrote: > > On Mon, Oct 20, 2014 at 11:48:37PM +0200, Pieter Smith wrote: > > > Many embedded systems will not need this syscall, and omitting it > > > saves space.

Re: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-21 Thread Viresh Kumar
On 21 October 2014 14:29, Yuantian Tang wrote: > If I do so, menuconfig will display like this(on PPC): > PowerPC CPU frequency scaling drivers > QorIQ CPU Frequency scaling ---> > <*> CPU frequency scaling driver for Freescale QorIQ SoCs > On ARM, there should

Re: [PATCH v2 4/4] ARM: dts: mt8135: Add pinctrl node for mt8135.

2014-10-21 Thread Linus Walleij
On Mon, Oct 6, 2014 at 9:18 AM, Sascha Hauer wrote: > On Thu, Oct 02, 2014 at 04:02:58PM +0200, Linus Walleij wrote: >> What is the alternative? Device Tree is very much about strings, >> as is shown by the pin config bindings. > > The alternative is to use numbers. The majority of SoCs have a

RE: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-21 Thread Thomas Shao
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Thomas Gleixner > Sent: Tuesday, October 21, 2014 4:19 PM > To: Thomas Shao > Cc: gre...@linuxfoundation.org; LKML; de...@linuxdriverproject.org; > o...@aepfle.de;

Re: [alsa-devel] [PATCH] ASoC: atmel_ssc_dai: Track playback and capture CMR dividers separately.

2014-10-21 Thread Bo Shen
Hi Peter, On 10/21/2014 03:55 PM, Peter Rosin wrote: Hi! (and thank you for the pointer to the example with the ssc-dai in master mode) Hi Peter, On 10/20/2014 09:45 PM, Peter Rosin wrote: From 1e5621d7b9887c648d1a66238dc82d715c1e2cad Mon Sep 17 00:00:00 2001 From: Peter Rosin Date:

[PATCH 2/9] net: pxa168_eth: Provide phy_interface mode on platform_data

2014-10-21 Thread Sebastian Hesselbarth
The PXA168 Ethernet IP support MII and RMII connection to its PHY. Currently, pxa168 platform_data does not provide a way to pass that and there is one user of pxa168 platform_data (mach-mmp/gplug). Given the pinctrl settings of gplug it uses RMII, so add and pass a corresponding phy_interface_t.

[PATCH 0/9] Marvell PXA168 libphy handling and Berlin Ethernet

2014-10-21 Thread Sebastian Hesselbarth
This patch series deals with a removing a IP feature that can be found on all currently supported Marvell Ethernet IP (pxa168_eth, mv643xx_eth, mvneta). The MAC IP allows to automatically perform PHY auto-negotiation without software interaction. However, this feature (a) fundamentally clashes

Re: [PATCH] gpio: Switch to using managed resources with devm_

2014-10-21 Thread Pramod Gurav
On Tue, Oct 21, 2014 at 2:22 PM, Linus Walleij wrote: > On Wed, Oct 1, 2014 at 12:46 PM, Pramod Gurav > wrote: > >> This change switches to devm_request_region to request region >> and hence simplifies the module unload and does away with >> release_region in remove function. >> >> Cc: Linus

[PATCH 4/9] net: pxa168_eth: Remove HW auto-negotiaion

2014-10-21 Thread Sebastian Hesselbarth
Marvell Ethernet IP supports PHY negotiation driven by HW. This fundamentally clashes with libphy (software) driven negotiation and also cannot cope with quirky PHYs. Therefore, always disable any HW negotiation features and properly use libphy's phy_device. Tested-by: Antoine Ténart

RE: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-21 Thread Yuantian Tang
> > -config PPC_CORENET_CPUFREQ > > - tristate "CPU frequency scaling driver for Freescale E500MC SoCs" > > - depends on PPC_E500MC && OF && COMMON_CLK > > +config QORIQ_CPUFREQ > > + tristate "CPU frequency scaling driver for Freescale QorIQ SoCs" > > + depends on OF &&

Re: [RFC 5/5] x86,perf: Only allow rdpmc if a perf_event is mapped

2014-10-21 Thread Peter Zijlstra
On Mon, Oct 20, 2014 at 10:39:48AM -0700, Andy Lutomirski wrote: > On Mon, Oct 20, 2014 at 9:49 AM, Andy Lutomirski wrote: > > On Mon, Oct 20, 2014 at 1:33 AM, Peter Zijlstra > > wrote: > >> On Sun, Oct 19, 2014 at 03:57:54PM -0700, Andy Lutomirski wrote: > >>> > Maybe, but at that point we

[PATCH 3/9] net: pxa168_eth: Prepare proper libphy handling

2014-10-21 Thread Sebastian Hesselbarth
Current libphy handling in pxa168_eth lacks proper phy_connect. Prepare to fix this by first moving phy properties from platform_data to private driver data. Tested-by: Antoine Ténart Signed-off-by: Sebastian Hesselbarth --- Cc: "David S. Miller" Cc: "Antoine Ténart" Cc: Florian Fainelli Cc:

Re: [PATCH v2 4/4] ARM: dts: mt8135: Add pinctrl node for mt8135.

2014-10-21 Thread Linus Walleij
On Thu, Oct 2, 2014 at 4:28 PM, Lucas Stach wrote: > Am Donnerstag, den 02.10.2014, 16:02 +0200 schrieb Linus Walleij: >> > Agreed for standardized device tree bindings, but not for using strings. >> >> What is the alternative? Device Tree is very much about strings, >> as is shown by the pin

[PATCH 5/9] net: pxa168_eth: Remove in-driver PHY mangling

2014-10-21 Thread Sebastian Hesselbarth
With properly using libphy PHYs now, remove the in-driver PHY mangling. Tested-by: Antoine Ténart Signed-off-by: Sebastian Hesselbarth --- Cc: "David S. Miller" Cc: "Antoine Ténart" Cc: Florian Fainelli Cc: Eric Miao Cc: Haojian Zhuang Cc: linux-arm-ker...@lists.infradead.org Cc:

Re: [PATCH v2] x86, e820: panic on sanitizing invalid memory map

2014-10-21 Thread Thomas Gleixner
On Mon, 20 Oct 2014, Martin Kelly wrote: > sanitize_e820_map returns two possible values: > -1: Returned when either the provided memory map has length 1 (ok) or > when the provided memory map is invalid (not ok). > 0: Returned when the memory map was correctly sanitized. > > In addition,

[PATCH v3 RESEND] Tools: hv: vssdaemon: ignore the EBUSY on multiple freezing the same partition

2014-10-21 Thread Dexuan Cui
If a partition appears mounted more than once in /proc/mounts, vss_do_freeze() succeeds only for the first time and gets EBUSY (on freeze) or EINVAL (on thaw) for the second time. The patch ignores these to make the backup feature work. Also improved the error handling in case a freeze operation

Re: [PATCH 2/2] ARM: dts: exynos4412-trats: Add suspend configuration for max77686 regulators

2014-10-21 Thread Chanwoo Choi
Hi Krzysztof, I think that the state of some regulators should be changed in suspend state. On 10/21/2014 05:25 PM, Krzysztof Kozlowski wrote: > Add suspend to RAM configuration for max77686 regulators. Some LDOs and > bucks are disabled. This reduces energy consumption during S2R, >

Re: [PATCH] gpu:drm: Fix typo in Documentation/DocBook/drm.xml

2014-10-21 Thread Daniel Vetter
On Mon, Oct 20, 2014 at 10:00:20AM -0700, Randy Dunlap wrote: > On 10/20/14 07:53, Masanari Iida wrote: > > This patch fix spelling typos found in drm.xml. > > It is because the file is generated from comments in > > source codes, I have to fix the typos within source files. > > > >

[PATCH 9/9] ARM: berlin: Enable ethernet on Sony NSZ-GS7

2014-10-21 Thread Sebastian Hesselbarth
Marvell Berlin BG2 based Sony NSZ-GS7 has one ethernet controller connected to rear RJ45 jack. Enable it by default. Tested-by: Antoine Ténart Signed-off-by: Sebastian Hesselbarth --- Cc: "David S. Miller" Cc: "Antoine Ténart" Cc: Florian Fainelli Cc: Eric Miao Cc: Haojian Zhuang Cc:

[PATCH 6/9] ARM: berlin: Add BG2 ethernet DT nodes

2014-10-21 Thread Sebastian Hesselbarth
Marvell BG2 has two fast ethernet controllers with internal PHY, add the corresponding nodes to SoC dtsi. Tested-by: Antoine Ténart Signed-off-by: Sebastian Hesselbarth --- Cc: "David S. Miller" Cc: "Antoine Ténart" Cc: Florian Fainelli Cc: Eric Miao Cc: Haojian Zhuang Cc:

[PATCH 7/9] ARM: berlin: Add BG2CD ethernet DT nodes

2014-10-21 Thread Sebastian Hesselbarth
Marvell BG2CD has two fast ethernet controllers with internal PHY, add the corresponding nodes to SoC dtsi. Tested-by: Antoine Ténart Signed-off-by: Sebastian Hesselbarth --- Cc: "David S. Miller" Cc: "Antoine Ténart" Cc: Florian Fainelli Cc: Eric Miao Cc: Haojian Zhuang Cc:

[PATCH 8/9] ARM: berlin: Add phy-connection-type to BG2Q PHY

2014-10-21 Thread Sebastian Hesselbarth
From: Antoine Ténart Internal FastEthernet PHY on BG2Q is connected via MII, add a corresponding phy-connection-type property. Tested-by: Antoine Ténart Signed-off-by: Sebastian Hesselbarth --- Cc: "David S. Miller" Cc: "Antoine Ténart" Cc: Florian Fainelli Cc: Eric Miao Cc: Haojian

[PATCH 1/9] phy: marvell: Add support for 88E3016 FastEthernet PHY

2014-10-21 Thread Sebastian Hesselbarth
Marvell 88E3016 is a FastEthernet PHY that also can be found in Marvell Berlin SoCs as integrated PHY. Tested-by: Antoine Ténart Signed-off-by: Sebastian Hesselbarth --- Cc: "David S. Miller" Cc: "Antoine Ténart" Cc: Florian Fainelli Cc: linux-arm-ker...@lists.infradead.org Cc:

Re: [PATCH V5] mtd: ubi: Extend UBI layer debug/messaging capabilities

2014-10-21 Thread Tanya Brokhman
On 10/21/2014 10:56 AM, Artem Bityutskiy wrote: On Mon, 2014-10-20 at 19:57 +0300, Tanya Brokhman wrote: If there is more then one UBI device mounted, there is no way to distinguish between messages from different UBI devices. Add device number to all ubi layer message types. The R/O block

Re: [PATCH] gpio: Switch to using managed resources with devm_

2014-10-21 Thread Linus Walleij
On Wed, Oct 1, 2014 at 12:46 PM, Pramod Gurav wrote: > This change switches to devm_request_region to request region > and hence simplifies the module unload and does away with > release_region in remove function. > > Cc: Linus Walleij > Cc: Alexandre Courbot > Cc: linux-g...@vger.kernel.org >

[PATCH 1/1] devicetree: bindings: Add vendor prefix for Micron Technology Co., Ltd.

2014-10-21 Thread bpqw
This patch is used to add vendor prefix for Micron Technology Inc in the vendor-prefixes.txt file. Micron Technology, Inc. is an American multinational corporation based in Boise, Idaho, best known for producing many forms of semiconductor devices. This includes DRAM, SDRAM, flash memory, eMMC

A desktop environment[1] kernel wishlist

2014-10-21 Thread Bastien Nocera
Hey, GNOME has had discussions with kernel developers in the past, and, fortunately, in some cases we were able to make headway. There are however a number of items that we still don't have solutions for, items that kernel developers might not realise we'd like to rely on, or don't know that

Re: [PATCH v2 31/47] x86: apm: Register with kernel poweroff handler

2014-10-21 Thread Jiri Kosina
On Mon, 20 Oct 2014, Guenter Roeck wrote: > Register with kernel poweroff handler instead of setting pm_power_off > directly. Register with high priority to reflect that the original code > overwrites existing poweroff handlers. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: H. Peter Anvin >

Re: [PATCH v2 3/4] dt-bindings: Add pinctrl bindings for mt65xx/mt81xx.

2014-10-21 Thread Linus Walleij
On Thu, Oct 2, 2014 at 4:41 PM, Lucas Stach wrote: > Am Donnerstag, den 02.10.2014, 16:00 +0200 schrieb Linus Walleij: >> > +The mediatek,pinfunc can use defines directly, >> > +which are already defind in boot/dts/mt8135-pinfunc.h. >> > + >> > +Optional subnode-properties: >> > +- generic pin

Re: [PATCH 2/2] ARM: dts: exynos4412-trats: Add suspend configuration for max77686 regulators

2014-10-21 Thread Javier Martinez Canillas
Hello Krzysztof, On 10/21/2014 10:25 AM, Krzysztof Kozlowski wrote: > Add suspend to RAM configuration for max77686 regulators. Some LDOs and > bucks are disabled. This reduces energy consumption during S2R, > approximately from 17 mA to 9 mA. > > Additionally remove old and not supported

Re: [PATCH] staging: comedi: fix memory leak / bad pointer freeing for chanlist

2014-10-21 Thread Ian Abbott
On 20/10/14 22:38, Hartley Sweeten wrote: On Monday, October 20, 2014 7:11 AM, Ian Abbott wrote: As a follow-up to commit 6cab7a37f5c04 ("staging: comedi: (regression) channel list must be set for COMEDI_CMD ioctl"), Hartley Sweeten pointed out another couple of bugs stemming from commit

RE: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-21 Thread Yuantian Tang
> > #ifndef CONFIG_SMP > > static inline const struct cpumask *cpu_core_mask(int cpu) { @@ -79,6 > > +75,79 @@ static inline const struct cpumask *cpu_core_mask(int cpu) } > > #endif > > > > +#if defined(CONFIG_PPC_E500MC) > > Probably should just be CONFIG_PPC, but do we need this at all. Can't

Re: [RFC][PATCH 5/6] mm: Provide speculative fault infrastructure

2014-10-21 Thread Kirill A. Shutemov
On Mon, Oct 20, 2014 at 11:56:38PM +0200, Peter Zijlstra wrote: > Provide infrastructure to do a speculative fault (not holding > mmap_sem). > > The not holding of mmap_sem means we can race against VMA > change/removal and page-table destruction. We use the SRCU VMA freeing > to keep the VMA

Re: [PATCH] RESEND RFT: pinctrl: sirf: move sgpio lock into state container

2014-10-21 Thread Linus Walleij
On Tue, Sep 30, 2014 at 10:45 AM, Linus Walleij wrote: > Instead of referring to a global static variable for the sgpio > locking, use the state container to contain the lock. > > Signed-off-by: Linus Walleij > --- > Barry, did you get around to testing this patch? Shall I just apply this and

Re: [PATCH 2/4] fs: add fadvise file_operation

2014-10-21 Thread Dmitry Monakhov
Christoph Hellwig writes: > On Sat, Oct 18, 2014 at 07:21:26PM +0400, Dmitry Monakhov wrote: >> sys_fadvise result in direct f_mode modification, which may be not >> suitable for some unusual filesytems where file mode invariant is more >> complex. In order to support such filesystems we have

[PATCH v3 1/2] kprobes: introduce weak arch_check_ftrace_location() helper function

2014-10-21 Thread Heiko Carstens
Introduce weak arch_check_ftrace_location() helper function which architectures can override in order to implement handling of kprobes on function tracer call sites on their own, without depending on common code or implementing the KPROBES_ON_FTRACE feature. Signed-off-by: Heiko Carstens ---

Re: [PATCH v2] pinctrl: st: Fix Sparse error

2014-10-21 Thread Linus Walleij
On Tue, Sep 30, 2014 at 8:09 AM, Pramod Gurav wrote: > This change fixes below sparse error, > drivers/pinctrl/pinctrl-st.c:1515:31: error: incompatible types for operation > (>) > drivers/pinctrl/pinctrl-st.c:1515:31:left side has type void [noderef] > *irqmux_base >

[PATCH v3 2/2] s390/ftrace,kprobes: allow to patch first instruction

2014-10-21 Thread Heiko Carstens
If the function tracer is enabled, allow to set kprobes on the first instruction of a function (which is the function trace caller): If no kprobe is set handling of enabling and disabling function tracing of a function simply patches the first instruction. Either it is a nop (right now it's an

[PATCH v3 0/2] s390 vs. kprobes on ftrace

2014-10-21 Thread Heiko Carstens
v3: Changed patch 1/2 to incorporate feedback from Steven Rostedt and Masami Hiramatsu: rename helper function check_ftrace_location() to arch_check_ftrace_location() and convert it to a weak function, so architectures can override it without the need for new config option. v2: Changed patch 1/2

Re: checkpatch false positive

2014-10-21 Thread Joe Perches
On Tue, 2014-10-21 at 10:14 +0200, Hans de Goede wrote: > Hi, > > Checkpatch gives the following warning: > > WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? > #31: > new file mode 100644 > > total: 0 errors, 1 warnings, 352 lines checked > >

[PATCH 2/2] ARM: dts: exynos4412-trats: Add suspend configuration for max77686 regulators

2014-10-21 Thread Krzysztof Kozlowski
Add suspend to RAM configuration for max77686 regulators. Some LDOs and bucks are disabled. This reduces energy consumption during S2R, approximately from 17 mA to 9 mA. Additionally remove old and not supported bindings: - regulator-mem-off - regulator-mem-idle - regulator-mem-on The max77686

[PATCH 0/2] regulator: max77686/trats2: Disable some regulators in suspend

2014-10-21 Thread Krzysztof Kozlowski
Hi, This patchset makes use of Javier Martinez Cainllas changes [1]. It allows disabling some of the regulators during suspend to RAM. Javier's patchset is necessary only to test it. [1] [PATCH v3 0/2] ARM: EXYNOS: Call regulator suspend prepare/finish https://lkml.org/lkml/2014/10/20/545

[PATCH 1/2] regulator: max77686: Implement suspend disable for some LDOs

2014-10-21 Thread Krzysztof Kozlowski
Some LDOs of Maxim 77686 PMIC support disabling during system suspend (LDO{2,6,7,8,10,11,12,14,15,16}). This was already implemented as part of set_suspend_mode function. In that case the mode was one of: - disable, - normal mode, - low power mode. However there are no bindings for setting the

RE: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-21 Thread Thomas Gleixner
On Tue, 21 Oct 2014, Thomas Shao wrote: > I'm also thinking if NTPd could expose some interface to allow other > application to directly provide time source for it to consume. In my > opinion, emulating the ntp source should be very hard and error > prone. Well, if done right it would be pretty

Re: [PATCH 1/1] pci: fix dmar fault for kdump kernel

2014-10-21 Thread Takao Indoh
Hi ZhenHua, (2014/10/20 11:19), Li, ZhenHua wrote: > Hi Takao Indoh, > > According to this discussion > https://lkml.org/lkml/2014/10/17/107 > > It seems that we can not do the resetting on the first kernel. It can > only be called during kdump kernel boots. Sounds like that. Do you

[PATCH] tpm: fix multiple race conditions in tpm_ppi.c

2014-10-21 Thread Jarkko Sakkinen
* Traversal of the ACPI device tree was not done right. It should lookup PPI only under the ACPI device that it is associated. Otherwise, it could match to a wrong PPI interface if there are two TPM devices in the device tree. * Removed global ACPI handle and version string from tpm_ppi.c as

RE: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-21 Thread Thomas Gleixner
On Tue, 21 Oct 2014, Thomas Shao wrote: > I didn't find a way to detect whether NTPd is running in the hyper-v module. And you better do not try at all. > In http://doc.ntp.org/4.1.0/ntpd.htm, it mentioned: Normally, the > time is slewed if the offset is less than the step threshold, which >

Re: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-21 Thread Richard Cochran
On Mon, Oct 20, 2014 at 11:02:13PM -0500, Jeff Epler wrote: > It's interesting to imagine that a virtualization host could present a > time service to the guest *userspace*, even when the guest is not > otherwise exposed to the internet at large. This could take the form of > an NTP server on a

Re: [RFC][PATCH 4/6] SRCU free VMAs

2014-10-21 Thread Peter Zijlstra
On Mon, Oct 20, 2014 at 04:41:45PM -0700, Linus Torvalds wrote: > On Mon, Oct 20, 2014 at 2:56 PM, Peter Zijlstra wrote: > > Manage the VMAs with SRCU such that we can do a lockless VMA lookup. > > Can you explain why srcu, and not plain regular rcu? > > Especially as you then *note* some of

RE: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-21 Thread Thomas Gleixner
On Tue, 21 Oct 2014, Thomas Shao wrote: > > I still do not have a consistent argument from you WHY you need to abuse > > do_adjtimex() to do that host - guest synchronization in the first place. > > > > I need a function to gradually slew guest time. do_adjtimex() provides all > the >

Re: [PATCH 2/2] jffs2: fix buffer dump debug output

2014-10-21 Thread Joe Perches
On Tue, 2014-10-21 at 10:05 +0200, Cyrille Pitchen wrote: > This patch fixes __jffs2_dbg_dump_buffer(): this function prints a message > claiming to dump len bytes. However, depending on the start offset, the former > code drops up to 31 (JFFS2_BUFDUMP_BYTES_PER_LINE - 1) bytes. > >

Re: [PATCH v2 05/47] mfd: as3722: Drop reference to pm_power_off from devicetree bindings

2014-10-21 Thread Lee Jones
On Mon, 20 Oct 2014, Guenter Roeck wrote: > Devicetree bindings are supposed to be operating system independent > and should thus not describe how a specific functionality is implemented > in Linux. > > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Acked-by: Mark Rutland >

Re: [PATCH v2 1/2] timekeeping: add EXPORT_SYMBOL_GPL for do_adjtimex()

2014-10-21 Thread Richard Cochran
On Tue, Oct 21, 2014 at 03:18:58AM +, Thomas Shao wrote: > > In some situation, the user is not able to enable guest VM to sync with > external > time source, like NTP. But the host is still synced with a trusted time > source. But the guest *is* networked, right? (Otherwise syncing the

Re: [PATCH 2/4] mm: introduce new VM_NOZEROPAGE flag

2014-10-21 Thread Paolo Bonzini
On 10/21/2014 08:11 AM, Martin Schwidefsky wrote: I agree with Dave (I thought I disagreed, but I changed my mind while writing down my thoughts). Just define mm_forbids_zeropage in arch/s390/include/asm, and make it return mm->context.use_skey---with a comment explaining how this is only for

Re: [RFC][PATCH 0/6] Another go at speculative page faults

2014-10-21 Thread Peter Zijlstra
On Mon, Oct 20, 2014 at 05:07:02PM -0700, Andy Lutomirski wrote: > On 10/20/2014 02:56 PM, Peter Zijlstra wrote: > > Hi, > > > > I figured I'd give my 2010 speculative fault series another spin: > > > > https://lkml.org/lkml/2010/1/4/257 > > > > Since then I think many of the outstanding

kernel 3.17 - perf build failure

2014-10-21 Thread leroy christophe
LINK perf libperf.a(skip-callchain-idx.o): In function `arch_skip_callchain_idx': /root/gen/trunk/knl/tools/perf/arch/powerpc/util/skip-callchain-idx.c:250: undefined reference to `pr_debug' libperf.a(skip-callchain-idx.o): In function `check_return_addr':

Re: [PATCH] memcg: simplify unreclaimable groups handling in soft limit reclaim

2014-10-21 Thread Michal Hocko
On Mon 20-10-14 19:55:54, Vladimir Davydov wrote: > If we fail to reclaim anything from a cgroup during a soft reclaim pass > we want to get the next largest cgroup exceeding its soft limit. To > achieve this, we should obviously remove the current group from the tree > and then pick the largest

[PATCH 3/5] iommu/vt-d: data types and functions used for kdump

2014-10-21 Thread Li, Zhen-Hua
Populate it with support functions to copy iommu translation tables from from the panicked kernel into the kdump kernel in the event of a crash. Bill Sumner: Original version, the creation of the data types and functions. Li, Zhenhua: Minor change: update the usage of context_get_* and

Re: [RFC][PATCH 4/6] SRCU free VMAs

2014-10-21 Thread Peter Zijlstra
On Mon, Oct 20, 2014 at 04:41:45PM -0700, Linus Torvalds wrote: > On Mon, Oct 20, 2014 at 2:56 PM, Peter Zijlstra wrote: > > Manage the VMAs with SRCU such that we can do a lockless VMA lookup. > > Can you explain why srcu, and not plain regular rcu? > > Especially as you then *note* some of

[PATCH 0/2] *** jffs2: fix debug outputs ***

2014-10-21 Thread Cyrille Pitchen
Hi, This series of patches fixes some bugs in the output of jffs2 debug functions. Cyrille Pitchen (2): jffs2: fix wrong offset in an error msg from __jff2_dbg_prewrite_paranoia_check jffs2: fix buffer dump debug output fs/jffs2/debug.c | 26 ++ 1 file changed,

[PATCH 5/5] iommu/vt-d: enable kdump support in iommu module

2014-10-21 Thread Li, Zhen-Hua
Modify the operation of the following functions when called during crash dump: device_to_domain_id get_domain_for_dev init_dmars intel_iommu_init Signed-off-by: Bill Sumner --- drivers/iommu/intel-iommu.c | 134 +++- 1 file changed, 121 insertions(+),

[PATCH 2/2] jffs2: fix buffer dump debug output

2014-10-21 Thread Cyrille Pitchen
This patch fixes __jffs2_dbg_dump_buffer(): this function prints a message claiming to dump len bytes. However, depending on the start offset, the former code drops up to 31 (JFFS2_BUFDUMP_BYTES_PER_LINE - 1) bytes. Signed-off-by: Cyrille Pitchen --- fs/jffs2/debug.c | 21 -

[PATCH 4/5] iommu/vt-d: Add domain-id functions

2014-10-21 Thread Li, Zhen-Hua
Interfaces for when a new domain in the crashdump kernel needs some values from the panicked kernel's context entries. Signed-off-by: Bill Sumner --- drivers/iommu/intel-iommu.c | 46 + 1 file changed, 46 insertions(+) diff --git

Re: [PATCH v8 2/5] amba: Add helpers for (un)preparing AMBA clock

2014-10-21 Thread Ulf Hansson
On 20 October 2014 11:04, Krzysztof Kozlowski wrote: > Add amba_pclk_prepare() and amba_pclk_unprepare() inline functions for > handling the AMBA bus clock by device drivers. > > Signed-off-by: Krzysztof Kozlowski Reviewed-by: Ulf Hansson > --- > include/linux/amba/bus.h | 10 ++ > 1

Re: [RFC PATCH] UBSan: run-time undefined behavior sanity checker

2014-10-21 Thread Andrey Ryabinin
On 10/20/2014 11:35 PM, Sasha Levin wrote: > On 10/20/2014 06:54 AM, Andrey Ryabinin wrote: >> >> UBSan uses compile-time instrumentation to catch undefined behavior (UB). >> Compiler inserts code that perform certain kinds of >> checks before operations that could cause UB. >> If check fails

[PATCH 2/5] iommu/vt-d: Items required for kdump

2014-10-21 Thread Li, Zhen-Hua
Add structure type domain_values_entry used for kdump; Add context functions needed for kdump. Bill Sumner: Original version; Li, Zhenhua: Changed the name of new functions, make them consistent with current context get/set functions. Signed-off-by: Bill Sumner Signed-off-by: Li,

[PATCH 1/2] jffs2: fix wrong offset in an error msg from __jff2_dbg_prewrite_paranoia_check

2014-10-21 Thread Cyrille Pitchen
When a none 0xff character is found in the flash buffer, an error message is printed. This error message claims to provide the offset of the FIRST corrupted byte but due to a missing break in the for loop, the former code always prints the offset of the byte immediately after the end of the tested

[PATCH 0/5] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-10-21 Thread Li, Zhen-Hua
The following series implements a fix for: A kdump problem about DMA that has been discussed for a long time. That is, when a kernel panics and boots into the kdump kernel, DMA that was started by the panicked kernel is not stopped before the kdump kernel is booted; and the kdump kernel disables

[PATCH 1/5] iommu/vt-d: Update iommu_attach_domain() and its callers

2014-10-21 Thread Li, Zhen-Hua
Allow specification of the domain-id for the new domain. This patch only adds the 'did' parameter to iommu_attach_domain() and modifies all of its callers to specify the default value of -1 which says "no did specified, allocate a new one". This is no functional change from current behaviour --

RCU stall in af_unix.c, should use spin_lock_irqsave?

2014-10-21 Thread Thomas Petazzoni
Hello, I stumbled across a reproducible RCU stall related to the AF_UNIX code (on 3.17, on an ARM SMP system), and I'm not sure whether the problem is caused by: * The af_unix.c code using spin_lock() on sk->sk_receive_queue.lock while it should be using spin_lock_irqsave(). OR * The

RE: [alsa-devel] [PATCH] ASoC: atmel_ssc_dai: Track playback and capture CMR dividers separately.

2014-10-21 Thread Peter Rosin
Hi! (and thank you for the pointer to the example with the ssc-dai in master mode) > Hi Peter, > > On 10/20/2014 09:45 PM, Peter Rosin wrote: > > From 1e5621d7b9887c648d1a66238dc82d715c1e2cad Mon Sep 17 00:00:00 > > 2001 > > From: Peter Rosin > > Date: Mon, 20 Oct 2014 14:38:04 +0200 > >

Re: [PATCH V5] mtd: ubi: Extend UBI layer debug/messaging capabilities

2014-10-21 Thread Artem Bityutskiy
On Mon, 2014-10-20 at 19:57 +0300, Tanya Brokhman wrote: > If there is more then one UBI device mounted, there is no way to > distinguish between messages from different UBI devices. > Add device number to all ubi layer message types. > > The R/O block driver messages were replaced by pr_* since

Re: GPIO bindings guidelines (Was: Re: [PATCH v5 10/12] gpio: Support for unified device properties interface)

2014-10-21 Thread Arnd Bergmann
On Tuesday 21 October 2014 14:14:02 Alexandre Courbot wrote: > > > > We have enforced naming things for the dmaengine binding, which has > > just led to everyone calling things "rx" and "tx". My fear is that > > if we start to enforce giving a name, we'd end up with lots of > > drivers that use a

Re: [PATCH 2/2] fs: Support compiling out sendfile

2014-10-21 Thread Christoph Hellwig
On Mon, Oct 20, 2014 at 03:24:22PM -0700, j...@joshtriplett.org wrote: > On Mon, Oct 20, 2014 at 11:48:37PM +0200, Pieter Smith wrote: > > Many embedded systems will not need this syscall, and omitting it > > saves space. Add a new EXPERT config option CONFIG_SENDFILE_SYSCALL > > (default y) to

Re: [GIT PULL] New Mailbox framework for 3.18

2014-10-21 Thread Arnd Bergmann
On Monday 20 October 2014 15:23:38 Jassi Brar wrote: > On 8 October 2014 11:09, Jassi Brar wrote: > > Hi Linus, > > > > A framework for Mailbox controllers and clients have been cooking for > > more than a year now. Everybody in the CC list had been copied on > > patchset revisions and most of

Re: [PATCH v7 6/7] sched: replace capacity_factor by usage

2014-10-21 Thread Vincent Guittot
On 9 October 2014 16:58, Peter Zijlstra wrote: > On Tue, Oct 07, 2014 at 02:13:36PM +0200, Vincent Guittot wrote: >> @@ -6214,17 +6178,21 @@ static inline void update_sd_lb_stats(struct lb_env >> *env, struct sd_lb_stats *sd >> >> /* >>* In case the child domain

Re: [PATCH 0/2] Staging: iio: adc: Checkpatch.pl warning cleanups

2014-10-21 Thread Alexandre Belloni
Hi, These are two patches with the same commit log, in the same file. You can probably squash them. On 20/10/2014 at 21:48:47 -0500, Brian Vandre wrote : > This patch-set fixes 2 checkpatch.pl warnings > dealing with lines over 80 characters. > > Brian Vandre (2): > Staging: iio: adc: fix

[PATCH 2/4] freezer: remove obsolete comments in __thaw_task()

2014-10-21 Thread Michal Hocko
From: Cong Wang __thaw_task() no longer clears frozen flag since commit a3201227f803 (freezer: make freezing() test freeze conditions in effect instead of TIF_FREEZE). Cc: David Rientjes Cc: "Rafael J. Wysocki" Cc: Tejun Heo Cc: Andrew Morton Reviewed-by: Michal Hocko Signed-off-by: Cong

[PATCH 1/4] freezer: Do not freeze tasks killed by OOM killer

2014-10-21 Thread Michal Hocko
From: Cong Wang Since f660daac474c6f (oom: thaw threads if oom killed thread is frozen before deferring) OOM killer relies on being able to thaw a frozen task to handle OOM situation but a3201227f803 (freezer: make freezing() test freeze conditions in effect instead of TIF_FREEZE) has

<    3   4   5   6   7   8   9   10   11   12   >