Re: [PATCH v3] dma: imx-sdma: add support for sdma memory copy

2014-05-12 Thread Robin Gong
ping! On Tue, May 06, 2014 at 10:12:48AM +0800, Robin Gong wrote: > add "device_prep_dma_memcpy" and "device_prep_dma_sg" for memory copy by sdma. > > Signed-off-by: Robin Gong > > --- > change: > --v3: > 1. remove redundant check for bus width > > --v2: > 1. correct some printk format, suc

Re: [PATCH 10/10 V2] workqueue: use generic attach/detach routine for rescuers

2014-05-12 Thread Lai Jiangshan
On 05/13/2014 06:05 AM, Tejun Heo wrote: > On Mon, May 12, 2014 at 02:56:22PM +0800, Lai Jiangshan wrote: >> There are several problems with the code that rescuers bind itself to the >> pool' >> cpumask >> 1) It uses a way different from the normal workers to bind to the cpumask >> So we ca

Re: [RFC 1/2] clockevents: return 'int' from clockevents_set_mode()

2014-05-12 Thread Viresh Kumar
On 12 May 2014 15:49, Thomas Gleixner wrote: > Does that handle_return_value() mean that you sprinkle WARN_ONs all > over the place? Yeah, probably it should have been done this way: - dev->set_mode(mode, dev); + if (dev->set_dev_mode) { + int re

Re: [PATCH v4] drivers: sh: compile drivers/sh/pm_runtime.c if ARCH_SHMOBILE_MULTI

2014-05-12 Thread Geert Uytterhoeven
Hi Simon, On Tue, May 13, 2014 at 2:04 AM, Simon Horman wrote: > On Mon, May 12, 2014 at 09:25:21AM +0200, Geert Uytterhoeven wrote: >> On Mon, May 12, 2014 at 9:07 AM, Simon Horman wrote: >> > On Mon, May 12, 2014 at 08:24:03AM +0900, Magnus Damm wrote: >> >> On Sun, May 11, 2014 at 9:46 AM, Si

Re: [PATCH v8 1/2] phy: Add new Exynos5 USB 3.0 PHY driver

2014-05-12 Thread Kishon Vijay Abraham I
Hi, On Tuesday 13 May 2014 11:37 AM, Vivek Gautam wrote: > Hi Kishon, > > > On Mon, May 12, 2014 at 6:33 PM, Kishon Vijay Abraham I wrote: >> Hi Gautam, >> >> On Friday 09 May 2014 07:27 PM, Vivek Gautam wrote: >>> Add a new driver for the USB 3.0 PHY on Exynos5 series of SoCs. >>> The new driv

[PATCH RESEND] scripts/tags.sh: add regular expression replacement pattern for memcg

2014-05-12 Thread Jianyu Zhan
Hi, Marek. Since previous one has got no replies. I resend it again. This patch purely add regex pattern only. And I've tested it, it works. ---<8--- Currently, no regular expression replacement pattern for PageCgroug* defined, which causes quite a few pain while reading code. Just get rid of it.

Re: [PATCH 08/10 V2] workqueue: rename manager_mutex to attach_mutex

2014-05-12 Thread Lai Jiangshan
On 05/13/2014 06:01 AM, Tejun Heo wrote: > On Mon, May 12, 2014 at 02:56:20PM +0800, Lai Jiangshan wrote: >> manager_mutex is only used to protect the attaching for the pool >> and the pool->workers list. It protects the pool->workers and operations >> based on this list, such as: >> cpu-bindi

Re: [GIT PULL v2] First pull-request for the IB between MFD and GPIO

2014-05-12 Thread Linus Walleij
On Fri, May 9, 2014 at 11:55 AM, Lee Jones wrote: > Looks like it matters which order the patches are merged in - my bad! > > The following changes since commit 89ca3b881987f5a4be4c5dbaa7f0df12bbdde2fd: > > Linux 3.15-rc4 (2014-05-04 18:14:42 -0700) > > are available in the git repository at: >

Re: [PATCH v3 3/8] phy: sunxi: Rework phy initialization

2014-05-12 Thread Hans de Goede
Hi, On 05/12/2014 09:34 PM, Maxime Ripard wrote: > Move the phy initialization and variables declaration to the loop itself, > since > it is where it really belongs. Also remove all the temporary variables, we can > use the structure members directly. > > Signed-off-by: Maxime Ripard > --- > d

Re: [PATCH 06/10 V2] workqueue: convert worker_idr to worker_ida

2014-05-12 Thread Lai Jiangshan
On 05/13/2014 05:40 AM, Tejun Heo wrote: > On Mon, May 12, 2014 at 02:56:18PM +0800, Lai Jiangshan wrote: >> @@ -1681,7 +1682,6 @@ static void worker_detach_from_pool(struct worker >> *worker, >> struct completion *detach_completion = NULL; >> >> mutex_lock(&pool->manager_mutex); >> -

Re: [patch 0/3] futex/rtmutex: Fix issues exposed by trinity

2014-05-12 Thread Ingo Molnar
* Steven Rostedt wrote: > >This is beyond sloppy and outright stupid. > > Thomas, listen to yourself. You are calling something that got in > without updating the documentation and test case "beyond sloppy and > outright stupid". Sure, I'll agree it was a little sloppy, and today I'm > more

Re: [PATCHSET v2 cgroup/for-3.16] cgroup: post unified hierarchy fixes and updates

2014-05-12 Thread Li Zefan
On 2014/5/10 3:32, Tejun Heo wrote: > Hello, > > Changes from the last take[L] are, > > * 0002, 0003 and 0007 added. > > * Other patches are refreshed without content change. > > This patchset contains the following seven patches. > > 0001-cgroup-fix-offlining-child-waiting-in-cgroup_subtree.

Re: [PATCHSET cgroup/for-3.16] cgroup: implement cftype->write()

2014-05-12 Thread Li Zefan
On 2014/5/6 20:44, Tejun Heo wrote: > Hello, > > This patchset implements a new cftype operation ->write() and replace > ->write_string() and ->trigger() with it. ->write() is similar to > ->write_string() but maps directly to the kernfs write operation and > has access to all available context i

Re: [PATCH 03/10 V2] workqueue: async worker destruction

2014-05-12 Thread Lai Jiangshan
On 05/13/2014 05:20 AM, Tejun Heo wrote: > On Mon, May 12, 2014 at 02:56:15PM +0800, Lai Jiangshan wrote: >> /** >> + * worker_detach_from_pool() - detach the worker from the pool >> + * @worker: worker which is attached to its pool >> + * @pool: attached pool >> + * >> + * Undo the attaching whic

Re: [PATCH 1/1] uprobes/x86: Fix the wrong ->si_addr when xol triggers a trap

2014-05-12 Thread Masami Hiramatsu
(2014/05/13 2:08), Oleg Nesterov wrote: > If the probed insn triggers a trap, ->si_addr = regs->ip is technically > correct, but this is not what the signal handler wants; we need to pass > the address of the probed insn, not the address of xol slot. > > Add the new arch-agnostic helper, uprobe_ge

Re: [PATCH] powerpc/pseries: relocate "config DTL" so KConfig nests properly

2014-05-12 Thread Michael Neuling
> powerpc/pseries: relocate "config DTL" so KConfig nests properly I don't know what that means. Can you describe it in more detail? Mikey On Mon, 2014-05-12 at 20:09 -0700, Cody P Schafer wrote: > Signed-off-by: Cody P Schafer > --- > arch/powerpc/platforms/pseries/Kconfig | 20 ++--

Re: [RFC][PATCH 1/2] mm/vmalloc: Add IO mapping space reused interface.

2014-05-12 Thread Richard Lee
On Tue, May 13, 2014 at 11:13 AM, Rob Herring wrote: > On Sun, May 11, 2014 at 9:19 PM, Richard Lee wrote: >> For the IO mapping, for the same physical address space maybe >> mapped more than one time, for example, in some SoCs: >> 0x2000 ~ 0x20001000: are global control IO physical map, >> a

Re: can't we kill DIE_GPF ? (Was: x86/traps: cleanup DO_ERROR*() to prepare for uprobes fixes)

2014-05-12 Thread Masami Hiramatsu
(2014/05/09 23:07), Oleg Nesterov wrote: > On 05/08, Oleg Nesterov wrote: >> >> For example, after this series >> we can convert math_error() into the "normal" DO_ERROR() user, and most >> probably >> we can do the same with do_general_protection(). > > As for do_general_protection(), the problem

Re: [PATCH v8 1/2] phy: Add new Exynos5 USB 3.0 PHY driver

2014-05-12 Thread Vivek Gautam
Hi Kishon, On Mon, May 12, 2014 at 6:33 PM, Kishon Vijay Abraham I wrote: > Hi Gautam, > > On Friday 09 May 2014 07:27 PM, Vivek Gautam wrote: >> Add a new driver for the USB 3.0 PHY on Exynos5 series of SoCs. >> The new driver uses the generic PHY framework and will interact >> with DWC3 contro

Re: [PATCH v2] ipc,shm: document new limits in the uapi header

2014-05-12 Thread Michael Kerrisk (man-pages)
On Tue, May 13, 2014 at 3:35 AM, Davidlohr Bueso wrote: > On Mon, 2014-05-12 at 09:44 +0200, Michael Kerrisk (man-pages) wrote: [...] >> The problem is that part of your text is still broken grammatically In >> particular, the piece "Both SHMMAX and SHMALL have their default >> values to the maxim

Re: [RFC PATCH] cpufreq: intel_pstate: Change the calculation of next pstate

2014-05-12 Thread Yuyang Du
> > > Maybe, in some cases yes. But not always. > > > For example, please consider a CPU running a tight "for" loop in 100MHz > > > for a couple of seconds. This produces a load of 100%. > > > It will produce the same load (100%) in any other frequency. > > > > Still fundamentally wrong, becaus

Re: [PATCH 02/10 V2] workqueue: destroy_worker() should destroy idle workers only

2014-05-12 Thread Lai Jiangshan
On 05/13/2014 05:08 AM, Tejun Heo wrote: > On Mon, May 12, 2014 at 02:56:14PM +0800, Lai Jiangshan wrote: >> @@ -1692,9 +1691,8 @@ static struct worker *alloc_worker(void) >> * create_worker - create a new workqueue worker >> * @pool: pool the new worker will belong to >> * >> - * Create a ne

Re: [PATCH v3 1/6] clocksource: Add support for the Mediatek SoCs

2014-05-12 Thread Maxime Ripard
On Tue, May 13, 2014 at 01:49:25AM +0200, Matthias Brugger wrote: > This patch adds a clock source and clock event for the timer found > on the Mediatek SoCs. > > The Mediatek General Porpose Timer block provides five 32 bit timers and > one 64 bit timer. > > Two 32 bit timers are used: > TIMER1:

Re: [PATCH 1/2] ARM: hip04: set ARCH_NR_GPIO to 128

2014-05-12 Thread Zhou Wang
On 2014/5/4 19:37, Zhou Wang wrote: > On 2014/4/23 19:51, Zhou Wang wrote: >> set ARCH_NR_GPIO for Hisilicon Soc hip04, which has 4 GPIO >> controllers with 32 GPIOs each. >> >> Signed-off-by: Zhou Wang >> --- >> arch/arm/Kconfig |1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/arch

Re: [Pinctrl] A suggestion to avoid duplicated enabling operation on a pin's setting

2014-05-12 Thread FanWu
On 05/13/2014 04:20 AM, Stephen Warren wrote: On 05/07/2014 02:02 AM, FanWu wrote: ... I think the glitch you mentioned is indeed a problem for the vendors who define the "pinctrl-single,function-off" which will be activated when disabling setting. "pinctrl-single,function-off" is one specific

Re: [patch 1/3] rtmutex: Add missing deadlock check

2014-05-12 Thread Lai Jiangshan
Hi, Thomas, I think this patch is just a workaround, it is not the proper fix. you need a updated deadlock-check mechanism: - (old) skip the check when top_waiter != task_top_pi_waiter(task) + (new) skip the check when top_waiter->prio > task->prio /* * Drop out, when the task h

RE: Questions regarding DMA buffer sharing using IOMMU

2014-05-12 Thread Pintu Kumar
Thanks Lauraa for your answers. I have few more queries below.  > Date: Mon, 12 May 2014 09:27:27 -0700 > From: lau...@codeaurora.org > To: pint...@outlook.com; a...@arndb.de; linux-arm-ker...@lists.infradead.org > CC: linux...@kvack.org; linux-kernel@vger.

Re: [PATCH v2 1/6] phy: add a driver for the Berlin SATA PHY

2014-05-12 Thread Kishon Vijay Abraham I
Hi, On Monday 12 May 2014 07:48 PM, Sebastian Hesselbarth wrote: > On 05/12/2014 02:46 PM, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Monday 12 May 2014 02:46 PM, Antoine Ténart wrote: >>> The Berlin SoC has a two SATA ports. Add a PHY driver to handle them. >>> >>> Signed-off-by: Antoine Ténar

[PATCH 2/2] zsmalloc: make zsmalloc module-buildable

2014-05-12 Thread Minchan Kim
Now, we can build zsmalloc as module because unmap_kernel_range was exported. Signed-off-by: Minchan Kim --- mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index 30cb6cb008f5..709a77a0fb55 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -558,7

[PATCH 1/2] mm: export unmap_kernel_range

2014-05-12 Thread Minchan Kim
Now zsmalloc needs exported unmap_kernel_range for building it as module. In detail, here it is. https://lkml.org/lkml/2013/1/18/487 I didn't send a patch to make unmap_kernel_range exportable at that time because zram was staging stuff and I thought VM function exporting for staging stuff makes n

Re: [net] BUG: unable to handle kernel NULL pointer dereference at 000000000000022f

2014-05-12 Thread Oliver Hartkopp
Hello Jet, this is likely not CAN related, as # CONFIG_CAN is not set and all the CAN changes introduced by Marc's merge are not even compiled in your setup. So I assume the issue somewhere in the netlink or ipv6 stuff (see commit at the end. Best regards, Oliver On 13.05.2014 04:52, Jet Che

Re: [PATCH 4/4] timekeeping: Use printk_deferred when holding timekeeping seqlock

2014-05-12 Thread George Spelvin
>> 2) Using wait-free coding techniques where readers help the writer if >>they notice a stall. This is much hairier internal code, but makes >>life easier on the callers. The basic procedure is: >> >>- A conventionally locked writer decides that the frequency is to be >> adjuste

Re: [PATCH 0/1] (Was: cleanup DO_ERROR*() to prepare for uprobes fixes)

2014-05-12 Thread Ananth N Mavinakayanahalli
On Mon, May 12, 2014 at 07:08:22PM +0200, Oleg Nesterov wrote: > On 05/08, Oleg Nesterov wrote: > > > > But let me send the initial changes first for review. If they pass the > > review > > and if nobody objects, I'd like to route them along with the pending uprobes > > fixes. > > OK, nobody care

linux-next: manual merge of the dt-rh tree with Linus' tree

2014-05-12 Thread Stephen Rothwell
Hi Rob, Today's linux-next merge of the dt-rh tree got a conflict in drivers/of/selftest.c between commit 82c0f5897a87 ("of: selftest: add deferred probe interrupt test") from Linus' tree and commit ae7c987bc3a7 ("of/selftest: add testcase for nodes with same name and address") from the dt-rh tree

[PATCH] e1000: remove the check: skb->len<=0

2014-05-12 Thread xuyongjiande
From: Yongjian Xu There is no case skb->len would be 0 or 'negative'. Remove the check. Signed-off-by: Yongjian Xu --- drivers/net/ethernet/intel/e1000/e1000_main.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/int

Re: [PATCH 1/2] hrtimer: reprogram event for expires=KTIME_MAX in hrtimer_force_reprogram()

2014-05-12 Thread Preeti U Murthy
On 05/12/2014 11:23 AM, Viresh Kumar wrote: > On 10 May 2014 21:47, Preeti U Murthy wrote: >> On 05/09/2014 04:27 PM, Viresh Kumar wrote: >>> On 9 May 2014 16:04, Preeti U Murthy wrote: > >>> Ideally, the device should have stopped events as we programmed it in >>> ONESHOT mode. And should have

Re: [PATCH 5/7] cgroup: use restart_syscall() for retries after offline waits in cgroup_subtree_control_write()

2014-05-12 Thread Li Zefan
Hi Tejun, On 2014/5/10 3:32, Tejun Heo wrote: > After waiting for a child to finish offline, > cgroup_subtree_control_write() jumps up to retry from after the input > parsing and active protection breaking. This retry makes the > scheduled locking update more difficult. Could you explain this se

RE: Questions regarding DMA buffer sharing using IOMMU

2014-05-12 Thread Pintu Kumar
Thanks Lauraa for your answers. I have few more queries below.  > Date: Mon, 12 May 2014 09:27:27 -0700 > From: lau...@codeaurora.org > To: pint...@outlook.com; a...@arndb.de; linux-arm-ker...@lists.infradead.org > CC: linux...@kvack.org; linux-kernel@vger.

RE: [PATCH] ACPICA: Revert "ACPICA: Add option to favor 32-bit FADT addresses."

2014-05-12 Thread Zheng, Lv
Hi, Rafael > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent: Tuesday, May 13, 2014 9:31 AM > To: Zheng, Lv > Cc: robertbmo...@compuserve.com; Thomas Renninger (tr...@suse.de); Oswald > Buddenhagen; ACPI Devel Maling List; Linux > Kernel Mailing List > Subject: Re: [PATCH] ACPICA: Reve

Re: [RFC PATCH] cpufreq: intel_pstate: Change the calculation of next pstate

2014-05-12 Thread Yuyang Du
On Tue, May 13, 2014 at 07:16:24AM +0300, Stratos Karafotis wrote: > On 12/05/2014 11:01 μμ, Yuyang Du wrote: > > On Tue, May 13, 2014 at 06:59:42AM +0300, Stratos Karafotis wrote: > >> Hi, > >> > >> On 12/05/2014 10:34 μμ, Yuyang Du wrote: > >>> On Mon, May 12, 2014 at 11:30:03PM +0300, Stratos Ka

Re: [PATCH v4 0/4] net: Add APM X-Gene SoC Ethernet driver support

2014-05-12 Thread Ming Lei
ble > * cleaned up single bit set and masking code > * removed statistics counters masking > * removed unnecessary OOM message printing > * fixed dma_map_single and dma_unmap_single size parameter > * changed set bits macro body using new set_bits function I just tested the v4 aga

Re: [RFC PATCH] cpufreq: intel_pstate: Change the calculation of next pstate

2014-05-12 Thread Stratos Karafotis
On 12/05/2014 11:01 μμ, Yuyang Du wrote: > On Tue, May 13, 2014 at 06:59:42AM +0300, Stratos Karafotis wrote: >> Hi, >> >> On 12/05/2014 10:34 μμ, Yuyang Du wrote: >>> On Mon, May 12, 2014 at 11:30:03PM +0300, Stratos Karafotis wrote: On 09/05/2014 05:56 μμ, Stratos Karafotis wrote:

Re: linux-next: manual merge of the net-next tree with the ipsec tree

2014-05-12 Thread David Miller
From: Stephen Rothwell Date: Tue, 13 May 2014 13:53:22 +1000 > Today's linux-next merge of the net-next tree got a conflict in > net/ipv6/xfrm6_output.c between commit 5596732fa8c1 ("xfrm: Fix crash > with ipv6 IPsec tunnel and NAT") from the ipsec tree and commit > 60ff746739bf ("net: rename loc

Re: [RFC PATCH] cpufreq: intel_pstate: Change the calculation of next pstate

2014-05-12 Thread Yuyang Du
On Tue, May 13, 2014 at 06:59:42AM +0300, Stratos Karafotis wrote: > Hi, > > On 12/05/2014 10:34 μμ, Yuyang Du wrote: > > On Mon, May 12, 2014 at 11:30:03PM +0300, Stratos Karafotis wrote: > >> On 09/05/2014 05:56 μμ, Stratos Karafotis wrote: > >> > >> Next performance state = min_perf + (max_perf

Re: linux-next: manual merge of the net-next tree with the ipsec tree

2014-05-12 Thread Cong Wang
On Mon, May 12, 2014 at 8:53 PM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in > net/ipv6/xfrm6_output.c between commit 5596732fa8c1 ("xfrm: Fix crash > with ipv6 IPsec tunnel and NAT") from the ipsec tree and commit > 60ff746739bf ("net: ren

Re: [PATCH] e1000: To filter the negative skb->len

2014-05-12 Thread Eric Dumazet
On Tue, 2014-05-13 at 11:33 +0800, xuyongjia...@gmail.com wrote: > From: Yongjian Xu > > skb->len is unsigned int, "skb->len <= 0" should be "(int)(skb->len) <= 0". Why ? Did you hit a case skb->len would be 0 or 'negative' ? This test makes no sense, just remove it. -- To unsubscribe from

Re: [RFC PATCH] cpufreq: intel_pstate: Change the calculation of next pstate

2014-05-12 Thread Stratos Karafotis
Hi, On 12/05/2014 10:34 μμ, Yuyang Du wrote: > On Mon, May 12, 2014 at 11:30:03PM +0300, Stratos Karafotis wrote: >> On 09/05/2014 05:56 μμ, Stratos Karafotis wrote: >> >> Next performance state = min_perf + (max_perf - min_perf) * load / 100 >> > Hi, > > This formula is fundamentally broken. You

Re: [patch 0/3] futex/rtmutex: Fix issues exposed by trinity

2014-05-12 Thread Darren Hart
On Mon, May 12, 2014 at 08:45:32PM -, Thomas Gleixner wrote: > Dave reported recently that the trinity syscall fuzzer triggers a > warning in the rtmutex code via the futex syscall. > > It took me quite a while to understand the issue, until I was able to > write a minimalistic reproducer. >

Re: [PATCH 4/7] cgroup: update and fix parsing of "cgroup.subtree_control"

2014-05-12 Thread Li Zefan
> diff --git a/kernel/cgroup.c b/kernel/cgroup.c > index 35daf89..b81e7c0 100644 > --- a/kernel/cgroup.c > +++ b/kernel/cgroup.c > @@ -2542,11 +2542,13 @@ static int cgroup_subtree_control_write(struct > cgroup_subsys_state *dummy_css, > int ssid, ret; > > /* > - * Parse input -

linux-next: manual merge of the net-next tree with the ipsec tree

2014-05-12 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in net/ipv6/xfrm6_output.c between commit 5596732fa8c1 ("xfrm: Fix crash with ipv6 IPsec tunnel and NAT") from the ipsec tree and commit 60ff746739bf ("net: rename local_df to ignore_df") from the net-next tree. I fixed it up (s

Re: [PATCH 1/2] ARM: tegra: joystick input in tegra_defconfig

2014-05-12 Thread Alexandre Courbot
On Tue, May 13, 2014 at 1:32 AM, Stephen Warren wrote: > On 05/12/2014 02:26 AM, Alexandre Courbot wrote: >> NVIDIA SHIELD embeds a USB controller. Compile the corresponding support > > USB controller or USB joystick? I understand this sounds like "EHCI controller" here. Will reword. > >> as a m

Re: [RFC PATCH] cpufreq: intel_pstate: Change the calculation of next pstate

2014-05-12 Thread Yuyang Du
On Mon, May 12, 2014 at 11:30:03PM +0300, Stratos Karafotis wrote: > On 09/05/2014 05:56 μμ, Stratos Karafotis wrote: > > Next performance state = min_perf + (max_perf - min_perf) * load / 100 > Hi, This formula is fundamentally broken. You need to associate the load with its frequency. Thanks,

Re: [PATCH 4/4] timekeeping: Use printk_deferred when holding timekeeping seqlock

2014-05-12 Thread John Stultz
On 05/12/2014 07:44 PM, George Spelvin wrote: > On Mon, 12 May 2014, John Stultz wrote: >> First: My apologies, for some reason your mail got tagged as spam, so I >> only saw it just now looking for another missing email. > No problem; it happens to everyone. Curse you, Canter & Siegel! > >>> One

[ISSUE] sched/cgroup: Does cpu-cgroup still works fine nowadays?

2014-05-12 Thread Michael wang
During our testing, we found that the cpu.shares doesn't work as expected, the testing is: X86 HOST: 12 CPU GUEST(KVM): 6 VCPU We create 3 GUEST, each with 1024 shares, the workload inside them is: GUEST_1: dbench 6 GUEST_2: stress -c 6 GUEST_3: stress -c

[PATCH] e1000: To filter the negative skb->len

2014-05-12 Thread xuyongjiande
From: Yongjian Xu skb->len is unsigned int, "skb->len <= 0" should be "(int)(skb->len) <= 0". Signed-off-by: Yongjian Xu --- drivers/net/ethernet/intel/e1000/e1000_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/driver

[PATCH V1] regulator: DA9211 : new regulator driver

2014-05-12 Thread James Ban
This is the driver for the Dialog DA9211 Multi-phase 12A DC-DC Buck Converter regulator. It communicates via an I2C bus to the device. Signed-off-by: James Ban --- This patch is relative to linux-next repository tag next-20140509 drivers/regulator/Kconfig| 10 + drivers/regulator/

linux-next: manual merge of the vfs tree with the cifs tree

2014-05-12 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in fs/cifs/cifsfs.c between commit 485c4e72d0f1 ("cifs: revalidate mapping prior to satisfying aio_read request") from the cifs tree and commits aad4f8bb42af ("switch simple generic_file_aio_read() users to ->read_iter()") and 3dae8750

Re: [PATCH] ntp: make is_error_status() use its argument

2014-05-12 Thread John Stultz
On 05/12/2014 08:01 PM, George Spelvin wrote: >> CONFIG_NTP_PPS not CONFIG_SMP, right? > D'oh, yes. I just noticed that there were two versions and one was > broken. Somehow my search for the enclosing #ifdef was completely broken. > (I could swear I saw CONFIG_SMP, but looking now it's not even

[PATCH v1] drivers/clocksource: do not trace read_sched_clock

2014-05-12 Thread Wei.Yang
From: Yang Wei We do not need to trace read_sched_clock function, so add notrace attribute for this function. Signed-off-by: Yang Wei --- drivers/clocksource/dw_apb_timer_of.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/dw_apb_timer_of.c b/driver

Re: [RFC][PATCH 1/2] mm/vmalloc: Add IO mapping space reused interface.

2014-05-12 Thread Rob Herring
On Sun, May 11, 2014 at 9:19 PM, Richard Lee wrote: > For the IO mapping, for the same physical address space maybe > mapped more than one time, for example, in some SoCs: > 0x2000 ~ 0x20001000: are global control IO physical map, > and this range space will be used by many drivers. What addr

[PATCH v1] drivers/clocksource: do not trace read_sched_clock

2014-05-12 Thread Wei.Yang
From: Yang Wei We do not need to trace read_sched_clock function, so add notrace attribute for this function. Signed-off-by: Yang Wei --- drivers/clocksource/dw_apb_timer_of.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/dw_apb_timer_of.c b/driver

[PATCH] powerpc/pseries: relocate "config DTL" so KConfig nests properly

2014-05-12 Thread Cody P Schafer
Signed-off-by: Cody P Schafer --- arch/powerpc/platforms/pseries/Kconfig | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig index 2cb8b77..e00dd4d 100644 --- a/arch/powerpc/pla

[PATCH] ALSA: hda - Add new GPU codec ID to snd-hda

2014-05-12 Thread Aaron Plattner
Vendor ID 0x10de0071 is used by a yet-to-be-named GPU chip. Signed-off-by: Aaron Plattner Cc: Takashi Iwai Cc: Jaroslav Kysela Cc: Stephen Warren --- I verified that the patch_nvhdmi code is still needed for this chip. sound/pci/hda/patch_hdmi.c | 2 ++ 1 file changed, 2 insertions(+) diff

Re: [RFC PATCH 2/3] CMA: aggressively allocate the pages on cma reserved memory when not used

2014-05-12 Thread Minchan Kim
On Mon, May 12, 2014 at 10:04:29AM -0700, Laura Abbott wrote: > Hi, > > On 5/7/2014 5:32 PM, Joonsoo Kim wrote: > > CMA is introduced to provide physically contiguous pages at runtime. > > For this purpose, it reserves memory at boot time. Although it reserve > > memory, this reserved memory can b

Re: [PATCH] ntp: make is_error_status() use its argument

2014-05-12 Thread George Spelvin
> CONFIG_NTP_PPS not CONFIG_SMP, right? D'oh, yes. I just noticed that there were two versions and one was broken. Somehow my search for the enclosing #ifdef was completely broken. (I could swear I saw CONFIG_SMP, but looking now it's not even mentioned in the file; maybe I switched editor windo

Re: [RFC PATCH 2/3] CMA: aggressively allocate the pages on cma reserved memory when not used

2014-05-12 Thread Minchan Kim
Hey Joonsoo, On Thu, May 08, 2014 at 09:32:23AM +0900, Joonsoo Kim wrote: > CMA is introduced to provide physically contiguous pages at runtime. > For this purpose, it reserves memory at boot time. Although it reserve > memory, this reserved memory can be used for movable memory allocation > reque

[PATCH 2/2] timekeeping: Mark struct timekeeper * passed to notifiers as const

2014-05-12 Thread George Spelvin
Add const delcarations where possible to make clear that the call chains are not permitted to write to the structure. It is not expected to improve generated code; the purpose is to document the rules for who's allowed to modify the timekeeper state (and must hold the associated locks) more clearl

[PATCH 1/2] timekeeping: Use unsigned int for seqlock sequence

2014-05-12 Thread George Spelvin
read_seqlock_begin returns an int, so using "unsigned long" to hold the return value is harmless, but a waste. Signed-off-by: George Spelvin --- kernel/time/timekeeping.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/kernel/time/timekeeping.c b/kernel

Re: [PATCH 4/4] timekeeping: Use printk_deferred when holding timekeeping seqlock

2014-05-12 Thread George Spelvin
On Mon, 12 May 2014, John Stultz wrote: > First: My apologies, for some reason your mail got tagged as spam, so I > only saw it just now looking for another missing email. No problem; it happens to everyone. Curse you, Canter & Siegel! >> One misfeature in the timekeeping seqlock code I noticed

Re: [PATCH] perf_tools/sched: Remove nr_state_machine_bugs in perf latency.

2014-05-12 Thread Dongsheng Yang
Hi jiri or Arnaldo, It seems Peter really do not like the usage of sched_wakeup(.success), and don't plan to support it in scheduler any more. Please consider to append this patch too when you take the patch from Peter. Thanx :) On 05/13/2014 10:38 AM, Dongsheng Yang wrote: As we do not

[PATCH] perf_tools/sched: Remove nr_state_machine_bugs in perf latency.

2014-05-12 Thread Dongsheng Yang
As we do not use .success in sched_wakeup event any more, then we can not guarantee that the task when wakeup event happen is out of run queue. So the message of nr_state_machine_bugs is not correct. Signed-off-by: Dongsheng Yang --- tools/perf/builtin-sched.c | 19 --- 1 file ch

Re: [PATCH 1/4] mtd: Add sysfs attr to expose ECC stats

2014-05-12 Thread Ezequiel Garcia
On 12 May 05:50 PM, Brian Norris wrote: > > There are some guidelines about attributes in > > 'Documentation/filesystems/sysfs.txt' > > Though it's acceptable to put array of values of the "same type" in single > > sysfs file, > > But I'm still not confident on having all members of 'struct ecc_s

Re: [PATCH 1/7] ARM: imx: fix function type for CLK_OF_DECLARE

2014-05-12 Thread Shawn Guo
On Mon, May 12, 2014 at 07:29:47PM -0500, Rob Herring wrote: > From: Rob Herring > > Adding function type checking to CLK_OF_DECLARE found a type mismatch with > mx35_clocks_init_dt. The function should return void. > > Signed-off-by: Rob Herring > Cc: Shawn Guo > Cc: Sascha Hauer Acked-by:

Re: [RFC PATCH 0/3] Aggressively allocate the pages on cma reserved memory

2014-05-12 Thread Joonsoo Kim
On Fri, May 09, 2014 at 02:39:20PM +0200, Marek Szyprowski wrote: > Hello, > > On 2014-05-08 02:32, Joonsoo Kim wrote: > >This series tries to improve CMA. > > > >CMA is introduced to provide physically contiguous pages at runtime > >without reserving memory area. But, current implementation works

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

2014-05-12 Thread Sasha Levin
g the latest >>> >> -next >>> >> kernel I've stumbled on the following spew: >>> >> >>> >> [ 1297.886670] WARNING: CPU: 0 PID: 190 at kernel/workqueue.c:2176 >>> >> process_one_work+0xb5/0x6f0() >>> >

Re: [PATCH] input: pcap2: avoid calling mutex_lock() in irq handler

2014-05-12 Thread Dmitry Torokhov
On Sun, Apr 06, 2014 at 11:37:44PM +0200, Antonio Ospite wrote: > On Sun, 6 Apr 2014 13:24:36 -0700 > Dmitry Torokhov wrote: > > > On Sun, Apr 06, 2014 at 12:54:50AM +0400, Alexey Khoroshilov wrote: > > > pcap_keys_handler() calls ezx_pcap_read() that calls mutex_lock(). > > > pcap_keys_handler()

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

2014-05-12 Thread Lai Jiangshan
; [ 1297.886670] WARNING: CPU: 0 PID: 190 at kernel/workqueue.c:2176 >> process_one_work+0xb5/0x6f0() >> [ 1297.889216] Modules linked in: >> [ 1297.890306] CPU: 0 PID: 190 Comm: kworker/3:0 Not tainted >> 3.15.0-rc5-next-20140512-sasha-00019-ga20bc00-dirty #456 &

[GIT PULL] hwmon fixes for 3.15-rc6

2014-05-12 Thread Guenter Roeck
Hi Linus, Please pull hwmon fixes for Linux 3.15-rc6 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus Thanks, Guenter -- The following changes since commit d6d211db37e75de2ddc3a4f979038c40df7cc79c: Linux 3.15-rc5 (2014-05-09 13:

linux-next: manual merge of the powerpc tree with the fixes tree

2014-05-12 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the powerpc tree got a conflict in arch/powerpc/kernel/exceptions-64s.S between commit 0be9d8b61c0c ("powerpc/ppc64: Allow allmodconfig to build (finally !)") from the fixes tree and commits b1576fec7f4d ("powerpc: No need to use dot symbols when branching to a

Re: [RFC][PATCH 2/2] ARM: ioremap: Add IO mapping space reused support.

2014-05-12 Thread Richard Lee
> On Mon, May 12, 2014 at 3:51 PM, Arnd Bergmann wrote: > On Monday 12 May 2014 10:19:55 Richard Lee wrote: >> For the IO mapping, for the same physical address space maybe >> mapped more than one time, for example, in some SoCs: >> 0x2000 ~ 0x20001000: are global control IO physical map, >> a

Re: [PATCH 2/2] mm/page_alloc: DEBUG_VM checks for free_list placement of CMA and RESERVE pages

2014-05-12 Thread Joonsoo Kim
On Thu, May 08, 2014 at 03:34:33PM -0700, Andrew Morton wrote: > On Thu, 8 May 2014 15:19:37 +0900 Minchan Kim wrote: > > > > I also think that VM_DEBUG overhead isn't problem because of same > > > reason from Vlastimil. > > > > Guys, please read this. > > > > https://lkml.org/lkml/2013/7/17/59

Re: [PATCH] backlight: gpio-backlight: Fix warning when the GPIO is on a I2C chip

2014-05-12 Thread Jingoo Han
On Friday, May 09, 2014 10:25 AM, Tony Lindgren wrote: > > If the GPIO for the backlight is on an I2C chip, we currently > get nasty warnings like this during the boot: > > WARNING: CPU: 0 PID: 6 at drivers/gpio/gpiolib.c:2364 > gpiod_set_raw_value+0x40/0x4c() > Modules linked in: > CPU: 0 PID:

Re: [PATCH v2] ipc,shm: document new limits in the uapi header

2014-05-12 Thread Davidlohr Bueso
On Mon, 2014-05-12 at 09:44 +0200, Michael Kerrisk (man-pages) wrote: > Hi Davidlohr, > > On Sun, May 11, 2014 at 10:46 PM, Davidlohr Bueso wrote: > > On Fri, 2014-05-09 at 10:44 +0200, Michael Kerrisk (man-pages) wrote: > >> On Wed, May 7, 2014 at 9:17 PM, Davidlohr Bueso wrote: > >> > This is

Re: [PATCH 2/2] mm/page_alloc: DEBUG_VM checks for free_list placement of CMA and RESERVE pages

2014-05-12 Thread Joonsoo Kim
On Mon, May 12, 2014 at 10:28:25AM +0200, Vlastimil Babka wrote: > On 05/08/2014 07:54 AM, Joonsoo Kim wrote: > >On Wed, May 07, 2014 at 04:59:07PM +0200, Vlastimil Babka wrote: > >>On 05/07/2014 03:33 AM, Minchan Kim wrote: > >>>On Mon, May 05, 2014 at 05:50:46PM +0200, Vlastimil Babka wrote: > >>

Re: [PATCH v3 1/8] clk: sunxi: Implement A31 USB clock

2014-05-12 Thread Mike Turquette
Quoting Maxime Ripard (2014-05-12 12:34:27) > The A31 USB clock slightly differ from its older counterparts, mostly because > it has a different gate for each PHY, while the older one had a single gate > for > all the phy. > > Signed-off-by: Maxime Ripard > Reviewed-by: Hans de Goede Acked-by:

Re: [PATCH v6 3/8] ARM: sunxi: Move the clock protection to machine hooks

2014-05-12 Thread Mike Turquette
Quoting Arnd Bergmann (2014-04-23 06:31:06) > On Wednesday 23 April 2014 15:17:20 Maxime Ripard wrote: > > > > +#include > > > > #include > > > > #include > > > > > > > > @@ -19,9 +20,17 @@ > > > > > > > > static void __init sun4i_dt_init(void) > > > > { > > > > + struct clk *clk;

RE: [PATCH v2 2/10] xfs: Add support FALLOC_FL_INSERT_RANGE for fallocate

2014-05-12 Thread Namjae Jeon
> > On Mon, May 12, 2014 at 06:42:37PM +0900, Namjae Jeon wrote: > > > > > > +xfs_bmap_split_extent( > > > > + struct xfs_inode*ip, > > > > + xfs_fileoff_t split_fsb, > > > > + xfs_extnum_t*split_ext) > > > > +{ > > > > + struct xfs_mount

[PATCH] gpio: using devm functions for timberdale gpio memory allocation This eases memory allocation and provides appropriate logging

2014-05-12 Thread abdoulaye berthe
Signed-off-by: abdoulaye berthe --- drivers/gpio/gpio-timberdale.c | 47 ++ 1 file changed, 16 insertions(+), 31 deletions(-) diff --git a/drivers/gpio/gpio-timberdale.c b/drivers/gpio/gpio-timberdale.c index f9a8fbd..efc7c12 100644 --- a/drivers/gpio/gpio

Re: [PATCH] ACPICA: Revert "ACPICA: Add option to favor 32-bit FADT addresses."

2014-05-12 Thread Rafael J. Wysocki
On Tuesday, May 13, 2014 01:05:59 AM Zheng, Lv wrote: > Hi, > > > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > > Sent: Tuesday, May 13, 2014 8:09 AM > > > > On Monday, May 12, 2014 08:51:36 AM Zheng, Lv wrote: > > > Hi, Rafael > > > > > > I checked the bug. > > > > > > The dmesg of the k

Re: [PATCH v2 2/2] mm/compaction: avoid rescanning pageblocks in isolate_freepages

2014-05-12 Thread Joonsoo Kim
On Mon, May 12, 2014 at 11:09:25AM +0200, Vlastimil Babka wrote: > On 05/08/2014 07:28 AM, Joonsoo Kim wrote: > >On Wed, May 07, 2014 at 02:09:10PM +0200, Vlastimil Babka wrote: > >>The compaction free scanner in isolate_freepages() currently remembers PFN > >>of > >>the highest pageblock where it

Re: [RFC PATCH 2/3] CMA: aggressively allocate the pages on cma reserved memory when not used

2014-05-12 Thread Joonsoo Kim
On Mon, May 12, 2014 at 10:04:29AM -0700, Laura Abbott wrote: > Hi, > > On 5/7/2014 5:32 PM, Joonsoo Kim wrote: > > CMA is introduced to provide physically contiguous pages at runtime. > > For this purpose, it reserves memory at boot time. Although it reserve > > memory, this reserved memory can b

[RFC][PATCH 2/3] PM / sleep: Mechanism to avoid resuming runtime-suspended devices unnecessarily

2014-05-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Currently, some subsystems (e.g. PCI and the ACPI PM domain) have to resume all runtime-suspended devices during system suspend, mostly because those devices may need to be reprogrammed due to different wakeup settings for system sleep and for runtime PM. For some devices

[RFC][PATCH 3/3] ACPI / PM: Avoid resuming devices in ACPI PM domain during system suspend

2014-05-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Rework the ACPI PM domain's PM callbacks to avoid resuming devices during system suspend (in order to modify their wakeup settings etc.) if that isn't necessary. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/device_pm.c | 43 ---

[RFC][PATCH 0/3] PM / sleep: Avoid resuming runtime-suspended devices during system suspend

2014-05-12 Thread Rafael J. Wysocki
Hi All, We've discussed that at length here: http://marc.info/?t=13995046903&r=1&w=4 but I'm starting a new thread to refresh things a bit. This is about adding a mechanism allowing us to avoid runtime-suspended devices during system suspend. The reason why it has to touch the PM core is b

[RFC][PATCH 1/3] PM / sleep: Move runtime PM barrier invocation to device_prepare()

2014-05-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Move the invocation of the runtime PM barrier during system suspend (or hibernation) from __device_suspend() to device_prepare() to make all runtime PM transitions in progress complete before executing ->prepare() callbacks for devices. That will allow those callbacks to

RE: [PATCH] ACPICA: Revert "ACPICA: Add option to favor 32-bit FADT addresses."

2014-05-12 Thread Zheng, Lv
Hi, > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent: Tuesday, May 13, 2014 8:09 AM > > On Monday, May 12, 2014 08:51:36 AM Zheng, Lv wrote: > > Hi, Rafael > > > > I checked the bug. > > > > The dmesg of the kernel without the bisected commit: > > [0.00] ACPI BIOS Warning (bug

Re: [PATCH 0/9] hwmon: (emc1403) Various enhancements

2014-05-12 Thread Guenter Roeck
On 05/12/2014 02:08 PM, Josef Gajdusek wrote: Had to fix wrong variable being printed in show_bit(). After that, everything on the 1412 seems to work fine including alarms. - return sprintf(buf, "%d\n", !!(retval & sda->index)); + return sprintf(buf, "%d\n", !!(val & sda->index));

Re: [PATCH 1/4] mtd: Add sysfs attr to expose ECC stats

2014-05-12 Thread Brian Norris
+ Greg KH, LKML For context: http://thread.gmane.org/gmane.linux.drivers.mtd/52517/focus=52518 On Tue, Apr 15, 2014 at 11:13:52AM +, Pekon Gupta wrote: > >From: Ezequiel Garcia > >>On Mar 27, Gupta, Pekon wrote: > >> > > >> >+static ssize_t mtd_ecc_stats_show(struct device *dev, > >> >+

Re: [PATCH] mm, compaction: properly signal and act upon lock and need_sched() contention

2014-05-12 Thread Joonsoo Kim
On Mon, May 12, 2014 at 04:15:11PM +0200, Vlastimil Babka wrote: > Compaction uses compact_checklock_irqsave() function to periodically check for > lock contention and need_resched() to either abort async compaction, or to > free the lock, schedule and retake the lock. When aborting, cc->contended

[PATCH] Fix lockup on panic with lockdep

2014-05-12 Thread Derek Basehore
If we don't call mutex_acquire at the beginning of console_unblank, we can run into a lockup on the logbuf_lock between console_unlock and printk during panic. What happens in console_unlock is: -locks logbuf_lock -calls mutex_release -which calls printk -which locks logbuf_lock This fixes the

  1   2   3   4   5   6   7   >