[PATCHv2] cpufreq: Fix sysfs deadlock with concurrent hotplug/frequency switch

2012-07-20 Thread Stephen Boyd
Running one program that continuously hotplugs and replugs a cpu concurrently with another program that continuously writes to the scaling_setspeed node eventually deadlocks with: = [ INFO: possible recursive locking detected ] 3.4.0 #37 Tainted: G

Procfs race condition bug

2012-07-20 Thread Mike Cardwell
I *think* I've uncovered a race condition bug in procfs. If I attempt to open a file in /proc/net, eg /proc/net/tcp it works fine, but if I spawn a POSIX thread and attempt to do it from there, it *usually* fails with a No such file or directory, but some times succeeds. If I do a system call

Re: psmouse synaptics: hardware appears to be different bail out

2012-07-20 Thread Andreas Mohr
Hi, On Mon, Jul 16, 2012 at 03:07:19PM -0700, Dmitry Torokhov wrote: On Mon, Jul 16, 2012 at 11:44:53PM +0200, Andreas Mohr wrote: Hi, just found the following in dmesg after resume (currently running -rc7): [ 9312.672073] psmouse serio2: synaptics: hardware appears to be

Re: [PATCH 2/2] cpu: intel, amd: mask cleared cpuid features

2012-07-20 Thread Vladimir Davydov
On Jul 20, 2012, at 9:20 PM, H. Peter Anvin wrote: On 07/20/2012 09:37 AM, Vladimir Davydov wrote: If 'clearcpuid=N' is specified in boot options, CPU feature #N won't be reported in /proc/cpuinfo and used by the kernel. However, if a userpsace process checks CPU features directly using the

Re: [PATCH] gianfar: add support for wake-on-packet

2012-07-20 Thread David Miller
From: Zhao Chenhui chenhui.z...@freescale.com Date: Fri, 20 Jul 2012 20:52:03 +0800 Note: The local ip/mac address is the ethernet primary IP/MAC address of the station. Do not support multiple IP/MAC addresses. I'm not applying this. There is no such concept of primary IP address for

Re: [PATCHSET] workqueue: reimplement CPU hotplug to keep idle workers

2012-07-20 Thread Peter Zijlstra
On Fri, 2012-07-20 at 10:50 -0700, Tejun Heo wrote: Also, re-binding busy workers is easy. The idle ones are difficult and we have to do that anyway for PM optimization. What would be the benefit of not re-binding busy ones at the risk of continually transferring workers to another CPU given

Re: [PATCH] atl1c: fix issue of io access mode for AR8152 v2.1

2012-07-20 Thread David Miller
From: cj...@qca.qualcomm.com Date: Fri, 20 Jul 2012 11:01:58 +0800 When io access mode is enabled by BOOTROM or BIOS for AR8152 v2.1, the register can't be read/write by memory access mode. Clearing Bit 8 of Register 0x21c could fixed the issue. Signed-off-by: Cloud Ren

Re: [Patch 0/7] Per cpu thread hotplug infrastructure - V3

2012-07-20 Thread Srivatsa S. Bhat
On 07/20/2012 11:23 PM, Paul E. McKenney wrote: On Fri, Jul 20, 2012 at 08:30:30PM +0530, Srivatsa S. Bhat wrote: On 07/20/2012 08:05 PM, Paul E. McKenney wrote: On Fri, Jul 20, 2012 at 06:47:30PM +0530, Srivatsa S. Bhat wrote: On 07/19/2012 05:24 AM, Paul E. McKenney wrote: On Wed, Jul 18,

Re: [PATCH v2] Input: synaptics - use firmware data for Cr-48

2012-07-20 Thread Chase Douglas
On 07/20/2012 02:03 AM, Daniel Kurtz wrote: * Leave the device as SEMI_MT, but provide the real locations, and allow userspace to determine the device vendor/model/etc. If userspace knows that a specific device behaves in a specific way, it can do its own quirking handling. Given the specificity

Re: [PATCHSET] workqueue: reimplement CPU hotplug to keep idle workers

2012-07-20 Thread Tejun Heo
Hello, On Fri, Jul 20, 2012 at 08:22:30PM +0200, Peter Zijlstra wrote: I really think people who use hotplug at high frequencies are on drugs and doing it wrong. I don't know. It does make some sense. It's not like we have any other mechanism to keep some processors completely quiesient,

Re: [ 11/37] sched/nohz: Rewrite and fix load-avg computation -- again

2012-07-20 Thread Peter Zijlstra
On Fri, 2012-07-20 at 12:13 -0500, Jonathan Nieder wrote: Peter Zijlstra wrote: On Tue, 2012-07-17 at 19:16 -0500, Jonathan Nieder wrote: I'm thrilled to see this regression fix for stable@, but are we really really sure that it won't cause new regressions? Doug Smythies ran a ~68

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

2012-07-20 Thread Geert Uytterhoeven
Hi Alan, David, On Fri, Jul 13, 2012 at 1:10 PM, Alan Cox a...@lxorguk.ukuu.org.uk wrote: On Fri, 13 Jul 2012 14:13:45 +1000 Stephen Rothwell s...@canb.auug.org.au wrote: After merging the tty tree, today's linux-next build (x86_64 allmodconfig) failed like this:

Re: linux-next: manual merge of the staging tree with the target-merge tree

2012-07-20 Thread Michael S. Tsirkin
On Fri, Jul 20, 2012 at 11:03:58AM -0700, Greg KH wrote: On Fri, Jul 20, 2012 at 10:52:58AM -0700, Nicholas A. Bellinger wrote: Hi Greg, On Thu, 2012-07-19 at 16:55 -0700, Greg KH wrote: On Thu, Jul 19, 2012 at 02:53:01PM +1000, Stephen Rothwell wrote: Hi Greg, Today's

netfilter,rcu: hang in nf_conntrack_net_exit

2012-07-20 Thread Sasha Levin
Hi all, I've stumbled on the following while fuzzing with trinity inside a KVM tools guest, using the latest -next kernel. [ 483.990135] INFO: task kworker/u:0:6 blocked for more than 120 seconds. [ 483.991328] echo 0 /proc/sys/kernel/hung_task_timeout_secs disables this message. [

Re: linux-next: Tree for July 20 (gfs2)

2012-07-20 Thread Steven Whitehouse
Hi, On Fri, 2012-07-20 at 09:07 -0700, Randy Dunlap wrote: On 07/19/2012 10:13 PM, Stephen Rothwell wrote: Hi all, Changes since 20120719: on i386 (modular): ERROR: __divdi3 [fs/gfs2/gfs2.ko] undefined! or builtin: fs/built-in.o: In function `gfs2_fallocate':

[RFC] how to mark pfn ranges as unallocatable for kexec

2012-07-20 Thread Olaf Hering
I'm working on kexec support for a ballooned (Xen PVonHVM) guests. I have a few questions about how to tweak the memory allocator. To preserve the overall memory footprint of a ballooned guest during the kexec boot the old kernel needs to unballoon/populate certain memory areas, and later the

[PATCH] drm, ast_fb: Fix a small leak in astfb_create()

2012-07-20 Thread Jesper Juhl
We have this code: ... sysram = vmalloc(size); if (!sysram) return -ENOMEM; info = framebuffer_alloc(0, device); if (!info) { ret = -ENOMEM; goto out; } ... We'll leak the memory allocated to 'sysram' if the

[PATCH] drm, cirrus_fbdev: Fix leak in cirrusfb_create()

2012-07-20 Thread Jesper Juhl
We have this code: ... sysram = vmalloc(size); if (!sysram) return -ENOMEM; info = framebuffer_alloc(0, device); if (info == NULL) return -ENOMEM; ... If the vmalloc() call succeeds but the framebuffer_alloc() call subsequently

[PATCH 2/3] futex: Fix bug in WARN_ON for NULL q.pi_state

2012-07-20 Thread Darren Hart
The WARN_ON in futex_wait_requeue_pi() for a NULL q.pi_state was testing the address (q.pi_state) of the pointer instead of the value (q.pi_state) of the pointer. Correct it accordingly. Signed-off-by: Darren Hart dvh...@linux.intel.com CC: Dave Jones da...@redhat.com CC: Thomas Gleixner

[PATCH 0/3] futex: Fix issues found with trinity and static analysis

2012-07-20 Thread Darren Hart
Dave Jones and Dan Carpenter reported issues uncovered via trinity and static analysis respectively. The following changes since commit 85efc72a0218335324d358ac479a04c16316fd4d: Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client (2012-07-19 16:11:28

[PATCH 3/3] futex: Forbid uaddr == uaddr2 in futex_wait_requeue_pi()

2012-07-20 Thread Darren Hart
If uaddr == uaddr2, then we have broken the rule of only requeueing from a non-pi futex to a pi futex with this call. If we attempt this, as the trinity test suite manages to do, we miss early wakeups as q.key is equal to key2 (because they are the same uaddr). We will then attempt to dereference

Re: [PATCH v2] leds: add new lp8788 led driver

2012-07-20 Thread Bryan Wu
On Fri, Jul 20, 2012 at 11:49 PM, Shuah Khan shuahk...@gmail.com wrote: On Fri, 2012-07-20 at 08:43 +, Kim, Milo wrote: TI LP8788 PMU has the current sink as the keyboard led driver. The brightness is controlled by the i2c commands. Configurable parameters can be defined in the platform

[PATCH 1/3] futex: Test for pi_mutex on fault in futex_wait_requeue_pi

2012-07-20 Thread Darren Hart
If fixup_pi_state_owner() faults, pi_mutex may be NULL. Test for pi_mutex != NULL before testing the owner against current and possibly unlocking it. Signed-off-by: Darren Hart dvh...@linux.intel.com CC: Dave Jones da...@redhat.com CC: Dan Carpenter dan.carpen...@oracle.com CC: Thomas Gleixner

RE: [RFC][PATCH v2 2/3] Hold multiple logs

2012-07-20 Thread Seiji Aguchi
Tony, The big question is what happens when EFI runs out of space. According to EFI specification, set_variable service returns EFI_OUT_OF_RESOURCES. If it doesn't work, the firmware should be fixed. Matthew avoided the question by implementing the just one record policy. I think we need to

[ANNOUNCE] 3.0.36-rt58

2012-07-20 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.0.36-rt58 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git Head SHA1: 0a085d25fb3ae4f738a50c1e089be936e56e2a3a Or to build 3.0.36-rt58 directly, the following

[PATCH] [IA64] aliasing-test: Remember to close fd on error in read_rom()

2012-07-20 Thread Jesper Juhl
Signed-off-by: Jesper Juhl j...@chaosbits.net --- Documentation/ia64/aliasing-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/ia64/aliasing-test.c b/Documentation/ia64/aliasing-test.c index 5caa2af..62a190d 100644 --- a/Documentation/ia64/aliasing-test.c +++

[PATCHv3 0/6] tun zerocopy support

2012-07-20 Thread Michael S. Tsirkin
This adds support for experimental zero copy transmit to tun. This includes some patches from Ian's patchset to support zerocopy with tun, so it should help that work progress: we are still trying to figure out how to make everything work properly with tcp but tun seems easier, and it's helpful

[PATCHv3 1/6] skbuff: add an api to orphan frags

2012-07-20 Thread Michael S. Tsirkin
Many places do if ((skb_shinfo(skb)-tx_flags SKBTX_DEV_ZEROCOPY)) skb_copy_ubufs(skb, gfp_mask); to copy and invoke frag destructors if necessary. Add an inline helper for this. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/linux/skbuff.h | 16

[PATCHv3 4/6] tun: orphan frags on xmit

2012-07-20 Thread Michael S. Tsirkin
tun xmit is actually receive of the internal tun socket. Orphan the frags same as we do for normal rx path. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/net/tun.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index f3a454c..b95a7f4

[PATCHv3 5/6] net: orphan frags on receive

2012-07-20 Thread Michael S. Tsirkin
zero copy packets are normally sent to the outside network, but bridging, tun etc might loop them back to host networking stack. If this happens destructors will never be called, so orphan the frags immediately on receive. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- net/core/dev.c | 7

[PATCHv3 3/6] skbuff: export skb_copy_ubufs

2012-07-20 Thread Michael S. Tsirkin
Export skb_copy_ubufs so that modules can orphan frags. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- net/core/skbuff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 438bbc5..368f65c 100644 --- a/net/core/skbuff.c +++

Re: [PATCHv2] kvm: fix race with level interrupts

2012-07-20 Thread Marcelo Tosatti
On Thu, Jul 19, 2012 at 01:45:20PM +0300, Michael S. Tsirkin wrote: When more than 1 source id is in use for the same GSI, we have the following race related to handling irq_states race: CPU 0 clears bit 0. CPU 0 read irq_state as 0. CPU 1 sets level to 1. CPU 1 calls kvm_ioapic_set_irq(1).

Re: [PATCH] kvm: drop parameter validation

2012-07-20 Thread Marcelo Tosatti
On Thu, Jul 19, 2012 at 02:13:13PM +0300, Michael S. Tsirkin wrote: We validate irq pin number when routing is setup, so code handling illegal irq # in pic and ioapic on each injection is never called. Drop it. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- Note: this is on top

[PATCHv3 6/6] tun: experimental zero copy tx support

2012-07-20 Thread Michael S. Tsirkin
Let vhost-net utilize zero copy tx when used with tun. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- drivers/net/tun.c | 146 +- 1 file changed, 134 insertions(+), 12 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c

sched: care and feeding of load-avg code (Re: [PATCH] sched: Folding nohz load accounting more accurate)

2012-07-20 Thread Jonathan Nieder
Hi, Doug Smythies wrote: On my computer, and from a different thread from yesterday, I let the proposed wang patch multiple processes test continue for another 24 hours. The png file showing the results is attached, also available at [1]. [...]

[PATCHv3 2/6] skbuff: convert to skb_orphan_frags

2012-07-20 Thread Michael S. Tsirkin
Reduce code duplication a bit using the new helper. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- net/core/skbuff.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index ccfcb7d..438bbc5 100644 ---

[PATCH] preempt/hardirq.h: Fix comment about PREEMPT_ACTIVE bit location

2012-07-20 Thread Srivatsa S. Bhat
PREEMPT_ACTIVE flag is bit 27, not 28. Fix the comment. Signed-off-by: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com --- include/linux/hardirq.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/hardirq.h b/include/linux/hardirq.h index bb7f309..305f23c

Re: [PATCH][RFC] XFS: Fix mem leak and possible NULL deref in xfs_setattr_nonsize()

2012-07-20 Thread Jesper Juhl
Ping ? This issue seems to still be present. Any chance we could merge the patch below? /Jesper On Mon, 6 Feb 2012, Jesper Juhl wrote: On Mon, 6 Feb 2012, Dave Chinner wrote: On Sun, Feb 05, 2012 at 10:23:44PM +0100, Jesper Juhl wrote: In xfs_setattr_nonsize(), xfs_trans_alloc() gets

Re: [PATCH RESEND 0/5] Add vhost-blk support

2012-07-20 Thread Michael S. Tsirkin
On Fri, Jul 13, 2012 at 04:55:06PM +0800, Asias He wrote: Hi folks, [I am resending to fix the broken thread in the previous one.] This patchset adds vhost-blk support. vhost-blk is a in kernel virito-blk device accelerator. Compared to userspace virtio-blk implementation, vhost-blk

Re: [PATCHSET] workqueue: reimplement CPU hotplug to keep idle workers

2012-07-20 Thread Rafael J. Wysocki
On Friday, July 20, 2012, Tejun Heo wrote: Hello, On Fri, Jul 20, 2012 at 08:22:30PM +0200, Peter Zijlstra wrote: I really think people who use hotplug at high frequencies are on drugs and doing it wrong. I don't know. It does make some sense. It's not like we have any other

Re: [PATCHSET] workqueue: reimplement CPU hotplug to keep idle workers

2012-07-20 Thread Tejun Heo
Hello, Rafael. On Fri, Jul 20, 2012 at 09:44:04PM +0200, Rafael J. Wysocki wrote: Well, there are use cases I'm not really familiar with. Pretty much the only use case I'm sufficiently familiar with is suspend/hibernate where we unplug all of the nonboot CPUs at one point. The other use

Re: [PATCHv2] cpufreq: Fix sysfs deadlock with concurrent hotplug/frequency switch

2012-07-20 Thread Rafael J. Wysocki
On Friday, July 20, 2012, Stephen Boyd wrote: Running one program that continuously hotplugs and replugs a cpu concurrently with another program that continuously writes to the scaling_setspeed node eventually deadlocks with: = [ INFO: possible

[RFC] net: further seperate dst_entry.__refcnt from cache contention

2012-07-20 Thread Nathan Zimmer
After some investigation on large machines I found that dst_entry.__refcnt particpates in false cache sharing issues that show when scaling past 12 threads who communicate via tcp with loopback addresses. I adjusted refcnt to be on its own cache line and that helped quite a bit. But perhaps a bit

Re: [PATCH v4 1/3] mm: introduce compaction and migration for virtio ballooned pages

2012-07-20 Thread Rafael Aquini
Howdy Minchan, Once again, thanks for raising such valuable feedback over here. On Wed, Jul 18, 2012 at 02:48:24PM +0900, Minchan Kim wrote: +/* __isolate_lru_page() counterpart for a ballooned page */ +static bool isolate_balloon_page(struct page *page) +{ + if

Re: [PATCH 2/9] KVM: x86: simplify read_emulated

2012-07-20 Thread Marcelo Tosatti
On Fri, Jul 20, 2012 at 09:15:44PM +0800, Xiao Guangrong wrote: On 07/20/2012 06:58 PM, Marcelo Tosatti wrote: On Fri, Jul 20, 2012 at 10:17:36AM +0800, Xiao Guangrong wrote: On 07/20/2012 07:58 AM, Marcelo Tosatti wrote: -} +rc = ctxt-ops-read_emulated(ctxt, addr,

rdpmc read performance issue

2012-07-20 Thread Vince Weaver
Hello I was testing out the newish rdpmc from userspace patches that made it into 3.4. (I was considering adding support to PAPI). However I've found that using rdpmc is *slower* than just using regular read. Am I doing something wrong? At least on this core2 system it's never faster to

Re: [RFC] net: further seperate dst_entry.__refcnt from cache contention

2012-07-20 Thread Eric Dumazet
On Fri, 2012-07-20 at 14:46 -0500, Nathan Zimmer wrote: After some investigation on large machines I found that dst_entry.__refcnt particpates in false cache sharing issues that show when scaling past 12 threads who communicate via tcp with loopback addresses. I adjusted refcnt to be on its

Re: [PATCH 2/2] cpu: intel, amd: mask cleared cpuid features

2012-07-20 Thread H. Peter Anvin
On 07/20/2012 11:21 AM, Vladimir Davydov wrote: I am a bit concerned about this patch: 1. it silently changes existing behavior. Yes, but who needs the current implementation of 'clearcpuid' which, in fact, just hides flags in /proc/cpuinfo while userspace apps will see and consequently use

Re: oops in kernel ( 3.4.x - 3.5rc )

2012-07-20 Thread Thadeu Lima de Souza Cascardo
On Fri, Jul 20, 2012 at 09:21:53AM -0400, Dave Jones wrote: On Fri, Jul 20, 2012 at 11:56:06AM +0200, nicolas prochazka wrote: [ 2384.900061] BUG: unable to handle kernel paging request at 0001002f That '1' looks like a random bit flip. Try running memtest86. Looks more a

vfork() / clone() with pthreads / setuid

2012-07-20 Thread Vishal K
Hello Kernel experts, From http://developers.sun.com/solaris/articles/subprocess/subprocess.html , I am curious to know if the following is already addressed in linux kernel for vfork() / clone() calls. The vfork(2) system call was also adopted in the Solaris OS. Much later, however, when

Re: [RFC] net: further seperate dst_entry.__refcnt from cache contention

2012-07-20 Thread David Miller
From: Eric Dumazet eric.duma...@gmail.com Date: Fri, 20 Jul 2012 22:16:51 +0200 Another idea concerning very hot dst would be to clone them on demand. The FIB info cached dsts could also be made per-cpu. And yes, the only reason I'm entertaining that idea now is the fact that we'll have the

[PATCH][Trivial][resend] Documentation: Add newline at end-of-file to files lacking one

2012-07-20 Thread Jesper Juhl
This patch simply adds a newline character at end-of-file to those files in Documentation/ that currently lack one. This is done for a few different reasons: A) It's rather annoying when you do cat some_file.txt that your prompt/cursor ends up at the end of the last line of output rather

Re: [PATCH 2/2] cpu: intel, amd: mask cleared cpuid features

2012-07-20 Thread Vladimir Davydov
On Jul 21, 2012, at 12:19 AM, H. Peter Anvin wrote: On 07/20/2012 11:21 AM, Vladimir Davydov wrote: I am a bit concerned about this patch: 1. it silently changes existing behavior. Yes, but who needs the current implementation of 'clearcpuid' which, in fact, just hides flags in

Re: [PATCH 0/3] dyndbg: dev_dbg bugfix + 2 trivials

2012-07-20 Thread Jason Baron
On Thu, Jul 19, 2012 at 01:46:19PM -0600, Jim Cromie wrote: 3 patches here, 1st is bugfix, others are trivial. 1- fix __dev_printk, which broke dev_dbg() prefix under CONFIG_DYNAMIC_DEBUG. Patch looks good, and would be really nice to get into 3.5. Kay, are you ok with this patch? 2-

[PATCH] dmi: Feed DMI table to /dev/random driver

2012-07-20 Thread Tony Luck
Send the entire DMI (SMBIOS) table to the /dev/random driver to help seed its pools. Signed-off-by: Tony Luck tony.l...@intel.com --- This looks a useful addition to your /dev/random series. There are lots of platform specific goodies in this table (BIOS version, system serial number and UUID,

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

2012-07-20 Thread Alan Cox
Today's build failed because there's a new user in the MIPS tree: arch/mips/cavium-octeon/serial.c http://kisskb.ellerman.id.au/kisskb/buildresult/6739341/ The version in the tree I have registers a platform device rather than calling into 8250 directly. That appears to be rather better

Re: oops in kernel ( 3.4.x - 3.5rc )

2012-07-20 Thread nicolas prochazka
Hello the problem is occured with : - linux kernel 3.4.5i do not test with 3.4.0 / 1 / 2 / 3 / 4, but i can if you want - linux kernel 3.5rc6 rc7 / do not test with other rc. the problem is not occured with : linux kernel 3.3.4 / 3.3.8 These servers are used for : - starting a lot of

Re: [PATCH RESEND 5/5] vhost-blk: Add vhost-blk support

2012-07-20 Thread Anthony Liguori
Michael S. Tsirkin m...@redhat.com writes: On Thu, Jul 19, 2012 at 08:05:42AM -0500, Anthony Liguori wrote: Of course, the million dollar question is why would using AIO in the kernel be faster than using AIO in userspace? Actually for me a more important question is how does it compare

Re: [PATCH 0/3] dyndbg: dev_dbg bugfix + 2 trivials

2012-07-20 Thread Greg KH
On Fri, Jul 20, 2012 at 04:38:58PM -0400, Jason Baron wrote: On Thu, Jul 19, 2012 at 01:46:19PM -0600, Jim Cromie wrote: 3 patches here, 1st is bugfix, others are trivial. 1- fix __dev_printk, which broke dev_dbg() prefix under CONFIG_DYNAMIC_DEBUG. Patch looks good, and would be

[PATCH] gpio: samsung: Fix off-by-one bug in gpio addresses

2012-07-20 Thread Sean Paul
Move gpc4 to the end of the automatically processed gpio controllers so we don't taint the automatic offset calculation. This bug caused all controllers coming after gpc4 to map to the incorrect address. The result is gpd1 0 0 0 0 would actually map to GPIO 0 in gpd0. Signed-off-by: Sean Paul

Re: [PATCH] dmi: Feed DMI table to /dev/random driver

2012-07-20 Thread Matt Mackall
On Fri, 2012-07-20 at 13:15 -0700, Tony Luck wrote: Send the entire DMI (SMBIOS) table to the /dev/random driver to help seed its pools. Signed-off-by: Tony Luck tony.l...@intel.com --- This looks a useful addition to your /dev/random series. There are lots of platform specific goodies

Re: oops in kernel ( 3.4.x - 3.5rc )

2012-07-20 Thread Thadeu Lima de Souza Cascardo
On Fri, Jul 20, 2012 at 10:52:40PM +0200, nicolas prochazka wrote: Hello the problem is occured with : - linux kernel 3.4.5i do not test with 3.4.0 / 1 / 2 / 3 / 4, but i can if you want - linux kernel 3.5rc6 rc7 / do not test with other rc. the problem is not occured with :

Re: [PATCH] gpio: samsung: Fix off-by-one bug in gpio addresses

2012-07-20 Thread Doug Anderson
Acked-by: Doug Anderson diand...@chromium.org --- On Fri, Jul 20, 2012 at 1:58 PM, Sean Paul seanp...@chromium.org wrote: Move gpc4 to the end of the automatically processed gpio controllers so we don't taint the automatic offset calculation. This bug caused all controllers coming after

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

2012-07-20 Thread Geert Uytterhoeven
Hi Alan, On Fri, Jul 20, 2012 at 10:55 PM, Alan Cox a...@lxorguk.ukuu.org.uk wrote: Today's build failed because there's a new user in the MIPS tree: arch/mips/cavium-octeon/serial.c http://kisskb.ellerman.id.au/kisskb/buildresult/6739341/ The version in the tree I have registers a platform

[PATCH -next] m68k/apollo: Rename timer to apollo_timer

2012-07-20 Thread Geert Uytterhoeven
In file included from include/linux/kgdb.h:17, from include/linux/fb.h:8, from drivers/video/dnfb.c:15: include/linux/serial_8250.h:71: error: expected identifier or ‘(’ before numeric constant include/linux/serial_8250.h:72: error: expected ‘;’ before ‘struct’

Re: [PATCH][Trivial][resend] Documentation: Add newline at end-of-file to files lacking one

2012-07-20 Thread Jiri Kosina
On Fri, 20 Jul 2012, Jesper Juhl wrote: This patch simply adds a newline character at end-of-file to those files in Documentation/ that currently lack one. This is done for a few different reasons: A) It's rather annoying when you do cat some_file.txt that your prompt/cursor ends up

[PATCH RFT] net: Fix Neptune ethernet driver to check dma mapping error

2012-07-20 Thread Shuah Khan
Request for testing, since I don't have the hardware to test. Fix Neptune ethernet driver to check dma mapping error after map_page() interface returns. Signed-off-by: Shuah Khan shuah.k...@hp.com Cc: sta...@vger.kernel.org

Re: [PATCH RFT] net: Fix Neptune ethernet driver to check dma mapping error

2012-07-20 Thread David Miller
From: Shuah Khan shuah.k...@hp.com Date: Fri, 20 Jul 2012 15:27:59 -0600 Request for testing, since I don't have the hardware to test. This is not how you post a patch. When you put those ---... there, GIT is going to

Re: [patch] tty: handle NULL parameters in free_tty_struct()

2012-07-20 Thread Jiri Slaby
On 07/20/2012 11:48 AM, Alan Cox wrote: On Fri, 20 Jul 2012 10:06:34 +0300 Dan Carpenter dan.carpen...@oracle.com wrote: We sometimes pass NULL pointers to free_tty_struct(). One example where it can happen is in the error handling code in pty_common_install(). Signed-off-by: Dan

Re: [PATCH RFT] net: Fix Neptune ethernet driver to check dma mapping error

2012-07-20 Thread Shuah Khan
On Fri, 2012-07-20 at 14:30 -0700, David Miller wrote: From: Shuah Khan shuah.k...@hp.com Date: Fri, 20 Jul 2012 15:27:59 -0600 Request for testing, since I don't have the hardware to test. This is not how you post a patch.

[PATCH RFT RESEND] net: Fix Neptune ethernet driver to check dma mapping error

2012-07-20 Thread Shuah Khan
Fix Neptune ethernet driver to check dma mapping error after map_page() interface returns. Signed-off-by: Shuah Khan shuah.k...@hp.com --- drivers/net/ethernet/sun/niu.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/sun/niu.c b/drivers/net/ethernet/sun/niu.c

[PATCH] forcedeth: spin_unlock_irq in interrupt handler fix

2012-07-20 Thread Denis Efremov
The replacement of spin_lock_irq/spin_unlock_irq pair in interrupt handler by spin_lock_irqsave/spin_lock_irqrestore pair. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Denis Efremov yefremov.de...@gmail.com --- drivers/net/ethernet/nvidia/forcedeth.c |4 ++--

Re: [PATCH 1/9] workqueue: perform cpu down operations from low priority cpu_notifier()

2012-07-20 Thread Paul E. McKenney
On Tue, Jul 17, 2012 at 10:12:21AM -0700, Tejun Heo wrote: Currently, all workqueue cpu hotplug operations run off CPU_PRI_WORKQUEUE which is higher than normal notifiers. This is to ensure that workqueue is up and running while bringing up a CPU before other notifiers try to use workqueue on

[tip:x86/cpufeature] x86, cpufeature: Add the RDSEED and ADX features

2012-07-20 Thread tip-bot for H. Peter Anvin
Commit-ID: 30d5c4546a7dae29a1aa76abdb69a78bb00136be Gitweb: http://git.kernel.org/tip/30d5c4546a7dae29a1aa76abdb69a78bb00136be Author: H. Peter Anvin h...@zytor.com AuthorDate: Fri, 20 Jul 2012 13:35:06 -0700 Committer: H. Peter Anvin h...@zytor.com CommitDate: Fri, 20 Jul 2012 13:36:41

[PATCH 01/13] UAPI: Refer to the DRM UAPI headers with ... and from certain headers only

2012-07-20 Thread David Howells
Only refer to the DRM UAPI headers (drm.h, drm_mode.h and drm_sarea.h) from within drmP.h and drm_crtc.h, and use #include ... to refer to them so that when the UAPI split happens they can still be accessed. Signed-off-by: David Howells dhowe...@redhat.com Acked-by: Dave Airlie airl...@redhat.com

[PATCH 00/13] UAPI header file split

2012-07-20 Thread David Howells
Here's the second installment of patches from step 1 of my plan below to clean up the kernel header files and sort out the inclusion recursion problems. Note that these patches will need regenerating if the header files they alter change before they're applied. However, the disintegration is

[PATCH 02/13] UAPI: (Scripted) Remove redundant DRM UAPI header #inclusions from drivers/gpu/.

2012-07-20 Thread David Howells
Remove redundant DRM UAPI header #inclusions from drivers/gpu/. Remove redundant #inclusions of core DRM UAPI headers (drm.h, drm_mode.h and drm_sarea.h). They are now #included via drmP.h and drm_crtc.h via a preceding patch. Without this patch and the patch to make include the UAPI headers

[PATCH 05/13] UAPI: Partition the header include path sets and add uapi/ header directories

2012-07-20 Thread David Howells
Partition the header include path flags into two sets, one for kernelspace builds and one for userspace builds. Add the following directories to build after the ordinary include directories so that #include will pick up the UAPI header directly if the kernel header has been moved there. The

[PATCH 06/13] UAPI: (Scripted) Set up UAPI Kbuild files

2012-07-20 Thread David Howells
Set up empty UAPI Kbuild files to be populated by the header splitter. Signed-off-by: David Howells dhowe...@redhat.com --- arch/alpha/include/uapi/asm/Kbuild |3 +++ arch/arm/include/uapi/asm/Kbuild|3 +++ arch/avr32/include/uapi/asm/Kbuild |3 +++

[PATCH 07/13] UAPI: x86: Fix the test_get_len tool

2012-07-20 Thread David Howells
Fix the x86 test_get_len tool to have the right include paths in the right order (it includes a non-exported kernel header directly), otherwise errors like the following occur: /data/fs/linux-2.6-hdr/include/linux/types.h:18:26: error: conflicting types for 'fd_set'

[PATCH 08/13] UAPI: x86: Fix insn_sanity build failure after UAPI split

2012-07-20 Thread David Howells
Fix a build failure in the x86 insn_sanity program after the UAPI split. The problem is that insn_sanity.c #includes arch/x86/lib/insn.c - which uses the kernel string header. This leads to conflicts for various definitions against the /usr/include/ headers. linux/string.h can be replaced with

[PATCH 09/13] UAPI: Set up uapi/asm/Kbuild.asm

2012-07-20 Thread David Howells
Set up uapi/asm/Kbuild.asm. This requires the mandatory headers to be dynamically detected. The same goes for include/asm/Kbuild.asm. The problem is that the header files will be split or moved one at a time, but each header file in Kbuild.asm's list applies to all arch headers of that name

[PATCH 10/13] UAPI: Move linux/version.h

2012-07-20 Thread David Howells
Move include/linux/version.h to the include/generated/ header directory. A later patch will move it to include/uapi/generated/. This allows us to get rid of the objhdr-y list. Signed-off-by: David Howells dhowe...@redhat.com --- Makefile | 13 +++-- include/linux/Kbuild |

Re: [PATCH 1/9] workqueue: perform cpu down operations from low priority cpu_notifier()

2012-07-20 Thread Tejun Heo
Hello, Paul. On Fri, Jul 20, 2012 at 02:52:07PM -0700, Paul E. McKenney wrote: Fix it by using different priorities for up and down notifiers - high priority for up operations and low priority for down operations. Cool!!! This certainly provides another data point in favor of running

[PATCH 11/13] UAPI: Remove the objhdr-y export list

2012-07-20 Thread David Howells
Remove the objhdr-y export list as it is no longer used. genhdr-y should be used instead. Signed-off-by: David Howells dhowe...@redhat.com --- Documentation/kbuild/makefiles.txt |8 scripts/Makefile.headersinst |7 ++- 2 files changed, 6 insertions(+), 9 deletions(-)

[PATCH 12/13] UAPI: x86: Differentiate the generated UAPI and internal headers

2012-07-20 Thread David Howells
Differentiate the generated UAPI and internal headers during generation such that the UAPI headers can be installed elsewhere. A later patch will use this to move the UAPI headers to: arch/x86/include/generated/uapi/asm/ to make them easier to handle. A previous patch added a -I for

[PATCH 13/13] UAPI: Plumb the UAPI Kbuilds into the user header installation and checking

2012-07-20 Thread David Howells
Plumb the UAPI Kbuilds into the user header installation and checking system. As the headers are split the entries will be transferred across from the old Kbuild files to the UAPI Kbuild files. The changes made in this commit are: (1) Exported generated files (of which there are currently four)

[PATCH] [RFC] [SCSI] mpt fusion: add support for 0x1000/0x0055

2012-07-20 Thread Jiri Kosina
The device identifies itself as 0d:05.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068 PCI-X Fusion-MPT SAS (rev 01) Subsystem: NEC Corporation SAS1068 and seems to be functionally compatible with 0x0054 PID. The request for support of this device has been raised on mailinglists

[PATCH] Shorten constant names for EFI variable attributes

2012-07-20 Thread Khalid Aziz
Replace very long constants for EFI variable attributes with shorter and more convenient names. Also create an alias for the current longer names so as to not break compatibility with current API since these constants are used by userspace programs. This patch depends on patch

Re: [PATCH] Shorten constant names for EFI variable attributes

2012-07-20 Thread H. Peter Anvin
On 07/20/2012 03:08 PM, Khalid Aziz wrote: Replace very long constants for EFI variable attributes with shorter and more convenient names. Also create an alias for the current longer names so as to not break compatibility with current API since these constants are used by userspace programs.

Re: [PATCH v4 24/25] memcg/slub: shrink dead caches

2012-07-20 Thread Glauber Costa
On 07/06/2012 12:16 PM, Christoph Lameter wrote: On Mon, 18 Jun 2012, Glauber Costa wrote: In the slub allocator, when the last object of a page goes away, we don't necessarily free it - there is not necessarily a test for empty page in any slab_free path. This is the same btw in SLAB

Re: [PATCH] Shorten constant names for EFI variable attributes

2012-07-20 Thread Khalid Aziz
On 07/20/2012 04:10 PM, H. Peter Anvin wrote: On 07/20/2012 03:08 PM, Khalid Aziz wrote: Replace very long constants for EFI variable attributes with shorter and more convenient names. Also create an alias for the current longer names so as to not break compatibility with current API since

[tip:x86/mm] x86/tlb: Fix build warning and crash when building for !SMP

2012-07-20 Thread tip-bot for Alex Shi
Commit-ID: 7efa1c87963d23cc57ba40c07316d3e28cc75a3a Gitweb: http://git.kernel.org/tip/7efa1c87963d23cc57ba40c07316d3e28cc75a3a Author: Alex Shi alex@intel.com AuthorDate: Fri, 20 Jul 2012 09:18:23 +0800 Committer: H. Peter Anvin h...@zytor.com CommitDate: Fri, 20 Jul 2012 15:01:48

Re: [PATCH] Shorten constant names for EFI variable attributes

2012-07-20 Thread H. Peter Anvin
On 07/20/2012 03:30 PM, Khalid Aziz wrote: On 07/20/2012 04:10 PM, H. Peter Anvin wrote: On 07/20/2012 03:08 PM, Khalid Aziz wrote: Replace very long constants for EFI variable attributes with shorter and more convenient names. Also create an alias for the current longer names so as to not

Re: ibmveth bug?

2012-07-20 Thread Nishanth Aravamudan
Ping on this ... we've tripped the same issue on a different system, it would appear. Would appreciate if anyone can provide answers to the questions below. Thanks, Nish On 15.05.2012 [10:01:41 -0700], Nishanth Aravamudan wrote: Hi Santiago, Are you still working on ibmveth? I've found a

Re: [PATCH] Shorten constant names for EFI variable attributes

2012-07-20 Thread Khalid Aziz
On 07/20/2012 04:34 PM, H. Peter Anvin wrote: On 07/20/2012 03:30 PM, Khalid Aziz wrote: This patch is based upon earlier discussion at https://lkml.org/lkml/2012/7/13/320. You are right that EFI specification uses exactly these long names for the constants, but does that mean kernel must

gateway icmp redirect handling problem (3.0.36-3.0.23)

2012-07-20 Thread Simon Roscic
Hello, I'm experiencing the following problem with kernel versions 3.0.36 (down to 3.0.23): on our network we all have one default gateway, it's 10.1.1.254, but there are some networks for which we have another gateway and for this networks the default gateway sends an icmp redirect. lets

Re: oops in kernel ( 3.4.x - 3.5rc )

2012-07-20 Thread nicolas prochazka
Well done 1fd36adcd98c14d2fd97f545293c488775cb2823 : the bug occurs ( cf dump ) 1dce27c5aa6770e9d195f2bb7db1db3d4dde5591 : the bug not occurs Regards, Nicolas Prochazka. dump / 1fd36adcd98c14d2fd97f545293c488775cb2823 lloc_fd: slot 71 not NULL! alloc_fd: slot 71 not NULL! alloc_fd: slot 71

Re: linux-next: manual merge of the staging tree with the target-merge tree

2012-07-20 Thread Nicholas A. Bellinger
Hi Greg, On Fri, 2012-07-20 at 21:42 +0300, Michael S. Tsirkin wrote: On Fri, Jul 20, 2012 at 11:03:58AM -0700, Greg KH wrote: On Fri, Jul 20, 2012 at 10:52:58AM -0700, Nicholas A. Bellinger wrote: Hi Greg, SNIP This was a request from MST (CC'ed) in order to have TCM_VHOST show up

Re: [PATCH] forcedeth: spin_unlock_irq in interrupt handler fix

2012-07-20 Thread David Miller
From: Denis Efremov yefremov.de...@gmail.com Date: Sat, 21 Jul 2012 01:54:34 +0400 The replacement of spin_lock_irq/spin_unlock_irq pair in interrupt handler by spin_lock_irqsave/spin_lock_irqrestore pair. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Denis

<    1   2   3   4   5   6   7   8   9   10   >