Interrupt handler not executed

2013-01-10 Thread R . Patil
Hello, We are working on board based on Freescale MPC8313ERDB. We have ported linux 3.0.46 kernel on it. In one of device driver written by us, we need to take some action upon asserting IRQ0 interrupt. For this we have written interrupt handler which takes care of this. We are able register in

[PATCH] powerpc: added DSCR support to ptrace

2013-01-10 Thread Alexey Kardashevskiy
The DSCR (aka Data Stream Control Register) is supported on some server PowerPC chips and allow some control over the prefetch of data streams. The kernel already supports DSCR value per thread but there is also a need in a ability to change it from an external process for the specific pid. The p

Re: linux-next: build failure after merge of the final tree (powerpc tree related)

2013-01-10 Thread Michael Neuling
Stephen Rothwell wrote: > Hi all, > > After merging the final tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > arch/powerpc/kernel/kgdb.c: In function 'kgdb_arch_exit': > arch/powerpc/kernel/kgdb.c:492:2: error: '__debugger_breakx_match' undeclared > (first use in

RE: [PATCH] Added device tree binding for TDM and TDM phy

2013-01-10 Thread Singh Sandeep-B37400
> -Original Message- > From: Wood Scott-B07421 > Sent: Friday, January 11, 2013 1:19 AM > To: Singh Sandeep-B37400 > Cc: Wood Scott-B07421; devicetree-disc...@lists.ozlabs.org; linuxppc- > d...@ozlabs.org; Aggrwal Poonam-B10812 > Subject: Re: [PATCH] Added device tree binding for TDM and TD

linux-next: build failure after merge of the final tree (powerpc tree related)

2013-01-10 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: arch/powerpc/kernel/kgdb.c: In function 'kgdb_arch_exit': arch/powerpc/kernel/kgdb.c:492:2: error: '__debugger_breakx_match' undeclared (first use in this function) Caused by commit 9422de3e9

[PATCH] powerpc: added DSCR support to ptrace

2013-01-10 Thread Alexey Kardashevskiy
The DSCR (aka Data Stream Control Register) is supported on some server PowerPC chips and allow some control over the prefetch of data streams. The kernel already supports DSCR value per thread but there is also a need in a ability to change it from an external process for the specific pid. The p

RE: [BUILD BREAK] usb: gadget: fsl_mxc_udc can't compile on current v3.8-rc3

2013-01-10 Thread Chen Peter-B29397
> > > > > > Some recent patch has caused fsl_mxc_udc.c driver to fail compilation > > > because it can't find anymore. > > > > > > I would like this to be fixed still during this -rc cycle. > > > > Me too, who's sending a patch? :) > > Hi Peter, > > Who is currently working on the i.mx USB? >

RE: [BUILD BREAK] usb: gadget: fsl_mxc_udc can't compile on current v3.8-rc3

2013-01-10 Thread Li Yang-R58472
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Thursday, January 10, 2013 10:30 PM > To: Felipe Balbi > Cc: Li Yang-R58472; linux-...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org > Subject: Re: [BUILD BREAK] usb: gadget: fsl_mxc_udc can't compile on >

[PATCH] powerpc: Fix typo in breakpoint kgdb code.

2013-01-10 Thread Michael Neuling
Currently we are getting: arch/powerpc/kernel/kgdb.c: In function 'kgdb_arch_exit': arch/powerpc/kernel/kgdb.c:492:2: error: '__debugger_breakx_match' undeclared (first use in this function) arch/powerpc/kernel/kgdb.c:492:2: note: each undeclared identifier is reported only once for each func

Re: [BUILD BREAK] usb: gadget: fsl_mxc_udc can't compile on current v3.8-rc3

2013-01-10 Thread Peter Chen
On Thu, Jan 10, 2013 at 06:30:06AM -0800, Greg KH wrote: > On Thu, Jan 10, 2013 at 12:08:35PM +0200, Felipe Balbi wrote: > > Hi, > > > > Some recent patch has caused fsl_mxc_udc.c driver to fail compilation > > because it can't find anymore. > > > > I would like this to be fixed still during thi

[PATCH] powerpc: rename set_break to avoid naming conflict

2013-01-10 Thread Michael Neuling
With allmodconfig we are getting: drivers/tty/synclink_gt.c:160:12: error: conflicting types for 'set_break' arch/powerpc/include/asm/debug.h:49:5: note: previous declaration of 'set_break' was here drivers/tty/synclinkmp.c:526:12: error: conflicting types for 'set_break' arch/powerpc/inc

[RFC PATCH v2 05/12] mm: Add memory hotplug handlers

2013-01-10 Thread Toshi Kani
Added memory hotplug handlers. mm_add_execute() onlines requested memory ranges for hot-add & online operations, and mm_del_execute() offlines them for hot-delete & offline operations. They are also used for rollback as well. mm_del_validate() fails a hot-delete request if a requested memory ran

[RFC PATCH v2 00/12] System device hot-plug framework

2013-01-10 Thread Toshi Kani
This patchset is a prototype of proposed system device hot-plug framework for design review. Unlike other hot-plug environments, such as USB and PCI, there is no common framework for system device hot-plug [1]. Therefore, this patchset is designed to provide a common framework for hot-plugging and

[RFC PATCH v2 11/12] cpu: Update sysfs cpu/online for hotplug framework

2013-01-10 Thread Toshi Kani
Changed store_online() to request a cpu online or offline operation by calling shp_submit_req(). It sets a target cpu device information with shp_add_dev_info() for the request. Signed-off-by: Toshi Kani --- drivers/base/cpu.c | 40 1 file changed, 28

[RFC PATCH v2 04/12] cpu: Add cpu hotplug handlers

2013-01-10 Thread Toshi Kani
Added cpu hotplug handlers. cpu_add_execute() onlines requested cpus for hot-add & online operations, and cpu_del_execute() offlines them for hot-delete & offline operations. They are also used for rollback as well. cpu_del_validate() fails a request if cpu0 is requested to delete. Signed-off-b

[RFC PATCH v2 03/12] drivers/base: Add system device hotplug framework

2013-01-10 Thread Toshi Kani
Added sys_hotplug.c, which is the system device hotplug framework code. shp_register_handler() allows modules to register their hotplug handlers to the framework. shp_submit_req() provides the interface to submit a hotplug or online/offline request of system devices. The request is then put into

[RFC PATCH v2 07/12] ACPI: Add ACPI resource hotplug handler

2013-01-10 Thread Toshi Kani
Added ACPI resource handler for hotplug operations. The handler, acpi_set_shp_device(), sets device resource information to a hotplug request, which is consumed by the CPU and memory handlers. For setting the device resource information, acpi_scan_shp_devices() walks the acpi_device tree from a ta

[RFC PATCH v2 06/12] ACPI: Add ACPI bus hotplug handlers

2013-01-10 Thread Toshi Kani
Added ACPI bus hotplug handlers. acpi_add_execute() calls acpi_bus_add() to construct new acpi_device objects for hot-add operation, and acpi_del_execute() calls acpi_bus_trim() to destruct them for hot-delete operation. They are also used for rollback as well. acpi_del_commit() calls _EJ0 to ej

[RFC PATCH v2 01/12] Add sys_hotplug.h for system device hotplug framework

2013-01-10 Thread Toshi Kani
Added include/linux/sys_hotplug.h, which defines the system device hotplug framework interfaces used by the framework itself and handlers. The order values define the calling sequence of handlers. For add execute, the ordering is ACPI->MEM->CPU. Memory is onlined before CPU so that threads on ne

[RFC PATCH v2 08/12] ACPI: Update processor driver for hotplug framework

2013-01-10 Thread Toshi Kani
Added acpi_processor_resource() for the .resource() interface, which sets CPU information to a hotplug request. Changed acpi_processor_hotplug_notify() to request a hotplug operation by calling shp_submit_req(). It no longer initiates hot-add or hot-delete operation by calling acpi_bus_add() or a

[RFC PATCH v2 02/12] ACPI: Add sys_hotplug.h for system device hotplug framework

2013-01-10 Thread Toshi Kani
Added include/acpi/sys_hotplug.h, which is ACPI-specific system device hotplug header and defines the order values of ACPI-specific handlers. Signed-off-by: Toshi Kani --- include/acpi/sys_hotplug.h | 48 1 file changed, 48 insertions(+) create mod

[RFC PATCH v2 10/12] ACPI: Update container driver for hotplug framework

2013-01-10 Thread Toshi Kani
Changed container_notify_cb() to request a hotplug operation by calling shp_submit_req(). It no longer initiates hot-add by calling acpi_bus_add(). Also, it no longer sets device->flags.eject_pending and generates KOBJ_OFFLINE event for hot-delete. Signed-off-by: Toshi Kani --- drivers/acpi/co

[RFC PATCH v2 12/12] ACPI: Update sysfs eject for hotplug framework

2013-01-10 Thread Toshi Kani
Changed acpi_eject_store() to request a hot-delete operation by calling shp_submit_req(). It no longer initiates a hot-delete operation by calling acpi_bus_hot_remove_device(). Deleted acpi_bus_hot_remove_device() since it no longer has any caller and should not be called for hot-delete. Deleted

[RFC PATCH v2 09/12] ACPI: Update memory driver for hotplug framework

2013-01-10 Thread Toshi Kani
Changed acpi_memory_device_notify() to request a hotplug operation by calling shp_submit_req(). It no longer initiates hot-add or hot-delete operation by calling add_memory() or remove_memory() directly. Removed the enabled and failed flags from acpi_memory_info since they are no longer used. Ch

Re: [PATCH] PowerPC documentation: fixed path to the powerpc directory

2013-01-10 Thread Benjamin Herrenschmidt
On Thu, 2013-01-10 at 13:07 +0100, Thomas Waldecker wrote: > ppc -> powerpc I think I already applied something like that in powerpc -next, can you dbl check ? Cheers, Ben. > Signed-off-by: Thomas Waldecker > --- > Documentation/powerpc/cpu_features.txt | 10 +- > 1 file changed, 5 ins

Re: [PATCH] Added device tree binding for TDM and TDM phy

2013-01-10 Thread Scott Wood
On 01/10/2013 03:24:21 AM, Singh Sandeep-B37400 wrote: > > > +- compatible > > > +Value type: > > > +Definition: Should contain generic compatibility like > > "tdm-phy-slic" > > > or > > > +"tdm-phy-e1" or "tdm-phy-t1". > > Does this "generic" string (plus the other properties) tell

[PATCH v2] ppc/iommu: use find_first_bit to look up entries in the iommu table

2013-01-10 Thread Thadeu Lima de Souza Cascardo
Signed-off-by: Thadeu Lima de Souza Cascardo --- v2: Remove the unneeded extra variable i, which caused build failure. --- arch/powerpc/kernel/iommu.c |9 ++--- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c index 6

Re: [TRIVIAL PATCH 11/26] powerpc: Convert print_symbol to %pSR

2013-01-10 Thread Joe Perches
On Thu, 2013-01-10 at 16:48 +1100, Benjamin Herrenschmidt wrote: > On Thu, 2012-12-13 at 11:58 +, Arnd Bergmann wrote: > > On Wednesday 12 December 2012, Joe Perches wrote: > > > Use the new vsprintf extension to avoid any possible > > > message interleaving. > > > > > > Convert the #ifdef DEB

Re: [BUILD BREAK] usb: gadget: fsl_mxc_udc can't compile on current v3.8-rc3

2013-01-10 Thread Greg KH
On Thu, Jan 10, 2013 at 12:08:35PM +0200, Felipe Balbi wrote: > Hi, > > Some recent patch has caused fsl_mxc_udc.c driver to fail compilation > because it can't find anymore. > > I would like this to be fixed still during this -rc cycle. Me too, who's sending a patch? :) _

[PATCH] PowerPC documentation: fixed path to the powerpc directory

2013-01-10 Thread Thomas Waldecker
ppc -> powerpc Signed-off-by: Thomas Waldecker --- Documentation/powerpc/cpu_features.txt | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/powerpc/cpu_features.txt b/Documentation/powerpc/cpu_features.txt index ffa4183..ae09df8 100644 --- a/Documentat

[powerpc:next 54/54] arch/powerpc/kernel/exceptions-64s.S:1204: Error: attempt to move .org backwards

2013-01-10 Thread Fengguang Wu
Hi Benjamin, FYI, kernel build failed on tree: git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git next head: 61383407677aef05928541a00678591abea2d84c config: make ARCH=powerpc allmodconfig All error/warnings: WARNING: arch/powerpc/mm/built-in.o(.cpuinit.text+0x292): Section mis

[BUILD BREAK] usb: gadget: fsl_mxc_udc can't compile on current v3.8-rc3

2013-01-10 Thread Felipe Balbi
Hi, Some recent patch has caused fsl_mxc_udc.c driver to fail compilation because it can't find anymore. I would like this to be fixed still during this -rc cycle. Thank you -- balbi signature.asc Description: Digital signature ___ Linuxppc-dev ma

RE: [PATCH] Added device tree binding for TDM and TDM phy

2013-01-10 Thread Singh Sandeep-B37400
> -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, January 10, 2013 5:37 AM > To: Singh Sandeep-B37400 > Cc: devicetree-disc...@lists.ozlabs.org; linuxppc-...@ozlabs.org; Aggrwal > Poonam-B10812 > Subject: Re: [PATCH] Added device tree binding for TDM and TDM phy > > On 01/09

[PATCH powerpc ] Avoid debug_smp_processor_id() check in arch_spin_unlock_wait()

2013-01-10 Thread Li Zhong
Use local_paca directly in arch_spin_unlock_wait(), as all processors have the same value for the field shared_proc, so we don't need care racy here. Reported-by: Paul E. McKenney Signed-off-by: Li Zhong --- arch/powerpc/lib/locks.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH v6 00/15] memory-hotplug: hot-remove physical memory

2013-01-10 Thread Kamezawa Hiroyuki
(2013/01/10 17:36), Glauber Costa wrote: BTW, shrink_slab() is now node/zone aware ? If not, fixing that first will be better direction I guess. It is not upstream, but there are patches for this that I am already using in my private tree. Oh, I see. If it's merged, it's worth add "shrink_

Re: [PATCH v6 00/15] memory-hotplug: hot-remove physical memory

2013-01-10 Thread Glauber Costa
> If it's configure as ZONE_NORMAL, you need to pray for offlining memory. > > AFAIK, IBM's ppc? has 16MB section size. So, some of sections can be > offlined > even if they are configured as ZONE_NORMAL. For them, placement of offlined > memory is not important because it's virtualized by LPAR,

Re: [PATCH v6 00/15] memory-hotplug: hot-remove physical memory

2013-01-10 Thread Kamezawa Hiroyuki
(2013/01/10 16:55), Glauber Costa wrote: On 01/10/2013 11:31 AM, Kamezawa Hiroyuki wrote: (2013/01/10 16:14), Glauber Costa wrote: On 01/10/2013 06:17 AM, Tang Chen wrote: Note: if the memory provided by the memory device is used by the kernel, it can't be offlined. It is not a bug. Right.