Re: [PATCH] perf tools: fix type mismatch - long vs __statfs_word

2014-09-03 Thread Vineet Gupta
+CC acme, Peter On Wednesday 13 August 2014 10:34 PM, Alexey Brodkin wrote: > From "include/uapi/asm-generic/statfs.h" it is seen that "statfs.f_type" is of > type "__statfs_word" which in its turn is "__u32" (unsigned int) for 32-bit > systems. > > So in case of compilation with "-Werror"

[PATCH] staging: lustre: lmv: lmv_internal.h: fix checkpatch.pl spacing errors

2014-09-03 Thread Juston Li
lmv_internal.h:96: ERROR: space prohibited after that open parenthesis '(' lmv_internal.h:96: ERROR: space required before the open parenthesis '(' lmv_internal.h:147: WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by: Juston Li ---

Re: [PATCH v9 net-next 2/4] net: filter: split filter.h and expose eBPF to user space

2014-09-03 Thread Alexei Starovoitov
On Wed, Sep 3, 2014 at 8:46 AM, Daniel Borkmann wrote: > On 09/03/2014 05:17 AM, Alexei Starovoitov wrote: >> >> allow user space to generate eBPF programs >> >> uapi/linux/bpf.h: eBPF instruction set definition >> >> linux/filter.h: the rest >> >> This patch only moves macro definitions, but

Re: [PATCH v4] x86, hotplug: fix llc shared map unreleased during cpu hotplug

2014-09-03 Thread Yasuaki Ishimatsu
(2014/09/04 14:20), Ingo Molnar wrote: * Wanpeng Li wrote: BUG: unable to handle kernel NULL pointer dereference at 0004 IP: [..] find_busiest_group PGD 5a9d5067 PUD 13067 PMD 0 Oops: [#3] SMP [...] Call Trace: load_balance ? _raw_spin_unlock_irqrestore idle_balance

[tip:locking/core] locking/semaphore: Resolve some shadow warnings

2014-09-03 Thread tip-bot for Mark Rustad
Commit-ID: 315427691c7a064718b5ad7d378d7f1c1898a626 Gitweb: http://git.kernel.org/tip/315427691c7a064718b5ad7d378d7f1c1898a626 Author: Mark Rustad AuthorDate: Wed, 3 Sep 2014 03:17:24 -0700 Committer: Ingo Molnar CommitDate: Thu, 4 Sep 2014 07:17:24 +0200 locking/semaphore: Resolve

Re: [PATCH v2 4/4] kconfig: link CONFIG_CROSS_COMPILE with environment variable

2014-09-03 Thread Konstantin Khlebnikov
On Thu, Sep 4, 2014 at 1:11 AM, Paul Bolle wrote: > Hi Konstantin, > > On Mon, 2014-09-01 at 11:16 +0400, Konstantin Khlebnikov wrote: >> Cross-compiler tool prefix can be set in command line, in the environment >> variable CROSS_COMPILE or in config file, in option CONFIG_COROSS_COMPILE. >> Also

Re: [PATCH] mmc: dw_mmc: Don't enable interrupts until we're ready

2014-09-03 Thread Jaehoon Chung
Hi Doug On 09/03/2014 08:37 AM, Doug Anderson wrote: > On dw_mmc there's a small race if you happen to get a card detect > interrupt at just the wrong time during probe. You may have enabled > the interrupt but host->slot[0] may be NULL. > > Fix the race by enabling interrupts all the way at

Re: [PATCH v4] x86, hotplug: fix llc shared map unreleased during cpu hotplug

2014-09-03 Thread Ingo Molnar
* Wanpeng Li wrote: > BUG: unable to handle kernel NULL pointer dereference at 0004 > IP: [..] find_busiest_group > PGD 5a9d5067 PUD 13067 PMD 0 > Oops: [#3] SMP > [...] > Call Trace: > load_balance > ? _raw_spin_unlock_irqrestore > idle_balance > __schedule > schedule >

Re: [PATCH 13/26] locking: Add non-fatal spin lock assert

2014-09-03 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Sep 03, 2014 at 10:50:01AM -0400, Peter Hurley wrote: > > So a lockdep-only assert is unlikely to draw attention to existing bugs, > > especially in established drivers. > > By the same logic lockdep will not find locking errors in established > drivers.

Re: [PATCH v2] pinctrl: imx/mxs: move freescale drivers to subdir

2014-09-03 Thread Shawn Guo
On Wed, Sep 03, 2014 at 02:13:56PM +0200, Linus Walleij wrote: > This moves all the Freescale-related drivers (i.MX and MXS) to > its own subdirectory to clear the view. > > Cc: Alexander Shiyan > Cc: Shawn Guo > Cc: Anson Huang > Cc: Fabio Estevam > Cc: Denis Carikli > Cc: Markus Pargmann

Re: RFC: Tainting the kernel on raw I/O access

2014-09-03 Thread Ingo Molnar
* H. Peter Anvin wrote: > In a meeting earlier today, we discussed MSR access and that it could be > used to do bad things. The same applies to other forms of raw I/O > (/dev/mem, /dev/port, ioperm, iopl, etc.) > > This is basically the same problem with which the secure boot people > have

[PATCH v2] QE: move qe code from arch/powerpc to drivers/soc

2014-09-03 Thread Zhao Qiang
LS1 is arm cpu and it has qe ip block. move qe code from platform directory to public directory. QE is an IP block integrates several comunications peripheral controllers. It can implement a variety of applications, such as uart, usb and tdm and so on. Signed-off-by: Zhao Qiang --- Changes for

Re: [PATCH] mmc: sdhci-msm: Make tuning block table endian agnostic

2014-09-03 Thread Jaehoon Chung
Hi, Stephen. On 09/03/2014 10:57 PM, Stephen Boyd wrote: > If we're tuning on a big-endian CPU we'll never determine we properly > tuned the device because we compare the data we received from the > controller with a table that assumes the CPU is little-endian. > Change the table to be an array

Re: [PATCH 1/1] do_exit(): Solve possibility of BUG() due to race with try_to_wake_up()

2014-09-03 Thread Ingo Molnar
* Peter Zijlstra wrote: > > Ah, I simply do not know what is cheaper, even on x86. Well, > > we need to enable/disable irqs, but again I do not really > > know how much does this cost. > > Ah good point about that IRQ thing, yes that's horribly > expensive. Enabling/disabling local IRQs is

RE: [RESEND PATCH] arm64: dts: add symlink

2014-09-03 Thread Pankaj Dubey
> -Original Message- > From: Will Deacon [mailto:will.dea...@arm.com] > Sent: Tuesday, September 02, 2014 2:12 PM > To: Pankaj Dubey > Cc: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org; naus...@samsung.com; Catalin Marinas; >

Re: [PATCH] mm: clear __GFP_FS when PF_MEMALLOC_NOIO is set

2014-09-03 Thread Junxiao Bi
On 09/04/2014 10:30 AM, Andrew Morton wrote: > On Thu, 04 Sep 2014 10:08:09 +0800 Junxiao Bi wrote: > >> On 09/04/2014 07:10 AM, Andrew Morton wrote: >>> On Wed, 3 Sep 2014 13:54:54 +0800 Junxiao Bi wrote: >>> commit 21caf2fc1931 ("mm: teach mm by current context info to not do I/O

Re: [PATCH 3.14 00/88] 3.14.18-stable review

2014-09-03 Thread Guenter Roeck
On 09/03/2014 04:44 PM, Greg Kroah-Hartman wrote: On Wed, Sep 03, 2014 at 03:04:34PM -0700, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.14.18 release. There are 88 patches in this series, all will be posted as a response to this one. If anyone has any

Re: [PATCH v2] mfd: syscon: Decouple syscon interface from platform devices

2014-09-03 Thread Alexander Shiyan
Thu, 04 Sep 2014 10:09:19 +0530 от Pankaj Dubey : > Hi Arnd, > > On Tuesday, September 02, 2014 Arnd Bergmann wrote, > > To: Pankaj Dubey > > Cc: linux-arm-ker...@lists.infradead.org; > linux-samsung-...@vger.kernel.org; linux- > > ker...@vger.kernel.org; lee.jo...@linaro.org;

Re: [RFC PATCH] pm: prevent suspend until power supply events are processed

2014-09-03 Thread Viresh Kumar
On 4 September 2014 10:21, Viresh Kumar wrote: >>> >> + /* dependent power supplies (e.g. battery) may have changed >>> >> +* state as a result of this event, so poll again and hold >>> >> +* the wakeup_source until all events are processed. >>> >> +*/ But isn't

Re: [PATCH 3.16 000/125] 3.16.2-stable review

2014-09-03 Thread Guenter Roeck
On 09/03/2014 04:44 PM, Greg Kroah-Hartman wrote: On Wed, Sep 03, 2014 at 03:05:57PM -0700, Greg Kroah-Hartman wrote: -- Note, there are a _lot_ of patches submitted for stable kernels that have yet to be applied, well over 200+ at the moment. Given that this series is

Re: [PATCH 3.10 00/55] 3.10.54-stable review

2014-09-03 Thread Guenter Roeck
On 09/03/2014 04:44 PM, Greg Kroah-Hartman wrote: On Wed, Sep 03, 2014 at 03:04:50PM -0700, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.10.54 release. There are 55 patches in this series, all will be posted as a response to this one. If anyone has any

[PATCH -v4] x86: only load initrd above 4g on second try

2014-09-03 Thread Yinghai Lu
Mantas found that after commit 4bf7111f5016 ("x86/efi: Support initrd loaded above 4G"), the kernel freezes at the earliest possible moment when trying to boot via UEFI on Asus laptop. Revert to old way to load initrd under 4G on first try, second try will use above 4G buffer when initrd is too

Re: [RFC PATCH] pm: prevent suspend until power supply events are processed

2014-09-03 Thread Viresh Kumar
Thanks for your quick reply :) On 4 September 2014 00:43, Zoran Markovic wrote: > Note that power_supply_changed_work() could race with > power_supply_changed(), as well as with itself. You could theoretically run > power_supply_changed() several times and queue several >

Re: [Patch v3 1/2] freezer: check OOM kill while being frozen

2014-09-03 Thread Cong Wang
On Wed, Sep 3, 2014 at 8:42 AM, Tejun Heo wrote: > Hello, Cong. > > On Tue, Sep 02, 2014 at 03:52:40PM -0700, Cong Wang wrote: >> diff --git a/kernel/freezer.c b/kernel/freezer.c >> index 33cbcb0..b06a059 100644 >> --- a/kernel/freezer.c >> +++ b/kernel/freezer.c >> @@ -56,7 +56,8 @@ static bool

RE: [PATCH v2] mfd: syscon: Decouple syscon interface from platform devices

2014-09-03 Thread Pankaj Dubey
Hi Boris, On Wednesday, September 03, 2014 Boris BREZILLON wrote, > To: Arnd Bergmann > Cc: Pankaj Dubey; kgene@samsung.com; li...@arm.linux.org.uk; Alexander > Shiyan; naus...@samsung.com; Tomasz Figa; linux-kernel@vger.kernel.org; > jo...@samsung.com; linux-samsung-...@vger.kernel.org;

Re: Re: [RFC PATCH v3 4/4] ftracetest: Add XFAIL/XPASS and POSIX.3 std. result codes

2014-09-03 Thread Masami Hiramatsu
(2014/09/04 11:29), Namhyung Kim wrote: >> diff --git a/tools/testing/ftrace/test.d/basic3.tc >> b/tools/testing/ftrace/test.d/basic3.tc >> index 0c1a3a2..7bc5a53 100644 >> --- a/tools/testing/ftrace/test.d/basic3.tc >> +++ b/tools/testing/ftrace/test.d/basic3.tc >> @@ -1,8 +1,9 @@ >> #!/bin/sh

RE: [PATCH v2] mfd: syscon: Decouple syscon interface from platform devices

2014-09-03 Thread Pankaj Dubey
Hi Arnd, On Tuesday, September 02, 2014 Arnd Bergmann wrote, > To: Pankaj Dubey > Cc: linux-arm-ker...@lists.infradead.org; linux-samsung-...@vger.kernel.org; linux- > ker...@vger.kernel.org; lee.jo...@linaro.org; kgene@samsung.com; > li...@arm.linux.org.uk; vikas.saj...@samsung.com;

Re: [PATCH v9 3/3] regulator: RK808: Remove pdata from the regulator

2014-09-03 Thread Doug Anderson
Chris, On Wed, Sep 3, 2014 at 6:12 PM, Chris Zhong wrote: > Signed-off-by: Chris Zhong > > Tested-by: Heiko Stuebner > --- > > Changes in v9: > Adviced by Doug > - add reg_np > > Changes in v8: > Adviced by Doug > - remove rk808_regulator_dts() function > - remove the check about

Re: [PATCH v9 1/3] RTC: RK808: add RTC driver for RK808

2014-09-03 Thread Doug Anderson
Chris, On Wed, Sep 3, 2014 at 6:12 PM, Chris Zhong wrote: > Adding RTC driver for supporting RTC device present inside RK808 PMIC. > > Signed-off-by: Chris Zhong > Signed-off-by: Zhang Qing > > Tested-by: Heiko Stuebner Reviewed-by: Doug Anderson Tested-by: Doug Anderson > +

Re: Re: [PATCH 06/12] clk: mmp: add mmp private gate clock

2014-09-03 Thread Chen-Yu Tsai
On Thu, Sep 4, 2014 at 12:02 PM, Chao Xie wrote: > > > At 2014-09-04 01:55:37, "Mike Turquette" wrote: >>Quoting Chao Xie (2014-08-25 21:38:18) >>> From: Chao Xie >>> >>> Some SOCes have this kind of the gate clock >>> 1. There are some bits to control the gate not only one bit. >>> 2. Some

[PATCH] partitions: efi.c: fix formatting and function readability

2014-09-03 Thread Joseph Poirier
From: jpoirier Fixed coding style issues, refactored the protective MBR check function for readability, and removed an explicit return from a function returning void. Signed-off-by: Joseph Poirier Signed-off-by: jpoirier --- block/partitions/efi.c | 222

Re:Re: [PATCH 06/12] clk: mmp: add mmp private gate clock

2014-09-03 Thread Chao Xie
At 2014-09-04 01:55:37, "Mike Turquette" wrote: >Quoting Chao Xie (2014-08-25 21:38:18) >> From: Chao Xie >> >> Some SOCes have this kind of the gate clock >> 1. There are some bits to control the gate not only one bit. >> 2. Some clocks has operations of "out of reset" and "enable". >>To

Re: Re: [RFC PATCH v3 0/4] ftrace: Add a ftrace test collection

2014-09-03 Thread Masami Hiramatsu
(2014/09/04 11:42), Namhyung Kim wrote: > On Tue, 02 Sep 2014 11:06:32 +, Masami Hiramatsu wrote: >> Hi, >> >> Here is the collection of testcases for ftrace version 3. >> This is just some updates and fixes according to the >> discussion at previous version. >>

Re: [PATCH] ARM: cns3xxx: fix allmodconfig panic in pci driver

2014-09-03 Thread xiakaixu
于 2014/9/3 21:27, Arnd Bergmann 写道: > On Wednesday 03 September 2014 21:18:12 Xia Kaixu wrote: >> From: Xia Kaixu >> >> The kernel panic occurs when running an allmodconfig kernel on >> OMAP4460. The inicall "cns3xxx_pcie_init" does not check which >> hardware it's running on and just tries to

RE: [PATCH v7 1/2] i2c: imx: add DMA support for freescale i2c driver

2014-09-03 Thread Yao Yuan
Hi Wolfram, I fixed the mentioned issues before in v7. Could you please help to review this patch? Thanks & Regards Yuan Yao -Original Message- From: linux-arm-kernel [mailto:linux-arm-kernel-boun...@lists.infradead.org] On Behalf Of Yuan Yao Sent: Wednesday, August 13, 2014 5:47 PM

Re: [PATCH] net: treewide: Fix typo found in DocBook/networking.xml

2014-09-03 Thread David Miller
From: Masanari Iida Date: Wed, 3 Sep 2014 12:59:15 +0900 > * When used in combination with the softirq_exit tracepoint > - * we can determine the softirq handler runtine. > + * we can determine the softirq handler runtime. > */ The author of this comment meant to say "routine" not

Re: [PATCH 1/2] cgroup: Delay the clearing of cgrp->kn->priv

2014-09-03 Thread Li Zefan
于 2014/9/2 23:33, Tejun Heo 写道: > Hello, Li. > > On Tue, Sep 02, 2014 at 06:56:58PM +0800, Li Zefan wrote: >> for ((; ;)) >> { >> echo $$ > /cgroup/sub/cgroup.procs >> ech $$ > /cgce 6f2e0c38c2108a74 ]--- > > copy &

[PATCH v9 1/3] RTC: RK808: add RTC driver for RK808

2014-09-03 Thread Chris Zhong
Adding RTC driver for supporting RTC device present inside RK808 PMIC. Signed-off-by: Chris Zhong Signed-off-by: Zhang Qing Tested-by: Heiko Stuebner --- Changes in v9: Adviced by Dmitry - if(rk808_rtc->irq < 0), return rk808_rtc->irq Changes in v8: Adviced by Doug - coding style - fix

[GIT PULL] platform-drivers-x86 MAINTAINERS and fixes for v3.17

2014-09-03 Thread Darren Hart
Hi Linus, This is my first pull request since taking on maintenance for the platform-drivers-x86 tree from Matthew Garrett. These have passed my build testing and been run through Fengguang's LKP tests. Due to timing this round, these have not spent any time in linux-next. I have asked Stephen to

[PATCH v5] x86,cpu-hotplug: assign same CPU number to readded CPU

2014-09-03 Thread Yasuaki Ishimatsu
llc_shared_map is not cleared even if CPU is offline or hot removed. So when hot-plugging CPU and assigning new CPU number to hot-added CPU, the mask has wrong value. The mask is used by CSF schduler to create sched_domain. So it breaks CFS scheduler. Here is a example on my system. My system

Re: [PATCH] perf tools: Fix build-id matching on vmlinux

2014-09-03 Thread Namhyung Kim
Ping! On Tue, 26 Aug 2014 15:38:39 +0900, Namhyung Kim wrote: > There's a problem on finding correct kernel symbols when perf report > runs on a different kernel. Although a part of the problem was solved > by the prior commit 0a7e6d1b6844 ("perf tools: Check recorded kernel > version when

Re: [RFC PATCH v3 0/4] ftrace: Add a ftrace test collection

2014-09-03 Thread Namhyung Kim
On Tue, 02 Sep 2014 11:06:32 +, Masami Hiramatsu wrote: > Hi, > > Here is the collection of testcases for ftrace version 3. > This is just some updates and fixes according to the > discussion at previous version. > https://lkml.org/lkml/2014/8/26/304 > > The major updates are: > - Fix some

Re: [PATCH] mm: clear __GFP_FS when PF_MEMALLOC_NOIO is set

2014-09-03 Thread Andrew Morton
On Thu, 04 Sep 2014 10:08:09 +0800 Junxiao Bi wrote: > On 09/04/2014 07:10 AM, Andrew Morton wrote: > > On Wed, 3 Sep 2014 13:54:54 +0800 Junxiao Bi wrote: > > > >> commit 21caf2fc1931 ("mm: teach mm by current context info to not do I/O > >> during memory allocation") > >> introduces

Re: [RFC PATCH v3 4/4] ftracetest: Add XFAIL/XPASS and POSIX.3 std. result codes

2014-09-03 Thread Namhyung Kim
On Tue, 02 Sep 2014 11:06:59 +, Masami Hiramatsu wrote: > Add XFAIL, XPASS and POSIX 1003.3 std. codes (UNRESOLVED/ > UNTESTED/UNSUPPORTED) as a result code. These are > used for the results that test case is expected to fail or > unsupported feature (by config). > This also introduces

Re: [PATCH v3] zram: add num_discards for discarded pages stat

2014-09-03 Thread Minchan Kim
Hello Sergey, First of all, Sorry for late response. On Tue, Aug 26, 2014 at 11:15:43PM +0900, Sergey Senozhatsky wrote: > Hello, > > On (08/26/14 14:08), Minchan Kim wrote: > > Hi, > > > > On Mon, Aug 25, 2014 at 08:01:18PM +0900, Sergey Senozhatsky wrote: > > > Hello, > > > > > > On

Re: workqueue: WARN at at kernel/workqueue.c:2176

2014-09-03 Thread Lai Jiangshan
On 09/03/2014 11:15 PM, Peter Zijlstra wrote: > On Mon, Sep 01, 2014 at 11:04:23AM +0800, Lai Jiangshan wrote: >> Hi, Peter >> >> Could you make a patch for it, please? Jason J. Herne's test showed we >> addressed the bug. But the fix is not in kernel yet. Some new highly >> related reports are

Re: [PATCH] mm: clear __GFP_FS when PF_MEMALLOC_NOIO is set

2014-09-03 Thread Junxiao Bi
On 09/03/2014 08:20 PM, Trond Myklebust wrote: > On Wed, Sep 3, 2014 at 1:54 AM, Junxiao Bi wrote: >> commit 21caf2fc1931 ("mm: teach mm by current context info to not do I/O >> during memory allocation") >> introduces PF_MEMALLOC_NOIO flag to avoid doing I/O inside memory >> allocation,

RE: [PATCH 4/5] Clocksource: Flextimer: Fix counter clock prescaler calculation.

2014-09-03 Thread li.xi...@freescale.com
> Subject: Re: [PATCH 4/5] Clocksource: Flextimer: Fix counter clock prescaler > calculation. > > On Tue, 26 Aug 2014, Xiubo Li wrote: > > > We should minus one after calculating the counter input clock's > > prescaler. > > > > Signed-off-by: Xiubo Li > > Signed-off-by: Jingchang Lu > > --- >

Re: [PATCH] mm: clear __GFP_FS when PF_MEMALLOC_NOIO is set

2014-09-03 Thread Junxiao Bi
On 09/04/2014 07:10 AM, Andrew Morton wrote: > On Wed, 3 Sep 2014 13:54:54 +0800 Junxiao Bi wrote: > >> commit 21caf2fc1931 ("mm: teach mm by current context info to not do I/O >> during memory allocation") >> introduces PF_MEMALLOC_NOIO flag to avoid doing I/O inside memory >> allocation,

RE: [PATCH 5/5] Clocksource: Flextimer: Use Macro for clock source selection.

2014-09-03 Thread li.xi...@freescale.com
> Subject: Re: [PATCH 5/5] Clocksource: Flextimer: Use Macro for clock source > selection. > > On Tue, 26 Aug 2014, Xiubo Li wrote: > > FTM source clock is selectable: > > Source clock can be the system clock, the fixed frequency clock, > > or an external clock. > > Fixed frequency clock is an

RE: [PATCH 4/5] Clocksource: Flextimer: Fix counter clock prescaler calculation.

2014-09-03 Thread li.xi...@freescale.com
Hi Thomas, Thanks very much for your comments. Firstly I must tell the true that English is not my mother language. > Subject: Re: [PATCH 4/5] Clocksource: Flextimer: Fix counter clock prescaler > calculation. > > On Tue, 26 Aug 2014, Xiubo Li wrote: > > > We should minus one after

RE: [PATCH 1/3] GPIO: gpio-dwapb: Enable platform driver binding to MFD driver

2014-09-03 Thread Chen, Alvin
> > > --- a/drivers/gpio/Kconfig > > +++ b/drivers/gpio/Kconfig > > @@ -136,7 +136,6 @@ config GPIO_DWAPB > > tristate "Synopsys DesignWare APB GPIO driver" > > select GPIO_GENERIC > > select GENERIC_IRQ_CHIP > > - depends on OF_GPIO > you need either OF_GPIO or PCI Since we enable

Re: [PATCH v3 5/6] mm/hugetlb: add migration entry check in __unmap_hugepage_range

2014-09-03 Thread Hugh Dickins
On Thu, 28 Aug 2014, Naoya Horiguchi wrote: > If __unmap_hugepage_range() tries to unmap the address range over which > hugepage migration is on the way, we get the wrong page because pte_page() > doesn't work for migration entries. This patch calls pte_to_swp_entry() and >

RE: [PATCH 2/5] Clocksource: Flextimer: Use internal clocksource read API.

2014-09-03 Thread li.xi...@freescale.com
> Subject: Re: [PATCH 2/5] Clocksource: Flextimer: Use internal clocksource read > API. > > On Tue, 26 Aug 2014, Xiubo Li wrote: > > > Since the Flextimer device will be implemented in BE mode on > > LS1 SoC, and in LE mode on Vybrid, LS2 SoCs, so here we need > > the endianness judgment before

Re: [RFC PATCH v3 1/4] ftracetest: Initial commit for ftracetest

2014-09-03 Thread Masami Hiramatsu
(2014/09/04 10:41), Namhyung Kim wrote: > Hi Masami, > > Just a nit.. > > > On Tue, 02 Sep 2014 11:06:39 +, Masami Hiramatsu wrote: >> ftracetest is a collection of testcase shell-scripts for ftrace. >> To avoid regressions of ftrace, these testcases check correct >> ftrace behaviors. If

Re: [PATCH v4] x86, hotplug: fix llc shared map unreleased during cpu hotplug

2014-09-03 Thread Wanpeng Li
Ping Ingo, Peter, On Mon, Aug 25, 2014 at 01:32:47PM +0800, Wanpeng Li wrote: > >于 14-8-15 下午2:07, Borislav Petkov 写道: >>On Fri, Aug 15, 2014 at 11:00:42AM +0800, Wanpeng Li wrote: >>>Is it ok for you to apply this patch or still need update? >>Just be patient: we have the merge window still open

Re: [RFC PATCH v3 1/4] ftracetest: Initial commit for ftracetest

2014-09-03 Thread Namhyung Kim
Hi Masami, Just a nit.. On Tue, 02 Sep 2014 11:06:39 +, Masami Hiramatsu wrote: > ftracetest is a collection of testcase shell-scripts for ftrace. > To avoid regressions of ftrace, these testcases check correct > ftrace behaviors. If someone would like to add any features on > ftrace, the

[RFC 2/3] mm: add swap_get_free hint for zram

2014-09-03 Thread Minchan Kim
VM uses nr_swap_pages as one of information when it does anonymous reclaim so that VM is able to throttle amount of swap. Normally, the nr_swap_pages is equal to freeable space of swap disk but for zram, it doesn't match because zram can limit memory usage by knob(ie, mem_limit) so although VM

[RFC 1/3] zram: generalize swap_slot_free_notify

2014-09-03 Thread Minchan Kim
Currently, swap_slot_free_notify is used for zram to free duplicated copy page for memory efficiency when it knows there is no reference to the swap slot. Let's extend it to be able to use it for other purpose so this patch generalizes it so that zram can get more hints from VM. Signed-off-by:

[RFC 0/3] make vm aware of zram-swap

2014-09-03 Thread Minchan Kim
VM uses nr_swap_pages as one of information when it reclaims anonymous page because nr_swap_pages means how many freeable space in swap so VM is able to throttle swap out if it found there is no more space in swap. But for zram-swap, there is size gap between virtual disksize and physical memory

[RFC 3/3] zram: add swap_get_free hint

2014-09-03 Thread Minchan Kim
This patch implement SWAP_GET_FREE handler in zram so that VM can know how many zram has freeable space. VM can use it to stop anonymous reclaiming once zram is full. Signed-off-by: Minchan Kim --- drivers/block/zram/zram_drv.c | 18 ++ 1 file changed, 18 insertions(+) diff

[RFC PATCH v2] clockevents: re-calculate event when cpu enter idle

2014-09-03 Thread Leo Yan
Below flow will have the redundant interrupts for broadcast timer: 1. Process A starts a hrtimer with 100ms timeout, then Process A will wait on the waitqueue to sleep; 2. The CPU which Process A runs on will enter idle and call notify CLOCK_EVT_NOTIFY_BROADCAST_ENTER, so the CPU will

Re: [PATCH] ftrace: The set_graph_function and set_graph_notrace file mode should be 0644 instead of 0444

2014-09-03 Thread Namhyung Kim
Hi Chen, On Wed, 3 Sep 2014 14:31:09 +0800, Chen LinX wrote: > Signed-off-by: Chen LinX Acked-by: Namhyung Kim Thanks, Namhyung > --- > kernel/trace/ftrace.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c > index

Re: [SMP BUG?] the return value of is_smp() is bug?

2014-09-03 Thread long.wanglong
On 2014/9/1 18:26, Arnd Bergmann wrote: > On Monday 01 September 2014 18:00:58 long.wanglong wrote: >> On 2014/9/1 13:49, Wang Long wrote: >>> >>> Hi,all >>> >>> In kernel 3.17-rc2, when i set CONFIG_HAVE_SMP = y and CONFIG_SMP_ON_UP = y >>> in .config file. the secondary core can not boot. >>>

[PATCH v9 3/3] regulator: RK808: Remove pdata from the regulator

2014-09-03 Thread Chris Zhong
Signed-off-by: Chris Zhong Tested-by: Heiko Stuebner --- Changes in v9: Adviced by Doug - add reg_np Changes in v8: Adviced by Doug - remove rk808_regulator_dts() function - remove the check about "client->dev.of_node" Changes in v7: - remove pdata struct from header file, add

Re: [PATCH] eeepc-laptop: remove possible use of uninitialized value

2014-09-03 Thread Greg Kroah-Hartman
On Wed, Sep 03, 2014 at 05:49:47PM -0700, Darren Hart wrote: > On Thu, Sep 04, 2014 at 12:53:25AM +0200, Frans Klaver wrote: > > In store_sys_acpi, if count equals zero, or parse_arg()s sscanf call > > fails, 'value' remains possibly uninitialized. In that case 'value' > > shouldn't be used to

[PATCH v9 2/3] clk: RK808: Add clkout driver for RK808

2014-09-03 Thread Chris Zhong
Signed-off-by: Chris Zhong Reviewed-by: Doug Anderson Tested-by: Doug Anderson Tested-by: Heiko Stuebner --- Changes in v9: None Changes in v8: Adviced by Mike -rename "control" to "enable" -define RK808_NR_OUTPUT 2 Changes in v7: Adviced by doug -fix coding style problems Changes in v6:

[PATCH v9 0/3] Add rockchip RK808 pmic driver

2014-09-03 Thread Chris Zhong
This is the initial version of the RK808 PMIC. This is a power management IC for multimedia products. It provides regulators that are able to supply power to processor cores and other components. The chip provides other modules including RTC, Clockout Changes in v9: Adviced by Dmitry -

Re: [PATCH v3 4/6] mm/hugetlb: add migration entry check in hugetlb_change_protection

2014-09-03 Thread Hugh Dickins
On Thu, 28 Aug 2014, Naoya Horiguchi wrote: > There is a race condition between hugepage migration and change_protection(), > where hugetlb_change_protection() doesn't care about migration entries and > wrongly overwrites them. That causes unexpected results like kernel crash. > > This patch

[stable -3.14] PM backports for pm_test / CONFIG_PM_DEBUG

2014-09-03 Thread Brian Norris
Hi, If I enable CONFIG_PM_DEBUG on a 3.14.y kernel, I can see the following results: # cat /sys/power/state freeze standby mem # cat /sys/power/pm_test [none] core processors platform devices freezer # echo core > /sys/power/pm_test # cat /sys/power/state [

Re: [SMP BUG?] the return value of is_smp() is bug?

2014-09-03 Thread long.wanglong
On 2014/9/1 18:19, Russell King - ARM Linux wrote: > Firstly, do not send multiple copies of your message to mailing lists, > certainly not within the three hours that you sent your three copies. > If one of the addresses you sent the message to bounces, then it is > *only* that one recipient who

Re: [PATCH v4 2/4] dt-bindings: document Rockchip thermal

2014-09-03 Thread Caesar Wang
在 2014年09月03日 16:07, Heiko Stübner 写道: Am Mittwoch, 3. September 2014, 10:10:37 schrieb Caesar Wang: This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang ---

[PATCH v2 4/4] clk: Use ww_mutexes for clk_prepare_{lock/unlock}

2014-09-03 Thread Stephen Boyd
Changing the rate of a "slow" clock can take 10s of milliseconds while changing the rate of a "fast" clock can be done in a few microseconds. With one prepare mutex a task that's trying to change the rate of a fast clock may have to wait for a slow clock's rate to change before it can proceed.

[PATCH v2 0/4] Use wound/wait mutexes in the common clock framework

2014-09-03 Thread Stephen Boyd
The prepare mutex in the common clock framework can lead to tasks waiting a long time for other tasks to finish a frequency switch or prepare/unprepare step. In my particular case I have a clock controlled by a co-processor that can take 10s of milliseconds to change rate. I've seen scenarios

[PATCH v2 3/4] clk: Use lockless functions for debug printing

2014-09-03 Thread Stephen Boyd
In the near future we're going to move the prepare lock to a per-clock ww_mutex. Use the lockless functions here for printing the rate and accuracy so that we don't run into AA deadlocks in the future. Signed-off-by: Stephen Boyd --- drivers/clk/clk.c | 8 1 file changed, 4

[PATCH v2 1/4] clk: Recalc rate and accuracy in underscore functions if not caching

2014-09-03 Thread Stephen Boyd
When we move this code to use ww_mutex we'll need to call __clk_get_rate() and __clk_get_accuracy(), instead of their non-underscore counterparts, while holding the clock's prepare mutex. Move the recalculation of these values into the underscore functions so that we can call __clk_get_rate() and

[PATCH v2 2/4] clk: Make __clk_lookup() use a list instead of tree search

2014-09-03 Thread Stephen Boyd
In the near future we're going to move the prepare lock to be a per-clock ww_mutex. __clk_lookup() is called very deep in the set-rate path and we would like to avoid having to take all the locks in the clock tree to search for a clock (basically defeating the purpose of introducing per-clock

Re: [PATCH] aio: block exit_aio() until all context requests are completed

2014-09-03 Thread Gu Zheng
Hi Ben, On 09/03/2014 10:43 PM, Benjamin LaHaise wrote: > Hi Gu, > > On Wed, Sep 03, 2014 at 05:45:44PM +0800, Gu Zheng wrote: >> It seems that exit_aio() also needs to wait for all iocbs to complete (like >> io_destroy), but we missed the wait step in current implemention, so fix >> it in the

Re: [PATCH] mmc: sdhci-esdhc-imx: Enable boot partition access from DT

2014-09-03 Thread Hsin-Hsiang Tseng
Hi, Jean-Michel Some platforms which using Samsung exynos SoC, we write u-boot related bin files in boot partitions(in my case boot partition 1) to boot on eMMC. Some platforms which using Qualcomm SoC, written at logical address 0(User Data Area) and they use a-boot not u-boot. BTW, rpmb

[PATCH v4 2/2] V4L: uvcvideo: Add support for pan/tilt speed controls

2014-09-03 Thread Vincent Palatin
Map V4L2_CID_TILT_SPEED and V4L2_CID_PAN_SPEED to the standard UVC CT_PANTILT_RELATIVE_CONTROL terminal control request. Tested by plugging a Logitech ConferenceCam C3000e USB camera and controlling pan/tilt from the userspace using the VIDIOC_S_CTRL ioctl. Verified that it can pan and tilt at

Re: [PATCH v9 5/6] clk: Add floor and ceiling constraints to clock rates

2014-09-03 Thread Mike Turquette
Quoting Stephen Boyd (2014-09-03 16:39:37) > On 09/03/14 08:33, Tomeu Vizoso wrote: > > +int clk_set_ceiling_rate(struct clk *clk_user, unsigned long rate) > > +{ > > + struct clk_core *clk = clk_to_clk_core(clk_user); > > + > > + WARN(rate > 0 && rate < clk_user->floor_constraint, > > +

Re: [PATCH] eeepc-laptop: remove possible use of uninitialized value

2014-09-03 Thread Darren Hart
On Thu, Sep 04, 2014 at 12:53:25AM +0200, Frans Klaver wrote: > In store_sys_acpi, if count equals zero, or parse_arg()s sscanf call > fails, 'value' remains possibly uninitialized. In that case 'value' > shouldn't be used to produce the store_sys_acpi()s return value. > > Only test the return

Re: [PATCH v3 2/2] V4L: uvcvideo: Add support for pan/tilt speed controls

2014-09-03 Thread Pawel Osciak
On Thu, Sep 4, 2014 at 4:40 AM, Vincent Palatin wrote: > Map V4L2_CID_TILT_SPEED and V4L2_CID_PAN_SPEED to the standard UVC > CT_PANTILT_RELATIVE_CONTROL terminal control request. > > Tested by plugging a Logitech ConferenceCam C3000e USB camera > and controlling pan/tilt from the userspace using

[PATCH] trace: Resolve some missing-field-initializers warnings

2014-09-03 Thread Jeff Kirsher
From: Mark Rustad Resolve some missing-field-initializers warnings by using a more elaborated form of designated initialization. Signed-off-by: Mark Rustad Signed-off-by: Jeff Kirsher --- kernel/trace/trace_export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v3 3/6] mm/hugetlb: fix getting refcount 0 page in hugetlb_fault()

2014-09-03 Thread Hugh Dickins
On Thu, 28 Aug 2014, Naoya Horiguchi wrote: > When running the test which causes the race as shown in the previous patch, > we can hit the BUG "get_page() on refcount 0 page" in hugetlb_fault(). > > This race happens when pte turns into migration entry just after the first > check of

Re: [PATCH] sched: fix timeval conversion to jiffies

2014-09-03 Thread John Stultz
On Thu, Aug 7, 2014 at 5:09 PM, Andrew Hunter wrote: > timeval_to_jiffies rounding was broken. It essentially computed > (eliding seconds) > > jiffies = usec * (NSEC_PER_USEC/TICK_NSEC) > > by using scaling arithmetic, which took the best approximation of > NSEC_PER_USEC/TICK_NSEC with

Re: [PATCH 03/12] of: Add binding document for MIPS GIC

2014-09-03 Thread David Daney
On 09/03/2014 04:53 PM, Andrew Bresticker wrote: On Tue, Sep 2, 2014 at 5:50 PM, David Daney wrote: [...] Your comments don't really make sense to me in the context of my knowledge of the GIC. Of course all the CP0 timer and performance counter interrupts are per-CPU and routed directly to

[PATCH] PM / sleep: add configurable delay for pm_test

2014-09-03 Thread Brian Norris
When CONFIG_PM_DEBUG=y, we provide a sysfs file (/sys/power/pm_test) for selecting one of a few suspend test modes, where rather than entering a full suspend state, the kernel will perform some subset of suspend steps, wait 5 seconds, and then resume back to normal operation. This mode is useful

RE: [PATCH] staging: comedi: hwdrv_apci1500: use dev->class_dev in calls to dev_warn()

2014-09-03 Thread Hartley Sweeten
On Wednesday, September 03, 2014 4:59 PM, Chase Southwood wrote: > git-grep reveals that hwdrv_apci1500.c is the only file in comedi that uses > dev->hw_dev in calls to dev_{err,warn}(). The rest of the drivers pass > dev->class_dev to these macros instead. Switch the dev_warn() calls in > this

[PATCH] staging: comedi: hwdrv_apci1500: use dev->class_dev in calls to dev_warn()

2014-09-03 Thread Chase Southwood
git-grep reveals that hwdrv_apci1500.c is the only file in comedi that uses dev->hw_dev in calls to dev_{err,warn}(). The rest of the drivers pass dev->class_dev to these macros instead. Switch the dev_warn() calls in this driver to use dev->class_dev as well, for consistency. Signed-off-by:

[PATCH 3.10 03/55] HID: fix a couple of off-by-ones

2014-09-03 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Kosina commit 4ab25786c87eb20857bbb715c3ae34ec8fd6a214 upstream. There are a few very theoretical off-by-one bugs in report descriptor size checking when performing a pre-parsing fixup.

Re: [PATCH 03/12] of: Add binding document for MIPS GIC

2014-09-03 Thread Andrew Bresticker
On Tue, Sep 2, 2014 at 5:50 PM, David Daney wrote: > On 09/02/2014 12:36 PM, Andrew Bresticker wrote: >> >> On Tue, Sep 2, 2014 at 10:27 AM, David Daney >> wrote: >>> >>> On 08/29/2014 03:14 PM, Andrew Bresticker wrote: The Global Interrupt Controller (GIC) present on certain MIPS

[PATCH 3.10 06/55] USB: serial: ftdi_sio: Annotate the current Xsens PID assignments

2014-09-03 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Patrick Riphagen commit 9273b8a270878906540349422ab24558b9d65716 upstream. The converters are used in specific products. It can be useful to know which they are exactly. Signed-off-by:

[PATCH 3.10 08/55] USB: ehci-pci: USB host controller support for Intel Quark X1000

2014-09-03 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Bryan O'Donoghue commit 6e693739e9b603b3ca9ce0d4f4178f0633458465 upstream. The EHCI packet buffer in/out threshold is programmable for Intel Quark X1000 USB host controller, and the default

[PATCH 3.10 04/55] isofs: Fix unbounded recursion when processing relocated directories

2014-09-03 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit 410dd3cf4c9b36f27ed4542ee18b1af5e68645a4 upstream. We did not check relocated directory in any way when processing Rock Ridge 'CL' tag. Thus a corrupted isofs image can

[PATCH 3.10 36/55] x86_64/vsyscall: Fix warn_bad_vsyscall log output

2014-09-03 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 53b884ac3745353de220d92ef792515c3ae692f0 upstream. This commit in Linux 3.6: commit c767a54ba0657e52e6edaa97cbe0b0a8bf1c1655 Author: Joe Perches Date:

[PATCH 3.10 12/55] ALSA: hda/ca0132 - Dont try loading firmware at resume when already failed

2014-09-03 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit e24aa0a4c5ac92a171d9dd74a8d3dbf652990d36 upstream. CA0132 driver tries to reload the firmware at resume. Usually this works since the firmware loader core caches the

[PATCH 3.10 20/55] hwmon: (ads1015) Fix off-by-one for valid channel index checking

2014-09-03 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Axel Lin commit 56de1377ad92f72ee4e5cb0faf7a9b6048fdf0bf upstream. Current code uses channel as array index, so the valid channel value is 0 .. ADS1015_CHANNELS - 1. Signed-off-by: Axel Lin

Re: [PATCH v9 5/6] clk: Add floor and ceiling constraints to clock rates

2014-09-03 Thread Stephen Boyd
On 09/03/14 08:33, Tomeu Vizoso wrote: > Adds a way for clock consumers to set maximum and minimum rates. This can be > used for thermal drivers to set ceiling rates, or by misc. drivers to set > floor rates to assure a minimum performance level. > > Signed-off-by: Tomeu Vizoso > Tested-by: Heiko

[PATCH 3.10 23/55] hwmon: (dme1737) Prevent overflow problem when writing large limits

2014-09-03 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Axel Lin commit d58e47d787c09fe5c61af3c6ce7d784762f29c3d upstream. On platforms with sizeof(int) < sizeof(long), writing a temperature limit larger than MAXINT will result in unpredictable

  1   2   3   4   5   6   7   8   9   10   >