Re: [RFC][PATCH] perf: Add a few generic stalled-cycles events

2012-10-31 Thread Peter Zijlstra
On Tue, 2012-10-30 at 23:40 -0700, Sukadev Bhattiprolu wrote: > So instead of the names I came up with in this patch, > stalled-cycles-fixed-point > we could use the name used in the CPU spec - 'cmplu_stall_fxu' in the arch > specific code ? You could, but I would advise against it. Human readab

[PATCH 2/3] usb: gadget: fsl_qe_udc: do not use tasklet_disable before tasklet_kill

2012-10-31 Thread Xiaotian Feng
If tasklet_disable() is called before related tasklet handled, tasklet_kill will never be finished. tasklet_kill is enough. Signed-off-by: Xiaotian Feng Cc: Li Yang Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org --- drivers/usb/gadget/f

[PATCH] i2c-cpm: Fix to takeback i2c bus master-ship after a collision

2012-10-31 Thread sachin surendran
In case of collision on i2c bus the controller which lost bus mastership stays as a slave for all subsequent transfers. This results in the i2c controller never writing to the bus for future transactions, resulting in i2c transfer timeouts. This fix checks for a collision on last I2C transaction

Re: PCI device not working

2012-10-31 Thread Davide
Hi Kumar, I try to summarize the problem in the hope to fix it for good: Linux Kernel (2.6.34-6) did not detect one of the two pci devices that instead u-boot could "see". This was worakounded by defining CONFIG_PCI_NOSCAN in u-boot as per [1] To find out the root cause of the problem, you've sugg

Re: [PATCH] i2c-cpm: Fix to takeback i2c bus master-ship after a collision

2012-10-31 Thread Jochen Friedrich
Hi Sachin, looks good to me. Acked-By: Jochen Friedrich Signed-off-by: Sachin Surendran mailto:sachin.surend...@alliedtelesis.co.nz>> --- drivers/i2c/busses/i2c-cpm.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/i2c/busses/i2c-cpm.c b/drivers/i2c/busses/i2c-cpm.c

Re: [PATCH 2/6] powerpc: Define CPU_FTR_HAS_PPR

2012-10-31 Thread Kumar Gala
On Oct 31, 2012, at 1:52 AM, Haren Myneni wrote: > [PATCH 2/6] powerpc: Define CPU_FTR_HAS_PPR > > CPU_FTR_HAS_PPR is defined for POWER7. Would be nice if commit message spelled out what PPR is. > > Signed-off-by: Haren Myneni > --- > arch/powerpc/include/asm/cputable.h |6 -- > 1 fil

Re: [PATCH 2/3] usb: gadget: fsl_qe_udc: do not use tasklet_disable before tasklet_kill

2012-10-31 Thread Felipe Balbi
On Wed, Oct 31, 2012 at 04:06:00PM +0800, Xiaotian Feng wrote: > If tasklet_disable() is called before related tasklet handled, > tasklet_kill will never be finished. tasklet_kill is enough. how did you test this ? Why changing FSL driver instead of switching over to chipidea which is supposed to

Re: [PATCH 2/3] usb: gadget: fsl_qe_udc: do not use tasklet_disable before tasklet_kill

2012-10-31 Thread Li Yang
On Wed, Oct 31, 2012 at 9:26 PM, Felipe Balbi wrote: > On Wed, Oct 31, 2012 at 04:06:00PM +0800, Xiaotian Feng wrote: >> If tasklet_disable() is called before related tasklet handled, >> tasklet_kill will never be finished. tasklet_kill is enough. > > how did you test this ? Why changing FSL drive

Re: [PATCH 2/3] usb: gadget: fsl_qe_udc: do not use tasklet_disable before tasklet_kill

2012-10-31 Thread Felipe Balbi
Hi, On Wed, Oct 31, 2012 at 10:35:37PM +0800, Li Yang wrote: > On Wed, Oct 31, 2012 at 9:26 PM, Felipe Balbi wrote: > > On Wed, Oct 31, 2012 at 04:06:00PM +0800, Xiaotian Feng wrote: > >> If tasklet_disable() is called before related tasklet handled, > >> tasklet_kill will never be finished. task

Re: [PATCH 2/6] powerpc: Define CPU_FTR_HAS_PPR

2012-10-31 Thread Haren Myneni
On 10/31/2012 06:25 AM, Kumar Gala wrote: > > On Oct 31, 2012, at 1:52 AM, Haren Myneni wrote: > >> [PATCH 2/6] powerpc: Define CPU_FTR_HAS_PPR >> >> CPU_FTR_HAS_PPR is defined for POWER7. > > Would be nice if commit message spelled out what PPR is. > Thanks, First patch described what PPR is.

How to add an i2c component to the existing device tree?

2012-10-31 Thread Dung_Nguyen
Hi, I'm currently using the hardware that is designed based on the AMCC Sequoia Evaluation board. I use the device tree file sequoia.dts to start with. We have added some i2c buses based on Xilinx i2c core beside the PPC i2c bus 0 and 1. I want to add a new i2c component to the existing device

Re: [PATCH 0/6] powerpc: SMT priority (PPR) save and restore

2012-10-31 Thread Michael Neuling
Haren Myneni wrote: > [PATCH 0/6] powerpc: SMT priority (PPR) save and restore > > On P7 systems, users can define SMT priority levels 2,3 and 4 for > processes so that some can run higher priority than the other ones. > In the current kernel, the default priority is set to 4 which prohibits > p

[PATCH] powerpc: add finit_module syscall.

2012-10-31 Thread Rusty Russell
(This is just for Acks: this won't work without the actual syscall patches, sitting in my tree for -next at the moment). Signed-off-by: Rusty Russell --- arch/powerpc/include/asm/systbl.h |1 + arch/powerpc/include/asm/unistd.h |2 +- arch/powerpc/include/uapi/asm/unistd.h |

[PATCH] powerpc/fsl-pci: Add PCI controller ATMU PM support

2012-10-31 Thread Jia Hongtao
Power supply for PCI controller ATMU registers is off when system go to deep-sleep state. So ATMU registers should be re-setup during PCI controllers resume from sleep. Signed-off-by: Jia Hongtao Signed-off-by: Li Yang --- arch/powerpc/sysdev/fsl_pci.c | 21 +++-- 1 files chan

[PATCH] powerpc: Fix denorm symbol name

2012-10-31 Thread Michael Neuling
Fix global symbol name to match actual denorm_exception_hv label. Signed-off-by: Michael Neuling --- arch/powerpc/kernel/exceptions-64s.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index b7a5