VDSO support for 32bit time functions

2014-01-20 Thread Greg KH
Hi Stefani, About a year ago you posted a big patch to implement VDSO support for 32bit functions, and the response was a request to clean it up a bit by breaking up the generic bits into a series to make it easier to review / apply. The patch I'm referring to can be found here:

Re: [PATCH v3] phy: Add new Exynos5 USB 3.0 PHY driver

2014-01-20 Thread Vivek Gautam
On Mon, Jan 20, 2014 at 7:12 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 controller present on Exynos5 series of SoCs. > Thereby, removing old phy-samsung-usb3 driver and

RE: [RFC PATCH] vfio/iommu_type1: Multi-IOMMU domain support

2014-01-20 Thread bharat.bhus...@freescale.com
> -Original Message- > From: iommu-boun...@lists.linux-foundation.org [mailto:iommu- > boun...@lists.linux-foundation.org] On Behalf Of Alex Williamson > Sent: Saturday, January 18, 2014 2:06 AM > To: Sethi Varun-B16395 > Cc: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org

Re: [PATCH 2/2] sched: add statistic for rq->max_idle_balance_cost

2014-01-20 Thread Jason Low
On Mon, Jan 20, 2014 at 9:33 PM, Alex Shi wrote: > It's useful to track this value in debug mode. > > Signed-off-by: Alex Shi > --- > kernel/sched/debug.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c > index 1e43e70..f5c529a 100644 > ---

Re: [PATCH] Add HID's to hid-microsoft driver of Surface Type/Touch Cover 2 to fix bug

2014-01-20 Thread Reyad Attiyat
On Tue, Jan 21, 2014 at 12:47 AM, Jiri Kosina wrote: > On Mon, 20 Jan 2014, Reyad Attiyat wrote: > >> The below patch fixes a bug 64811 >> (https://bugzilla.kernel.org/show_bug.cgi?id=64811) of the Microsoft >> Surface Type/Touch cover 2 devices being detected as a multitouch >> device. >> The

Re: [PATCH 1/2] vfs: Add fchmodat4 syscall: fchmodat with flag argument

2014-01-20 Thread Florian Weimer
On 01/13/2012 02:53 AM, Andrew Ayer wrote: This adds a 4 argument version of fchmodat (fchmodat4) that supports a flag argument, as specified by POSIX. It supports the same two flags as fchownat: AT_SYMLINK_NOFOLLOW and AT_EMPTY_PATH. I don't think it's possible to emulate AT_EMPTY_PATH in

RE: [PATCH] cpufreq: Align all CPUs to the same frequency if using shared clock

2014-01-20 Thread Li, Zhuangzhi
Thanks for reviewing. Sorry for make you misunderstanding, on our x86 platform, we want all the CPUs share one policy by setting CPUFREQ_SHARED_TYPE_ALL, not share one HW clock line. If the CPUs work at different frequency at init stage, then while the CPUs registering, no policy to align all

[patch] x86, AMD, NB: silence an underflow test

2014-01-20 Thread Dan Carpenter
This is under CAP_SYS_ADMIN but Smatch complains that mask comes from the user and the test for "mask > 0xf" can underflow. The fix is simple. Signed-off-by: Dan Carpenter diff --git a/arch/x86/include/asm/amd_nb.h b/arch/x86/include/asm/amd_nb.h index a54ee1d054d9..0c4e3e47d462 100644 ---

Re: More GPIO madness on iMX6 - and the crappy ARM port of Linux

2014-01-20 Thread Lothar Waßmann
Hi, Alexandre Courbot wrote: > On Sat, Jan 18, 2014 at 7:43 AM, Linus Walleij > wrote: > > On Fri, Jan 17, 2014 at 9:53 PM, Russell King - ARM Linux > > wrote: > >> On Fri, Jan 17, 2014 at 01:42:44PM -0700, Stephen Warren wrote: > > [...] > > If the OPEN_DRAIN flag is set on that descriptor we

Re: LSF/MM 2014 Call For Proposals

2014-01-20 Thread Michel Lespinasse
On Fri, Dec 20, 2013 at 1:30 AM, Mel Gorman wrote: > The annual Linux Storage, Filesystem and Memory Management Summit for > 2014 will be held on March 24th and 25th before the Linux Foundation > Collaboration summit at The Meritage Resort, Napa Valley, CA. > > >

Re: [PATCH V5 1/3] mm/nobootmem: Fix unused variable

2014-01-20 Thread Philipp Hachtmann
Am Mon, 20 Jan 2014 22:16:33 -0800 (PST) schrieb David Rientjes : > Not sure why you don't just do a one line patch: > > - phys_addr_t size; > + phys_addr_t size __maybe_unused; > to fix it. Just because I did not know that __maybe_unused thing. Discussion of this fix seems to be

Urgent Offer

2014-01-20 Thread 0800 Trabajo
Hello Peeps Virgin Money Int| now offer cheep loans to any one who is interested in going into Business or Expanding, personal loans are also give at a flat rate of %10 for the total duration , take a step by contacting us!!! Reply now we await you. jasoncud...@ntlworld.com -- To unsubscribe

Re: [RFC PATCH 1/2] sched/update_avg: avoid negative time

2014-01-20 Thread Michael wang
Hi, Alex On 01/21/2014 01:33 PM, Alex Shi wrote: > rq->avg_idle try to reflect the average idle time between the cpu idle > and first wakeup. But in the function, it maybe get a negative value > if old avg_idle is too small. Then this negative value will be double > counted in next time

Re: [PATCH] Add HID's to hid-microsoft driver of Surface Type/Touch Cover 2 to fix bug

2014-01-20 Thread Jiri Kosina
On Mon, 20 Jan 2014, Reyad Attiyat wrote: > The below patch fixes a bug 64811 > (https://bugzilla.kernel.org/show_bug.cgi?id=64811) of the Microsoft > Surface Type/Touch cover 2 devices being detected as a multitouch > device. > The fix adds the HID of the two devices to hid-microsoft driver.

Re: [RFC PATCH V2] fs null_blk: Null pointer deference problem in alloc_page_buffers

2014-01-20 Thread Raghavendra K T
On 01/20/2014 10:02 PM, Matias Bjorling wrote: On 01/20/2014 04:58 AM, Raghavendra K T wrote: If we load the null_blk module with bs=8k we get following oops: [ 3819.812190] BUG: unable to handle kernel NULL pointer dereference at 0008 [ 3819.812387] IP: []

Re: BUG: spinlock lockup

2014-01-20 Thread naveen yadav
Dear Will, Thanks for your reply, We are using Cortex A15. yes, this is with ticket lock. We will check value of arch_spinlock_t and share it. It is bit difficult to reproduce this scenario. If you have some idea ,please suggest how to reproduce it. thanks On Mon, Jan 20, 2014 at 3:50 PM,

Re: [PATCH v2] mm/zswap: Check all pool pages instead of one pool pages

2014-01-20 Thread Cai Liu
2014/1/21 Minchan Kim : > Please check your MUA and don't break thread. > > On Tue, Jan 21, 2014 at 11:07:42AM +0800, Cai Liu wrote: >> Thanks for your review. >> >> 2014/1/21 Minchan Kim : >> > Hello Cai, >> > >> > On Mon, Jan 20, 2014 at 03:50:18PM +0800, Cai Liu wrote: >> >> zswap can support

Re: [PATCH] cpufreq: Align all CPUs to the same frequency if using shared clock

2014-01-20 Thread Viresh Kumar
On 21 January 2014 08:35, lizhuangzhi wrote: > Some SMP systems want to make all the possible CPUs share the clock, > if the CPUs init frequencies aren't the same, we need to align all the > CPUs to the same frequency while CPUs registing to avoid mismatched > CPU's P-states. > > Signed-off-by:

linux-next: Tree for Jan 21

2014-01-20 Thread Stephen Rothwell
Hi all, This tree fails (more than usual) the powerpc allyesconfig build. Changes since 20140117: Dropped tree: sh (complex merge conflicts against very old commits) imx-mxs (complex merge conflicts against the arm tree) The imx-mxs tree gained conflicts against the arm tree (so I

Re: [PATCH 1/2] USB: at91: fix the number of endpoint parameter

2014-01-20 Thread Jean-Christophe PLAGNIOL-VILLARD
On 11:39 Mon 20 Jan , Bo Shen wrote: > Hi J, > > On 01/18/2014 01:20 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: > >On 10:59 Fri 17 Jan , Bo Shen wrote: > >>In sama5d3 SoC, there are 16 endpoints. As the USBA_NR_ENDPOINTS > >>is only 7. So, fix it for sama5d3 SoC using the udc->num_ep. >

Re: [PATCH V5 1/3] mm/nobootmem: Fix unused variable

2014-01-20 Thread David Rientjes
On Mon, 20 Jan 2014, Philipp Hachtmann wrote: > diff --git a/mm/nobootmem.c b/mm/nobootmem.c > index e2906a5..0215c77 100644 > --- a/mm/nobootmem.c > +++ b/mm/nobootmem.c > @@ -116,23 +116,29 @@ static unsigned long __init > __free_memory_core(phys_addr_t start, > static unsigned long __init

Re: [PATCH] memcg: Do not hang on OOM when killed by userspace OOM access to memory reserves

2014-01-20 Thread David Rientjes
On Thu, 16 Jan 2014, Michal Hocko wrote: > > The heuristic may have existed for ages, but the proposed memcg > > configuration for preserving memory such that userspace oom handlers may > > run such as > > > > _root__ > > / \ > >

Re: [patch 1/2] mm, memcg: avoid oom notification when current needs access to memory reserves

2014-01-20 Thread David Rientjes
On Mon, 20 Jan 2014, Greg Kroah-Hartmann wrote: > > The patches getting proposed through -mm for stable boggles my mind > > sometimes. > > Do you have any objections to patches that I have taken for -stable? If > so, please let me know. > You've haven't taken the ones that I outlined in

Re: [patch 1/2] mm, memcg: avoid oom notification when current needs access to memory reserves

2014-01-20 Thread Greg Kroah-Hartmann
On Mon, Jan 20, 2014 at 09:58:28PM -0800, David Rientjes wrote: > The patches getting proposed through -mm for stable boggles my mind > sometimes. Do you have any objections to patches that I have taken for -stable? If so, please let me know. thanks, greg k-h -- To unsubscribe from this list:

Re: [RFC PATCH 1/2] sched/update_avg: avoid negative time

2014-01-20 Thread Alex Shi
On 01/21/2014 01:33 PM, Alex Shi wrote: > rq->avg_idle try to reflect the average idle time between the cpu idle > and first wakeup. But in the function, it maybe get a negative value > if old avg_idle is too small. Then this negative value will be double > counted in next time calculation. Guess

Re: [patch 1/2] mm, memcg: avoid oom notification when current needs access to memory reserves

2014-01-20 Thread David Rientjes
On Thu, 16 Jan 2014, Michal Hocko wrote: > > This is concerning because it's merged in -mm without being tested by Eric > > and is marked for stable while violating the stable kernel rules criteria. > > Are you questioning the patch fixes the described issue? > > Please note that the

Re: [PATCH] perf tools: Fix JIT profiling on heap

2014-01-20 Thread Namhyung Kim
Hi Arnaldo, On Fri, 17 Jan 2014 11:34:04 -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Jan 17, 2014 at 04:44:04PM +0900, Namhyung Kim escreveu: >> On Thu, 16 Jan 2014 20:23:27 +, Gaurav Jain wrote: >> > On 1/16/14, 9:37 AM, "Arnaldo Carvalho de Melo" >> > wrote: >> > >> >>Em Thu, Jan 16,

Re: [PATCH V2] fs: don't write pages when receiving a pending SIGKILL in __get_user_pages()

2014-01-20 Thread David Rientjes
On Sat, 18 Jan 2014, Xishi Qiu wrote: > In the process IO direction, dio_refill_pages will call get_user_pages_fast > to map the page from user space. If ret is less than 0 and IO is write, the > function will create a zero page to fill data. This may work for some file > system, but in some

Re: [patch 9/9] mm: keep page cache radix tree nodes in check

2014-01-20 Thread Johannes Weiner
On Tue, Jan 21, 2014 at 02:03:58PM +1100, Dave Chinner wrote: > On Mon, Jan 20, 2014 at 06:17:37PM -0500, Johannes Weiner wrote: > > On Fri, Jan 17, 2014 at 11:05:17AM +1100, Dave Chinner wrote: > > > On Fri, Jan 10, 2014 at 01:10:43PM -0500, Johannes Weiner wrote: > > > > + /* Only shadow

[PATCH 2/2] sched: add statistic for rq->max_idle_balance_cost

2014-01-20 Thread Alex Shi
It's useful to track this value in debug mode. Signed-off-by: Alex Shi --- kernel/sched/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 1e43e70..f5c529a 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -315,6 +315,7 @@

[RFC PATCH 1/2] sched/update_avg: avoid negative time

2014-01-20 Thread Alex Shi
rq->avg_idle try to reflect the average idle time between the cpu idle and first wakeup. But in the function, it maybe get a negative value if old avg_idle is too small. Then this negative value will be double counted in next time calculation. Guess that is not the original purpose, so recalibrate

Re: [question] how to figure out OOM reason? should dump slab/vmalloc info when OOM?

2014-01-20 Thread David Rientjes
On Mon, 20 Jan 2014, Jianguo Wu wrote: > When OOM happen, will dump buddy free areas info, hugetlb pages info, > memory state of all eligible tasks, per-cpu memory info. > But do not dump slab/vmalloc info, sometime, it's not enough to figure out the > reason OOM happened. > > So, my questions

[BTRFS-specific] Re: Dirty deleted files cause pointless I/O storms (unless truncated first)

2014-01-20 Thread Andy Lutomirski
[cc: btrfs] On Mon, Jan 20, 2014 at 8:46 PM, Dave Chinner wrote: > On Mon, Jan 20, 2014 at 04:59:23PM -0800, Andy Lutomirski wrote: >> The code below runs quickly for a few iterations, and then it slows >> down and the whole system becomes laggy for far too long. >> >> Removing the

[PATCH v2] media: i2c: mt9p031: Check return value of clk_prepare_enable/clk_set_rate

2014-01-20 Thread Prabhakar Lad
From: "Lad, Prabhakar" clk_set_rate(), clk_prepare_enable() functions can fail, so check the return values to avoid surprises. Signed-off-by: Lad, Prabhakar --- Changes for v2: 1: Called regulator_bulk_disable() in the error path drivers/media/i2c/mt9p031.c | 15 --- 1 file

Re: [GIT PULL] x86/kaslr for v3.14

2014-01-20 Thread Kees Cook
On Mon, Jan 20, 2014 at 2:54 PM, Linus Torvalds wrote: > So I pulled this, but one question: > > On Mon, Jan 20, 2014 at 8:47 AM, H. Peter Anvin wrote: >> +config RANDOMIZE_BASE >> + bool "Randomize the address of the kernel image" >> + depends on RELOCATABLE >> + depends on

[tip:x86/x32] uapi: Use __kernel_ulong_t in shmid64_ds/shminfo64/ shm_info

2014-01-20 Thread tip-bot for H.J. Lu
Commit-ID: f8dcdf0130d3ba34f8f7531af7c45616efe1e32e Gitweb: http://git.kernel.org/tip/f8dcdf0130d3ba34f8f7531af7c45616efe1e32e Author: H.J. Lu AuthorDate: Fri, 27 Dec 2013 14:14:23 -0800 Committer: H. Peter Anvin CommitDate: Mon, 20 Jan 2014 14:45:25 -0800 uapi: Use __kernel_ulong_t

Re: [PATCH 2/3] mm/memcg: fix endless iteration in reclaim

2014-01-20 Thread Hugh Dickins
On Fri, 17 Jan 2014, Michal Hocko wrote: > On Thu 16-01-14 11:15:36, Hugh Dickins wrote: > > > I don't believe 19f39402864e was responsible for a reference leak, > > that came later. But I think it was responsible for the original > > endless iteration (shrink_zone going around and around

[tip:x86/x32] uapi: Use __kernel_long_t in struct mq_attr

2014-01-20 Thread tip-bot for H.J. Lu
Commit-ID: 63159f5dcccb3858d88aaef800c4ee0eb4cc8577 Gitweb: http://git.kernel.org/tip/63159f5dcccb3858d88aaef800c4ee0eb4cc8577 Author: H.J. Lu AuthorDate: Fri, 27 Dec 2013 14:14:24 -0800 Committer: H. Peter Anvin CommitDate: Mon, 20 Jan 2014 14:45:33 -0800 uapi: Use __kernel_long_t in

[tip:x86/x32] uapi: Use __kernel_ulong_t in struct msqid64_ds

2014-01-20 Thread tip-bot for H.J. Lu
Commit-ID: b9cd5ca22d6739c61655d4fcf8b29669d5d177a3 Gitweb: http://git.kernel.org/tip/b9cd5ca22d6739c61655d4fcf8b29669d5d177a3 Author: H.J. Lu AuthorDate: Fri, 27 Dec 2013 14:14:21 -0800 Committer: H. Peter Anvin CommitDate: Mon, 20 Jan 2014 14:45:01 -0800 uapi: Use __kernel_ulong_t

[tip:x86/x32] x86, uapi, x32: Use __kernel_ulong_t in x86 struct semid64_ds

2014-01-20 Thread tip-bot for H.J. Lu
Commit-ID: 386916598e901e406c1f1fc801ade2646a1e8137 Gitweb: http://git.kernel.org/tip/386916598e901e406c1f1fc801ade2646a1e8137 Author: H.J. Lu AuthorDate: Fri, 27 Dec 2013 14:14:22 -0800 Committer: H. Peter Anvin CommitDate: Mon, 20 Jan 2014 14:45:13 -0800 x86, uapi, x32: Use

[tip:x86/x32] uapi, asm-generic: Use __kernel_ulong_t in uapi struct ipc64_perm

2014-01-20 Thread tip-bot for H.J. Lu
Commit-ID: 071ed2456f79722d0a54f51717e66aacbc7a5d26 Gitweb: http://git.kernel.org/tip/071ed2456f79722d0a54f51717e66aacbc7a5d26 Author: H.J. Lu AuthorDate: Fri, 27 Dec 2013 14:14:19 -0800 Committer: H. Peter Anvin CommitDate: Mon, 20 Jan 2014 14:44:35 -0800 uapi, asm-generic: Use

[tip:x86/x32] uapi: Use __kernel_long_t in struct timex

2014-01-20 Thread tip-bot for H.J. Lu
Commit-ID: 7fb30128527a4220f181c2867edd9ac178175a87 Gitweb: http://git.kernel.org/tip/7fb30128527a4220f181c2867edd9ac178175a87 Author: H.J. Lu AuthorDate: Fri, 27 Dec 2013 14:14:17 -0800 Committer: H. Peter Anvin CommitDate: Mon, 20 Jan 2014 14:44:05 -0800 uapi: Use __kernel_long_t in

[tip:x86/x32] uapi: Use __kernel_long_t in struct msgbuf

2014-01-20 Thread tip-bot for H.J. Lu
Commit-ID: 443d5670f77aab121cb95f45da60f0aad390bcb5 Gitweb: http://git.kernel.org/tip/443d5670f77aab121cb95f45da60f0aad390bcb5 Author: H.J. Lu AuthorDate: Fri, 27 Dec 2013 14:14:20 -0800 Committer: H. Peter Anvin CommitDate: Mon, 20 Jan 2014 14:44:50 -0800 uapi: Use __kernel_long_t in

[tip:x86/x32] uapi: Use __kernel_long_t/__kernel_ulong_t in < linux/resource.h>

2014-01-20 Thread tip-bot for H.J. Lu
Commit-ID: b684bfedc94d4b2efff09dc499a9985321c482f5 Gitweb: http://git.kernel.org/tip/b684bfedc94d4b2efff09dc499a9985321c482f5 Author: H.J. Lu AuthorDate: Fri, 27 Dec 2013 14:14:18 -0800 Committer: H. Peter Anvin CommitDate: Mon, 20 Jan 2014 14:44:17 -0800 uapi: Use

Re: [PATCH v3] arch: use ASM_NL instead of ';' for assembler new line character in the macro

2014-01-20 Thread Vineet Gupta
Hi Mike, On Saturday 18 January 2014 03:14 PM, Chen Gang wrote: > Hello Maintainers: > > Please help check this patch when you have time. > > Thanks. Do you know whose tree this is goona go thru. I can take it thru ARC (but maybe for 3.15, however it would be better it went thru mm or some

Re: [PATCH v2] mm/zswap: Check all pool pages instead of one pool pages

2014-01-20 Thread Minchan Kim
Please check your MUA and don't break thread. On Tue, Jan 21, 2014 at 11:07:42AM +0800, Cai Liu wrote: > Thanks for your review. > > 2014/1/21 Minchan Kim : > > Hello Cai, > > > > On Mon, Jan 20, 2014 at 03:50:18PM +0800, Cai Liu wrote: > >> zswap can support multiple swapfiles. So we need to

Re: Dirty deleted files cause pointless I/O storms (unless truncated first)

2014-01-20 Thread Dave Chinner
On Mon, Jan 20, 2014 at 04:59:23PM -0800, Andy Lutomirski wrote: > The code below runs quickly for a few iterations, and then it slows > down and the whole system becomes laggy for far too long. > > Removing the sync_file_range call results in no I/O being performed at > all (which means that the

Re: [PATCH v3] input/uinput: add UI_GET_SYSNAME ioctl to retrieve the sysfs path

2014-01-20 Thread Dmitry Torokhov
On Tue, Jan 21, 2014 at 08:56:51AM +1000, Peter Hutterer wrote: > On Mon, Jan 20, 2014 at 05:17:08PM -0500, Benjamin Tissoires wrote: > > On Mon, Jan 20, 2014 at 4:53 PM, Dmitry Torokhov > > wrote: > > > Hi Benjamin, > > > > > > On Fri, Jan 17, 2014 at 02:12:51PM -0500, Benjamin Tissoires wrote:

Re: [PATCH v2] mm/zswap: Check all pool pages instead of one pool pages

2014-01-20 Thread Bob Liu
On Tue, Jan 21, 2014 at 11:07 AM, Cai Liu wrote: > Thanks for your review. > > 2014/1/21 Minchan Kim : >> Hello Cai, >> >> On Mon, Jan 20, 2014 at 03:50:18PM +0800, Cai Liu wrote: >>> zswap can support multiple swapfiles. So we need to check >>> all zbud pool pages in zswap. >>> >>> Version 2:

Re: [PATCH 06/20] ARM64 / ACPI: Introduce some PCI functions when PCI is enabled

2014-01-20 Thread Hanjun Guo
On 2014-1-21 2:39, Arnd Bergmann wrote: > On Monday 20 January 2014, Hanjun Guo wrote: acpi_register_ioapic()/acpi_unregister_ioapic() will be used for IOAPIC hotplug and GIC distributor is something like IOAPIC on x86, so I think these two functions can be reserved for future use.

Re: [PATCH 1/3] ACPI / idle: Move idle_boot_override out of the arch directory

2014-01-20 Thread Hanjun Guo
On 2014-1-21 7:34, Rafael J. Wysocki wrote: > On Monday, January 20, 2014 10:08:41 PM Hanjun Guo wrote: >> On 2014年01月18日 21:47, Rafael J. Wysocki wrote: >>> On Saturday, January 18, 2014 11:52:18 AM Hanjun Guo wrote: On 2014-1-18 11:45, Hanjun Guo wrote: > On 2014-1-17 20:06, Sudeep

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

2014-01-20 Thread Mike Galbraith
On Mon, 2014-01-20 at 22:51 +0100, Peter Zijlstra wrote: > I'm still waiting for someone to explain what's wrong with: > > static inline void mwait_idle(void) > { > local_irq_enable(); > mwait_idle_with_hints(0, 0); > } How about just do that going forward, it work, and can always

Re: 3.12-rc5 and overwritten partition table - by powertop?

2014-01-20 Thread Robert Hancock
On 10/29/2013 04:32 PM, John Twideldum wrote: The first ~170kb of /dev/sda got blown away with what seems to be a logging output by Powertop, when I was playing with the tuneables. So did you log the output to some file? I'm just trying to understand how it could get onto your disk in the

[PATCH] cpufreq: Align all CPUs to the same frequency if using shared clock

2014-01-20 Thread lizhuangzhi
Some SMP systems want to make all the possible CPUs share the clock, if the CPUs init frequencies aren't the same, we need to align all the CPUs to the same frequency while CPUs registing to avoid mismatched CPU's P-states. Signed-off-by: lizhuangzhi --- drivers/cpufreq/cpufreq.c |2 ++ 1

Re: [PATCH RFC 4/6] net: rfkill: gpio: add device tree support

2014-01-20 Thread Alexandre Courbot
On Sat, Jan 18, 2014 at 8:11 AM, Linus Walleij wrote: > On Fri, Jan 17, 2014 at 6:43 PM, Chen-Yu Tsai wrote: >> On Sat, Jan 18, 2014 at 12:47 AM, Arnd Bergmann wrote: > +- NAME_shutdown-gpios : GPIO phandle to shutdown control + (phandle must be the second)

Re: [PATCH v2] mm/zswap: Check all pool pages instead of one pool pages

2014-01-20 Thread Cai Liu
Thanks for your review. 2014/1/21 Minchan Kim : > Hello Cai, > > On Mon, Jan 20, 2014 at 03:50:18PM +0800, Cai Liu wrote: >> zswap can support multiple swapfiles. So we need to check >> all zbud pool pages in zswap. >> >> Version 2: >> * add *total_zbud_pages* in zbud to record all the pages in

Re: [patch 9/9] mm: keep page cache radix tree nodes in check

2014-01-20 Thread Dave Chinner
On Mon, Jan 20, 2014 at 06:17:37PM -0500, Johannes Weiner wrote: > On Fri, Jan 17, 2014 at 11:05:17AM +1100, Dave Chinner wrote: > > On Fri, Jan 10, 2014 at 01:10:43PM -0500, Johannes Weiner wrote: > > > + /* Only shadow entries in there, keep track of this node */ > > > + if (!(node->count &

Re: More GPIO madness on iMX6 - and the crappy ARM port of Linux

2014-01-20 Thread Alexandre Courbot
On Sat, Jan 18, 2014 at 7:43 AM, Linus Walleij wrote: > On Fri, Jan 17, 2014 at 9:53 PM, Russell King - ARM Linux > wrote: >> On Fri, Jan 17, 2014 at 01:42:44PM -0700, Stephen Warren wrote: > >>> I believe you want gpio_get_value() to return either the driven or >>> actual pin value where it can

[PATCH v4] ACPI: Fix acpi_evaluate_object() return value check

2014-01-20 Thread Yijing Wang
Since acpi_evaluate_object() returns acpi_status and not plain int, ACPI_FAILURE() should be used for checking its return value. Reviewed-by: Jani Nikula Signed-off-by: Yijing Wang --- v3->v4: Fix spell error, add Jani Nikula reviewed-by. v2->v3: Fix compile error pointed out by Hanjun. v1->v2:

linux-next: manual merge of the sound-asoc tree with the tree

2014-01-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the sound-asoc tree got a conflict in sound/soc/soc-compress.c between commit 2a99ef0fdb35 ("ASoC: compress: Add suport for DPCM into compressed audio") from the sound tree and commit 76063d340520 ("ASoC: compress: Add suport for DPCM into compressed audio")

Re: [PATCH v2] mm/zswap: Check all pool pages instead of one pool pages

2014-01-20 Thread Minchan Kim
Hello Cai, On Mon, Jan 20, 2014 at 03:50:18PM +0800, Cai Liu wrote: > zswap can support multiple swapfiles. So we need to check > all zbud pool pages in zswap. > > Version 2: > * add *total_zbud_pages* in zbud to record all the pages in pools > * move the updating of pool pages statistics to

Re: math_state_restore and kernel_fpu_end disable interrupts?

2014-01-20 Thread Nate Eldredge
On Sun, 19 Jan 2014, George Spelvin wrote: It's credited to Suresh Siddha, whom I've cc'ed (along with others who signed off). Suresh, if you're still around, could you comment on why math_state_restore always leaves interrupts disabled, regardless of their state on entry? Is there a deep

Re: [PATCH v3 2/2] i2c: New bus driver for the QUP I2C controller

2014-01-20 Thread Stephen Boyd
On 01/17, Bjorn Andersson wrote: > diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c > new file mode 100644 > index 000..2e0020e > --- /dev/null > +++ b/drivers/i2c/busses/i2c-qup.c > @@ -0,0 +1,894 @@ > +/* Copyright (c) 2009-2013, The Linux Foundation. All rights

Re: [ANNOUNCE] 3.12.6-rt9

2014-01-20 Thread Steven Rostedt
On Sat, 18 Jan 2014 04:15:29 +0100 Mike Galbraith wrote: > > So you also have the timers-do-not-raise-softirq-unconditionally.patch? > People have been complaining that the latest 3.12-rt does not boot on intel i7 boxes. And by reverting this patch, it boots fine. I happen to have a i7 box

Backlight driver for MacBook Air 6,1 and 6,2

2014-01-20 Thread Patrik Jakobsson
Hi Andrew and CCs I've put together (rather quickly) a driver for directly handling the backlight driver chip (LM8550) on the 2013 MacBook Air. It is needed to work around a bug (likely in firmware) that occurs after suspend/resume. See: https://bugs.freedesktop.org/show_bug.cgi?id=67454 This

Re: [QUERY]: Is using CPU hotplug right for isolating CPUs?

2014-01-20 Thread Lei Wen
On Mon, Jan 20, 2014 at 11:41 PM, Frederic Weisbecker wrote: > On Mon, Jan 20, 2014 at 08:30:10PM +0530, Viresh Kumar wrote: >> On 20 January 2014 19:29, Lei Wen wrote: >> > Hi Viresh, >> >> Hi Lei, >> >> > I have one question regarding unbounded workqueue migration in your case. >> > You use

[PATCH v8 2/6] MCS Lock: Restructure the MCS lock defines and locking

2014-01-20 Thread Tim Chen
We will need the MCS lock code for doing optimistic spinning for rwsem and queue rwlock. Extracting the MCS code from mutex.c and put into its own file allow us to reuse this code easily. Note that using the smp_load_acquire/smp_store_release pair used in mcs_lock and mcs_unlock is not

[PATCH v8 4/6] MCS Lock: Move mcs_lock/unlock function into its own

2014-01-20 Thread Tim Chen
From: Waiman Long Create a new mcs_spinlock.c file to contain the mcs_spin_lock() and mcs_spin_unlock() function. Signed-off-by: Waiman Long Signed-off-by: Tim Chen --- include/linux/mcs_spinlock.h | 77 ++ kernel/locking/Makefile

[PATCH v8 3/6] MCS Lock: optimizations and extra comments

2014-01-20 Thread Tim Chen
From: Jason Low Remove unnecessary operation to assign locked status to 1 if lock is acquired without contention as this value will not be checked by lock holder again and other potential lock contenders will not be looking at their own lock status. Make the cmpxchg(lock, node, NULL) == node

[PATCH v8 6/6] MCS Lock: Allow architecture specific asm files to be used for contended case

2014-01-20 Thread Tim Chen
From: Peter Zijlstra This patch allows each architecture to add its specific assembly optimized arch_mcs_spin_lock_contended and arch_mcs_spinlock_uncontended for MCS lock and unlock functions. Signed-off-by: Tim Chen --- arch/alpha/include/asm/Kbuild | 1 + arch/arc/include/asm/Kbuild

[PATCH v8 5/6] MCS Lock: allow architectures to hook in to contended

2014-01-20 Thread Tim Chen
From: Will Deacon When contended, architectures may be able to reduce the polling overhead in ways which aren't expressible using a simple relax() primitive. This patch allows architectures to hook into the mcs_{lock,unlock} functions for the contended cases only. Signed-off-by: Will Deacon

[PATCH v8 0/6] MCS Lock: MCS lock code cleanup and optimizations

2014-01-20 Thread Tim Chen
This update to the patch series reorganize the order of the patches by fixing MCS lock barrier leakage first before making standalone MCS lock and unlock functions. We also changed the hooks to architecture specific mcs_spin_lock_contended and mcs_spin_lock_uncontended from needing Kconfig to

[PATCH v8 1/6] MCS Lock: Barrier corrections

2014-01-20 Thread Tim Chen
From: Waiman Long This patch corrects the way memory barriers are used in the MCS lock with smp_load_acquire and smp_store_release fucnction. It removes ones that are not needed. Suggested-by: Michel Lespinasse Signed-off-by: Waiman Long Signed-off-by: Jason Low Signed-off-by: Tim Chen ---

Re: ALSA: hda - Fix possible races in HDMI driver - lockup on shutdown when radeon.audio=1 after using audacity

2014-01-20 Thread Arthur Marsh
Takashi Iwai wrote, on 20/01/14 19:22: At Sun, 19 Jan 2014 17:32:16 +1030, Arthur Marsh wrote: I have had reproducible lock-ups on shut-down (at the shutting down ALSA stage) of my AMD64 machine (Asus M3A78Pro motherboard, BIOS 1701 01/27/2011, CPU AMD Athlon(tm) II X4 640 Processor) running

Dirty deleted files cause pointless I/O storms (unless truncated first)

2014-01-20 Thread Andy Lutomirski
The code below runs quickly for a few iterations, and then it slows down and the whole system becomes laggy for far too long. Removing the sync_file_range call results in no I/O being performed at all (which means that the kernel isn't totally screwing this up), and changing "4096" to SIZE causes

Re: [PATCH] [V2] MAINTAINERS: Add dts files for r8 series to SHMOBILE

2014-01-20 Thread Simon Horman
Hi Ben, thanks for your work on this. On Mon, Jan 20, 2014 at 04:10:32PM +, Ben Dooks wrote: > Add a number of files to the list of files covered by SHMOBILE > so any changes to these can be reported with get_maintailers.pl > for the current SHMOILE architectures. I'm fine with you only

[PATCH] Add HID's to hid-microsoft driver of Surface Type/Touch Cover 2 to fix bug

2014-01-20 Thread Reyad Attiyat
The below patch fixes a bug 64811 (https://bugzilla.kernel.org/show_bug.cgi?id=64811) of the Microsoft Surface Type/Touch cover 2 devices being detected as a multitouch device. The fix adds the HID of the two devices to hid-microsoft driver. This ensures that hid-input will eventually be used for

Re: [PATCH 1/2] serial: samsung: Move uart_register_driver call to device probe

2014-01-20 Thread Russell King - ARM Linux
On Mon, Jan 20, 2014 at 04:26:23PM -0800, Greg KH wrote: > On Tue, Jan 21, 2014 at 12:07:06AM +, Russell King - ARM Linux wrote: > > On Mon, Jan 20, 2014 at 03:51:28PM -0800, Greg KH wrote: > > > On Mon, Jan 20, 2014 at 11:16:03PM +, Russell King - ARM Linux wrote: > > > > I don't believe

Re: [PATCH 3.13-rc5] module: Add missing newline in printk call.

2014-01-20 Thread Rusty Russell
Tetsuo Handa writes: > Rusty, would you pick up this patch? > > This message was added in 3.13-rc1. Thus, should be fixed in 3.13. Thanks, applied. It's a bit trivial for a CC:stable though. Cheers, Rusty. > Tetsuo Handa wrote: >> From cc90e27d5cda227e7a0cbeb5de3cc1cbb1595dfa Mon Sep 17

Re: [PATCH 1/2] serial: samsung: Move uart_register_driver call to device probe

2014-01-20 Thread Greg KH
On Tue, Jan 21, 2014 at 12:07:06AM +, Russell King - ARM Linux wrote: > On Mon, Jan 20, 2014 at 03:51:28PM -0800, Greg KH wrote: > > On Mon, Jan 20, 2014 at 11:16:03PM +, Russell King - ARM Linux wrote: > > > I don't believe the driver model has any locking to prevent a drivers > > >

Re: [PATCH net-next v5 8/9] xen-netback: Timeout packets in RX path

2014-01-20 Thread Zoltan Kiss
On 20/01/14 22:03, Wei Liu wrote: On Mon, Jan 20, 2014 at 09:24:28PM +, Zoltan Kiss wrote: @@ -557,12 +577,25 @@ void xenvif_disconnect(struct xenvif *vif) void xenvif_free(struct xenvif *vif) { int i, unmap_timeout = 0; + /* Here we want to avoid timeout messages if an

Re: [PATCH 1/2] serial: samsung: Move uart_register_driver call to device probe

2014-01-20 Thread Russell King - ARM Linux
On Mon, Jan 20, 2014 at 11:47:34PM +, Alan Cox wrote: > But yes I agree about the idiom, but a definite NAK to any attempts to > plaster over this grand screwup by crapping in the tty core. Your turd, > deal with it locally in the ARM code if you can't apply common sense and > just go dynamic.

Re: [RFC PATCH 2/3] zram: introduce zram compressor operations struct

2014-01-20 Thread Minchan Kim
On Mon, Jan 20, 2014 at 01:03:48PM +0300, Sergey Senozhatsky wrote: > On (01/20/14 14:12), Minchan Kim wrote: > > Hello Sergey, > > > > I reviewed this patchset and I suggest somethings. > > Please have a look and feedback to me. :) > > > > 1. Let's define new file zram_comp.c > > 2. zram_comp

Re: [PATCH 1/2] serial: samsung: Move uart_register_driver call to device probe

2014-01-20 Thread Russell King - ARM Linux
On Mon, Jan 20, 2014 at 03:51:28PM -0800, Greg KH wrote: > On Mon, Jan 20, 2014 at 11:16:03PM +, Russell King - ARM Linux wrote: > > I don't believe the driver model has any locking to prevent a drivers > > ->probe function running concurrently with it's ->remove function for > > two (or more)

linux-next: manual merge of the imx-mxs tree with the arm tree

2014-01-20 Thread Stephen Rothwell
Hi Shawn, Today's linux-next merge of the imx-mxs tree got conflicts in arch/arm/boot/dts/Makefile, arch/arm/boot/dts/imx6dl-hummingboard.dts, arch/arm/boot/dts/imx6qdl-microsom-ar8035.dtsi and arch/arm/boot/dts/imx6qdl-microsom.dtsi between commits 728d5599f5d8 ("ARM: imx: initial SolidRun

Re: Deadlock in do_page_fault() on ARM (old kernel)

2014-01-20 Thread Alan Ott
On 01/17/2014 08:20 PM, Russell King - ARM Linux wrote: On Fri, Jan 17, 2014 at 07:57:16PM -0500, Alan Ott wrote: On 01/17/2014 08:46 AM, Russell King - ARM Linux wrote: My suspicion therefore is that some other thread must have died while holding the mmap_sem, so there's probably a kernel

Re: [PATCH 1/2] serial: samsung: Move uart_register_driver call to device probe

2014-01-20 Thread Greg Kroah-Hartman
On Mon, Jan 20, 2014 at 11:35:41PM +, Alan Cox wrote: > > The first bit is easy... but we need to add locks to every serial > > driver to prevent two probes operating concurrently... > > The bus probe should already be serializing surely ? Yes, it better be, otherwise that bus is badly

Re: [PATCH 1/2] serial: samsung: Move uart_register_driver call to device probe

2014-01-20 Thread Greg KH
On Mon, Jan 20, 2014 at 11:16:03PM +, Russell King - ARM Linux wrote: > On Mon, Jan 20, 2014 at 03:11:41PM -0800, Greg KH wrote: > > On Mon, Jan 20, 2014 at 09:32:06PM +, Russell King - ARM Linux wrote: > > > On Mon, Jan 20, 2014 at 01:16:01PM -0800, Greg KH wrote: > > > > On Mon, Jan 20,

Re: [PATCH 1/2] serial: samsung: Move uart_register_driver call to device probe

2014-01-20 Thread Alan Cox
On Mon, 20 Jan 2014 23:14:57 + Mark Brown wrote: > On Mon, Jan 20, 2014 at 09:43:05PM +, Alan Cox wrote: > > > The dynamic major/minor is the right patch. If the userspace breaks then > > the userspace was broken, but I see no evidence in the discussion that > > the userspace broke. >

[PATCH] vfs: Remove second variable named error in __dentry_path

2014-01-20 Thread Eric W. Biederman
In commit 232d2d60aa5469bb097f55728f65146bd49c1d25 Author: Waiman Long Date: Mon Sep 9 12:18:13 2013 -0400 dcache: Translating dentry into pathname without taking rename_lock The __dentry_path locking was changed and the variable error was intended to be moved outside of the loop.

Re: [PATCH 1/2] serial: samsung: Move uart_register_driver call to device probe

2014-01-20 Thread Alan Cox
> The first bit is easy... but we need to add locks to every serial > driver to prevent two probes operating concurrently... The bus probe should already be serializing surely ? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v7 6/6] MCS Lock: add Kconfig entries to allow arch-specific hooks

2014-01-20 Thread Tim Chen
On Mon, 2014-01-20 at 13:30 +0100, Peter Zijlstra wrote: > > Then again, people seem to whinge if you don't keep these Kbuild files > sorted, but manually sorting 29 files is just not something I like to > do. > Peter, Can you clarify what exactly needs to be sorted? The Kbuild files spit

Re: 3.12-rc5 and overwritten partition table - by powertop?

2014-01-20 Thread Stefan Agner
Am 2013-10-29 21:10, schrieb Jan Kara: >> The first ~170kb of /dev/sda got blown away with what seems to be a logging >> output >> by Powertop, when I was playing with the tuneables. >> (Luckily the first partition starts later :-)) > So did you log the output to some file? I'm just trying to

Re: Poor network performance x86_64.. also with 3.13

2014-01-20 Thread Branimir Maksimovic
On 01/20/2014 11:37 PM, Borislav Petkov wrote: On Mon, Jan 20, 2014 at 11:27:25PM +0100, Daniel Exner wrote: I just did the same procedure with Kernel Version 3.13: same poor rates. I think I will try to see of 3.12.6 was still ok and bisect from there. Or try something more coarse-grained

[PATCH] vfs: Is mounted should be testing mnt_ns for NULL or error.

2014-01-20 Thread Eric W. Biederman
A bug was introduced with the is_mounted helper function in commit f7a99c5b7c8bd3d3f533c8b38274e33f3da9096e Author: Al Viro Date: Sat Jun 9 00:59:08 2012 -0400 get rid of ->mnt_longterm it's enough to set ->mnt_ns of internal vfsmounts to something distinct from all struct

Re: [PATCH] NFSv4.1: new layout stateid can not be overwrite by one out of date

2014-01-20 Thread Trond Myklebust
On Mon, 2014-01-20 at 16:15 +0800, shaobingqing wrote: > If initiate_file_draining returned NFS4ERR_DELAY, all the lsegs of > a file might be released before the retrying cb_layout request arriving > at the client. In this situation, layoutget request of the file will > use open stateid to obtain

Re: [PATCH 1/2] serial: samsung: Move uart_register_driver call to device probe

2014-01-20 Thread Russell King - ARM Linux
On Mon, Jan 20, 2014 at 11:14:57PM +, Mark Brown wrote: > On Mon, Jan 20, 2014 at 09:43:05PM +, Alan Cox wrote: > > If the hardware isn't present then the driver shouldn't even register > > with the tty layer in the first place so it doesn't make any resource > > differeneces either for

Re: [PATCH 1/3] ACPI / idle: Move idle_boot_override out of the arch directory

2014-01-20 Thread Rafael J. Wysocki
On Monday, January 20, 2014 10:08:41 PM Hanjun Guo wrote: > On 2014年01月18日 21:47, Rafael J. Wysocki wrote: > > On Saturday, January 18, 2014 11:52:18 AM Hanjun Guo wrote: > >> On 2014-1-18 11:45, Hanjun Guo wrote: > >>> On 2014-1-17 20:06, Sudeep Holla wrote: > On 17/01/14 02:03, Hanjun Guo

Re: [patch 9/9] mm: keep page cache radix tree nodes in check

2014-01-20 Thread Johannes Weiner
On Fri, Jan 17, 2014 at 11:05:17AM +1100, Dave Chinner wrote: > On Fri, Jan 10, 2014 at 01:10:43PM -0500, Johannes Weiner wrote: > > Previously, page cache radix tree nodes were freed after reclaim > > emptied out their page pointers. But now reclaim stores shadow > > entries in their place,

Re: [PATCH] SUNRPC: Allow one callback request to be received from two sk_buff

2014-01-20 Thread Trond Myklebust
On Mon, 2014-01-20 at 14:59 +0800, shaobingqing wrote: > In current code, there only one struct rpc_rqst is prealloced. If one > callback request is received from two sk_buff, the xprt_alloc_bc_request > would be execute two times with the same transport->xid. The first time >

  1   2   3   4   5   6   7   8   9   10   >