Re: [PATCH] gpio: pxa: normalize the return value for gpio_get

2014-01-14 Thread Linus Walleij
On Fri, Jan 10, 2014 at 7:03 AM, Neil Zhang wrote: > It would be convenient to normalize the return value for gpio_get. > > I have checked mach-mmp / mach-pxa / plat-pxa / plat-orion / mach-orion5x. > It's OK for all of them to change this function to return 0 and 1. > > Signed-off-by: Neil

linux-next: Tree for Jan 15

2014-01-14 Thread Stephen Rothwell
Hi all, This tree fails (more than usual) the powerpc allyesconfig build. Changes since 20140114: Dropped tree: sh (complex merge conflicts against very old commits) Removed tree: pstore (at maintainer's request) The powerpc tree still had its build failure. The net-next tree gained

Re: [PATCH] gpio: pxa: fix bug when get gpio value

2014-01-14 Thread Linus Walleij
On Thu, Jan 9, 2014 at 11:46 AM, Gerhard Sittig wrote: > Here is why I'm asking: Is there a need from GPIO get_value() > routines to return normalized values, That totally depends. All drivers calling gpio[d]_get_value() will be returned the value directly from the driver without any clamping

Re: [RFC 1/3] mutex: In mutex_can_spin_on_owner(), return false if task need_resched()

2014-01-14 Thread Peter Zijlstra
On Wed, Jan 15, 2014 at 08:44:20AM +0100, Peter Zijlstra wrote: > On Tue, Jan 14, 2014 at 04:33:08PM -0800, Jason Low wrote: > > The mutex_can_spin_on_owner() function should also return false if the > > task needs to be rescheduled. > > > > While I was staring at mutex_can_spin_on_owner();

Re: [PATCH v3.1 11/21] ARM: pxa: support ICP DAS LP-8x4x FPGA irq

2014-01-14 Thread Linus Walleij
This is looking much better! On Fri, Jan 10, 2014 at 12:07 AM, Sergei Ianovich wrote: > +++ b/drivers/irqchip/irq-lp8x4x.c (...) You could add some kerneldoc to this following struct (OK nitpick, but still nice, especially for the last two variables). > +struct lp8x4x_irq_data { > +

Re: [RFC 1/3] mutex: In mutex_can_spin_on_owner(), return false if task need_resched()

2014-01-14 Thread Peter Zijlstra
On Tue, Jan 14, 2014 at 04:33:08PM -0800, Jason Low wrote: > The mutex_can_spin_on_owner() function should also return false if the > task needs to be rescheduled. > While I was staring at mutex_can_spin_on_owner(); don't we need this? kernel/locking/mutex.c | 4 +++- 1 file changed, 3

Dear Customer

2014-01-14 Thread NAUKRI.COM
This message is from Naukri Job Portal and to all registered Naukri account owners. We are currently facing phishers on our Data Base due to Spam. We want to exercise an improve secure service quality in our Admin System to reduce the spam in every job/users portal. Please Confirm your Naukri

Dear Customer

2014-01-14 Thread NAUKRI.COM
This message is from Naukri Job Portal and to all registered Naukri account owners. We are currently facing phishers on our Data Base due to Spam. We want to exercise an improve secure service quality in our Admin System to reduce the spam in every job/users portal. Please Confirm your Naukri

Re: [PATCH v3 11/21] ARM: pxa: support ICP DAS LP-8x4x FPGA irq

2014-01-14 Thread Linus Walleij
On Wed, Jan 8, 2014 at 8:01 PM, Sergei Ianovich wrote: > On Thu, 2014-01-02 at 13:32 +0100, Linus Walleij wrote: >> On Tue, Dec 17, 2013 at 8:37 PM, Sergei Ianovich wrote: >> Usually combined GPIO+IRQ controllers are put into drivers/gpio but >> this is a bit special as it seems to handle also

Re: [RFC PATCH] sched: find the latest idle cpu

2014-01-14 Thread Peter Zijlstra
On Wed, Jan 15, 2014 at 12:07:59PM +0800, Alex Shi wrote: > Currently we just try to find least load cpu. If some cpus idled, > we just pick the first cpu in cpu mask. > > In fact we can get the interrupted idle cpu or the latest idled cpu, > then we may get the benefit from both latency and

Re: [RFC 3/3] mutex: When there is no owner, stop spinning after too many tries

2014-01-14 Thread Jason Low
On Tue, 2014-01-14 at 17:06 -0800, Davidlohr Bueso wrote: > On Tue, 2014-01-14 at 16:33 -0800, Jason Low wrote: > > When running workloads that have high contention in mutexes on an 8 socket > > machine, spinners would often spin for a long time with no lock owner. > > > > One of the potential

Re: [PATCH 3/3] pinctrl: single: fix infinite loop caused by bad mask

2014-01-14 Thread Linus Walleij
On Thu, Jan 9, 2014 at 1:50 PM, Tomi Valkeinen wrote: > commit 4e7e8017a80e1 (pinctrl: pinctrl-single: > enhance to configure multiple pins of different modules) improved > support for pinctrl-single,bits option, but also caused a regression > in parsing badly configured mask data. > > If the

Re: [PATCH 2/3] pinctrl: single: fix pcs_disable with bits_per_mux

2014-01-14 Thread Linus Walleij
On Thu, Jan 9, 2014 at 1:50 PM, Tomi Valkeinen wrote: > pcs_enable() uses vals->mask instead of pcs->fmask when bits_per_mux is > enabled. However, pcs_disable() always uses pcs->fmask. > > Fix pcs_disable() to use vals->mask with bits_per_mux. > > Signed-off-by: Tomi Valkeinen > Acked-by:

Re: [PATCH 1/3] pinctrl: single: fix DT bindings documentation

2014-01-14 Thread Linus Walleij
On Thu, Jan 9, 2014 at 1:50 PM, Tomi Valkeinen wrote: > Remove extra comma in pinctrl-single documentation. > > Signed-off-by: Tomi Valkeinen > Acked-by: Tony Lindgren Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

[PATCH] ACPI / init: Run acpi_early_init() before timekeeping_init()

2014-01-14 Thread Lee, Chun-Yi
This is a variant patch from Rafael J. Wysocki's ACPI / init: Run acpi_early_init() before efi_enter_virtual_mode() According to Matt Fleming, if acpi_early_init() was executed before efi_enter_virtual_mode(), the EFI initialization could benefit from it, so Rafael's patch makes that happen.

Re: [PATCH net-next] tun/macvtap: limit the packets queued through rcvbuf

2014-01-14 Thread Michael S. Tsirkin
On Wed, Jan 15, 2014 at 11:36:01AM +0800, Jason Wang wrote: > On 01/14/2014 05:52 PM, Michael S. Tsirkin wrote: > > On Tue, Jan 14, 2014 at 04:45:24PM +0800, Jason Wang wrote: > >> > On 01/14/2014 04:25 PM, Michael S. Tsirkin wrote: > >>> > > On Tue, Jan 14, 2014 at 02:53:07PM +0800, Jason Wang

Re: [RFT][PATCH] ACPI / init: Run acpi_early_init() before efi_enter_virtual_mode()

2014-01-14 Thread joeyli
於 二,2014-01-14 於 13:32 -0700,Toshi Kani 提到: > > > + acpi_early_init(); > > > timekeeping_init(); > > > time_init(); > > > sched_clock_postinit(); > > > @@ -641,7 +642,6 @@ asmlinkage void __init start_kernel(void) > > > > > > check_bugs(); > > > > > > -

Re: [RFC][PATCH 1/9] mm: slab/slub: use page->list consistently instead of page->lru

2014-01-14 Thread David Rientjes
On Tue, 14 Jan 2014, Dave Hansen wrote: > > block/blk-mq.c: In function ‘blk_mq_free_rq_map’: > > block/blk-mq.c:1094:10: error: ‘struct page’ has no member named ‘list’ > > block/blk-mq.c:1094:10: warning: initialization from incompatible pointer > > type [enabled by default] > >

[PATCH 2/2] powerpc: Implement arch_spin_is_locked() using arch_spin_value_unlocked()

2014-01-14 Thread Michael Ellerman
At a glance these are just the inverse of each other. The one subtlety is that arch_spin_value_unlocked() takes the lock by value, rather than as a pointer, which is important for the lockref code. On the other hand arch_spin_is_locked() doesn't really care, so implement it in terms of

[PATCH 1/2] powerpc: Add support for the optimised lockref implementation

2014-01-14 Thread Michael Ellerman
This commit adds the architecture support required to enable the optimised implementation of lockrefs. That's as simple as defining arch_spin_value_unlocked() and selecting the Kconfig option. We also define cmpxchg64_relaxed(), because the lockref code does not need the cmpxchg to have barrier

Re: [RFC 3/3] mutex: When there is no owner, stop spinning after too many tries

2014-01-14 Thread Jason Low
On Tue, 2014-01-14 at 17:00 -0800, Andrew Morton wrote: > On Tue, 14 Jan 2014 16:33:10 -0800 Jason Low wrote: > > > When running workloads that have high contention in mutexes on an 8 socket > > machine, spinners would often spin for a long time with no lock owner. > > > > One of the potential

[PATCH] vt: detect and ignore OSC codes.

2014-01-14 Thread Adam Borowski
These can be used to send commands consisting of an arbitrary string to the terminal, most often used to set a terminal's window title or to redefine the colour palette. Our console doesn't use OSC, unlike everything else, which can lead to junk being displayed if a process sends such a code

Re: [PATCH 2/2] x86: intel-mid: sfi_handle_*_dev() should check for pdata error code

2014-01-14 Thread Ingo Molnar
* David Cohen wrote: > Hi Ingo, > > On Fri, Dec 20, 2013 at 09:49:53AM +0100, Ingo Molnar wrote: > > > > * David Cohen wrote: > > > > > Prevent sfi_handle_*_dev() to register device in case > > > intel_mid_sfi_get_pdata() failed to execute. > > > > > > Since 'NULL' is a valid return value,

Re: [RFC][PATCH 1/9] mm: slab/slub: use page->list consistently instead of page->lru

2014-01-14 Thread Dave Hansen
On 01/14/2014 06:31 PM, David Rientjes wrote: > Did you try with a CONFIG_BLOCK config? > > block/blk-mq.c: In function ‘blk_mq_free_rq_map’: > block/blk-mq.c:1094:10: error: ‘struct page’ has no member named ‘list’ > block/blk-mq.c:1094:10: warning: initialization from incompatible pointer >

Re: [RFC PATCH] sched: find the latest idle cpu

2014-01-14 Thread Alex Shi
On 01/15/2014 01:33 PM, Michael wang wrote: > On 01/15/2014 12:07 PM, Alex Shi wrote: >> > Currently we just try to find least load cpu. If some cpus idled, >> > we just pick the first cpu in cpu mask. >> > >> > In fact we can get the interrupted idle cpu or the latest idled cpu, >> > then we may

[RESEND PATCH v10] x86, apic, kexec, Documentation: Add disable_cpu_apicid kernel parameter

2014-01-14 Thread HATAYAMA Daisuke
Add disable_cpu_apicid kernel parameter. To use this kernel parameter, specify an initial APIC ID of the corresponding CPU you want to disable. This is mostly used for the kdump 2nd kernel to disable BSP to wake up multiple CPUs without causing system reset or hang due to sending INIT from AP to

Re: [PATCH 7/8 v3] crypto:s5p-sss: validate iv before memcpy

2014-01-14 Thread Naveen Krishna Ch
Hello Tomasz, On 10 January 2014 21:33, Tomasz Figa wrote: > Hi Naveen, > > > On 10.01.2014 12:45, Naveen Krishna Chatradhi wrote: >> >> This patch adds code to validate "iv" buffer before trying to >> memcpy the contents >> >> Signed-off-by: Naveen Krishna Chatradhi >> --- >> Changes since v2:

Re: [PATCH] perf tools: Synthesize anon MMAP records on the heap

2014-01-14 Thread Gaurav Jain
Hi Namhyung, On 1/15/14, 12:46 AM, "Namhyung Kim" wrote: >I'd like to take my ack back - it seems I missed some points. No worries, looks like the patch wasn’t well thought out. >On Tue, 14 Jan 2014 20:48:23 +, Gaurav Jain wrote: >> On 1/13/14, 11:54 AM, "Don Zickus" wrote: >> >>>On

Re: [GIT PULL] clockevents/clocksources: 3.13 fixes

2014-01-14 Thread Ingo Molnar
* Daniel Lezcano wrote: > > Hi Thomas and Ingo, > > here is a pull request for a single fix for 3.13. It is based on the > latest timers/urgent update. > > * Soren Brinkmann fixed the cadence_ttc driver where a call to > clk_get_rate happens in an interrupt context. More precisely in an >

Re: [tip:core/urgent] sched_clock: Disable seqlock lockdep usage in sched_clock()

2014-01-14 Thread Ingo Molnar
* John Stultz wrote: > On 01/12/2014 10:42 AM, tip-bot for John Stultz wrote: > > Commit-ID: 7a06c41cbec33c6dbe7eec575c61986122617408 > > Gitweb: > > http://git.kernel.org/tip/7a06c41cbec33c6dbe7eec575c61986122617408 > > Author: John Stultz > > AuthorDate: Thu, 2 Jan 2014 15:11:14

Re: [tip:x86/urgent] x86, cpu, amd: Add workaround for family 16h, erratum 793

2014-01-14 Thread Ingo Molnar
* H. Peter Anvin wrote: > On 01/14/2014 04:45 PM, tip-bot for Borislav Petkov wrote: > > + rdmsrl(MSR_AMD64_LS_CFG, val); > > + if (!(val & BIT(15))) > > + wrmsrl(MSR_AMD64_LS_CFG, val | BIT(15)); > > Incidentally, I'm wondering if we shouldn't have a >

Re: [PATCH 2/3] perf tools: Spare double comparison of callchain first entry

2014-01-14 Thread Namhyung Kim
On Tue, 14 Jan 2014 16:37:15 +0100, Frederic Weisbecker wrote: > When a new callchain child branch matches an existing one in the rbtree, > the comparison of its first entry is performed twice: > > 1) From append_chain_children() on branch lookup > > 2) If 1) reports a match, append_chain() then

Re: [PATCH 3/3] perf tools: Remove unnecessary callchain cursor state restore on unmatch

2014-01-14 Thread Namhyung Kim
On Tue, 14 Jan 2014 16:37:16 +0100, Frederic Weisbecker wrote: > If a new callchain branch doesn't match a single entry of the node that > it is given against comparison in append_chain(), then the cursor is > expected to be at the same position as it was before the comparison loop. > > As such,

Re: [PATCH V2] ACPI/Battery: Add a _BIX quirk for NEC LZ750/LS

2014-01-14 Thread Robert Hancock
On 01/14/2014 03:37 PM, Rafael J. Wysocki wrote: On Tuesday, January 14, 2014 04:06:01 PM Matthew Garrett wrote: On Mon, Jan 06, 2014 at 11:25:53PM +0100, Rafael J. Wysocki wrote: Queued up as a fix for 3.13 (I fixed up the indentation). Ah, sorry, I missed this chunk of the thread. If the

Re: [PATCH v2] clk: sirf: re-arch to make the codes support both prima2 and atlas6

2014-01-14 Thread Barry Song
2014/1/15 Mike Turquette : > Quoting Barry Song (2014-01-05 21:38:19) >> diff --git a/drivers/clk/sirf/clk-atlas6.c b/drivers/clk/sirf/clk-atlas6.c >> new file mode 100644 >> index 000..21e776a >> --- /dev/null >> +++ b/drivers/clk/sirf/clk-atlas6.c >> @@ -0,0 +1,153 @@ >> +/* >> + * Clock

Re: [PATCH] toshiba_acpi: Support RFKILL hotkey scancode

2014-01-14 Thread Unai Uribarri
In Windows disables the Wi-Fi & Bluetooth. In Linux does nothing but showing this error in dmesg about the unrecognized scancode: [230128.042047] toshiba_acpi: Unknown key 158 On Tue, Jan 14, 2014 at 4:54 PM, Matthew Garrett wrote: > On Tue, 2014-01-14 at 11:06 +0100, Unai Uribarri wrote: >>

Re: [PATCH] ARM: dts: imx28-apf28dev: add user button

2014-01-14 Thread Shawn Guo
On Tue, Jan 14, 2014 at 03:21:27PM +0100, Sébastien Szymanski wrote: > Signed-off-by: Sébastien Szymanski > --- > arch/arm/boot/dts/imx28-apf28dev.dts | 11 +++ > 1 file changed, 11 insertions(+) Applied, thanks. Shawn > > diff --git a/arch/arm/boot/dts/imx28-apf28dev.dts >

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

2014-01-14 Thread Bob Liu
Hi Johannes, On 01/11/2014 02:10 AM, 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, which are only reclaimed when the inodes > themselves are reclaimed. This is

Re: [PATCH 1/3] perf tools: Do proper comm override error handling

2014-01-14 Thread Namhyung Kim
Hi Frederic, On Tue, 14 Jan 2014 16:37:14 +0100, Frederic Weisbecker wrote: > The comm overriding API ignores memory allocation failures by silently > keeping the previous and out of date comm. > > As a result, the user may get buggy events without ever being notified > about the problem and its

Re: [PATCH] Documentation / CPU hotplug: Fix the typo in example code

2014-01-14 Thread Srivatsa S. Bhat
On 01/15/2014 10:40 AM, Sangjung Woo wrote: > As the notifier_block name (i.e. foobar_cpu_notifer) is different from > the parameter (i.e.foobar_cpu_notifier) of register function, that is > definitely error and it also makes readers confused. > > Signed-off-by: Sangjung Woo Reviewed-by:

Re: [PATCH] perf tools: Synthesize anon MMAP records on the heap

2014-01-14 Thread Namhyung Kim
Hi Gaurav, I'd like to take my ack back - it seems I missed some points. On Tue, 14 Jan 2014 20:48:23 +, Gaurav Jain wrote: > On 1/13/14, 11:54 AM, "Don Zickus" wrote: > >>On Sat, Jan 11, 2014 at 08:32:14PM -0800, Gaurav Jain wrote: >>> Anon records usually do not have the 'execname'

Re: [PATCH] mm/zswap: add writethrough option

2014-01-14 Thread Minchan Kim
Hello, On Tue, Jan 14, 2014 at 10:10:44AM -0500, Dan Streetman wrote: > On Mon, Jan 13, 2014 at 7:11 PM, Minchan Kim wrote: > > Hello Dan, > > > > Sorry for the late response and I didn't look at the code yet > > because I am not convinced. :( > > > > On Thu, Dec 19, 2013 at 08:23:27AM -0500,

[PATCH REGRESSION FIX] x86 idle: restore mwait_idle()

2014-01-14 Thread Len Brown
From: Len Brown In Linux-3.9 we removed the mwait_idle() loop: 'x86 idle: remove mwait_idle() and "idle=mwait" cmdline param' (69fb3676df3329a7142803bb3502fa59dc0db2e3) The reasoning was that modern machines should be sufficiently happy during the boot process using the default_idle() HALT

Re: [PATCH v2] clk: sirf: re-arch to make the codes support both prima2 and atlas6

2014-01-14 Thread Mike Turquette
Quoting Barry Song (2014-01-05 21:38:19) > diff --git a/drivers/clk/sirf/clk-atlas6.c b/drivers/clk/sirf/clk-atlas6.c > new file mode 100644 > index 000..21e776a > --- /dev/null > +++ b/drivers/clk/sirf/clk-atlas6.c > @@ -0,0 +1,153 @@ > +/* > + * Clock tree for CSR SiRFatlasVI > + * > + *

Re: [RFC PATCH] sched: find the latest idle cpu

2014-01-14 Thread Michael wang
On 01/15/2014 12:07 PM, Alex Shi wrote: > Currently we just try to find least load cpu. If some cpus idled, > we just pick the first cpu in cpu mask. > > In fact we can get the interrupted idle cpu or the latest idled cpu, > then we may get the benefit from both latency and power. > The selected

Re: linux-next: manual merge of the md tree with the block tree

2014-01-14 Thread NeilBrown
On Wed, 15 Jan 2014 15:07:43 +1100 Stephen Rothwell wrote: > Hi Neil, > > Today's linux-next merge of the md tree got a conflict in > drivers/md/raid10.c between commit 4f024f3797c4 ("block: Abstract out > bvec iterator") from the block tree and commit b50c259e25d9 ("md/raid10: > fix two bugs

[PATCH tip/core/timers 3/4] timers: Reduce future __run_timers() latency for newly emptied list

2014-01-14 Thread Paul E. McKenney
From: "Paul E. McKenney" The __run_timers() function currently steps through the list one jiffy at a time in order to update the timer wheel. However, if the timer wheel is empty, no adjustment is needed other than updating ->timer_jiffies. Therefore, if we just emptied the timer wheel, for

[PATCH tip/core/timers 2/4] timers: Reduce __run_timers() latency for empty list

2014-01-14 Thread Paul E. McKenney
From: "Paul E. McKenney" The __run_timers() function currently steps through the list one jiffy at a time in order to update the timer wheel. However, if the timer wheel is empty, no adjustment is needed other than updating ->timer_jiffies. In this case, which is likely to be common for

[PATCH tip/core/timers 1/4] timers: Track total number of timers in list

2014-01-14 Thread Paul E. McKenney
From: "Paul E. McKenney" Currently, the tvec_base structure's ->active_timers field tracks only the non-deferrable timers, which means that even if ->active_timers is zero, there might well be non-deferrable timers in the list. This commit therefore adds an ->all_timers field to track all the

[PATCH tip/core/timers 4/4] timers: Reduce future __run_timers() latency for first add to empty list

2014-01-14 Thread Paul E. McKenney
From: "Paul E. McKenney" The __run_timers() function currently steps through the list one jiffy at a time in order to update the timer wheel. However, if the timer wheel is empty, no adjustment is needed other than updating ->timer_jiffies. Therefore, just before we add a timer to an empty

[GIT PULL REQUEST] last minute md fixes for 3.13

2014-01-14 Thread NeilBrown
Sorry they are late Christmas holidays and all that. Hopefully they can still squeak into 3.13. NeilBrown The following changes since commit 6d183de4077191d1201283a9035ce57a9b05254d: md/raid5: fix newly-broken locking in get_active_stripe. (2013-11-28 11:00:15 +1100) are available

[PATCH v2 tip/core/timers] Crude timer-wheel latency hacks

2014-01-14 Thread Paul E. McKenney
Hello! The following three patches provide some crude timer-wheel latency patches. I understand that a more comprehensive solution is in progress, but in the meantime, these patches work well in cases where a given CPU has either zero or one timers pending, which is a common case for NO_HZ_FULL

[git pull] drm last fixes

2014-01-14 Thread Dave Airlie
Hi Linus, One nouveau regression fix on older cards, i915 black screen fixes, and a revert for a strange G33 intel problem. Dave. The following changes since commit 7e22e91102c6b9df7c4ae2168910e19d2bb14cd6: Linux 3.13-rc8 (2014-01-12 17:04:18 +0700) are available in the git repository at:

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

2014-01-14 Thread Minchan Kim
On Tue, Jan 14, 2014 at 02:15:44PM +0800, Weijie Yang wrote: > On Tue, Jan 14, 2014 at 1:42 PM, Bob Liu wrote: > > > > On 01/14/2014 01:05 PM, Minchan Kim wrote: > >> On Tue, Jan 14, 2014 at 01:50:22PM +0900, Minchan Kim wrote: > >>> Hello Bob, > >>> > >>> On Tue, Jan 14, 2014 at 09:19:23AM

[PATCH v5] Staging: comedi: convert while loop to timeout in ni_mio_common.c

2014-01-14 Thread Chase Southwood
This patch for ni_mio_common.c changes out a while loop for a timeout, which is preferred. Signed-off-by: Chase Southwood --- All right, I think this guy's ready to go now! Thanks for all the help! Chase 2: Changed from simple clean-up to swapping a timeout in for a while loop. 3: Removed

Your email a.w.a.r.d in the Jargua sum of $800, 000.00 send your full name, address phone number

2014-01-14 Thread jaguarautomobileanniversary
-- 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.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v7 00/15] PCI: Allocate 64-bit BARs above 4G when possible

2014-01-14 Thread Dave Airlie
> > I added Daniel's Reviewed-by to the AGP patches (except the trivial > PCI_COMMAND change in ati_configure()). > > I added the incremental patch below to fix these warnings found by > Fengguang's autobuilder in the original b1e0e392f5dd commit: > > drivers/char/agp/amd-k7-agp.c:115:38:

[PATCH] Documentation / CPU hotplug: Fix the typo in example code

2014-01-14 Thread Sangjung Woo
As the notifier_block name (i.e. foobar_cpu_notifer) is different from the parameter (i.e.foobar_cpu_notifier) of register function, that is definitely error and it also makes readers confused. Signed-off-by: Sangjung Woo --- Documentation/cpu-hotplug.txt |2 +- 1 file changed, 1

linux-next: unsigned commits in the mips tree

2014-01-14 Thread Stephen Rothwell
Hi Ralf, I noticed that there is a whole series of commits in today's mips tree that were committed by John Crispin but have no Signed-off-by from him ... -- Cheers, Stephen Rothwells...@canb.auug.org.au pgpurbLY5MRfw.pgp Description: PGP signature

Re: [PATCH v3 5/5] slab: make more slab management structure off the slab

2014-01-14 Thread David Rientjes
On Mon, 2 Dec 2013, Joonsoo Kim wrote: > Now, the size of the freelist for the slab management diminish, > so that the on-slab management structure can waste large space > if the object of the slab is large. > > Consider a 128 byte sized slab. If on-slab is used, 31 objects can be > in the slab.

[PATCH/RFC] perf ui/tui: Show column header in hist browser

2014-01-14 Thread Namhyung Kim
Add a line for showing column headers like --stdio. Signed-off-by: Namhyung Kim --- tools/perf/ui/browser.c| 4 +-- tools/perf/ui/browsers/hists.c | 55 ++ 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/tools/perf/ui/browser.c

Re: [PATCH v3 4/5] slab: introduce byte sized index for the freelist of a slab

2014-01-14 Thread David Rientjes
On Mon, 2 Dec 2013, Joonsoo Kim wrote: > Currently, the freelist of a slab consist of unsigned int sized indexes. > Since most of slabs have less number of objects than 256, large sized > indexes is needless. For example, consider the minimum kmalloc slab. It's > object size is 32 byte and it

Re: [RFC PATCH] sched: find the latest idle cpu

2014-01-14 Thread Alex Shi
On 01/15/2014 12:53 PM, Alex Shi wrote: >>> >> I guess we missed some code for latest_wake here? >> > >> > Yes, thanks for reminder! >> > >> > so updated patch: >> > > ops, still incorrect. re-updated: update to wrong file. re-re-update. :( === >From b75e43bb77df14e2209532c1e5c48e0e03afa414

linux-next: manual merge of the tip tree with the mips tree

2014-01-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in arch/mips/netlogic/xlp/setup.c between commit 8e4857962d97 ("MIPS: Netlogic: Core wakeup improvements") from the mips tree and commit 7972e966b032 ("MIPS: Remove panic_timeout settings") from the tip tree. I fixed it up (see

Re: [PATCH v3 3/5] slab: restrict the number of objects in a slab

2014-01-14 Thread David Rientjes
On Mon, 2 Dec 2013, Joonsoo Kim wrote: > To prepare to implement byte sized index for managing the freelist > of a slab, we should restrict the number of objects in a slab to be less > or equal to 256, since byte only represent 256 different values. > Setting the size of object to value equal or

Re: [PATCH 01/17] tools lib traceevent: Add state member to struct trace_seq

2014-01-14 Thread Namhyung Kim
On Tue, 14 Jan 2014 21:56:55 -0500, Steven Rostedt wrote: > On Wed, 15 Jan 2014 11:49:28 +0900 > Namhyung Kim wrote: >> Oh, it looks better. But I'd like to TRACE_SEQ_CHECK() as is for some >> cases. How about this? > > Looks good to me. > > Acked-by: Steven Rostedt > > I'll try to look at the

[PATCH 16/16] hold bus_mutex in netlink and search

2014-01-14 Thread David Fries
The bus_mutex needs to be taken to serialize access to a specific bus. netlink wasn't updated when bus_mutex was added and was calling without that lock held, and not all of the masters were holding the bus_mutex in a search. This was causing the ds2490 hardware to stop responding when both

[git pull] Please pull powerpc.git merge branch

2014-01-14 Thread Benjamin Herrenschmidt
Hi Linus ! So you make the call onto whether taking that one now or waiting for the merge window. It's a bug fix for a crash in mremap that occurs on powerpc with THP enabled. The fix however requires a small change in the generic code. It moves a condition into a helper we can override from the

linux-next: manual merge of the tip tree with the mips tree

2014-01-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in arch/mips/Kconfig between commit 597ce1723e0f ("MIPS: Support for 64-bit FP with O32 binaries") from the mips tree and commit 19952a92037e ("stackprotector: Unify the HAVE_CC_STACKPROTECTOR logic between architectures") from the

Re: [PATCH v3 2/5] slab: introduce helper functions to get/set free object

2014-01-14 Thread David Rientjes
On Mon, 2 Dec 2013, Joonsoo Kim wrote: > In the following patches, to get/set free objects from the freelist > is changed so that simple casting doesn't work for it. Therefore, > introduce helper functions. > > Acked-by: Christoph Lameter > Signed-off-by: Joonsoo Kim Acked-by: David Rientjes

Re: [PATCH v3 1/5] slab: factor out calculate nr objects in cache_estimate

2014-01-14 Thread David Rientjes
On Mon, 2 Dec 2013, Joonsoo Kim wrote: > This logic is not simple to understand so that making separate function > helping readability. Additionally, we can use this change in the > following patch which implement for freelist to have another sized index > in according to nr objects. > >

Re: [PATCH v3 13/14] mm, hugetlb: retry if failed to allocate and there is concurrent user

2014-01-14 Thread Andrew Morton
On Tue, 14 Jan 2014 20:37:49 -0800 Davidlohr Bueso wrote: > On Tue, 2014-01-14 at 19:08 -0800, David Rientjes wrote: > > On Mon, 6 Jan 2014, Davidlohr Bueso wrote: > > > > > > If Andrew agree, It would be great to merge 1-7 patches into mainline > > > > before your mutex approach. There are

Re: [RFC PATCH] sched: find the latest idle cpu

2014-01-14 Thread Alex Shi
On 01/15/2014 12:48 PM, Alex Shi wrote: > On 01/15/2014 12:31 PM, Michael wang wrote: >> Hi, Alex >> >> On 01/15/2014 12:07 PM, Alex Shi wrote: >> [snip] } >>> +#ifdef CONFIG_NO_HZ_COMMON >>> + /* >>> +* Coarsely to get the latest idle cpu for shorter latency

Re: [RFC PATCH] sched: find the latest idle cpu

2014-01-14 Thread Alex Shi
On 01/15/2014 12:31 PM, Michael wang wrote: > Hi, Alex > > On 01/15/2014 12:07 PM, Alex Shi wrote: > [snip]} >> +#ifdef CONFIG_NO_HZ_COMMON >> +/* >> + * Coarsely to get the latest idle cpu for shorter latency and >> + * possible power benefit.

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

2014-01-14 Thread Stephen Rothwell
Hi Eric, Today's linux-next merge of the audit tree got a conflict in include/net/xfrm.h between commit d511337a1eda ("xfrm.h: Remove extern from function prototypes") from Linus' tree and commit 4440e8548153 ("audit: convert all sessionid declaration to unsigned int") from the audit tree. I

[PATCH v9 2/5] qrwlock x86: Enable x86 to use queue read/write lock

2014-01-14 Thread Waiman Long
This patch makes the necessary changes at the x86 architecture specific layer to enable the presence of the CONFIG_QUEUE_RWLOCK kernel option to replace the read/write lock by the queue read/write lock. It also enables the CONFIG_QUEUE_RWLOCK option by default for x86 which will force the use of

[PATCH v9 1/5] qrwlock: A queue read/write lock implementation

2014-01-14 Thread Waiman Long
This patch introduces a new read/write lock implementation that put waiting readers and writers into a queue instead of actively contending the lock like the current read/write lock implementation. This will improve performance in highly contended situation by reducing the cache line bouncing

[PATCH v9 0/5] qrwlock: Introducing a queue read/write lock implementation

2014-01-14 Thread Waiman Long
v8->v9: - Rebase to the tip branch which has the PeterZ's smp_load_acquire()/smp_store_release() patch. - Only pass integer type arguments to smp_load_acquire() & smp_store_release() functions. - Add a new patch to make any data type less than or equal to long as atomic or native in

[PATCH v9 4/5] qrwlock: Use smp_store_release() in write_unlock()

2014-01-14 Thread Waiman Long
This patch modifies the queue_write_unlock() function to use the new smp_store_release() function (currently in tip). It also removes the temporary implementation of smp_load_acquire() and smp_store_release() function in qrwlock.c. This patch will use atomic subtraction instead if the writer

[PATCH v9 3/5] qrwlock, x86 - Treat all data type not bigger than long as atomic in x86

2014-01-14 Thread Waiman Long
The generic __native_word() macro defined in include/linux/compiler.h only allows "int" and "long" data types to be treated as native and atomic. The x86 architecture, however, allow the use of char and short data types as atomic as well. This patch extends the data type allowed in the

[PATCH v9 5/5] qrwlock: Use the mcs_spinlock helper functions for MCS queuing

2014-01-14 Thread Waiman Long
There is a pending MCS lock patch series that adds generic MCS lock helper functions to do MCS-style locking. This patch will enable the queue rwlock to use that generic MCS lock/unlock primitives for internal queuing. This patch should only be merged after the merging of that generic MCS locking

Re: [PATCH v3 13/14] mm, hugetlb: retry if failed to allocate and there is concurrent user

2014-01-14 Thread Davidlohr Bueso
On Tue, 2014-01-14 at 19:08 -0800, David Rientjes wrote: > On Mon, 6 Jan 2014, Davidlohr Bueso wrote: > > > > If Andrew agree, It would be great to merge 1-7 patches into mainline > > > before your mutex approach. There are some of clean-up patches and, IMO, > > > it makes the code more readable

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

2014-01-14 Thread Mike Snitzer
On Tue, Jan 14 2014 at 10:52pm -0500, Stephen Rothwell wrote: > Hi all, > > After merging the device-mapper tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > ERROR: ".dm_bufio_get_device_size" [drivers/md/dm-snapshot.ko] undefined! > ERROR: ".dm_bufio_release"

Re: [RFC PATCH] sched: find the latest idle cpu

2014-01-14 Thread Michael wang
Hi, Alex On 01/15/2014 12:07 PM, Alex Shi wrote: [snip] } > +#ifdef CONFIG_NO_HZ_COMMON > + /* > + * Coarsely to get the latest idle cpu for shorter latency and > + * possible power benefit. > + */ > + if (!min_load) { > +

Re: [PATCH 3/3] zram: rework reported to end-user zram statistics

2014-01-14 Thread Minchan Kim
Hello Sergey, On Tue, Jan 14, 2014 at 12:37:40PM +0300, Sergey Senozhatsky wrote: > 1) Introduce ZRAM_ATTR_RO macro to generate zram atomic64_t stats > `show' functions and reduce code duplication. > > 2) Account and report back to user numbers of failed READ and WRITE > operations. > > 3)

linux-next: manual merge of the iommu tree with the drm tree

2014-01-14 Thread Stephen Rothwell
Hi Joerg, Today's linux-next merge of the iommu tree got a conflict in drivers/gpu/drm/msm/Kconfig between commit 3083894f7f29 ("drm/msm: COMPILE_TEST support") from the drm tree and commit 4c071c7b851b ("drm/msm: Fix link error with !MSM_IOMMU") from the iommu tree. I fixed it up (see below)

[PATCH] misc: sram: cleanup the code

2014-01-14 Thread Xiubo Li
Since the devm_gen_pool_create() is used, so the gen_pool_destroy() here is redundant. Signed-off-by: Xiubo Li --- drivers/misc/sram.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c index afe66571..e3e421d 100644 --- a/drivers/misc/sram.c +++

Notifying on empty cgroup

2014-01-14 Thread Victor Porton
I want to write software which needs to receive a signal when the cgroup created by it becomes empty. (After this the empty cgroup should be deleted just not to clutter the memory.) If the kernel does not support such notifications, it should be improved. This functionality is crucial for some

[RFC PATCH] sched: find the latest idle cpu

2014-01-14 Thread Alex Shi
Currently we just try to find least load cpu. If some cpus idled, we just pick the first cpu in cpu mask. In fact we can get the interrupted idle cpu or the latest idled cpu, then we may get the benefit from both latency and power. The selected cpu maybe not the best, since other cpu may be

linux-next: manual merge of the md tree with the block tree

2014-01-14 Thread Stephen Rothwell
Hi Neil, Today's linux-next merge of the md tree got a conflict in drivers/md/raid10.c between commit 4f024f3797c4 ("block: Abstract out bvec iterator") from the block tree and commit b50c259e25d9 ("md/raid10: fix two bugs in handling of known-bad-blocks") from the md tree. I fixed it up (see

Re: [PATCH v4 1/3] Send loginuid and sessionid in SCM_AUDIT

2014-01-14 Thread Richard Guy Briggs
On 14/01/13, Jan Kaluza wrote: > Server-like processes in many cases need credentials and other > metadata of the peer, to decide if the calling process is allowed to > request a specific action, or the server just wants to log away this > type of information for auditing tasks. > > The current

Re: [STABLE] find missing bug fixes in a stable kernel

2014-01-14 Thread Greg Kroah-Hartman
On Tue, Jan 14, 2014 at 09:37:22AM +0800, Li Zefan wrote: > On 2014/1/13 23:57, Greg Kroah-Hartman wrote: > > On Mon, Jan 13, 2014 at 03:28:11PM +0800, Li Zefan wrote: > >> We have several long-term and extended stable kernels, and it's possible > >> that a bug fix is in some stable versions but

Re: [PATCH v4 2/3] Send comm and cmdline in SCM_PROCINFO

2014-01-14 Thread Richard Guy Briggs
On 14/01/13, Jan Kaluza wrote: > Server-like processes in many cases need credentials and other > metadata of the peer, to decide if the calling process is allowed to > request a specific action, or the server just wants to log away this > type of information for auditing tasks. > > The current

linux-next: manual merge of the md tree with the tree

2014-01-14 Thread Stephen Rothwell
Hi Neil, Today's linux-next merge of the md tree got a conflict in drivers/md/raid1.c between commit 4f024f3797c4 ("block: Abstract out bvec iterator") from the block tree and commit 41a336e01188 ("md/raid1: fix request counting bug in new 'barrier' code") from the md tree. I fixed it up (a line

Re: [PATCH v4] Staging: comedi: convert while loop to timeout in ni_mio_common.c

2014-01-14 Thread Greg KH
On Tue, Jan 14, 2014 at 06:23:05PM -0600, Chase Southwood wrote: > This patch for ni_mio_common.c changes out a while loop for a timeout, > which is preferred. > > Signed-off-by: Chase Southwood > --- > > OK, here's another go at it. Hopefully everything looks more correct > this time. Greg,

Re: [patch 7/9] mm: thrash detection-based file cache sizing

2014-01-14 Thread Zhang Yanfei
Hello On 01/15/2014 10:57 AM, Bob Liu wrote: > > On 01/15/2014 03:16 AM, Johannes Weiner wrote: >> On Tue, Jan 14, 2014 at 09:01:09AM +0800, Bob Liu wrote: >>> Hi Johannes, >>> >>> On 01/11/2014 02:10 AM, Johannes Weiner wrote: The VM maintains cached filesystem pages on two types of lists.

linux-next: build failure after merge of the device-mapper tree

2014-01-14 Thread Stephen Rothwell
] undefined! ERROR: ".dm_bufio_client_create" [drivers/md/dm-snapshot.ko] undefined! ERROR: ".dm_bufio_read" [drivers/md/dm-snapshot.ko] undefined! Presumably caused by commit b41bf7440bcf ("dm snapshot: use dm-bufio"). I have used the device-mapper tree from next-

Re: [RFC] sysfs_rename_link() and its usage

2014-01-14 Thread Ding Tianhong
On 2014/1/15 1:17, Veaceslav Falico wrote: > Hi, > > I'm hitting a strange issue and/or I'm completely lost in sysfs internals. > > Consider having two net_device *a, *b; which are registered normally. > Now, to create a link from /sys/class/net/a->name/linkname to b, one should > use: > >

Re: [PATCH 1/2 v2] ixgbe: define IXGBE_MAX_VFS_DRV_LIMIT macro and cleanup const 63

2014-01-14 Thread Brown, Aaron F
On Fri, 2013-12-27 at 01:02 -0800, Jeff Kirsher wrote: > On Wed, 2013-12-25 at 00:12 +0800, Ethan Zhao wrote: > > Because ixgbe driver limit the max number of VF functions could be > > enabled > > to 63, so define one macro IXGBE_MAX_VFS_DRV_LIMIT and cleanup the > > const 63 > > in code. > > > >

Re: [PATCH] mm: nobootmem: avoid type warning about alignment value

2014-01-14 Thread Nicolas Pitre
On Sun, 12 Jan 2014, Russell King - ARM Linux wrote: > This patch makes their types match exactly with x86's definitions of > the same, which is the basic problem: on ARM, they all took "int" values > and returned "int"s, which leads to min() in nobootmem.c complaining. > >

  1   2   3   4   5   6   7   8   9   10   >