[PATCH v4 0/5] zynq subarch cleanups

2012-10-24 Thread Josh Cartwright
Hey all- I think everything is in a good state to merge now, from here its a discussion of process. Thanks to everyone involved. --- Things have been relatively quiet on the Zynq front lately. This patchset does a bit of cleanup of the Zynq subarchitecture. It was the necessary set of things

Re: [RFC] Energy/power monitoring within the kernel

2012-10-24 Thread Guenter Roeck
On Wed, Oct 24, 2012 at 05:37:27PM +0100, Pawel Moll wrote: > On Tue, 2012-10-23 at 23:02 +0100, Guenter Roeck wrote: > > > Traditionally such data should be exposed to the user via hwmon sysfs > > > interface, and that's exactly what I did for "my" platform - I have > > > a

Re: [PATCH] Enable A20 using KBC for some MSI laptops to fix S3 resume

2012-10-24 Thread Ondrej Zary
On Wednesday 24 October 2012 21:36:04 H. Peter Anvin wrote: > Minor concern: it should do the wait for ready before sending each command. It was a hack and then I forgot to add the waits... Should I redo the patch? I'll not be able to test it as I have to return the machine. > "Rafael J.

Re: [PATCHv2] Input: omap4-keypad: Add pinctrl support

2012-10-24 Thread Felipe Balbi
Hi, On Wed, Oct 24, 2012 at 12:38:44PM -0700, Dmitry Torokhov wrote: > On Wednesday, October 24, 2012 10:10:42 PM Felipe Balbi wrote: > > > > > > > > > That is a valid concern and we'll need to find a compromise here. As I > > > said, > > WHAT ?? Silicon erratas are not a valid concern ? Power

Re: [REGRESSION] uml: signal.c build errors

2012-10-24 Thread Richard Weinberger
Am Wed, 24 Oct 2012 20:48:52 +0100 schrieb Matthew Leach : > > Richard Weinberger writes: > > Am Wed, 24 Oct 2012 00:18:34 +0100 > >> I have tracked this down to [1] where, indeed, the type of > >> sig_info is different; the second parameter in signal.c is > >> 'siginfo_t' where as in

Re: [PATCH v3 04/10] bug.h: directly include linux/compiler.h

2012-10-24 Thread Borislav Petkov
On Wed, Oct 24, 2012 at 11:33:55AM -0500, danielfsan...@att.net wrote: > Currently, we are only including asm/bug.h and then expecting that > linux/compiler.h will eventually be included to define __linktime_error > (used in BUILD_BUG_ON). This patch includes it directly for clarity and > to avoid

Re: [PATCH v4 10/10] thp: implement refcounting for huge zero page

2012-10-24 Thread Kirill A. Shutemov
On Wed, Oct 24, 2012 at 12:22:53PM -0700, Andrew Morton wrote: > On Wed, 24 Oct 2012 02:38:01 +0300 > "Kirill A. Shutemov" wrote: > > > On Tue, Oct 23, 2012 at 03:59:15PM -0700, Andrew Morton wrote: > > > On Tue, 23 Oct 2012 10:00:18 +0300 > > > "Kirill A. Shutemov" wrote: > > > > > > > >

[GIT PULL] cgroup fixes for v3.7-rc2

2012-10-24 Thread Tejun Heo
Hello, Linus. This pull request contains three fixes. Two are reverts of task_lock() removal in cgroup fork path. The optimizations incorrectly assumed that threadgroup_lock can protect process forks (as opposed to thread creations) too. Further cleanup of cgroup fork path is scheduled. The

Re: Apparent serious progressive ext4 data corruption bug in 3.6.3 (and other stable branches?)

2012-10-24 Thread Nix
On 24 Oct 2012, n...@esperi.org.uk uttered the following: > So, the net effect of this is that normally I get no journal recovery on > anything at all -- but sometimes, if umounting takes longer than a few > seconds, I reboot with not everything unmounted, and journal recovery > kicks in on

Re: [PATCH] add some drop_caches documentation and info messsge

2012-10-24 Thread Andrew Morton
On Wed, 24 Oct 2012 08:29:45 +0200 Michal Hocko wrote: > > > > > > + printk(KERN_NOTICE "%s (%d): dropped kernel caches: %d\n", > > > + current->comm, task_pid_nr(current), > > > sysctl_drop_caches); > > > > urgh. Are we really sure we want to do this? The system

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-24 Thread Jacob Shin
On Wed, Oct 24, 2012 at 11:53:16AM -0700, H. Peter Anvin wrote: > On 10/24/2012 09:48 AM, Jacob Shin wrote: > > > > hpa, we need this patch: https://lkml.org/lkml/2012/8/24/469 and the above > > 2 from Yinghai to handle corner case E820 layouts. > > > > I can apply Yinghai's patches, but the

Re: lots of suspicious RCU traces

2012-10-24 Thread Sergey Senozhatsky
On (10/24/12 12:41), Paul E. McKenney wrote: > On Wed, Oct 24, 2012 at 12:17:16PM -0700, Sergey Senozhatsky wrote: > > On (10/24/12 20:52), Oleg Nesterov wrote: > > > On 10/24, Sergey Senozhatsky wrote: > > > > > > > > On (10/24/12 20:06), Oleg Nesterov wrote: > > > > > On 10/24, Sergey

Re: Apparent serious progressive ext4 data corruption bug in 3.6.3 (and other stable branches?)

2012-10-24 Thread Nix
On 24 Oct 2012, Theodore Ts'o spake thusly: > Toralf, Nix, if you could try applying this patch (at the end of this > message), and let me know how and when the WARN_ON triggers, and if it > does, please send the empty_bug_workaround plus the WARN_ON(1) report. > I know about the case where a file

Re: [REGRESSION] uml: signal.c build errors

2012-10-24 Thread Matthew Leach
Richard Weinberger writes: > Am Wed, 24 Oct 2012 00:18:34 +0100 >> I have tracked this down to [1] where, indeed, the type of sig_info is >> different; the second parameter in signal.c is 'siginfo_t' where as in >> as-layout.h the second parameter's type is declared as 'struct >> siginfo'. >>

Re: [RFC][PATCH 0/5] tools, perf: Fix up for x86 UAPI disintegration

2012-10-24 Thread Borislav Petkov
On Wed, Oct 24, 2012 at 11:43:37AM -0700, Arnaldo Carvalho de Melo wrote: > Em Fri, Oct 19, 2012 at 05:55:58PM +0100, David Howells escreveu: > > > > Here are some potential fix ups for perf and other tools. They need to be > > applied on top of the x86 UAPI disintegration patch. > > Borislav,

[GIT PULL] workqueue fixes for v3.7-rc2

2012-10-24 Thread Tejun Heo
Hello, Linus. This pull request contains one patch from Dan Magenheimer to fix cancel_delayed_work() regression introduced by its reimplementation using try_to_grab_pending(). The reimplementation made it incorrectly return %true when the work item is idle. There aren't too many consumers of

Re: [PATCH] pidns: limit the nesting depth of pid namespaces

2012-10-24 Thread Andrew Morton
On Wed, 24 Oct 2012 09:38:57 +0400 Andrey Wagin wrote: > > > > I think that returning -ENOMEM in response to an excessive nesting > > attempt is misleading - the system *didn't* run out of memory. EINVAL > > is better? > > I chose ENOMEM by analogy with max_pid. When a new PID can not be >

Re: [PATCH 2/2] percpu-rw-semaphores: use rcu_read_lock_sched

2012-10-24 Thread Paul E. McKenney
On Wed, Oct 24, 2012 at 08:43:11PM +0200, Oleg Nesterov wrote: > On 10/24, Paul E. McKenney wrote: > > > > On Wed, Oct 24, 2012 at 07:18:55PM +0200, Oleg Nesterov wrote: > > > On 10/24, Paul E. McKenney wrote: > > > > > > > > static inline void percpu_up_read(struct percpu_rw_semaphore *p) > > > >

[PATCH 1/3] tty: pty - Move TIOCPKT handling into pty.c

2012-10-24 Thread Cyrill Gorcunov
From: Cyrill Gorcunov Since this ioctl is for pty devices only move it to pty.c. v2: - drop PTY_TYPE_MASTER test since it's master peer ioctl anyway (by jslaby@) Suggested-by: Alan Cox Signed-off-by: Cyrill Gorcunov CC: "H. Peter Anvin" CC: Greg Kroah-Hartman CC: Pavel Emelyanov CC:

[PATCH 0/3] TTY -- Add get- ioctls to fetch tty status v3

2012-10-24 Thread Cyrill Gorcunov
Hi, this series is on top of current tty.git/tty-next (a1c25f2b98). Please review. Thanks, Cyrill -- 1.7.7.6 -- 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

[PATCH 2/3] tty, ioctls -- Add new ioctl definitions for tty flags fetching

2012-10-24 Thread Cyrill Gorcunov
From: Cyrill Gorcunov This patch defines new ioctl codes TIOCGPKT, TIOCGPTLCK, TIOCGEXCL for fetching pty's packet mode and locking state, and exclusive mode of tty. [ No real handlers for the codes though, this will be addressed in another patch for easier review and bisectability ]

[PATCH 3/3] tty: Add get- ioctls to fetch tty status v3

2012-10-24 Thread Cyrill Gorcunov
From: Cyrill Gorcunov For checkpoint/restore we need to know if tty has exclusive or packet mode set, as well as if pty is currently locked. Just to be able to restore this characteristics. For this sake the following ioctl codes are introduced - TIOCGPKT to get packet mode state -

[PATCH 3/3] x86, ioapic: Move nr_ioapic_registers calculation to mp_register_ioapic.

2012-10-24 Thread Jonathan Nieder
From: "Eric W. Biederman" Date: Tue, 30 Mar 2010 01:07:12 -0700 commit 7716a5c4ff5f1f3dc5e9edcab125cbf7fceef0af upstream. Now that all ioapic registration happens in mp_register_ioapic we can move the calculation of nr_ioapic_registers there from enable_IO_APIC. The number of ioapic registers

[PATCH] bas_gigaset: fix pre_reset handling

2012-10-24 Thread Tilman Schmidt
The delayed work function int_in_work() may call usb_reset_device() and thus, indirectly, the driver's pre_reset method. Trying to cancel the work synchronously in that situation would deadlock. Fix by avoiding cancel_work_sync() in the pre_reset method. If the reset was NOT initiated by

[PATCH 2/3] x86, ioapic: In mpparse use mp_register_ioapic

2012-10-24 Thread Jonathan Nieder
From: "Eric W. Biederman" Date: Tue, 30 Mar 2010 01:07:11 -0700 commit cf7500c0ea133d66f8449d86392d83f84010263 upstream. Long ago MP_ioapic_info was the primary way of setting up our ioapic data structures and mp_register_ioapic was a compatibility shim for acpi code. Now the situation is

Re: [PATCH] nfs: fix wrong object type in lockowner_slab

2012-10-24 Thread J. Bruce Fields
On Wed, Oct 24, 2012 at 02:44:19PM +0800, ycn...@gmail.com wrote: > From: Yanchuan Nian > > The object type in the cache of lockowner_slab is wrong, and it is better to > fix it. > > Signed-off-by: Yanchuan Nian > --- > fs/nfsd/nfs4state.c |2 +- > 1 files changed, 1 insertions(+), 1

Re: lots of suspicious RCU traces

2012-10-24 Thread Paul E. McKenney
On Wed, Oct 24, 2012 at 12:17:16PM -0700, Sergey Senozhatsky wrote: > On (10/24/12 20:52), Oleg Nesterov wrote: > > On 10/24, Sergey Senozhatsky wrote: > > > > > > On (10/24/12 20:06), Oleg Nesterov wrote: > > > > On 10/24, Sergey Senozhatsky wrote: > > > > > > > > > > small question, > > > > > >

Re: [PATCH v2] drivers-core: move the calling to device_pm_remove behind the calling to bus_remove_device

2012-10-24 Thread Rafael J. Wysocki
On Tuesday 16 of October 2012 23:28:08 zhanglong wrote: > We hit an hang issue when removing a mmc device on Medfield Android phone by > sysfs interface. > > device_pm_remove will call pm_runtime_remove which would disable > runtime PM of the device. After that pm_runtime_get* or >

[PATCH 1/3] x86, ioapic: Teach mp_register_ioapic to compute a global gsi_end

2012-10-24 Thread Jonathan Nieder
From: "Eric W. Biederman" Date: Tue, 30 Mar 2010 01:07:10 -0700 commit 5777372af5c929b8f3c706ed7b295b7279537c88 upstream. Add the global variable gsi_end and teach mp_register_ioapic to keep it uptodate as we add more ioapics into the system. ioapics can only be added early in boot so the code

Re: [PATCH] perf: Build install-man target when installing

2012-10-24 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 24, 2012 at 09:30:46PM +0200, Borislav Petkov escreveu: > On Wed, Oct 24, 2012 at 10:03:16AM -0700, Arnaldo Carvalho de Melo wrote: > > The 'install-man' target will use your check-executable-or-error-out > > stuff, but the main 'install' target will call just 'try-install-man', > >

[RFC/PATCH 2.6.32.y 0/3] Re: [stable 2.6.32..2.6.34] x86, ioapic: initialize nr_ioapic_registers early in mp_register_ioapic()

2012-10-24 Thread Jonathan Nieder
Suresh Siddha wrote: > On Wed, 2012-10-24 at 11:25 -0700, Jonathan Nieder wrote: >> Why not cherry-pick 7716a5c4ff5 in full? > > As that depends on the other commits like: > commit 4b6b19a1c7302477653d799a53d48063dd53d555 More importantly, if I understand correctly it might depend on commit

Re: [PATCH 2/2] cpufreq: governors: remove redundant code

2012-10-24 Thread Rafael J. Wysocki
On Wednesday 24 of October 2012 11:37:13 Viresh Kumar wrote: > On 22 October 2012 14:16, Viresh Kumar wrote: > > On 20 October 2012 01:42, Viresh Kumar wrote: > >> Initially ondemand governor was written and then using its code > >> conservative > >> governor is written. It used a lot of code

Re: [REGRESSION] uml: signal.c build errors

2012-10-24 Thread Richard Weinberger
Am Wed, 24 Oct 2012 00:18:34 +0100 > I have tracked this down to [1] where, indeed, the type of sig_info is > different; the second parameter in signal.c is 'siginfo_t' where as in > as-layout.h the second parameter's type is declared as 'struct > siginfo'. > > [1]:

Re: [PATCH] Enable A20 using KBC for some MSI laptops to fix S3 resume

2012-10-24 Thread H. Peter Anvin
Minor concern: it should do the wait for ready before sending each command. "Rafael J. Wysocki" wrote: >On Wednesday 24 of October 2012 08:47:52 Ondrej Zary wrote: >> Some MSI laptop BIOSes are broken - INT 15h code uses port 92h to >enable A20 >> line but resume code assumes that KBC was used.

Re: [PATCHv2] Input: omap4-keypad: Add pinctrl support

2012-10-24 Thread Dmitry Torokhov
On Wednesday, October 24, 2012 10:10:42 PM Felipe Balbi wrote: > > > > > > That is a valid concern and we'll need to find a compromise here. As I > > said, > WHAT ?? Silicon erratas are not a valid concern ? Power waste isn't a > valid concern ? Tell that to the millions of devices shipped with

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

2012-10-24 Thread Andrew Morton
On Wed, 24 Oct 2012 12:19:39 -0700 Joe Perches wrote: > On Tue, 2012-10-23 at 13:02 -0700, Andrew Morton wrote: > > On Tue, 23 Oct 2012 12:51:29 -0700 > > Joe Perches wrote: > > > > > > btw, what's up with printk_syslog.h? It includes two header files > > > > which it > > > > doesn't need

Re: [PATCH v2 1/2] kmem_cache: include allocators code directly into slab_common

2012-10-24 Thread Christoph Lameter
On Wed, 24 Oct 2012, Pekka Enberg wrote: > So I hate this patch with a passion. We don't have any fastpaths in > mm/slab_common.c nor should we. Those should be allocator specific. I have similar thoughts on the issue. Lets keep the fast paths allocator specific until we find a better way to

Re: [PATCH] perf: Build install-man target when installing

2012-10-24 Thread Borislav Petkov
On Wed, Oct 24, 2012 at 10:03:16AM -0700, Arnaldo Carvalho de Melo wrote: > The 'install-man' target will use your check-executable-or-error-out > stuff, but the main 'install' target will call just 'try-install-man', > that will not stop the build if there are missing tools to generate > the man

Re: [PATCH 4/6] cgroups: forbid pre_destroy callback to fail

2012-10-24 Thread Tejun Heo
Hello, Michal. On Mon, Oct 22, 2012 at 12:30:21PM +0200, Michal Hocko wrote: > > > We can still fail inn #3 without this patch becasuse there are is no > > > guarantee that a new task is attached to the group. And I wanted to keep > > > memcg and generic cgroup parts separated. > > > > Yes, but

Re: Apparent serious progressive ext4 data corruption bug in 3.6.3 (and other stable branches?)

2012-10-24 Thread Jannis Achstetter
Am 24.10.2012 00:19, schrieb Theodore Ts'o: > [...] > The reason why the problem happens rarely is that the effect of the > buggy commit is that if the journal's starting block is zero, we fail > to truncate the journal when we unmount the file system. This can > happen if we mount and then

Re: [PATCH v4 10/10] thp: implement refcounting for huge zero page

2012-10-24 Thread Andrew Morton
On Wed, 24 Oct 2012 02:38:01 +0300 "Kirill A. Shutemov" wrote: > On Tue, Oct 23, 2012 at 03:59:15PM -0700, Andrew Morton wrote: > > On Tue, 23 Oct 2012 10:00:18 +0300 > > "Kirill A. Shutemov" wrote: > > > > > > Well, how hard is it to trigger the bad behavior? One can easily > > > > create a

Re: [RFC] perf: proposed perf_event_open() manpage

2012-10-24 Thread Vince Weaver
below is an updated version of the manpage. It has the changes you suggested plus a few other additions. Please verify the "sample_type" changes. I did some digging in the kernel source and added some info to some of the descriptions. I also added /proc/sys/kernel/ and

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

2012-10-24 Thread Joe Perches
On Tue, 2012-10-23 at 13:02 -0700, Andrew Morton wrote: > On Tue, 23 Oct 2012 12:51:29 -0700 > Joe Perches wrote: > > > > btw, what's up with printk_syslog.h? It includes two header files which > > > it > > > doesn't need but fails to include the two it *does* need: printk_log.h > > > and

Re: lots of suspicious RCU traces

2012-10-24 Thread Sergey Senozhatsky
On (10/24/12 20:52), Oleg Nesterov wrote: > On 10/24, Sergey Senozhatsky wrote: > > > > On (10/24/12 20:06), Oleg Nesterov wrote: > > > On 10/24, Sergey Senozhatsky wrote: > > > > > > > > small question, > > > > > > > > ptrace_notify() and forward calls are able to both indirectly and > > > >

Re: [stable 2.6.32..2.6.34] x86, ioapic: initialize nr_ioapic_registers early in mp_register_ioapic()

2012-10-24 Thread Jonathan Nieder
Suresh Siddha wrote: > commit 4b6b19a1c7302477653d799a53d48063dd53d555 Oh, yuck. If that commit had changed io_apic_get_redir_entries()'s name, it would have avoided some trouble. Thanks for pointing it out. > Wanted to keep the changes as minimal as possible. I don't see how this is

Re: [PATCHv2] Input: omap4-keypad: Add pinctrl support

2012-10-24 Thread Felipe Balbi
Hi, On Wed, Oct 24, 2012 at 10:58:53AM -0700, Dmitry Torokhov wrote: > On Wednesday, October 24, 2012 07:57:49 PM Felipe Balbi wrote: > > Hi, > > > > On Wed, Oct 24, 2012 at 09:18:01AM -0700, Dmitry Torokhov wrote: > > > On Wed, Oct 24, 2012 at 02:54:23PM +0200, Linus Walleij wrote: > > > > On

Re: [PATCH 3/3] workqueue: remove unused argument of wq_worker_waking_up()

2012-10-24 Thread Tejun Heo
On Tue, Oct 23, 2012 at 10:44:49AM +0900, JoonSoo Kim wrote: > > if (!(worker->flags & WORKER_NOT_RUNNING)) { > > WARN_ON_ONCE(worker->pool->gcwq->cpu != cpu); > > atomic_inc(get_pool_nr_running(worker->pool)); > > } > > > > I have no objection to

Re: [PATCH 4/7] cgroup_freezer: don't stall transition to FROZEN for PF_NOFREEZE or PF_FREEZER_SKIP tasks

2012-10-24 Thread Tejun Heo
Hello, Oleg. On Tue, Oct 23, 2012 at 05:55:33PM +0200, Oleg Nesterov wrote: > > Ooh, ouch, definitely. We should clear that. Can you please make a > > patch? > > Sure... but what do you think is better? > > I'd prefer to simply clear PF_NOFREEZE (without set_freezable), but > obviously this

Re: [PATCH v3 03/10] compiler-gcc{3,4}.h: Use GCC_VERSION macro

2012-10-24 Thread Borislav Petkov
On Wed, Oct 24, 2012 at 11:33:54AM -0500, danielfsan...@att.net wrote: > Using GCC_VERSION reduces complexity, is easier to read and is GCC's > recommended mechanism for doing version checks. (Just don't ask me why > they didn't define it in the first place.) This also makes it easy to > merge

Re: [PATCH 1/7] cgroup: cgroup_subsys->fork() should be called after the task is added to css_set

2012-10-24 Thread Tejun Heo
Hello, On Tue, Oct 23, 2012 at 05:51:28PM +0200, Oleg Nesterov wrote: > Yes, yes. But in this case (I mean, for uprobes) "threadgroup" in the name > is misleading. It should be called unconditially without any argument. > > Please see > > [PATCH 1/2] brw_mutex: big read-write mutex >

Re: [PATCHv2] Input: omap4-keypad: Add pinctrl support

2012-10-24 Thread Felipe Balbi
Hi, On Wed, Oct 24, 2012 at 10:28:46AM -0700, Dmitry Torokhov wrote: > > for more complex pinctrl use cases. These are my dogfood drivers ... > > Most of these will request more than one state and switch the driver > > between these different states at runtime, in these examples for power > >

[tip:x86/urgent] x86, mm: Use memblock memory loop instead of e820_RAM

2012-10-24 Thread tip-bot for Yinghai Lu
Commit-ID: 1f2ff682ac951ed82cc043cf140d2851084512df Gitweb: http://git.kernel.org/tip/1f2ff682ac951ed82cc043cf140d2851084512df Author: Yinghai Lu AuthorDate: Mon, 22 Oct 2012 16:35:18 -0700 Committer: H. Peter Anvin CommitDate: Wed, 24 Oct 2012 11:52:36 -0700 x86, mm: Use memblock

Re: [PATCH] Revert "serial: omap: fix software flow control"

2012-10-24 Thread Felipe Balbi
On Wed, Oct 24, 2012 at 11:57:42AM -0700, Greg KH wrote: > On Wed, Oct 24, 2012 at 01:02:55PM +0300, Felipe Balbi wrote: > > Hi Greg, > > > > On Tue, Oct 16, 2012 at 08:13:59AM -0700, Tony Lindgren wrote: > > > * Felipe Balbi [121016 07:16]: > > > > This reverts commit

Re: [PATCH] Revert "serial: omap: fix software flow control"

2012-10-24 Thread Greg KH
On Wed, Oct 24, 2012 at 01:02:55PM +0300, Felipe Balbi wrote: > Hi Greg, > > On Tue, Oct 16, 2012 at 08:13:59AM -0700, Tony Lindgren wrote: > > * Felipe Balbi [121016 07:16]: > > > This reverts commit 957ee7270d632245b43f6feb0e70d9a5e9ea6cf6 > > > (serial: omap: fix software flow control). > > >

Re: [PATCH] Enable A20 using KBC for some MSI laptops to fix S3 resume

2012-10-24 Thread Rafael J. Wysocki
On Wednesday 24 of October 2012 08:47:52 Ondrej Zary wrote: > Some MSI laptop BIOSes are broken - INT 15h code uses port 92h to enable A20 > line but resume code assumes that KBC was used. > The laptop will not resume from S3 otherwise but powers off after a while > and then powers on again stuck

Re: [PATCH 2/7] freezer: add missing mb's to freezer_count() and freezer_should_skip()

2012-10-24 Thread Tejun Heo
Hello, Oleg. On Tue, Oct 23, 2012 at 05:39:19PM +0200, Oleg Nesterov wrote: > > Hmm Guess we should drop __ from set_current_state. > > Yes. > > Or we can change ptrace_stop() and do_signal_stop() to use > freezer_do_not_count/ > freezer_count and remove task_is_stopped_or_traced() from

Re: mmotm 2012-10-22-17-08 uploaded (printk build errors)

2012-10-24 Thread Joe Perches
On Mon, 2012-10-22 at 18:22 -0700, Randy Dunlap wrote: > on i386, when CONFIG_PRINTK is not enabled: > > note: some of these build errors could result from my use of > -sik (keep going, ignore build errors). > > > case 1. CONFIG_TTY_PRINTK=y, CONFIG_EARLY_PRINTK=y > > see config-r8272 []

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-24 Thread H. Peter Anvin
On 10/24/2012 09:48 AM, Jacob Shin wrote: > > hpa, we need this patch: https://lkml.org/lkml/2012/8/24/469 and the above > 2 from Yinghai to handle corner case E820 layouts. > I can apply Yinghai's patches, but the above patch no longer applies. Could you refresh it on top of tip:x86/u, please?

Re: lots of suspicious RCU traces

2012-10-24 Thread Oleg Nesterov
On 10/24, Sergey Senozhatsky wrote: > > On (10/24/12 20:06), Oleg Nesterov wrote: > > On 10/24, Sergey Senozhatsky wrote: > > > > > > small question, > > > > > > ptrace_notify() and forward calls are able to both indirectly and > > > directly call schedule(), > > > /* direct call from

Re: [patch 0/3] TTY flags fetching

2012-10-24 Thread Cyrill Gorcunov
On Wed, Oct 24, 2012 at 11:38:17AM -0700, Greg KH wrote: > On Tue, Oct 16, 2012 at 01:46:22PM +0400, gorcu...@openvz.org wrote: > > Hi guys, I've updated the series on top of current tty-next Greg's tree. > > The series introduces new ioctl codes TIOCGPKT, TIOCGPTLCK, TIOCGEXCL to > > fetch pty's

Re: [PATCH] usb/gadget: let file storage gadget select libcomposite

2012-10-24 Thread Michal Nazarewicz
> On Wed, Oct 24, 2012 at 07:30:42PM +0200, Michal Nazarewicz wrote: >> At first it looks strange as FSG does not use composite, but yeah: On Wed, Oct 24 2012, Sebastian Andrzej Siewior wrote: > Yeah. However, it should be removed in v3.8 anyway :) Yep, that's what feature-removal-schedule.txt

Re: [RFC][PATCH 0/5] tools, perf: Fix up for x86 UAPI disintegration

2012-10-24 Thread Arnaldo Carvalho de Melo
Em Fri, Oct 19, 2012 at 05:55:58PM +0100, David Howells escreveu: > > Here are some potential fix ups for perf and other tools. They need to be > applied on top of the x86 UAPI disintegration patch. Borislav, Namhyung, can you take a look at this series? - Arnaldo > There are five patches: >

Re: [PATCH 2/2] percpu-rw-semaphores: use rcu_read_lock_sched

2012-10-24 Thread Oleg Nesterov
On 10/24, Paul E. McKenney wrote: > > On Wed, Oct 24, 2012 at 07:18:55PM +0200, Oleg Nesterov wrote: > > On 10/24, Paul E. McKenney wrote: > > > > > > static inline void percpu_up_read(struct percpu_rw_semaphore *p) > > > { > > > /* > > >* Decrement our count, but protected by RCU-sched so

Re: 3.6.0 kernel - ext4 corruption, or?

2012-10-24 Thread Theodore Ts'o
On Wed, Oct 24, 2012 at 11:53:47AM -0400, Justin Piszcz wrote: > > The problem which we are currently trying to investigate was > reportedly introduced in v3.6.1. So far that's about how we know; we > have two users who have reported it, but I and other ext4 developers > haven't been able to

Re: [patch 0/3] TTY flags fetching

2012-10-24 Thread Greg KH
On Tue, Oct 16, 2012 at 01:46:22PM +0400, gorcu...@openvz.org wrote: > Hi guys, I've updated the series on top of current tty-next Greg's tree. > The series introduces new ioctl codes TIOCGPKT, TIOCGPTLCK, TIOCGEXCL to > fetch pty's packet mode and locking state, and exclusive mode of it, which >

Re: [stable 2.6.32..2.6.34] x86, ioapic: initialize nr_ioapic_registers early in mp_register_ioapic()

2012-10-24 Thread Suresh Siddha
On Wed, 2012-10-24 at 11:25 -0700, Jonathan Nieder wrote: > Hi Suresh, > > Suresh Siddha wrote: > > [...] > > This problem doesn't happen with more recent kernels and closer > > look at the 2.6.32 kernel shows that the code which masks > > the IO-APIC RTE's is not working as expected as the

Re: [patch 2/3] tty, ioctls -- Add new ioctl definitions for tty flags fetching

2012-10-24 Thread Cyrill Gorcunov
On Wed, Oct 24, 2012 at 11:28:16AM -0700, Greg KH wrote: > > Most of these files are no longer in the tree. Can you redo this > against the latest linux-next release and resend the whole series? Sure, thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: EXT4-fs error w/ external USB drive

2012-10-24 Thread Theodore Ts'o
On Wed, Oct 24, 2012 at 07:31:57PM +0200, Toralf Förster wrote: > > Are you using any kind of special mount options on your usb stick? > > > nope Thanks, we're trying to get a reliable repro of this failure, and so every bit of data helps... I've cc'ed you on the other thread, and if you could

Re: [PATCH v3] serial/arc-uart: Add new driver

2012-10-24 Thread Greg KH
On Thu, Oct 04, 2012 at 01:05:52PM +0530, vineet.gup...@synopsys.com wrote: > From: Vineet Gupta > > Driver for non-standard on-chip UART, instantiated in the ARC (Synopsys) > FPGA Boards such as ARCAngel4/ML50x This patch does not apply against my tty-next tree, care to rebase it and resend it

Re: [PATCH 155/193] init: remove CONFIG_EXPERIMENTAL

2012-10-24 Thread Serge E. Hallyn
Quoting Kees Cook (keesc...@chromium.org): > On Wed, Oct 24, 2012 at 10:17 AM, Serge Hallyn > wrote: > > Quoting Kees Cook (keesc...@chromium.org): > >> On Wed, Oct 24, 2012 at 6:48 AM, Serge Hallyn > >> wrote: > >> > Quoting Kees Cook (keesc...@chromium.org): > >> >> This config item has not

Re: [patch 2/3] tty, ioctls -- Add new ioctl definitions for tty flags fetching

2012-10-24 Thread Greg KH
On Fri, Sep 28, 2012 at 01:10:34AM +0400, Cyrill Gorcunov wrote: > This patch defines new ioctl codes TIOCGPKT, TIOCGPTLCK, > TIOCGEXCL for fetching pty's packet mode and locking state, > and exclusive mode of tty. > > [ No real handlers for the codes though, this will be > addressed in another

Re: [patch 1/3] tty: pty - Move TIOCPKT handling into pty.c

2012-10-24 Thread Greg KH
On Fri, Sep 28, 2012 at 01:10:33AM +0400, Cyrill Gorcunov wrote: > Since this ioctl is for pty devices only move it to pty.c. > > v2: > - drop PTY_TYPE_MASTER test since it's master peer >ioctl anyway (by jslaby@) This patch adds the compiler warning: drivers/tty/tty_ioctl.c: In function

[PATCH] aoe: avoid using skb member after dev_queue_xmit

2012-10-24 Thread Ed Cashin
After calling dev_queue_xmit it is no longer safe to access the members of the skb. Reported-by: Dan Carpenter Signed-off-by: Ed Cashin --- drivers/block/aoe/aoenet.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/block/aoe/aoenet.c

Re: [stable 2.6.32..2.6.34] x86, ioapic: initialize nr_ioapic_registers early in mp_register_ioapic()

2012-10-24 Thread Jonathan Nieder
Hi Suresh, Suresh Siddha wrote: [...] > This problem doesn't happen with more recent kernels and closer > look at the 2.6.32 kernel shows that the code which masks > the IO-APIC RTE's is not working as expected as the nr_ioapic_registers > for each IO-APIC is not yet initialized at this point.

Re: lots of suspicious RCU traces

2012-10-24 Thread Sergey Senozhatsky
On (10/24/12 20:06), Oleg Nesterov wrote: > On 10/24, Sergey Senozhatsky wrote: > > > > small question, > > > > ptrace_notify() and forward calls are able to both indirectly and directly > > call schedule(), > > /* direct call from ptrace_stop()*/, > > should, in this case, rcu_user_enter() be

Re: [PATCH 2/2] percpu-rw-semaphores: use rcu_read_lock_sched

2012-10-24 Thread Paul E. McKenney
On Wed, Oct 24, 2012 at 07:18:55PM +0200, Oleg Nesterov wrote: > On 10/24, Paul E. McKenney wrote: > > > > static inline void percpu_up_read(struct percpu_rw_semaphore *p) > > { > > /* > > * Decrement our count, but protected by RCU-sched so that > > * the writer can force proper

Re: [PATCH v3 3/5] zynq: remove use of CLKDEV_LOOKUP

2012-10-24 Thread Josh Cartwright
On Wed, Oct 24, 2012 at 09:32:32AM -0400, Nick Bowler wrote: > On 2012-10-23 19:34 -0500, Josh Cartwright wrote: > > The Zynq support in mainline does not (yet) make use of any of the > > generic clk or clk lookup functionality. Remove what is upstream for > > now, until the out-of-tree

[stable 2.6.32..2.6.34] x86, ioapic: initialize nr_ioapic_registers early in mp_register_ioapic()

2012-10-24 Thread Suresh Siddha
Lin Bao reported that one of the HP platforms failed to boot 2.6.32 kernel, when the BIOS enabled interrupt-remapping and x2apic before handing over the control to the Linux kernel. During boot, Linux kernel masks all the interrupt sources (8259, IO-APIC RTE's), setup the interrupt-remapping

Re: [PATCH v2] Support Elan Touchscreen eKTF product.

2012-10-24 Thread Dmitry Torokhov
Hi Scott, On Wed, Oct 24, 2012 at 09:41:43AM +0800, Scott Liu wrote: > This patch is for Elan eKTF Touchscreen product, I2C adpater module. > > Signed-off-by: Scott Liu > --- > > Hi, > v2 revision I have fixed some bug as your advise. > 1. To target the mainline > 2. No

Re: [PATCH v5 08/18] memcg: infrastructure to match an allocation to the right cache

2012-10-24 Thread JoonSoo Kim
2012/10/19 Glauber Costa : > @@ -2930,9 +2937,188 @@ int memcg_register_cache(struct mem_cgroup *memcg, > struct kmem_cache *s) > > void memcg_release_cache(struct kmem_cache *s) > { > + struct kmem_cache *root; > + int id = memcg_css_id(s->memcg_params->memcg); > + > + if

Re: [PATCH] [RESEND 2] Take over futex of dead task only if FUTEX_WAITERS is not set

2012-10-24 Thread Thomas Gleixner
On Wed, 24 Oct 2012, Siddhesh Poyarekar wrote: > > Now there is a different solution to that problem. Do not look at the > > user space value at all and enforce a lookup of possibly available > > pi_state. If pi_state can be found, then the new incoming locker T3 > > blocks on that pi_state and

Re: lots of suspicious RCU traces

2012-10-24 Thread Oleg Nesterov
On 10/24, Sergey Senozhatsky wrote: > > small question, > > ptrace_notify() and forward calls are able to both indirectly and directly > call schedule(), > /* direct call from ptrace_stop()*/, > should, in this case, rcu_user_enter() be called before > tracehook_report_syscall_exit(regs, step) >

Re: [PATCH v2 1/2] kmem_cache: include allocators code directly into slab_common

2012-10-24 Thread Pekka Enberg
On Wed, Oct 24, 2012 at 4:59 PM, Glauber Costa wrote: > While the goal of slab_common.c is to have a common place for all > allocators, we face two different goals that are in opposition to each > other: > > 1) Have the different layouts be the business of each allocator, in > their .c > 2)

Re: [PATCH v2 2/2] Improve container_notify_cb() to support container hot-remove.

2012-10-24 Thread Bjorn Helgaas
On Wed, Oct 24, 2012 at 11:14 AM, Toshi Kani wrote: > On Wed, 2012-10-24 at 14:05 +0800, Tang Chen wrote: >> + result = container_device_remove(device); >> + if (result) { >> + printk(KERN_WARNING "Failed to remove container\n"); > > Please use

[PATCH] MAINTAINERS: Add arm-soc tree entry

2012-10-24 Thread Stephen Boyd
Document the arm-soc tree in the maintainers file so that developers know how arm SoC development is structured. Signed-off-by: Stephen Boyd --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 014272b..f70afea 100644 --- a/MAINTAINERS +++

Re: [PATCHv2] Input: omap4-keypad: Add pinctrl support

2012-10-24 Thread Dmitry Torokhov
On Wednesday, October 24, 2012 07:57:49 PM Felipe Balbi wrote: > Hi, > > On Wed, Oct 24, 2012 at 09:18:01AM -0700, Dmitry Torokhov wrote: > > On Wed, Oct 24, 2012 at 02:54:23PM +0200, Linus Walleij wrote: > > > On Tue, Oct 23, 2012 at 10:02 PM, Dmitry Torokhov > > > > > > wrote: > > > > I have

Re: [PATCHv2] ARM: Push selects for TWD/SCU into machine entries

2012-10-24 Thread Stephen Warren
On 10/24/2012 11:24 AM, Stephen Boyd wrote: > The TWD and SCU configs are selected by default as long as > MSM_SCORPIONMP is false and/or MCT is false. Implementing the > logic this way certainly saves lines in the Kconfig but it > precludes those machines which select MSM_SCORPIONMP or MCT from >

Re: [PATCH] efi: Build EFI stub with EFI-appropriate options

2012-10-24 Thread Greg KH
On Thu, Oct 18, 2012 at 10:32:50PM +0200, Daniel Vacek wrote: > On Thu, Oct 18, 2012 at 8:28 PM, Matthew Garrett wrote: > > On Thu, Oct 18, 2012 at 08:18:51PM +0200, Daniel Vacek wrote: > > > >> s/CLFAGS/CFLAGS/ > >> > >> should go to stable too? > > > > Crap. Yes. Feel free to send that.

Re: [RFC] perf: proposed perf_event_open() manpage

2012-10-24 Thread Vince Weaver
On Wed, 24 Oct 2012, Namhyung Kim wrote: > > .BI "int perf_event_open(struct perf_event_attr *" hw_event , > > hw_event? Looks unusual.. how about 'attr'? this (and some of the other stuff) is because the manpage used the somewhat out of date "tools/perf/design.txt" as a reference. It looks

Re: [RFC PATCH 01/06] input/rmi4: Public header and documentation

2012-10-24 Thread Mark Brown
On Tue, Oct 23, 2012 at 03:10:20PM -0700, Christopher Heiny wrote: > On 10/11/2012 10:16 PM, Mark Brown wrote: > >On Thu, Oct 11, 2012 at 03:56:22AM +, Christopher Heiny wrote: > >Fix your mailer to word wrap within paragraphs. > Sorry - I was on the road and had to use a web interface. It

Re: [PATCH 6/6] ARM: ux500: Convert DT_MACHINE_START to use SMP operations

2012-10-24 Thread Linus Walleij
On Wed, Oct 24, 2012 at 4:45 PM, Lee Jones wrote: > The Device Tree machine description for the ux5x0 was moved > recently and as a consequence missed the addition of SMP > operations. Without this patch SMP doesn't work and only one > CPU is present after booting. > > Signed-off-by: Lee Jones

Re: [PATCH 5/6] ARM: ux500: Correct SDI5 address and add some format changes

2012-10-24 Thread Linus Walleij
On Wed, Oct 24, 2012 at 4:45 PM, Lee Jones wrote: > Here we fix a simple copy and paste error and bring some node > spaces back into line with the remainder of the tree. > > Signed-off-by: Lee Jones Acked-by: Linus Walleij Yours, Linus Walleij -- To unsubscribe from this list: send the line

Re: [PATCH 4/6] ARM: ux500: Specify AMBA Primecell IDs for Nomadik I2C in DT

2012-10-24 Thread Linus Walleij
On Wed, Oct 24, 2012 at 4:45 PM, Lee Jones wrote: > Now the Nomadik I2C driver has been converted to an AMBA one, we > are required to provide the Primecell IDs via platform code. When > booting with DT enabled these have to be specified in the device > nodes. We do that here. > > Signed-off-by:

Re: [PATCH 0/6] ux500 fixes bound for the -rcs

2012-10-24 Thread Linus Walleij
On Wed, Oct 24, 2012 at 4:45 PM, Lee Jones wrote: > This patch-set contains a bunch of fixes which are bound for the > v3.6 Release Candidates. Each of them provides a fix for something > which went wrong during the merge window. Without them we either > can't build the kernel, have no GPIOs,

Re: [PATCHv2] Input: omap4-keypad: Add pinctrl support

2012-10-24 Thread Benoit Cousson
Hi Dmitry, On 10/24/2012 06:14 PM, Dmitry Torokhov wrote: > On Wed, Oct 24, 2012 at 11:37:04AM +0300, Felipe Balbi wrote: >> Hi, >> >> On Tue, Oct 23, 2012 at 01:02:49PM -0700, Dmitry Torokhov wrote: >>> On Tue, Oct 23, 2012 at 11:18:12AM +0200, Benoit Cousson wrote: Hi Dimitry, On

Re: [PATCH] usb/gadget: let file storage gadget select libcomposite

2012-10-24 Thread Sebastian Andrzej Siewior
On Wed, Oct 24, 2012 at 07:30:42PM +0200, Michal Nazarewicz wrote: > At first it looks strange as FSG does not use composite, but yeah: Yeah. However, it should be removed in v3.8 anyway :) > Acked-by: Michal Nazarewicz Sebastian -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 1/2] Use kacpi_hotplug_wq to handle container hotplug event.

2012-10-24 Thread Toshi Kani
On Tue, 2012-10-23 at 21:10 +0800, Tang Chen wrote: > As the comments in __acpi_os_execute() said: > > We can't run hotplug code in keventd_wq/kacpid_wq/kacpid_notify_wq > because the hotplug code may call driver .remove() functions, > which invoke

[PATCH v4] pwm: vt8500: Update vt8500 PWM driver support

2012-10-24 Thread Tony Prisk
This patch updates pwm-vt8500.c to support devicetree probing and make use of the common clock subsystem. A binding document describing the PWM controller found on arch-vt8500 is also included. Signed-off-by: Tony Prisk --- v4: return err from clk_enable rather than -EBUSY

Re: Apparent serious progressive ext4 data corruption bug in 3.6.3 (and other stable branches?)

2012-10-24 Thread Martin
On 10/24/2012 01:40 AM, Nix wrote: It's true that in less than a week probably not all that many people have rebooted often enough to trip over this. I hope. Fwiw, i got a fried root filesystem (ext4) on one machine last week. It was on 3.5.3 or 3.5.5. Since there was nothing in the logs

Re: [PATCH 155/193] init: remove CONFIG_EXPERIMENTAL

2012-10-24 Thread Dave Jones
On Wed, Oct 24, 2012 at 12:17:23PM -0500, Serge Hallyn wrote: > > Some patches remove "(EXPERIMENTAL)" from Kconfig titles when there was > > no "depends on EXPERIMENTAL". I've removed the cases of these where I > > Hm, I was under the impression that taskstats are not quite trusted yet, >

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