Re: [PATCH v3 2/2] dma: Add Xilinx AXI Direct Memory Access Engine driver support

2014-09-03 Thread Vinod Koul
On Wed, Sep 03, 2014 at 12:17:43PM +0530, Srikanth Thokala wrote: > Hi Vinod, > > Apologies for the delay. > > On Tue, Aug 19, 2014 at 10:33 PM, Vinod Koul wrote: > > On Mon, Jul 28, 2014 at 05:47:49PM +0530, Srikanth Thokala wrote: > >> +struct xilinx_dma_chan { > >> + struct xilinx_dma_dev

Re: [PATCH net-next 2/2] net: exit busy loop when another process is runnable

2014-09-03 Thread Eliezer Tamir
On 03/09/2014 10:51, Michael S. Tsirkin wrote: > On Wed, Sep 03, 2014 at 09:49:10AM +0300, Eliezer Tamir wrote: >> On 02/09/2014 11:31, Michael S. Tsirkin wrote: >>> On Tue, Sep 02, 2014 at 09:15:18AM +0300, Eliezer Tamir wrote: >> Busy polling is not a general purpose feature, it's not something

Re: [REGRESSION] "efi: efistub: Convert into static library" and preparation patches

2014-09-03 Thread Ard Biesheuvel
On 3 September 2014 23:47, H. Peter Anvin wrote: >> >> Any reason we can't reuse the existing GOT fixup code in the early x86 >> boot code? We're not executing it before the EFI boot stub atm, which is >> the reason Maarten is hitting these difficulties. >> >> Maarten, does the following help? >>

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

2014-09-03 Thread Peter Zijlstra
On Thu, Sep 04, 2014 at 10:22:08AM +0800, Lai Jiangshan wrote: > > dest_cpu = cpumask_any_and(cpu_active_mask, new_mask); > > - if (task_on_rq_queued(p)) { > > + if (task_on_rq_queued(p) || p->state == TASK_WAKING) { > > unrelated question: why we have to stop the cpu even the task is > no

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

2014-09-03 Thread Frans Klaver
On Thu, Sep 4, 2014 at 3:14 AM, Greg Kroah-Hartman wrote: > 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 u

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

2014-09-03 Thread Peter Zijlstra
On Thu, Sep 04, 2014 at 07:04:24AM +0200, Ingo Molnar wrote: > > * 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 IR

[PATCH v2 2/2] cgroup: check cgroup liveliness before unbreaking kernfs

2014-09-03 Thread Li Zefan
When cgroup_kn_lock_live() is called through some kernfs operation and another thread is calling cgroup_rmdir(), we'll trigger the warning in cgroup_get(). [ cut here ] WARNING: CPU: 1 PID: 1228 at kernel/cgroup.c:1034 cgroup_get+0x89/0xa0() ... Call Trace: [] dump_stack+0

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

2014-09-03 Thread Li Zefan
Run these two scripts concurrently: for ((; ;)) { mkdir /cgroup/sub rmdir /cgroup/sub } for ((; ;)) { echo $$ > /cgroup/sub/cgroup.procs echo $$ > /cgroup/cgroup.procs } A kernel bug will be triggered: BUG: unable to handle kernel NULL poi

[PATCH v7 1/2] usb: gadget: f_fs: add ioctl returning ep descriptor

2014-09-03 Thread Robert Baldyga
This patch introduces ioctl named FUNCTIONFS_ENDPOINT_DESC, which returns endpoint descriptor to userspace. It works only if function is active. Signed-off-by: Robert Baldyga Acked-by: Michal Nazarewicz --- drivers/usb/gadget/function/f_fs.c | 23 +++ include/uapi/linux/usb

[PATCH v7 0/2] usb: gadget: f_fs: userspace API fixes and improvements

2014-09-03 Thread Robert Baldyga
This patchset contains changes in FunctionFS making it easier and safer to use. It fixes bug in endpoint files handling code, adds new ioctl allowing to obtain endpoint descriptor, and introduces virtual address mapping which allows to separate endpoint address space in function from physical endpo

[PATCH v7 2/2] usb: gadget: f_fs: virtual endpoint address mapping

2014-09-03 Thread Robert Baldyga
This patch introduces virtual endpoint address mapping. It separates function logic form physical endpoint addresses making it more hardware independent. Following modifications changes user space API, so to enable them user have to switch on the FUNCTIONFS_VIRTUAL_ADDR flag in descriptors. Endpo

Re: [PATCH v6 4/4] phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800

2014-09-03 Thread Vivek Gautam
On Wed, Sep 3, 2014 at 8:12 PM, Felipe Balbi wrote: > Hi, > > On Wed, Sep 03, 2014 at 12:59:27PM +0530, Vivek Gautam wrote: >> > On Tue, Sep 02, 2014 at 04:42:18PM +0530, Vivek Gautam wrote: >> >> Adding phy calibrate callback, which facilitates setting certain >> >> PHY settings post initializati

Re: [tracing] trying to make sense of trace output, can't figure out where time is going

2014-09-03 Thread Mike Galbraith
On Wed, 2014-09-03 at 15:07 -0600, Chris Friesen wrote: > kvm-23696 4d...3.. 507584570us : sched_switch: prev_comm=kvm prev_pid=23696 > prev_prio=120 prev_state=R+ ==> next_comm=ksoftirqd/4 next_pid=80 next_prio=98 > ksoftirq-80 4111 507584570us!: softirq_entry: vec=1 [action=TIMER] >

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

2014-09-03 Thread Peter Zijlstra
On Thu, Sep 04, 2014 at 02:40:07PM +0900, Yasuaki Ishimatsu wrote: > (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: [

Re: [RFC 3/3] zram: add swap_get_free hint

2014-09-03 Thread Heesub Shin
Hello Minchan, First of all, I agree with the overall purpose of your patch set. On 09/04/2014 10:39 AM, Minchan Kim wrote: 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. Sig

[PATCH] iommu/fsl: Fix warning resulting from adding PCI device twice

2014-09-03 Thread Varun Sethi
iommu_group_get_for_dev determines the iommu group for the PCI device and adds the device to the group. In the PAMU driver we were again adding the device to the same group without checking if the device already had an iommu group. This resulted in the following warning. sysfs: cannot create du

[PATCH v2] drivers: staging: dgap: fix the checkpatch.pl issue "Warning: line over 80 characters"

2014-09-03 Thread Piotr Witoslawski
Break lines exceeding 80 characters Signed-off-by: Piotr Witoslawski --- drivers/staging/dgap/dgap.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 8929dbf..67da1d5 100644 --- a/drivers/staging

Re: [PATCH v4 01/11] cpumask: factor out show_cpumap into separate helper function

2014-09-03 Thread Peter Zijlstra
On Wed, Sep 03, 2014 at 06:00:07PM +0100, Sudeep Holla wrote: > diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h > index 2997af6d2ccd..26d8348292dd 100644 > --- a/include/linux/cpumask.h > +++ b/include/linux/cpumask.h > @@ -11,6 +11,8 @@ > #include > #include > > +#include > +

RE: [PATCH v4 9/9] usb: chipidea: add support to the generic PHY framework in ChipIdea

2014-09-03 Thread b47...@freescale.com
Hi, -Original Message- From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Antoine Tenart Sent: Wednesday, September 03, 2014 3:41 PM To: ba...@ti.com; gre...@linuxfoundation.org; Chen Peter-B29397; kis...@ti.com; st...@rowland.harvard.edu Cc: Anto

Re: [RFC PATCH 3/9] irq_work: Force raised irq work to run on irq work interrupt

2014-09-03 Thread Peter Zijlstra
On Thu, Aug 21, 2014 at 04:52:51PM +0200, Frederic Weisbecker wrote: > diff --git a/kernel/irq_work.c b/kernel/irq_work.c > index e6bcbe7..17bd203 100644 > --- a/kernel/irq_work.c > +++ b/kernel/irq_work.c > @@ -22,6 +22,7 @@ > > static DEFINE_PER_CPU(struct llist_head, raised_list); > static D

Re: [BUG] Bisected Problem with LSI PCI FC Adapter

2014-09-03 Thread Dirk Gouders
Andreas Noever writes: > On Wed, Sep 3, 2014 at 2:47 PM, Dirk Gouders wrote: >> Andreas Noever writes: >> >>> On Wed, Sep 3, 2014 at 12:57 PM, Dirk Gouders wrote: On a Tyan VX50 (B4985) I ran into problems when updating the kernel: the PCI FC Adapter is no longer recognized. >>> >>>

Re: [PATCH 0/2] Add exit_prepare callback to the cpufreq_driver interface.

2014-09-03 Thread Viresh Kumar
On 19 March 2014 19:49, Rafael J. Wysocki wrote: > That said, for the intel_pstate case ->stop() as proposed by Dirk is > demonstrably > sufficient and there are no other ->setpolicy drivers in sight wanting or > needing > anything else. > > So to me, (1) the new ->stop() should *only* be calle

[PATCH][resend] of: Add vendor 2nd prefix for Asahi Kasei Corp

2014-09-03 Thread Kuninori Morimoto
From: Kuninori Morimoto Current vendor-prefixes.txt already has "ak" prefix for Asahi Kasei Corp by ae8c4209af2cec065fef15d200a42a04130799f7 (of: Add vendor prefix for Asahi Kasei Corp.) But, almost all Asahi Kasei chip driver is using "asahi-kasei" prefix today. This patch adds "asahi-kasei" t

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

2014-09-03 Thread Boris BREZILLON
Hi Pankaj On Thu, 04 Sep 2014 10:15:27 +0530 Pankaj Dubey wrote: > 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-kerne

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

[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 --- drivers/staging/lustre/lu

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 prac

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 __schedul

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

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 the

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

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

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 bee

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

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 of

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; > robh...@kern

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 d

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 issues

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; kgene@samsung.co

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 this

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 a

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 issues

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

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

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 s

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

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; jo...@sam

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 "client->dev.o

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

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 cloc

[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. >> https://lkml.org/lkml/2014/8/

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 ac

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 To

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

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

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

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

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 findi

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 PF_MEMA

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 PASS/FAI

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 (08/25/1

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 c

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

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

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 ad

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 calculatin

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 t

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

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 d

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 som

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 a

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 pa

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

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

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

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

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

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 5

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 rk808_regulator

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 prod

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

[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 - if(rk808_r

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 adds

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

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 d

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 --- .../devicetree/bindings/thermal/rockchip-thermal

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

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

[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 insertions(+

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

  1   2   3   4   5   6   7   8   9   10   >