[PATCH 1/3] xen/mmu/p2m: Check extend_brk for NULL

2012-07-31 Thread Konrad Rzeszutek Wilk
Which allows us to be a bit smarter in case we exhaust the reserved virtual space. [v1: Suggested by Ian Campbell] Signed-off-by: Konrad Rzeszutek Wilk --- arch/x86/xen/enlighten.c |2 ++ arch/x86/xen/mmu.c |5 - arch/x86/xen/p2m.c | 35 -

[PATCH 3/3] x86: Let extend_brk return a NULL pointer instead of just BUG_ON.

2012-07-31 Thread Konrad Rzeszutek Wilk
The callers of this function (dmi_alloc) and the various Xen related ones can deal with a NULL pointer. Suggested-by: Ian Campbell Signed-off-by: Konrad Rzeszutek Wilk --- arch/x86/kernel/setup.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/setup.

[PATCH 2/3] xen/p2m: Reserve 4MB of _brk space for P2M leafs when populating back.

2012-07-31 Thread Konrad Rzeszutek Wilk
When we release pages back during bootup: Freeing 9d-100 pfn range: 99 pages freed Freeing 9cf36-9d0d2 pfn range: 412 pages freed Freeing 9f6bd-9f6bf pfn range: 2 pages freed Freeing 9f714-9f7bf pfn range: 171 pages freed Freeing 9f7e0-9f7ff pfn range: 31 pages freed Freeing 9f800-10 pfn

[PATCH] extend_brk and fixes to users of extend_brk (v1).

2012-07-31 Thread Konrad Rzeszutek Wilk
In v3.5 I've added some patches that during boot-time and add more entries to the P2M tree: http://lists.xen.org/archives/html/xen-devel/2012-04/msg01152.html which worked great on all my machines. But there were some folks who reported that it caused them at bootup to hit this: (XEN) domain_cras

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-31 Thread Thierry Reding
On Tue, Jul 31, 2012 at 07:32:20PM +0900, Alex Courbot wrote: > On 07/31/2012 07:45 AM, Stephen Warren wrote: > >I wonder if using the same structure/array as input and output would > >simplify the API; the platform data would fill in the fields mentioned > >above, and power_seq_build() would parse

Re: [GIT PULL] LED CPU trigger driver and ARM LED code consolidation

2012-07-31 Thread Bryan Wu
On Tue, Jul 31, 2012 at 6:15 PM, Russell King - ARM Linux wrote: > On Tue, Jul 31, 2012 at 05:53:41PM +0800, Bryan Wu wrote: >> On Fri, Jun 8, 2012 at 4:20 PM, Olof Johansson wrote: >> > Hi, >> > >> > On Wed, Jun 6, 2012 at 11:12 PM, Bryan Wu wrote: >> >> Hi Arnd and Olof, >> >> >> >> Is there a

Re: [GIT PULL] LED CPU trigger driver and ARM LED code consolidation

2012-07-31 Thread Bryan Wu
On Tue, Jul 31, 2012 at 7:08 PM, Bryan Wu wrote: > On Tue, Jul 31, 2012 at 6:15 PM, Russell King - ARM Linux > wrote: >> On Tue, Jul 31, 2012 at 05:53:41PM +0800, Bryan Wu wrote: >>> On Fri, Jun 8, 2012 at 4:20 PM, Olof Johansson wrote: >>> > Hi, >>> > >>> > On Wed, Jun 6, 2012 at 11:12 PM, Brya

Re: [PATCH 0/2][RFC] Better handling of insane CMOS values

2012-07-31 Thread Josh Boyer
On Tue, Jul 31, 2012 at 2:35 AM, John Stultz wrote: > So CAI Qian noticed recent boot trouble on a machine that had its CMOS > clock configured for the year 8200. > See: http://lkml.org/lkml/2012/7/29/188 > > While running with a crazy CMOS clock isn't advised, and a simple > "don't do that" might

Re: [PATCH] dma: imx-dma: Fix kernel crash due to missing clock conversion

2012-07-31 Thread Fabio Estevam
On Tue, Jul 31, 2012 at 3:46 AM, Vinod Koul wrote: > This patch will appear in 3.7-rc2 when I send the fixes to Linus post > rc1, I guess early next week. I guess you mean 3.6-rc2, right? > Stable guys will pick this and apply to 3.6.X version. I guess you mean 3.5.x, right? -- To unsubscribe

[PATCH 0/3] x86, MSI: Support multiple MSIs in presense of IRQ remapping

2012-07-31 Thread Alexander Gordeev
Currently multiple MSI mode is limited to a single vector per device (at least on x86 and PPC). This series breathes life into pci_enable_msi_block() and makes it possible to set interrupt affinity for multiple IRQs, similarly to MSI-X. Yet, only for x86 and only when IOMMUs are present. Although

[PATCH 1/3] x86, MSI: Support multiple MSIs in presense of IRQ remapping

2012-07-31 Thread Alexander Gordeev
The MSI specification has several constraints in comparison with MSI-X, most notable of them is the inability to configure MSIs independently. As a result, it is impossible to dispatch interrupts from different queues to different CPUs. This is largely devalues the support of multiple MSIs in SMP s

[PATCH 2/3] x86, MSI: Allocate as many multiple IRQs as requested

2012-07-31 Thread Alexander Gordeev
When multiple MSIs are enabled with pci_enable_msi_block() the number of allocated IRQs 'nvec' is rounded up to the nearest value of power of two. That could lead to a condition when number of requested and used IRQs is less than number of actually allocated IRQs. This fix introduces 'msi_desc::nv

[PATCH 3/3] x86, MSI: Minor readability fixes

2012-07-31 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- arch/x86/kernel/apic/io_apic.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 5a5c92b..888f3b9 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kerne

Re: [PATCH] dma: imx-dma: Fix kernel crash due to missing clock conversion

2012-07-31 Thread javier Martin
On 31 July 2012 13:38, Fabio Estevam wrote: > On Tue, Jul 31, 2012 at 3:46 AM, Vinod Koul > wrote: > >> This patch will appear in 3.7-rc2 when I send the fixes to Linus post >> rc1, I guess early next week. > > I guess you mean 3.6-rc2, right? > >> Stable guys will pick this and apply to 3.6.X

[PATCH v2] tmscsim: spin_unlock_irq in interrupt handler fix

2012-07-31 Thread Denis Efremov
The replacement of spin_lock_irq/spin_unlock_irq pairs which can be called from interrupt handler by irqsave/irqrestore versions. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Denis Efremov --- drivers/scsi/tmscsim.c | 12 ++-- drivers/scsi/tmscsim.h |

[PATCH 1/2] uprobes: Use a helper instead of ptrace's single step enable

2012-07-31 Thread Sebastian Andrzej Siewior
As Oleg pointed out in [0] utrace should not use the ptrace interface for enabling/disabling single stepping. [0] http://lkml.kernel.org/20120730141638.ga5...@redhat.com Signed-off-by: Sebastian Andrzej Siewior --- include/linux/uprobes.h |4 kernel/events/uprobes.c | 16

[PATCH 2/2] x86/uprobes: implement x86 specific arch_uprobe_*_step

2012-07-31 Thread Sebastian Andrzej Siewior
The arch specific implementation enables single stepping directly by setting the trap flag. "Single-Step on branches" is always disabled since only one opcode has to be executed. The disable call removes the trap flag unless it was there before. It does not touch the flags register if the executed

Re: [PATCH can-next v3 1/2] can: add tx/rx LED trigger support

2012-07-31 Thread Fabio Baltieri
On Tue, Jul 31, 2012 at 12:12:59PM +0200, Marc Kleine-Budde wrote: > >> +/* > >> + * Register CAN LED triggers for a CAN device > >> + * > >> + * This is normally called from a driver's probe function > >> + */ > >> +void can_led_init(struct net_device *netdev) > >> +{ > >> + struct can_priv *priv

Re: [PATCH can-next v3 1/2] can: add tx/rx LED trigger support

2012-07-31 Thread Fabio Baltieri
On Tue, Jul 31, 2012 at 09:10:00AM +0200, Marc Kleine-Budde wrote: > >>> +/* > >>> + * Register CAN LED triggers for a CAN device > >>> + * > >>> + * This is normally called from a driver's probe function > >>> + */ > >>> +void can_led_init(struct net_device *netdev) > >>> +{ > >>> + struct can_pri

Re: [PATCH can-next v3 1/2] can: add tx/rx LED trigger support

2012-07-31 Thread Marc Kleine-Budde
On 07/31/2012 01:57 PM, Fabio Baltieri wrote: [...] Can you provide a devm implementation for can_led? >>> >>> Sounds reasonable, you mean like a devm_kasprintf implementation to >>> remove kfree and unwinding code? >> >> IMHO it would be sufficient if you implement the devm cleanup functions

Re: __update_max_tr: rcu_read_lock() used illegally while idle!

2012-07-31 Thread Fengguang Wu
On Mon, Jul 30, 2012 at 11:39:12AM -0400, Steven Rostedt wrote: > On Tue, 2012-07-24 at 17:03 +0800, Fengguang Wu wrote: > > Hi Steven, > > Hi Fengguang, > > Just an FYI, It's best to send email to my rost...@goodmis.org account. > I don't check my redhat account every day. OK, sorry for forgett

KVM segfaults with 3.5 while installing ubuntu 12.04

2012-07-31 Thread Stefan Priebe - Profihost AG
Hello list, i hope it is correct to list the maintainers of kvm. While trying to install ubuntu 12.04 amd64 on a kvm based vm the KVM process segfaults while ubuntu tries to detect the HW: kvm[2978]: segfault at 7fb90d9035e0 ip 7fb90d9035e0 sp7fff652e4ed8 error 15 This does not happe

Re: [PATCH can-next v3 1/2] can: add tx/rx LED trigger support

2012-07-31 Thread Fabio Baltieri
On Tue, Jul 31, 2012 at 10:46:57AM +0200, Wolfgang Grandegger wrote: > Hi Fabio, > > On 07/30/2012 09:20 PM, Fabio Baltieri wrote: > > This patch implements the functions to add two LED triggers, named > > -tx and -rx, to a canbus device driver. > > > > Triggers are called from specific handlers

Re: [PATCH -alternative] mm: hugetlbfs: Close race during teardown of hugetlbfs shared page tables V2 (resend)

2012-07-31 Thread Hillf Danton
On Tue, Jul 31, 2012 at 3:11 AM, Larry Woodman wrote: > [ 1106.156569] [ cut here ] > [ 1106.161731] kernel BUG at mm/filemap.c:135! > [ 1106.166395] invalid opcode: [#1] SMP > [ 1106.170975] CPU 22 > [ 1106.173115] Modules linked in: bridge stp llc sunrpc binfmt_misc

Re: Testing tracer wakeup_rt: .. no entries found ..FAILED!

2012-07-31 Thread Fengguang Wu
[CC kvm developers] On Mon, Jul 30, 2012 at 11:45:05AM -0400, Steven Rostedt wrote: > On Tue, 2012-07-24 at 17:07 +0800, Fengguang Wu wrote: > > On Tue, Jul 24, 2012 at 05:03:30PM +0800, Fengguang Wu wrote: > > > And this warning shows up in one of the dozens of boots, for the same > > kconfig. >

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-31 Thread Mitch Bradley
On 7/31/2012 6:56 PM, Thierry Reding wrote: > On Tue, Jul 31, 2012 at 07:32:20PM +0900, Alex Courbot wrote: >> On 07/31/2012 07:45 AM, Stephen Warren wrote: >>> I wonder if using the same structure/array as input and output would >>> simplify the API; the platform data would fill in the fields ment

Re: [RFC PATCH v5 16/19] memory-hotplug: free memmap of sparse-vmemmap

2012-07-31 Thread Gerald Schaefer
On Fri, 27 Jul 2012 18:34:38 +0800 Wen Congyang wrote: > From: Yasuaki Ishimatsu > > All pages of virtual mapping in removed memory cannot be freed, since > some pages used as PGD/PUD includes not only removed memory but also > other memory. So the patch checks whether page can be freed or not.

Re: [RFC patch] vm: clear swap entry before copying pte

2012-07-31 Thread Hillf Danton
Hi Hugh, On Tue, Jul 31, 2012 at 10:34 AM, Hugh Dickins wrote: > But I can see that the lack of reinitialization of entry.val here > does raise doubt and confusion. A better tidyup would be to remove > the initialization of swp_entry_t entry from its onstack declaration, > and do it at the again

Re: [PATCH] drivers/iio/adc/at91_adc.c: use devm_ functions

2012-07-31 Thread Lars-Peter Clausen
Hi, On 07/31/2012 12:09 PM, Julia Lawall wrote: > From: Julia Lawall > @@ -720,20 +698,14 @@ error_ret: > static int __devexit at91_adc_remove(struct platform_device *pdev) > { > struct iio_dev *idev = platform_get_drvdata(pdev); > - struct resource *res = platform_get_resource(pdev,

Re: [GPIO] Crashed when not using

2012-07-31 Thread Shilimkar, Santosh
On Tue, Jul 31, 2012 at 8:52 AM, Felipe Balbi wrote: > > Hi, > > On Tue, Jul 31, 2012 at 10:23:16AM +0530, Poddar, Sourav wrote: > > The device tree data for acquiring the above GPIO interrupt line > > looks > > like this. > > > > +++ linux-omap-storage/arch/arm/boot/dts/o

Re: [PATCH 0/6][resend] mempolicy memory corruption fixlet

2012-07-31 Thread Josh Boyer
On Mon, Jun 11, 2012 at 5:17 AM, wrote: > From: KOSAKI Motohiro > > Hi > > This is trivial fixes of mempolicy meory corruption issues. There > are independent patches each ather. and, they don't change userland > ABIs. > > Thanks. > > changes from v1: fix some typo of changelogs. > > ---

Re: [GPIO] Crashed when not using

2012-07-31 Thread Felipe Balbi
Hi, On Tue, Jul 31, 2012 at 02:32:43PM +0200, Shilimkar, Santosh wrote: > On Tue, Jul 31, 2012 at 8:52 AM, Felipe Balbi wrote: > > > > Hi, > > > > On Tue, Jul 31, 2012 at 10:23:16AM +0530, Poddar, Sourav wrote: > > > The device tree data for acquiring the above GPIO interrupt line > > >

Re: Testing tracer wakeup_rt: .. no entries found ..FAILED!

2012-07-31 Thread Avi Kivity
On 07/31/2012 03:17 PM, Fengguang Wu wrote: > > It's good to quickly get to the root cause :) Can we possibly detect > whether we are in a virtual machine and hence skip this particular > test case? cpu_has(&boot_cpu, X86_FEATURE_HYPERVISOR) -- error compiling committee.c: too many arguments to

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-31 Thread Thierry Reding
On Tue, Jul 31, 2012 at 08:22:17PM +0800, Mitch Bradley wrote: > On 7/31/2012 6:56 PM, Thierry Reding wrote: > > On Tue, Jul 31, 2012 at 07:32:20PM +0900, Alex Courbot wrote: > >> On 07/31/2012 07:45 AM, Stephen Warren wrote: > >>> I wonder if using the same structure/array as input and output woul

Re: NULL pointer dereference in iio_buffer_register()

2012-07-31 Thread Lars-Peter Clausen
On 07/31/2012 12:31 PM, Fengguang Wu wrote: >> [7.623739] BUG: unable to handle kernel NULL pointer dereference at >> 00b0 > > I managed to root cause it: > > [2.108085] BUG: unable to handle kernel NULL pointer dereference > at 0060 > [2.112015] EIP:

Re: [RFC PATCH v5 12/19] memory-hotplug: introduce new function arch_remove_memory()

2012-07-31 Thread Gerald Schaefer
On Mon, 30 Jul 2012 18:35:37 +0800 Wen Congyang wrote: > At 07/30/2012 06:23 PM, Heiko Carstens Wrote: > > On Fri, Jul 27, 2012 at 06:32:15PM +0800, Wen Congyang wrote: > >> We don't call __add_pages() directly in the function add_memory() > >> because some other architecture related things need

Re: [PATCH] drivers/iio/adc/at91_adc.c: use devm_ functions

2012-07-31 Thread Julia Lawall
On Tue, 31 Jul 2012, Lars-Peter Clausen wrote: > Hi, > > On 07/31/2012 12:09 PM, Julia Lawall wrote: > > From: Julia Lawall > > @@ -720,20 +698,14 @@ error_ret: > > static int __devexit at91_adc_remove(struct platform_device *pdev) > > { > > struct iio_dev *idev = platform_get_drvdata(pdev)

Re: Testing tracer wakeup_rt: .. no entries found ..FAILED!

2012-07-31 Thread Steven Rostedt
On Tue, 2012-07-31 at 15:37 +0300, Avi Kivity wrote: > On 07/31/2012 03:17 PM, Fengguang Wu wrote: > > > > It's good to quickly get to the root cause :) Can we possibly detect > > whether we are in a virtual machine and hence skip this particular > > test case? > > cpu_has(&boot_cpu, X86_FEATURE_

Re: [PATCH -alternative] mm: hugetlbfs: Close race during teardown of hugetlbfs shared page tables V2 (resend)

2012-07-31 Thread Mel Gorman
On Mon, Jul 30, 2012 at 03:11:27PM -0400, Larry Woodman wrote: > > > >That is a surprise. Can you try your test case on 3.4 and tell us if the > >patch fixes the problem there? I would like to rule out the possibility > >that the locking rules are slightly different in RHEL. If it hits on 3.4 > >t

Re: [vmw_vmci 00/11] VMCI for Linux

2012-07-31 Thread Josh Boyer
On Thu, Jul 26, 2012 at 9:46 PM, Greg KH wrote: > On Thu, Jul 26, 2012 at 09:06:25PM -0400, Josh Boyer wrote: >> On Thu, Jul 26, 2012 at 7:39 PM, Andrew Stiegmann (stieg) >> wrote: >> > drivers/misc/Kconfig |1 + >> > drivers/misc/Makefile |1 + >>

Re: Testing tracer wakeup_rt: .. no entries found ..FAILED!

2012-07-31 Thread Avi Kivity
On 07/31/2012 03:43 PM, Steven Rostedt wrote: > On Tue, 2012-07-31 at 15:37 +0300, Avi Kivity wrote: >> On 07/31/2012 03:17 PM, Fengguang Wu wrote: >> > >> > It's good to quickly get to the root cause :) Can we possibly detect >> > whether we are in a virtual machine and hence skip this particular

Re: [PATCH] uprobes: mmap_region() corrupts mm->mm_rb if uprobe_mmap() fails

2012-07-31 Thread Oleg Nesterov
On 07/31, Srikar Dronamraju wrote: > > > --- a/kernel/fork.c > > +++ b/kernel/fork.c > > @@ -454,8 +454,8 @@ static int dup_mmap(struct mm_struct *mm, struct > > mm_struct *oldmm) > > if (retval) > > goto out; > > > > - if (file && uprobe_mmap(tmp)) > > -

Re: [PATCH] staging:net:fixed to fit tty_driver's kref field

2012-07-31 Thread Baodong Chen
On Mon, Jul 30, 2012 at 3:39 AM, Sam Ravnborg wrote: > On Sun, Jul 29, 2012 at 10:06:32PM +0800, Baodong Chen wrote: >> Fixed code to fix tty_driver's kref field >> Coding style issues >> >> Signed-off-by: Baodong Chen > > Hi Baodong. > > As already pointed out by Jiri please split this > up in s

Re: NULL pointer dereference in iio_buffer_register()

2012-07-31 Thread Fengguang Wu
> > The panic happens while trying to dereference the NULL indio_dev->buffer: > > > > 266 int iio_buffer_register(struct iio_dev *indio_dev, > > 267 const struct iio_chan_spec *channels, > > 268 int num_channels) > > 2

[PATCH] sysctl: fix improper indication of integer sysctl parameter

2012-07-31 Thread Mitsuo Hayasaka
Hi, This patch fixes the improper type casting of integer sysctl parameters. When we read the sysctl parameter, they are always treated as signed integer, and are casted into unsigned long type in the current kernel. If we set a value equivalent to (the maximum value in signed integer + 1) which

Re: [GPIO] Crashed when not using

2012-07-31 Thread Poddar, Sourav
Hi Santosh, On Tue, Jul 31, 2012 at 6:02 PM, Shilimkar, Santosh wrote: > On Tue, Jul 31, 2012 at 8:52 AM, Felipe Balbi wrote: >> >> Hi, >> >> On Tue, Jul 31, 2012 at 10:23:16AM +0530, Poddar, Sourav wrote: >> > The device tree data for acquiring the above GPIO interrupt line >> > looks

Re: [RFC][PATCH v3 1/3] runtime interpreted power sequences

2012-07-31 Thread Mitch Bradley
On 7/31/2012 8:38 PM, Thierry Reding wrote: > On Tue, Jul 31, 2012 at 08:22:17PM +0800, Mitch Bradley wrote: >> On 7/31/2012 6:56 PM, Thierry Reding wrote: >>> On Tue, Jul 31, 2012 at 07:32:20PM +0900, Alex Courbot wrote: On 07/31/2012 07:45 AM, Stephen Warren wrote: > I wonder if using th

Re: NULL pointer dereference in iio_buffer_register()

2012-07-31 Thread Lars-Peter Clausen
On 07/31/2012 02:55 PM, Fengguang Wu wrote: >>> The panic happens while trying to dereference the NULL indio_dev->buffer: >>> >>> 266 int iio_buffer_register(struct iio_dev *indio_dev, >>> 267 const struct iio_chan_spec *channels, >>> 268

Re: NULL pointer dereference in iio_buffer_register()

2012-07-31 Thread Fengguang Wu
On Tue, Jul 31, 2012 at 03:06:11PM +0200, Lars-Peter Clausen wrote: > On 07/31/2012 02:55 PM, Fengguang Wu wrote: > >>> The panic happens while trying to dereference the NULL indio_dev->buffer: > >>> > >>> 266 int iio_buffer_register(struct iio_dev *indio_dev, > >>> 267

Re: [PATCH 15/15] workqueue: deprecate __cancel_delayed_work()

2012-07-31 Thread Tomi Valkeinen
Hi, On Fri, 2012-07-27 at 16:55 -0700, Tejun Heo wrote: > __cancel_delayed_work() is different from cancel_delayed_work() in > that it uses del_timer() instead of del_timer_sync(). This adds > confusion to already complicated flush / cancel API and given that the > only thing delayed_work->timer

Re: [PATCH -alternative] mm: hugetlbfs: Close race during teardown of hugetlbfs shared page tables V2 (resend)

2012-07-31 Thread Larry Woodman
On 07/31/2012 08:46 AM, Mel Gorman wrote: On Mon, Jul 30, 2012 at 03:11:27PM -0400, Larry Woodman wrote: That is a surprise. Can you try your test case on 3.4 and tell us if the patch fixes the problem there? I would like to rule out the possibility that the locking rules are slightly different

[GIT PULL] battery-2.6.git

2012-07-31 Thread Anton Vorontsov
Hello Linus, It's almost a normal pull request: a bunch of small fixes and assorted enhancements, and as usual my gpg key is not signed, etc. One thing makes it unusual, though: one of our patches added thermal support for power supply class, but thermal/ subsystem changed under our feet. We (wel

Re: [PATCH] drivers/iio/adc/at91_adc.c: use devm_ functions

2012-07-31 Thread Julia Lawall
From: Julia Lawall The various devm_ functions allocate memory that is released when a driver detaches. This patch uses these functions for data that is allocated in the probe function of a platform device and is only freed in the remove function. The call to platform_get_resource(pdev, IORESOU

Re: [PATCH] USB: echi-dbgp: increase the controller wait time to come out of halt.

2012-07-31 Thread Jason Wessel
On 07/30/2012 10:06 AM, Colin Ian King wrote: > The default 10 microsecond delay for the controller to come out of > halt in dbgp_ehci_startup is too short, so increase it to 1 millisecond. > > This is based on emperical testing on various USB debug ports on > modern machines such as a Lenovo X220i

Re: Testing tracer wakeup_rt: .. no entries found ..FAILED!

2012-07-31 Thread Steven Rostedt
On Tue, 2012-07-31 at 15:50 +0300, Avi Kivity wrote: > On 07/31/2012 03:43 PM, Steven Rostedt wrote: > That would be better. A hypervisor might be real-time capable (with > some effort kvm can do this), so we don't want to turn off real time > features just based on that. It would only turn off

Re: [PATCH 0/6] menuconfig: jump to search results

2012-07-31 Thread Benjamin Poirier
On 2012/07/31 09:57, Borislav Petkov wrote: > On Mon, Jul 30, 2012 at 04:22:12PM -0400, Benjamin Poirier wrote: > > It's against linux-next, which already contains some patches for > > menuconfig. > > Ok, applying against the linux-next from today succeeds. And they seem > to work, I can search fo

Re: [PATCH -alternative] mm: hugetlbfs: Close race during teardown of hugetlbfs shared page tables V2 (resend)

2012-07-31 Thread Michal Hocko
On Tue 31-07-12 13:46:50, Mel Gorman wrote: [...] > mm: hugetlbfs: Correctly detect if page tables have just been shared > > Each page mapped in a processes address space must be correctly > accounted for in _mapcount. Normally the rules for this are > straight-forward but hugetlbfs page table sha

[PATCH] regulator: wm831x-ldo: Check return value of wm831x_reg_read()

2012-07-31 Thread Axel Lin
wm831x_reg_read() returns negative error code on failure. This prevents using the error code as the value read. Signed-off-by: Axel Lin --- drivers/regulator/wm831x-ldo.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/regulator/wm831x-ldo.c b/drivers/regulator/wm831x-ldo.c in

Re: [PATCH] uprobes: mmap_region() corrupts mm->mm_rb if uprobe_mmap() fails

2012-07-31 Thread Oleg Nesterov
On 07/31, Oleg Nesterov wrote: > > OK, so what you suggest for now? > > Please note that it is very trivial to crash the kernel. Just > do something like > > echo "p /bin/true:OFFSET_OF_SYSCALL_INSN" > > /sys/kernel/debug/tracing/uprobe_events > /bin/true Forgot to mention... And eve

Re: [PATCH -alternative] mm: hugetlbfs: Close race during teardown of hugetlbfs shared page tables V2 (resend)

2012-07-31 Thread Mel Gorman
On Tue, Jul 31, 2012 at 09:07:14AM -0400, Larry Woodman wrote: > On 07/31/2012 08:46 AM, Mel Gorman wrote: > >On Mon, Jul 30, 2012 at 03:11:27PM -0400, Larry Woodman wrote: > >>> > >>>That is a surprise. Can you try your test case on 3.4 and tell us if the > >>>patch fixes the problem there? I woul

[PATCH 2/6] ARM: ux500: Remove unused snowball_of_platform_devs struct

2012-07-31 Thread Lee Jones
This was left over during a recent clean-up which removed Device Tree helper structs. There is no longer a requirement for it, so we can just remove it. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500.c |5 - 1 file changed, 5 deletions(-) diff --git a/arch/arm/mach-ux500/

[PATCH 3/6] ARM: ux500: Fix merge error, so such struct 'snd_soc_u8500'

2012-07-31 Thread Lee Jones
The platform attempts to register platform device 'snd_soc_u8500' which doesn't actually exist. Here we change the reference to the correct one 'snd_soc_mop500'. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500-msp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH 4/6] ARM: ux500: Ensure probing of Audio devices when Device Tree is enabled

2012-07-31 Thread Lee Jones
Previous attempts to add platform probing of the Audio related devices only call from non-DT initialisation functions. This patch extends that functionality to the Device Tree related ones too. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500.c |4 1 file changed, 4 inserti

[PATCH 5/6] ARM: ux500: Ensure probing of Audio devices when Device Tree is enabled

2012-07-31 Thread Lee Jones
Previous attempts to add platform probing of the Audio related devices only call from non-DT initialisation functions. This patch extends that functionality to the Device Tree related ones too. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500.c |4 1 file changed, 4 inserti

[PATCH 6/6] ASoC: Ux500: Move MSP pinctrl setup into the MSP driver

2012-07-31 Thread Lee Jones
In the initial submission of the MSP driver msp1 and msp3's associated pinctrl mechanism was passed back to platform code using a plat_init() call-back routine, but it has no place in platform code. The MSP driver should set this up for the appropriate ports. Instead we use a use_pinctrl identifier

[PATCH 6/6] ARM: ux500: Enable HIGHMEM on all mop500 platforms

2012-07-31 Thread Lee Jones
The current kernel commandline for ux500 based devices includes hard-coded allocations for things like mali and hwmem, which actually run over lowmem. Here we enable highmem in order to avoid memory corruption errors. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/Kconfig |1 + 1 file chan

Re: CRYPTO_DEV_NX merge problem (Re: linux-next: Tree for July 31)

2012-07-31 Thread Seth Jennings
On 07/31/2012 12:58 AM, Michael Neuling wrote: >> Please do not add anything to linux-next included branches/series that is >> destined for v3.7 until after v3.6-rc1 is released. > > Looks like there is a merge conflict between: > commit 1b074ac867a2bd08a6f12f0feed7d91e06941723 > Author: Seth

[PATCH 1/6] ASoC: ab8500: Inform SoC Core that we have our own I/O arrangements

2012-07-31 Thread Lee Jones
If codec->control_data is not populated SoC Core assumes we want to use regmap, which fails catastrophically, as we don't have one: Unable to handle kernel NULL pointer dereference at virtual address 0080 pgd = c0004000 [0080] *pgd= Internal error: Oops: 17 [#1] PREEMPT SMP ARM Mod

[PATCH 5/6] ARM: ux500: Enable HIGHMEM on all mop500 platforms

2012-07-31 Thread Lee Jones
The current kernel commandline for ux500 based devices includes hard-coded allocations for things like mali and hwmem, which actually run over lowmem. Here we enable highmem in order to avoid memory corruption errors. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/Kconfig |1 + 1 file chan

[PATCH 4/6] ARM: ux500: Fix merge error, so such struct 'snd_soc_u8500'

2012-07-31 Thread Lee Jones
The platform attempts to register platform device 'snd_soc_u8500' which doesn't actually exist. Here we change the reference to the correct one 'snd_soc_mop500'. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500-msp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH 1/6] Bugfixes and clean-ups bound for the v3.6 RCs

2012-07-31 Thread Lee Jones
This patch-set includes some important changes which should make their way to the Mainline Release Candidates for the v3.6 release. Without them Audio doesn't even probe (at all) when booting with Device Tree selected. The kernel can't compile with ux500 audio enabled. Even if we can get that far S

[PATCH 3/6] ARM: ux500: Remove unused snowball_of_platform_devs struct

2012-07-31 Thread Lee Jones
This was left over during a recent clean-up which removed Device Tree helper structs. There is no longer a requirement for it, so we can just remove it. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500.c |5 - 1 file changed, 5 deletions(-) diff --git a/arch/arm/mach-ux500/

Re: __update_max_tr: rcu_read_lock() used illegally while idle!

2012-07-31 Thread Steven Rostedt
On Tue, 2012-07-31 at 20:05 +0800, Fengguang Wu wrote: > On Mon, Jul 30, 2012 at 11:39:12AM -0400, Steven Rostedt wrote: > > On Tue, 2012-07-24 at 17:03 +0800, Fengguang Wu wrote: > > > Hi Steven, > > > > Hi Fengguang, > > > > Just an FYI, It's best to send email to my rost...@goodmis.org account

[PATCH 2/6] ASoC: ab8500: Inform SoC Core that we have our own I/O arrangements

2012-07-31 Thread Lee Jones
If codec->control_data is not populated SoC Core assumes we want to use regmap, which fails catastrophically, as we don't have one: Unable to handle kernel NULL pointer dereference at virtual address 0080 pgd = c0004000 [0080] *pgd= Internal error: Oops: 17 [#1] PREEMPT SMP ARM Mod

[PATCH 1/6] ASoC: dapm: If one widget fails, do not force all subsequent widgets to fail too

2012-07-31 Thread Lee Jones
If a list of widgets is provided and one of them fails to be added as a control, the present semantics fail all subsequent widgets. A better solution would be to only fail that widget, but pursue in attempting to add the rest of the list. Signed-off-by: Lee Jones --- sound/soc/soc-dapm.c |2

Re: [GIT PULL] GPIO changes for v3.6

2012-07-31 Thread Mark Brown
On Tue, Jul 31, 2012 at 02:47:24PM +1000, NeilBrown wrote: > ... though it occurs to me that it is possible that the GPIO number might not > be allocated until something else has been probed, so a -ve gpio number could > mean "there is no such gpio" or it could mean "gpio has not been allocated >

[PATCH 01/19] Configure ux500 Audio Drivers for Device Tree

2012-07-31 Thread Lee Jones
This patch-set sees many of the ux500 related Audio drivers gain Device Tree enablement. There are also some fixes to issues which where encountered along the way. Documentation/devicetree/bindings/mfd/ab8500.txt | 15 + .../devicetree/bindings/sound/ux500-mop500.txt | 39 ++ .../device

[PATCH 07/19] ARM: ux500: Add AB8500 CODEC node to DB8500 Device Tree

2012-07-31 Thread Lee Jones
Ensure correct probing and pass though important configuration options to the AB8500 CODEC driver when DT is enabled Signed-off-by: Lee Jones --- arch/arm/boot/dts/db8500.dtsi |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/db8500.dtsi b/arch/arm/boot/dts/db8500.dt

[PATCH 08/19] ARM: ux500: Fork MSP platform registration for step-by-step DT enablement

2012-07-31 Thread Lee Jones
We've done this before and it worked well last time. Here we're duplicating a complex registration function to ease the process of enabling it for Device Tree. As there are quite a few steps taken during the registration process, it makes sense to break them up into more manageable chunks. This pat

[PATCH 17/19] Documentation: Define the MOP500 Audio Machine Driver Device Tree bindings

2012-07-31 Thread Lee Jones
Here we add the required documentation for the new Device Tree bindings pertaining to the MOP500 Audio Machine driver. Signed-off-by: Lee Jones --- .../devicetree/bindings/sound/ux500-mop500.txt | 39 1 file changed, 39 insertions(+) create mode 100644 Documentation/d

[PATCH 19/19] Documentation: Add the AB8500 CODEC device to the MFD AB8500 doc

2012-07-31 Thread Lee Jones
Here we document the AB8500 Audio CODEC in the existing MFD AB8500 document. Signed-off-by: Lee Jones --- Documentation/devicetree/bindings/mfd/ab8500.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/ab8500.txt b/Documentation/devi

[PATCH 09/19] ARM: ux500: Pass MSP DMA platform data though AUXDATA

2012-07-31 Thread Lee Jones
It isn't currently possible to pass all platform specific configuration though Device Tree. Thinks like device names used in the clock infrastructure, call-backs and DMA information have to be passed in via AUXDATA structures and the MSP is no exception. Here we're passing DMA settings. Signed-off

[PATCH 10/19] ARM: ux500: Stop registering the MOP500 Audio driver from platform code

2012-07-31 Thread Lee Jones
In this patch we prevent MOP500 driver registration from platform code and rely solely on Device Tree to do the probing for us. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500-msp.c |3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-ux500/board-mop500-msp.c b/a

[PATCH 13/19] ARM: ux500: Rename MSP board file to something more meaningful

2012-07-31 Thread Lee Jones
The 'msp' board file does more than just register MSP devices. It also registers some other components necessary to get audio working on ux500 based platforms; such as the PCM and Machine Drivers. For that reason we're changing the filename to be more encompassing - 'audio'. Signed-off-by: Lee Jon

[PATCH 18/19] Documentation: Define the MSP Driver Device Tree bindings

2012-07-31 Thread Lee Jones
Here we add the required documentation for the new Device Tree bindings pertaining to the MSP CPU-side DAI Driver. Signed-off-by: Lee Jones --- .../devicetree/bindings/sound/ux500-msp.txt| 43 1 file changed, 43 insertions(+) create mode 100644 Documentation/devic

[PATCH 16/19] ARM: ux500: Add all encompassing sound node to the Snowball Device Tree

2012-07-31 Thread Lee Jones
This is where we link together all of the SoC sound components for a given platform. This all encompassing sound node is only found in the very lowest hierarchical DTS file, since the component mix may well change from board variant to board variant. Signed-off-by: Lee Jones --- arch/arm/boot/dt

Re: [PATCH 1/6] Bugfixes and clean-ups bound for the v3.6 RCs

2012-07-31 Thread Mark Brown
On Tue, Jul 31, 2012 at 02:31:21PM +0100, Lee Jones wrote: > This patch-set includes some important changes which should make > their way to the Mainline Release Candidates for the v3.6 release. You appear to have double sent this or something... -- To unsubscribe from this list: send the line "un

[PATCH 15/19] ARM: ux500: Add nodes for the MSP into Device Tree

2012-07-31 Thread Lee Jones
This patch inserts all known MSP devices into the DBx5x0 Device Tree disabled and enables the two important ones for the Snowball low-cost development board. Signed-off-by: Lee Jones --- arch/arm/boot/dts/dbx5x0.dtsi | 33 + arch/arm/boot/dts/snowball.dts |

[PATCH 14/19] ARM: ux500: Rename db8500.dtsi to dbx5x0.dtsi to encompass the u9500, u8540 and u9540

2012-07-31 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/boot/dts/db8500.dtsi | 603 arch/arm/boot/dts/dbx5x0.dtsi | 603 arch/arm/boot/dts/snowball.dts |2 +- 3 files changed, 604 insertions(+), 604 deletions(-) delete mode

Re: [PATCH v2 RESEND] Hardware breakpoints: Invoke __perf_event_disable() if interrupts are already disabled

2012-07-31 Thread Frederic Weisbecker
On Wed, Jul 25, 2012 at 05:02:56PM +0530, Naveen N. Rao wrote: > >>>@@ -453,7 +453,15 @@ int modify_user_hw_breakpoint(struct perf_event > >>>*bp, struct perf_event_attr *att > >>> int old_type = bp->attr.bp_type; > >>> int err = 0; > >>> > >>>-perf_event_disable(bp); > >>>+/* > >

Re: [PATCH 1/6] ASoC: dapm: If one widget fails, do not force all subsequent widgets to fail too

2012-07-31 Thread Mark Brown
On Tue, Jul 31, 2012 at 02:31:23PM +0100, Lee Jones wrote: > If a list of widgets is provided and one of them fails to be added as > a control, the present semantics fail all subsequent widgets. A better > solution would be to only fail that widget, but pursue in attempting > to add the rest of the

[PATCH 12/19] ARM: ux500: Remove platform registration of MSP devices

2012-07-31 Thread Lee Jones
This patch removes platform device registration of all 4 MSP devices. It also takes care of all redundant infrastructure now that each of the ux500 audio components have been Device Tree enabled. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500-msp.c | 14 -- arch/arm/

[PATCH 11/19] ARM: ux500: Stop registering the PCM driver from platform code

2012-07-31 Thread Lee Jones
We now initialise the PCM driver through the MSP DAI, so there is no need to register it though platform code anymore. This patch strips out all PCM platform registration. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500-msp.c |6 -- 1 file changed, 6 deletions(-) diff --gi

[PATCH 01/19] ASoC: Ux500: Move MSP pinctrl setup into the MSP driver

2012-07-31 Thread Lee Jones
In the initial submission of the MSP driver msp1 and msp3's associated pinctrl mechanism was passed back to platform code using a plat_init() call-back routine, but it has no place in platform code. The MSP driver should set this up for the appropriate ports. Instead we use a use_pinctrl identifier

[PATCH 04/19] ASoC: Ux500: Initialise PCM from MSP probe rather than as a device

2012-07-31 Thread Lee Jones
The PCM is a pseudo-device. It doesn't have any of it's own registers or hardware. It rather acts as a layer of abstraction for DMA transfers. Hence, instead of classifying it as a device in its own right, we call the initialisation from the MSP driver. Signed-off-by: Lee Jones --- sound/soc/ux5

[PATCH 06/19] ARM: ux500: Clean-up MSP platform code

2012-07-31 Thread Lee Jones
This patch contains a couple of general MSP clean-ups pertaining to layout changes and changing functions to be void instead of int instead of regardlessly returning '0'. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500-msp.c | 26 -- arch/arm/mach-ux500/bo

[PATCH 05/19] ASoC: codecs: Enable AB8500 CODEC for Device Tree

2012-07-31 Thread Lee Jones
We continue to allow the AB8500 CODEC to be registered via the AB8500 Multi Functional Device API, only this time we extract its configuration from the Device Tree binary. Signed-off-by: Lee Jones --- include/linux/mfd/abx500/ab8500-codec.h |6 ++- sound/soc/codecs/ab8500-codec.c |

Re: __update_max_tr: rcu_read_lock() used illegally while idle!

2012-07-31 Thread Steven Rostedt
On Tue, 2012-07-31 at 20:10 +0800, Fengguang Wu wrote: > Another note: the above __update_max_tr back trace only appear accasionally. > The more typical error messages look like this: > > [ 16.195315] Running tests on trace events: > [ 16.196586] Testing event kfree_skb: [ 16.200404] --

[PATCH 03/19] ASoC: Ux500: Enable ux500 MSP driver for Device Tree

2012-07-31 Thread Lee Jones
Register both parts of the MSP driver from Device Tree so that they are probed when Device Tree is enabled. Also, as there is platform data involved, we ensure that there is allocated memory to place the configuration into and that the correct information is extracted from the DT binary. Signed-of

[PATCH 02/19] ASoC: Ux500: Enable MOP500 driver for Device Tree

2012-07-31 Thread Lee Jones
Here we ensure that the MOP500 audio driver will be probed during a Device Tree boot. We also parse the sound node to link together the codec, dma and the CPU-side Digital Audio Interface. Signed-off-by: Lee Jones --- sound/soc/ux500/mop500.c | 38 ++ 1 file

<    1   2   3   4   5   6   7   >