Re: [PATCH] fs: ocfs2: move_extents.c: Fix to remove null pointer checks that could never happen

2014-05-29 Thread Andrew Morton
On Fri, 30 May 2014 00:39:24 +0200 Rickard Strandqvist wrote: > Hi all! > > First, I'm no expert on this code, but after a patch which I thought > was most accurate for the current code was written before, which was > rather something like the code below. > Then Jeff Liu that this was not somet

Re: [PATCH V4 4/8] driver/core: cpu: initialize opp table

2014-05-29 Thread Nishanth Menon
On 05/27/2014 06:50 AM, Viresh Kumar wrote: > Drivers expecting CPU's OPPs from device tree initialize OPP table themselves > by > calling of_init_opp_table() and there is nothing driver specific in that. They > all do it in the same redundant way. > > It would be better if we can get rid of redu

Re: [PATCH] arch: metag: mm: hugetlbpage.c: Cleaning up inconsistent NULL checks

2014-05-29 Thread Rickard Strandqvist
Hi First, I do not think we'll adapt the code as a static code checking to work! This must be resolved by other means. But yes, it is control where that gets cppcheck to react. And it is then also an unnecessary control. So then I guess it's ok to remove it. I resend a patch, with it removed. B

Re: [RFC] Implement Batched (group) ticket lock

2014-05-29 Thread Waiman Long
On 05/28/2014 08:16 AM, Raghavendra K T wrote: TODO: - we need an intelligent way to nullify the effect of batching for baremetal (because extra cmpxchg is not required). To do this, you will need to have 2 slightly different algorithms depending on the paravirt_ticketlocks_enabled jump lab

BUG?: super.c:sget spin_lock not released?

2014-05-29 Thread Kai
Hello, I have recently been playing around with writing a custom filesystem for Linux, and have been reading the source of other filesystems, and the functions they call into the linux kernel. While looking at the function sget in super.c I found something strange. before if(test) it takes a spin

Re: [PATCH 0/2] x86,vdso: vdso build fixes and improvements

2014-05-29 Thread Andy Lutomirski
On Thu, May 29, 2014 at 3:41 PM, Paul Gortmaker wrote: > On 14-05-29 05:57 PM, Andy Lutomirski wrote: >> Patch 1 causes make;make to behave similarly to make if vdso2c fails. >> Patch 2 hopefully fixes x86 crossbuilds on big-endian machines. I don't >> have a big-endian machine to test on, though

Re: [PATCH] gpio: gpiolib: set gpiochip_remove retval to void

2014-05-29 Thread Stephen Rothwell
Hi abdoulaye, On Fri, 30 May 2014 00:32:02 +0200 abdoulaye berthe wrote: > > + if (test_bit(FLAG_REQUESTED, &chip->desc[id].flags)) > + panic("gpio: removing gpiochip with gpios still > requested\n"); Someone else already commented that panic is probably overkill

Re: [PATCH 1/2] pci: Add pci_walk_vbus for walking virtual busses associated with SR-IOV

2014-05-29 Thread Bjorn Helgaas
On Wed, May 28, 2014 at 03:29:09PM -0700, Alexander Duyck wrote: > This function provides a simple means for applying a given function to all > devices on bus and all of it's children, including virtual busses. To do > this the function begins by processing all devices on the bus, then it will > p

Re: [PATCH] page_alloc: skip cpuset enforcement for lower zone allocations (v4)

2014-05-29 Thread David Rientjes
On Thu, 29 May 2014, Marcelo Tosatti wrote: > Zone specific allocations, such as GFP_DMA32, should not be restricted > to cpusets allowed node list: the zones which such allocations demand > might be contained in particular nodes outside the cpuset node list. > > Necessary for the following useca

Re: [PATCH] scsi: pm8001: pm8001_hwi.c: Fix for possible null pointer dereference

2014-05-29 Thread Rickard Strandqvist
Hi Quite rightly, this is what cppcheck reacts. Ok, I'll send a patch for that instead then. Best regards Rickard Strandqvist 2014-05-28 13:38 GMT+02:00 Tomas Henzl : > On 05/28/2014 01:28 PM, Christoph Hellwig wrote: >> On Sun, May 18, 2014 at 06:14:00PM +0200, Rickard Strandqvist wrote: >>>

Re: [PATCH V3] NVMe: basic conversion to blk-mq

2014-05-29 Thread Jens Axboe
On 05/29/2014 04:34 PM, Keith Busch wrote: > On Thu, 29 May 2014, Jens Axboe wrote: >> On 2014-05-28 21:07, Keith Busch wrote: >> Barring any bugs in the code, then yes, this should work. On the >> scsi-mq side, extensive error injection and pulling has been done, and >> it seems to hold up fine no

Re: [PATCH] ARM: at91: fix rtc irq mask for sam9x5 SoCs

2014-05-29 Thread Andrew Morton
On Fri, 9 May 2014 18:36:52 +0200 Johan Hovold wrote: > On Thu, May 08, 2014 at 07:28:04PM +0200, Boris BREZILLON wrote: > > > > You should also keep the flush (read of IMR) regardless (to make sure > > > the write has reached the peripheral), and remember to remove the now > > > unused mask var

[PATCH] scsi: pm8001: pm8001_hwi.c: Fix to remove null pointer checks that could never happen

2014-05-29 Thread Rickard Strandqvist
Removal of null pointer checks that could never happen Signed-off-by: Rickard Strandqvist --- drivers/scsi/pm8001/pm8001_hwi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c index a97be01..721d059 100644

Re: [PATCH v2 04/05] staging: board: Initial board staging support

2014-05-29 Thread Simon Horman
On Thu, May 29, 2014 at 10:27:30PM +0900, Magnus Damm wrote: > Hi Dan, > > On Thu, May 29, 2014 at 10:20 PM, Dan Carpenter > wrote: > > On Thu, May 29, 2014 at 10:17:32PM +0900, Magnus Damm wrote: > >> --- /dev/null > >> +++ work/drivers/staging/board/Kconfig2014-05-29 > >> 21:40:41.

[PATCH] arch: metag: mm: hugetlbpage.c: Fix to remove null pointer checks that could never happen

2014-05-29 Thread Rickard Strandqvist
Removal of null pointer checks that could never happen Signed-off-by: Rickard Strandqvist --- arch/metag/mm/hugetlbpage.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/metag/mm/hugetlbpage.c b/arch/metag/mm/hugetlbpage.c index 0424315..e89c843 100644 --- a/arch/meta

Re: [PATCH V3] NVMe: basic conversion to blk-mq

2014-05-29 Thread Jens Axboe
On 05/29/2014 05:06 PM, Jens Axboe wrote: > Ah I see, yes that code apparently got axed. The attached patch brings > it back. Totally untested, I'll try and synthetically hit it to ensure > that it does work. Note that it currently does unmap and iod free, so > the request comes back pristine. We c

Re: [PATCH] page_alloc: skip cpuset enforcement for lower zone allocations (v4)

2014-05-29 Thread Andrew Morton
On Thu, 29 May 2014 16:01:55 -0700 (PDT) David Rientjes wrote: > There are still three issues with this, two of which are only minor and > one that needs more thought: > > (1) this doesn't affect only cpusets which the changelog indicates, it > also bypasses mempolicies for GFP_DMA and

Re: BUG?: super.c:sget spin_lock not released?

2014-05-29 Thread Al Viro
On Fri, May 30, 2014 at 12:49:56AM +0200, Kai wrote: > Hello, > > I have recently been playing around with writing a custom filesystem > for Linux, and have been reading the source of other filesystems, and > the functions they call into the linux kernel. > While looking at the function sget in su

Re: Resume from suspend broken in 3.15. (bisected)

2014-05-29 Thread Ken Moffat
On Thu, May 29, 2014 at 10:57:20PM +0200, Daniel Vetter wrote: > On Thu, May 29, 2014 at 10:47 PM, Alex Deucher wrote: > > On Thu, May 29, 2014 at 2:03 AM, Dan Carpenter > > wrote: > >> On Wed, May 28, 2014 at 08:26:53PM -0400, Alex Deucher wrote: > >>> On Wed, May 28, 2014 at 7:49 PM, Ken Moffa

Re: Unionmount and overlayfs testsuite

2014-05-29 Thread Dave Chinner
[cc fste...@vger.kernel.org] On Thu, May 29, 2014 at 05:48:01PM +0100, David Howells wrote: > > http://git.infradead.org/users/dhowells/unionmount-testsuite.git > > Check it out and read the README file as to how to drive it. Sorry, it's a > bit crude. I may rewrite it in python or perl at som

Re: [RFC PATCH 3/3] clk: tegra: Implement Tegra124 shared/cbus clks

2014-05-29 Thread Nishanth Menon
On 05/26/2014 08:07 AM, Thierry Reding wrote: > On Wed, May 14, 2014 at 12:35:18PM -0700, Mike Turquette wrote: >> Quoting Thierry Reding (2014-05-14 07:27:40) > [...] >>> As for shared clocks I'm only aware of one use-case, namely EMC scaling. >>> Using clocks for that doesn't seem like the best o

Re: [PATCH] gpio: removes all usage of gpiochip_remove retval

2014-05-29 Thread Greg KH
On Thu, May 29, 2014 at 11:54:52PM +0200, abdoulaye berthe wrote: > Signed-off-by: abdoulaye berthe Why? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.h

[PATCH] page_alloc: skip cpuset enforcement for lower zone allocations (v5)

2014-05-29 Thread Marcelo Tosatti
Zone specific allocations, such as GFP_DMA32, should not be restricted to cpusets allowed node list: the zones which such allocations demand might be contained in particular nodes outside the cpuset node list. Necessary for the following usecase: - driver which requires zone specific memory (such

Re: [PATCH v5 12/14] autoconf: xen: enable explicit preference option for xenstored preference

2014-05-29 Thread Luis R. Rodriguez
I'm cc'ing a few security folks as I'd appreciate review on the ideas here, in particular that of a launcher idea on system to replace alternatives on the ExecStart= line of a systemd service unit file, alternative ideas are of course welcomed. I'm also Cc'ing systemd-devel as this subject was revi

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Minchan Kim
Hello Dave, On Thu, May 29, 2014 at 11:58:30AM +1000, Dave Chinner wrote: > On Thu, May 29, 2014 at 11:30:07AM +1000, Dave Chinner wrote: > > On Wed, May 28, 2014 at 03:41:11PM -0700, Linus Torvalds wrote: > > commit a237c1c5bc5dc5c76a21be922dca4826f3eca8ca > > Author: Jens Axboe > > Date: Sat

Re: BUG?: super.c:sget spin_lock not released?

2014-05-29 Thread Kai
On Fri, May 30, 2014 at 1:19 AM, Al Viro wrote: > On Fri, May 30, 2014 at 12:49:56AM +0200, Kai wrote: >> Hello, >> >> I have recently been playing around with writing a custom filesystem >> for Linux, and have been reading the source of other filesystems, and >> the functions they call into the l

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Minchan Kim
Hello Linus, On Thu, May 29, 2014 at 08:24:49AM -0700, Linus Torvalds wrote: > On Thu, May 29, 2014 at 12:26 AM, Dave Chinner wrote: > > > > What concerns me about both __alloc_pages_nodemask() and > > kernel_map_pages is that when I look at the code I see functions > > that have no obvious stack

Re: [PATCH] gpio: removes all usage of gpiochip_remove retval

2014-05-29 Thread Stephen Rothwell
Hi abdoulaye, On Fri, 30 May 2014 01:16:22 +0200 abdoulaye berthe wrote: > > The aim of this patch is to make gpiochip_remove() behavior consistent, > especially when issuing a remove request while the chipio chip is > still requested. A patch has been submitted to change the return value of > gp

Re: virtio ring cleanups, which save stack on older gcc

2014-05-29 Thread Minchan Kim
On Thu, May 29, 2014 at 08:38:33PM +0930, Rusty Russell wrote: > Minchan Kim writes: > > Hello Rusty, > > > > On Thu, May 29, 2014 at 04:56:41PM +0930, Rusty Russell wrote: > >> They don't make much difference: the easier fix is use gcc 4.8 > >> which drops stack required across virtio block's vir

Re: [PATCH 3/4] regulator: s2mps11: Set offset to voltage hexadecimal code of S2MPU02 LDO regulators

2014-05-29 Thread Chanwoo Choi
Hi Krzysztof, On 05/29/2014 05:52 PM, Krzysztof Kozlowski wrote: > On śro, 2014-05-28 at 20:10 +0900, Chanwoo Choi wrote: >> From: Jonghwa Lee >> >> Different with s2mps1x series, s2mpus02's LDO has offset in voltage >> hexadecimal >> code, which is used as in selector in regulator subsystem. It

Re: [PATCH] CMA: correct unlock target

2014-05-29 Thread Michal Nazarewicz
On Thu, May 29 2014, Joonsoo Kim wrote: > 'cma: Remove potential deadlock situation' introduces per cma area mutex > for bitmap management. It is good, but there is one mistake. When we > can't find appropriate area in bitmap, we release cma_mutex global lock > rather than cma->lock and this is a

Re: [PATCH v4 4/4] drivers: net: Add APM X-Gene SoC ethernet driver support.

2014-05-29 Thread Iyappan Subramanian
On Wed, May 14, 2014 at 8:18 AM, Dean Nelson wrote: > On 05/05/2014 04:47 PM, Iyappan Subramanian wrote: >> >> This patch adds network driver for APM X-Gene SoC ethernet. >> >> Signed-off-by: Iyappan Subramanian >> Signed-off-by: Ravi Patel >> Signed-off-by: Keyur Chudgar >> --- >> drivers/ne

Re: [PATCH] block: flush queued bios when the process blocks

2014-05-29 Thread Mikulas Patocka
On Tue, 27 May 2014, Jens Axboe wrote: > On 2014-05-27 10:26, Mikulas Patocka wrote: > > On Tue, 27 May 2014, Jens Axboe wrote: > > > > > On 2014-05-27 09:23, Mikulas Patocka wrote: > > > > > > > The patch adds bio list flushing to the scheduler just besides plug > > > > flushsing. > > > > >

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Dave Chinner
On Thu, May 29, 2014 at 08:24:49AM -0700, Linus Torvalds wrote: > On Thu, May 29, 2014 at 12:26 AM, Dave Chinner wrote: > > > > What concerns me about both __alloc_pages_nodemask() and > > kernel_map_pages is that when I look at the code I see functions > > that have no obvious stack usage problem

Re: [PATCH] page_alloc: skip cpuset enforcement for lower zone allocations (v5)

2014-05-29 Thread David Rientjes
On Thu, 29 May 2014, Marcelo Tosatti wrote: > diff --git a/kernel/cpuset.c b/kernel/cpuset.c > index 3d54c41..3bbc23f 100644 > --- a/kernel/cpuset.c > +++ b/kernel/cpuset.c > @@ -2374,6 +2374,7 @@ static struct cpuset *nearest_hardwall_ancestor(struct > cpuset *cs) > * variable 'wait' is not se

Re: [RFC PATCH] crypto: crc32c-pclmul - Use pmovzxdq to shrink K_table

2014-05-29 Thread George Spelvin
Sorry for the delay; my Ivy Bridge test machine isn't in my office and getting to the console to tweak the BIOS is a bit of a bother. Anyway, i7-4930K, turbo boost & hyperthreading disabled, $ cat /sys/devices/system/cpu/cpu?/cpufreq/scaling_governor performance performance performance performance

Re: [PATCH] vmstat: on demand updates from differentials V7

2014-05-29 Thread Frederic Weisbecker
On Thu, May 29, 2014 at 02:56:15PM -0500, Christoph Lameter wrote: > -static void start_cpu_timer(int cpu) > +static void __init start_shepherd_timer(void) > { > - struct delayed_work *work = &per_cpu(vmstat_work, cpu); > + int cpu; > + > + for_each_possible_cpu(cpu) > + IN

Re: [PATCH 2/4] regulator: s2mps11: Add support S2MPU02 regulator device

2014-05-29 Thread Chanwoo Choi
Hi Krzysztof, On 05/29/2014 05:51 PM, Krzysztof Kozlowski wrote: > Hi Chanwoo, > > Few ideas below: > > > On śro, 2014-05-28 at 20:10 +0900, Chanwoo Choi wrote: >> This patch add S2MPU02 regulator device to existing S2MPS11 device driver >> because of existing a litthe different between S2MPS1x

dringend Darlehen @ 3% von Unify Credit Union

2014-05-29 Thread UNIFY CREDIT UNION
Grüße Aufgrund der systematischen Fehlers nur vor kurzem alle interessierten Bewerber, die unsere vorherige e-Mail über die Kredit-Transaktion... reagiert haben muss jetzt unsere aktuellen tätiges Unternehmen e-Mail e-Mail dar (unify_uk_credit_un...@zsk.name) Bitte beachten Sie, dass jede e-Ma

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Linus Torvalds
On Thu, May 29, 2014 at 4:36 PM, Minchan Kim wrote: > > I did below hacky test to apply your idea and the result is overflow again. > So, again it would second stack expansion. Otherwise, we should prevent > swapout in direct reclaim. So changing io_schedule() is bad, for the reasons I outlined e

Re: [PATCH] vmstat: on demand updates from differentials V7

2014-05-29 Thread Frederic Weisbecker
On Thu, May 29, 2014 at 02:56:15PM -0500, Christoph Lameter wrote: > > -static void start_cpu_timer(int cpu) > +static void __init start_shepherd_timer(void) > { > - struct delayed_work *work = &per_cpu(vmstat_work, cpu); > + int cpu; > + > + for_each_possible_cpu(cpu) > +

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Dave Jones
On Fri, May 30, 2014 at 09:53:08AM +1000, Dave Chinner wrote: > That sounds like a plan. Perhaps it would be useful to add a > WARN_ON_ONCE(stack_usage > 8k) (or some other arbitrary depth beyond > 8k) so that we get some indication that we're hitting a deep stack > but the system otherwise ke

sleeping function warning from __put_anon_vma

2014-05-29 Thread Dave Jones
BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:47 in_atomic(): 0, irqs_disabled(): 0, pid: 5787, name: trinity-c27 Preemption disabled at:[] vtime_account_system+0x1e/0x50 CPU: 0 PID: 5787 Comm: trinity-c27 Not tainted 3.15.0-rc7+ #219 99a47203 99b50be

Re: [PATCH v2 14/18] sparc: io: implement dummy relaxed accessor macros for writes

2014-05-29 Thread David Miller
From: Will Deacon Date: Fri, 23 May 2014 15:38:10 +0100 > On Thu, May 22, 2014 at 07:18:38PM +0100, Sam Ravnborg wrote: >> On Thu, May 22, 2014 at 05:47:26PM +0100, Will Deacon wrote: >> > write{b,w,l,q}_relaxed are implemented by some architectures in order to >> > permit memory-mapped I/O acces

Re: [PATCH v3] ARM: mm: support big-endian page tables

2014-05-29 Thread Russell King - ARM Linux
On Thu, May 29, 2014 at 08:58:38AM +0100, Will Deacon wrote: > On Thu, May 29, 2014 at 04:20:57AM +0100, Jianguo Wu wrote: > > Hi Russell, > > Could you please merge this to mainline? Thanks! > > Give him a chance, it's not the merge window yet ;) I can see it queued in > his for-next branch. It'

Re: [PATCH 4/4] dt-bindings: extcon: Add support for SM5502 MUIC device

2014-05-29 Thread Chanwoo Choi
Dear DT Maintainer, Could you please review this patch? Best Regards, Chanwoo Choi On 05/28/2014 06:39 PM, Chanwoo Choi wrote: > This patch add documentation for binding of SM5502 MUIC (Micro-USB Interface > Controller) device which is using EXTCON subsystem. The SM5502 MUIC device > can detect

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Dave Chinner
On Fri, May 30, 2014 at 08:36:38AM +0900, Minchan Kim wrote: > Hello Dave, > > On Thu, May 29, 2014 at 11:58:30AM +1000, Dave Chinner wrote: > > On Thu, May 29, 2014 at 11:30:07AM +1000, Dave Chinner wrote: > > > On Wed, May 28, 2014 at 03:41:11PM -0700, Linus Torvalds wrote: > > > commit a237c1c5

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Minchan Kim
Hello Linus, On Thu, May 29, 2014 at 05:05:17PM -0700, Linus Torvalds wrote: > On Thu, May 29, 2014 at 4:36 PM, Minchan Kim wrote: > > > > I did below hacky test to apply your idea and the result is overflow again. > > So, again it would second stack expansion. Otherwise, we should prevent > > sw

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Dave Chinner
On Thu, May 29, 2014 at 08:06:49PM -0400, Dave Jones wrote: > On Fri, May 30, 2014 at 09:53:08AM +1000, Dave Chinner wrote: > > > That sounds like a plan. Perhaps it would be useful to add a > > WARN_ON_ONCE(stack_usage > 8k) (or some other arbitrary depth beyond > > 8k) so that we get some ind

[PATCHv2 3/3] dt-bindings: mfd: s2mps11: Add support S2MPU02 PMIC

2014-05-29 Thread Chanwoo Choi
This patch add documentation for S2MPU02 PMIC device. S2MPU02 has a little difference from S2MPS11/S2MPS14 PMIC and has LDO[1-28]/Buck[1-7]. Signed-off-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Randy

[PATCHv2 2/3] regulator: s2mps11: Add support S2MPU02 regulator device

2014-05-29 Thread Chanwoo Choi
This patch add S2MPU02 regulator device to existing S2MPS11 device driver because of little difference between S2MPS1x and S2MPU02. The S2MPU02 regulator device includes LDO[1-28] and BUCK[1-7]. Signed-off-by: Chanwoo Choi [Add missing linear_min_sel of S2MPU02 LDO regulators by Jonghwa Lee] Sign

[PATCHv2 1/3] mfd: sec-core: Add support for S2MPU02 device

2014-05-29 Thread Chanwoo Choi
Add support for Samsung S2MPU02 PMIC device to the MFD sec-core driver. The S2MPU02 device includes PMIC/RTC/Clock devices. Signed-off-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski --- drivers/mfd/sec-core.c | 19 + drivers/mfd/sec-irq.c| 88 +++

[PATCHv2 0/3] regulator: s2mps11: Add support S2MPU02 PMIC device

2014-05-29 Thread Chanwoo Choi
This patch add Samsung S2MPU02 PMIC device driver in exiting S2MPS11 PMIC driver because S2MPU02 has a little different between S2MPU02 and S2MPS1x. The S2MPU02 PMIC has LDO[1-28] and BUCK[1-7] regulators. Changes from v1: - Fix typo about patch description - Use existing suspend_state variable in

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Dave Jones
On Fri, May 30, 2014 at 10:21:13AM +1000, Dave Chinner wrote: > On Thu, May 29, 2014 at 08:06:49PM -0400, Dave Jones wrote: > > On Fri, May 30, 2014 at 09:53:08AM +1000, Dave Chinner wrote: > > > > > That sounds like a plan. Perhaps it would be useful to add a > > > WARN_ON_ONCE(stack_usage

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Minchan Kim
On Fri, May 30, 2014 at 10:21:13AM +1000, Dave Chinner wrote: > On Thu, May 29, 2014 at 08:06:49PM -0400, Dave Jones wrote: > > On Fri, May 30, 2014 at 09:53:08AM +1000, Dave Chinner wrote: > > > > > That sounds like a plan. Perhaps it would be useful to add a > > > WARN_ON_ONCE(stack_usage > 8k

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Linus Torvalds
On Thu, May 29, 2014 at 5:20 PM, Minchan Kim wrote: > > I guess this part which avoid swapout in direct reclaim would be key > if this patch were successful. But it could make anon pages rotate back > into inactive's head from tail in direct reclaim path until kswapd can > catch up. And kswapd ksw

Get back to me

2014-05-29 Thread Kong Hui
I am a bank director from Hong Kong, I want you to be my partner in a business project of mutual benefit. Get back to me if interested. Thank you, Kong Hui. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majord

Re: [PATCH] vmalloc: use rcu list iterator to reduce vmap_area_lock contention

2014-05-29 Thread Joonsoo Kim
On Thu, May 29, 2014 at 02:23:08PM -0700, Eric Dumazet wrote: > On Thu, 2014-05-29 at 13:05 -0700, Andrew Morton wrote: > > On Thu, 29 May 2014 15:22:34 +0900 Joonsoo Kim > > wrote: > > > > > Richard Yao reported a month ago that his system have a trouble > > > with vmap_area_lock contention dur

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

2014-05-29 Thread Joonsoo Kim
On Thu, May 29, 2014 at 05:09:34PM +0900, Gioh Kim wrote: > > >>>+ > >>> /* > >>>* Do the hard work of removing an element from the buddy allocator. > >>>* Call me with the zone->lock already held. > >>>@@ -1143,10 +1223,15 @@ __rmqueue_fallback(struct zone *zone, int order, > >>>int st

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Minchan Kim
On Thu, May 29, 2014 at 05:31:42PM -0700, Linus Torvalds wrote: > On Thu, May 29, 2014 at 5:20 PM, Minchan Kim wrote: > > > > I guess this part which avoid swapout in direct reclaim would be key > > if this patch were successful. But it could make anon pages rotate back > > into inactive's head fr

Re: [PATCH] of: treat PCI config space as IORESOURCE_MEM type

2014-05-29 Thread Liviu Dudau
On Thu, May 29, 2014 at 03:51:28PM -0500, Kumar Gala wrote: > > On May 29, 2014, at 3:44 PM, Rob Herring wrote: > > > On Thu, May 29, 2014 at 11:03 AM, Kumar Gala wrote: > >> If we have a PCI config space specified in something like a ranges > >> property we should treat it as memory type resou

[git pull] device mapper fixes for 3.15 final

2014-05-29 Thread Mike Snitzer
Hi Linus, The following changes since commit 4cdd2ad78098244c1bc9ec4374ea1c225fd1cd6f: dm mpath: fix lock order inconsistency in multipath_ioctl (2014-05-14 16:12:17 -0400) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git tag

Re: [PATCH v2] PM / OPP: Implement opp_remove and free_opp_table functions

2014-05-29 Thread Nishanth Menon
On 05/21/2014 12:51 AM, Inderpal Singh wrote: Apologies on a delayed response. > At the driver unloading time the associated opps and its table may need s/opps/OPPs/ > to be deleted. Otherwise it amounts to memory leak. The existing > OPP library does not have provision to do so. > > Hence this p

Re: virtio ring cleanups, which save stack on older gcc

2014-05-29 Thread Minchan Kim
On Fri, May 30, 2014 at 08:45:22AM +0900, Minchan Kim wrote: > On Thu, May 29, 2014 at 08:38:33PM +0930, Rusty Russell wrote: > > Minchan Kim writes: > > > Hello Rusty, > > > > > > On Thu, May 29, 2014 at 04:56:41PM +0930, Rusty Russell wrote: > > >> They don't make much difference: the easier fix

Re: [RFC PATCH] crypto: crc32c-pclmul - Use pmovzxdq to shrink K_table

2014-05-29 Thread Tim Chen
On Thu, 2014-05-29 at 19:54 -0400, George Spelvin wrote: > Sorry for the delay; my Ivy Bridge test machine isn't in my > office and getting to the console to tweak the BIOS is a > bit of a bother. > > Anyway, i7-4930K, turbo boost & hyperthreading disabled, > $ cat /sys/devices/system/cpu/cpu?/cpu

Re: [PATCH v2] zram: remove global tb_lock with fine grain lock

2014-05-29 Thread Minchan Kim
On Mon, May 26, 2014 at 03:55:27PM +0800, Weijie Yang wrote: > Hello, > > Sorry for my late reply, because of a biz trip. > > On Wed, May 21, 2014 at 3:51 PM, Minchan Kim wrote: > > Hello Andrew, > > > > On Tue, May 20, 2014 at 03:10:51PM -0700, Andrew Morton wrote: > >> On Thu, 15 May 2014 16:0

Implement PEBS virtualization for Silvermont

2014-05-29 Thread Andi Kleen
PEBS is very useful (e.g. enabling the more cycles:pp event or memory profiling) Unfortunately it didn't work in virtualization, which is becoming more and more common. This patch kit implements simple PEBS virtualization for KVM on Silvermont CPUs. Silvermont does not have the leak problems that

[PATCH 4/4] kvm: Implement PEBS virtualization

2014-05-29 Thread Andi Kleen
From: Andi Kleen PEBS (Precise Event Bases Sampling) profiling is very powerful, allowing improved sampling precision and much additional information, like address or TSX abort profiling. cycles:p and :pp uses PEBS. This patch enables PEBS profiling in KVM guests. PEBS writes profiling records

[PATCH 1/4] perf: Add PEBS virtualization enable for Silvermont

2014-05-29 Thread Andi Kleen
From: Andi Kleen To avoid various problems (like leaking counters) the PEBS virtualization needs white listing per CPU model. Add state to the x86_pmu for this and enable it for Silvermont. Silvermont is currently the only CPU where it is safe to virtualize PEBS, as it doesn't leak PEBS event th

[PATCH 2/4] perf: Allow guest PEBS for KVM owned counters

2014-05-29 Thread Andi Kleen
From: Andi Kleen Currently perf unconditionally disables PEBS for guest. Now that we have the infrastructure in place to handle it we can allow it for KVM owned guest events. For the perf needs to know that a event is owned by a guest. Add a new state bit in the perf_event for that. The bit is

[PATCH 3/4] perf: Handle guest PEBS events with a fake event

2014-05-29 Thread Andi Kleen
From: Andi Kleen With PEBS virtualization the PEBS record gets delivered to the guest, but the host sees the PMI. This would normally result in a spurious PEBS PMI that is ignored. But we need to inject the PMI into the guest, so that the guest PMI handler can handle the PEBS record. Check for t

Re: [RFC PATCH] crypto: crc32c-pclmul - Use pmovzxdq to shrink K_table

2014-05-29 Thread Dave Jones
On Thu, May 29, 2014 at 06:07:16PM -0700, Tim Chen wrote: > On Thu, 2014-05-29 at 19:54 -0400, George Spelvin wrote: > > Sorry for the delay; my Ivy Bridge test machine isn't in my > > office and getting to the console to tweak the BIOS is a > > bit of a bother. > > > > Anyway, i7-4930K, tur

Re: [PATCH 1/4] extcon: arizona: Remove duplicate set of input parent device

2014-05-29 Thread Chanwoo Choi
Hi Charles, On 05/30/2014 12:27 AM, Charles Keepax wrote: > devm_input_allocate_device already sets the parent device to be that > passed to it, we also set this manually in arizona_extcon_probe. This > patch removes the redundant set from arizona_extcon_probe. > > Signed-off-by: Charles Keepax

Re: [PATCH v4 4/4] drivers: net: Add APM X-Gene SoC ethernet driver support.

2014-05-29 Thread Iyappan Subramanian
On Mon, May 5, 2014 at 3:17 PM, Florian Fainelli wrote: > 2014-05-05 14:47 GMT-07:00 Iyappan Subramanian : >> This patch adds network driver for APM X-Gene SoC ethernet. >> >> Signed-off-by: Iyappan Subramanian >> Signed-off-by: Ravi Patel >> Signed-off-by: Keyur Chudgar >> --- >> drivers/net/

Re: [PATCH V4 2/3] cpufreq: add support for intermediate (stable) frequencies

2014-05-29 Thread Viresh Kumar
On 29 May 2014 01:10, Doug Anderson wrote: > As far as I can tell this notification says "I tried to switch from > "intermediate_freq" to "policy->restore_freq" but I failed, so I'm > still at "intermediate_freq". I think you probably want to pass 0 as > the last argument to cpufreq_freq_transiti

Re: [PATCH v2 1/9] staging: ion: tidy up a bit

2014-05-29 Thread Heesub Shin
On 05/30/2014 05:42 AM, Greg Kroah-Hartman wrote: On Wed, May 28, 2014 at 03:52:52PM +0900, Heesub Shin wrote: For aesthetics and readability, rename goto labels, remove useless code lines, and clarify function return type. Signed-off-by: Heesub Shin Reviewed-by: Mitchel Humpherys Tested-by:

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Linus Torvalds
On Thu, May 29, 2014 at 5:50 PM, Minchan Kim wrote: >> >> You could also try Dave's patch, and _not_ do my mm/vmscan.c part. > > Sure. While I write this, Rusty's test was crached so I will try Dave's patch, > them yours except vmscan.c part. Looking more at Dave's patch (well, description), I do

Re: [PATCH 1/4] extcon: arizona: Remove duplicate set of input parent device

2014-05-29 Thread Chanwoo Choi
On 05/30/2014 12:27 AM, Charles Keepax wrote: > devm_input_allocate_device already sets the parent device to be that > passed to it, we also set this manually in arizona_extcon_probe. This > patch removes the redundant set from arizona_extcon_probe. > > Signed-off-by: Charles Keepax > --- > driv

Re: [PATCH 2/4] extcon: arizona: Use extcon cable API

2014-05-29 Thread Chanwoo Choi
On 05/30/2014 12:27 AM, Charles Keepax wrote: > From: Nikesh Oswal > > Use extcon cable API instead of state API as it is much more > idiomatic. > > Signed-off-by: Nikesh Oswal > Signed-off-by: Charles Keepax > --- > drivers/extcon/extcon-arizona.c | 15 ++- > 1 files changed, 6

[PATCH v2 RESEND 4/4] staging: ion: optimize struct ion_system_heap

2014-05-29 Thread Heesub Shin
struct ion_system_heap has an array for storing pointers to page pools and it is allocated separately from the containing structure. There is no point in allocating those two small objects individually, bothering slab allocator. Using a variable length array simplifies code lines and reduces overhe

[PATCH v2 RESEND 2/4] staging: ion: remove struct page_info

2014-05-29 Thread Heesub Shin
ION system heap creates a temporary list of pages to build scatter/gather table, introducing an internal data type, page_info. Now that the order field has been removed from it, we do not need to depend on such data type anymore. Signed-off-by: Heesub Shin Reviewed-by: Mitchel Humpherys Tested-b

[PATCH v2 RESEND 1/4] staging: ion: remove order from struct page_info

2014-05-29 Thread Heesub Shin
ION system heap uses an internal data structure, struct page_info, for tracking down the meta information of the pages allocated from the pool. Now that the pool returns compound pages, we don't need to store page order in struct page_info. Signed-off-by: Heesub Shin Reviewed-by: Mitchel Humphery

Re: [PATCH 3/4] extcon: arizona: Update manual headphone detection calculation

2014-05-29 Thread Chanwoo Choi
Hi Charles, On 05/30/2014 12:27 AM, Charles Keepax wrote: > The higher levels of impedance have a higher minimum value than the > first level. As the same value was used for all levels, higher impedances > were reported with a very low level of accuracy. This patch applies the > approriate lower t

[PATCH v2 RESEND 3/4] staging: ion: remove order argument from free_buffer_page()

2014-05-29 Thread Heesub Shin
Now that the pages returned from the pool are compound pages, we do not need to pass the order information to free_buffer_page(). Signed-off-by: Heesub Shin Reviewed-by: Mitchel Humpherys Tested-by: John Stultz --- drivers/staging/android/ion/ion_system_heap.c | 9 - 1 file changed, 4

Re: rcu alignment warning tripping on m68k

2014-05-29 Thread Greg Ungerer
On 29/05/14 23:11, One Thousand Gnomes wrote: > On Thu, 29 May 2014 12:08:32 +1000 > Greg Ungerer wrote: > >> Hi All, >> >> Inside kernel/rcy/tree.c in __call_rcu() it does an alignment check on >> the head pointer passed in. This trips on m68k systems, because they only >> need alignment of 32bi

Re: [PATCH] of: treat PCI config space as IORESOURCE_MEM type

2014-05-29 Thread Bjorn Helgaas
On Thu, May 29, 2014 at 6:56 PM, Liviu Dudau wrote: > On Thu, May 29, 2014 at 03:51:28PM -0500, Kumar Gala wrote: >> >> On May 29, 2014, at 3:44 PM, Rob Herring wrote: >> >> > On Thu, May 29, 2014 at 11:03 AM, Kumar Gala wrote: >> >> If we have a PCI config space specified in something like a ra

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Linus Torvalds
On Thu, May 29, 2014 at 5:05 PM, Linus Torvalds wrote: > > So maybe test a patch something like the attached. > > NOTE! This is absolutely TOTALLY UNTESTED! It's still untested, but I realized that the whole "blk_flush_plug_list(plug, true);" thing is pointless, since schedule() itself will do th

Re: [PATCH v3 13/13] mmc: mmci: Add Qcom specific pio_read function.

2014-05-29 Thread Stephen Boyd
On 05/29/14 00:43, Linus Walleij wrote: > On Wed, May 28, 2014 at 3:57 PM, Srinivas Kandagatla > wrote: > >>> This doesn't look endianness agnostic. Shouldn't we use ioread32_rep() >>> to read this fifo? >> Is'nt readl endianess aware? > At least once a year read through arch/arm/include/asm/io.h

Re: [PATCH 4/4] extcon: arizona: Correct typo to disable regulation for button detection

2014-05-29 Thread Chanwoo Choi
On 05/30/2014 12:27 AM, Charles Keepax wrote: > We can use the bypass mode on the MICVDD reg for button detection, as > the comment in the code states, however the code was mistakenly > disabling bypass. This patch corrects this and allows bypass mode during > button detection. > > Signed-off-by:

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Dave Chinner
On Fri, May 30, 2014 at 09:32:19AM +0900, Minchan Kim wrote: > On Fri, May 30, 2014 at 10:21:13AM +1000, Dave Chinner wrote: > > On Thu, May 29, 2014 at 08:06:49PM -0400, Dave Jones wrote: > > > On Fri, May 30, 2014 at 09:53:08AM +1000, Dave Chinner wrote: > > > > > > > That sounds like a plan. P

Re: [PATCH] hugetlb: restrict hugepage_migration_support() to x86_64 (Re: BUG at mm/memory.c:1489!)

2014-05-29 Thread Michael Ellerman
On Thu, 2014-05-29 at 14:34 -0400, Naoya Horiguchi wrote: > On Thu, May 29, 2014 at 06:59:43PM +1000, Michael Ellerman wrote: > > Applying your patch and running trinity pretty immediately results in the > > following, which looks related (sys_move_pages() again) ? > > > > Unable to handle kernel p

Re: [PATCH] drm/exynos: hdmi: remove the i2c drivers and use devtree - continued

2014-05-29 Thread Jingoo Han
On Friday, May 30, 2014 1:42 AM, Tomasz Figa wrote: > On 29.05.2014 18:36, Lee Jones wrote: > > There appears to have been a merge error on commit: > > > > 2b76813: drm/exynos: hdmi: remove the i2c drivers and use > > > > The original submission can be found at: > > > > https://patchwork.kernel

Re: [RFC PATCH] crypto: crc32c-pclmul - Use pmovzxdq to shrink K_table

2014-05-29 Thread George Spelvin
> This is odd. On my Ivy Bridge system the CPU speed from /proc/cpuinfo > is at max freq once I set the performance governor. > The numbers above almost look like > the cpu frequency is fluctuating and an average is taken. > What version of the kernel are you running? Is > CONFIG_CPU_FREQ_GOV

Re: [PATCH] of: treat PCI config space as IORESOURCE_MEM type

2014-05-29 Thread Liviu Dudau
On Thu, May 29, 2014 at 07:29:31PM -0600, Bjorn Helgaas wrote: > On Thu, May 29, 2014 at 6:56 PM, Liviu Dudau wrote: > > On Thu, May 29, 2014 at 03:51:28PM -0500, Kumar Gala wrote: > >> > >> On May 29, 2014, at 3:44 PM, Rob Herring wrote: > >> > >> > On Thu, May 29, 2014 at 11:03 AM, Kumar Gala

[PATCH] extcon: Set parent device of extcon device using prameter of devm_extcon_dev_allocate

2014-05-29 Thread Chanwoo Choi
This patch set the parent device of extcon device using first parameter of devm_extco_dev_allocate() to remove duplicate code on all of extcon provider drivers. Signed-off-by: Chanwoo Choi Reported-by: Charles Keepax Cc: Charles Keepax Cc: Mark Brown Cc: Graeme Gregory Cc: Kishon Vijay Abraha

Re: [PATCH] export efi.flags to sysfs

2014-05-29 Thread Dave Young
On 05/29/14 at 02:10pm, Fleming, Matt wrote: > On 29 May 2014 13:59, Vivek Goyal wrote: > > > > Only second kernel boots with "noefi" and this parameter is appened by > > kexec-tools to second kernel command line. So first kernel will still > > boot *without noefi* and kexec-tools wil think that t

Re: [PATCH] hugetlb: restrict hugepage_migration_support() to x86_64 (Re: BUG at mm/memory.c:1489!)

2014-05-29 Thread Hugh Dickins
On Fri, 30 May 2014, Michael Ellerman wrote: > > diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h > index 3c1b968..f230a97 100644 > --- a/include/linux/mempolicy.h > +++ b/include/linux/mempolicy.h > @@ -175,6 +175,12 @@ static inline int vma_migratable(struct vm_area_struct > *

Re: [PATCH] net: ks8851: Don't use regulator_get_optional()

2014-05-29 Thread Nishanth Menon
t; Cc: Mark Brown > Signed-off-by: Stephen Boyd > --- Reviewed-and-Tested-by: Nishanth Menon SDP2430: with next-20140529: before patch: https://github.com/nmenon/kernel-test-logs/blob/next-20140529/omap2plus_defconfig/sdp2430.txt After patch: http://slexy.org/raw/s21sryFhAx Looks good. -

Re: [PATCH V4 3/3] cpufreq: Tegra: implement intermediate frequency callbacks

2014-05-29 Thread Viresh Kumar
On 29 May 2014 23:10, Stephen Warren wrote: > This patch breaks Tegra. The reason is below. Lets see what blunder I made :) >> diff --git a/drivers/cpufreq/tegra-cpufreq.c >> b/drivers/cpufreq/tegra-cpufreq.c > >> -static int tegra_cpu_clk_set_rate(unsigned long rate) >> +static unsigned int >>

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

2014-05-29 Thread Dave Chinner
On Thu, May 29, 2014 at 06:24:02PM -0700, Linus Torvalds wrote: > On Thu, May 29, 2014 at 5:50 PM, Minchan Kim wrote: > >> > >> You could also try Dave's patch, and _not_ do my mm/vmscan.c part. > > > > Sure. While I write this, Rusty's test was crached so I will try Dave's > > patch, > > them yo

<    3   4   5   6   7   8   9   10   >