Re: [RFC PATCH 14/16] KVM: PPC: booke: category E.HV (GS-mode) support

2012-01-11 Thread Alexander Graf
On 12.01.2012, at 07:44, Benjamin Herrenschmidt wrote: > On Tue, 2012-01-10 at 04:11 +0100, Alexander Graf wrote: >> This is what book3s does: >> >>case EMULATE_FAIL: >>printk(KERN_CRIT "%s: emulation at %lx failed >> (%08x)\n", >>

Re: [RFC PATCH 14/16] KVM: PPC: booke: category E.HV (GS-mode) support

2012-01-11 Thread Benjamin Herrenschmidt
On Tue, 2012-01-10 at 04:11 +0100, Alexander Graf wrote: > This is what book3s does: > > case EMULATE_FAIL: > printk(KERN_CRIT "%s: emulation at %lx failed > (%08x)\n", >__func__, kvmppc_get_pc(vcpu), > kvmppc_get_last_inst(vc

Re: [RFC PATCH 04/16] KVM: PPC: factor out lpid allocator from book3s_64_mmu_hv

2012-01-11 Thread Paul Mackerras
On Mon, Jan 09, 2012 at 04:35:52PM +0100, Alexander Graf wrote: > Paul, does this work for you? IIRC you need this code to be > available from real mode, which powerpc.c isn't in, right? We don't need to allocated LPIDs from real mode, so it should be OK. book3s_64_mmu_hv.c is not real mode code,

Re: cpuidle: Default y for pseries

2012-01-11 Thread Benjamin Herrenschmidt
On Wed, 2012-01-11 at 20:37 -0200, Thadeu Lima de Souza Cascardo wrote: > On Tue, Jan 10, 2012 at 03:05:35PM -, Benjamin Herrenschmidt wrote: > > We just replaced the pseries platform idle loops with a cpuidle backend, > > however that means that you won't get any power saving and won't return

Re: cpuidle: Default y for pseries

2012-01-11 Thread Thadeu Lima de Souza Cascardo
On Tue, Jan 10, 2012 at 03:05:35PM -, Benjamin Herrenschmidt wrote: > We just replaced the pseries platform idle loops with a cpuidle backend, > however that means that you won't get any power saving and won't return > any unused idle time to the hypervisor unless cpuidle is enabled. > > Thus

Re: [RFC 0/14] Finish up irq_domain generalization

2012-01-11 Thread Randy Dunlap
On 01/11/2012 01:23 PM, Grant Likely wrote: > On Wed, Jan 11, 2012 at 1:50 PM, Grant Likely > wrote: >> On Wed, Jan 11, 2012 at 2:39 PM, Randy Dunlap wrote: >>> On 01/11/2012 12:22 PM, Grant Likely wrote: Here are the patches that I've been working on to finish up the creation of the g

Re: [PATCH 2/2] Kbuild: Use dtc's -d (dependency) option

2012-01-11 Thread Mark Salter
On Mon, 2012-01-09 at 11:38 -0700, Stephen Warren wrote: > This hooks dtc into Kbuild's dependency system. > > Thus, for example, "make dtbs" will rebuild tegra-harmony.dtb if only > tegra20.dtsi has changed yet tegra-harmony.dts has not. The previous > lack of this feature recently caused me to h

Re: [RFC 13/14] irq_domain: Remove 'new' irq_domain in favour of the ppc one

2012-01-11 Thread Grant Likely
On Wed, Jan 11, 2012 at 2:15 PM, Rob Herring wrote: > Grant, > > On 01/11/2012 02:22 PM, Grant Likely wrote: >> This patch removes the simplistic implementation of irq_domains and enables >> the powerpc infrastructure for all irq_domain users.  The powerpc >> infrastructure includes support for co

Re: [RFC 0/14] Finish up irq_domain generalization

2012-01-11 Thread Grant Likely
On Wed, Jan 11, 2012 at 1:50 PM, Grant Likely wrote: > On Wed, Jan 11, 2012 at 2:39 PM, Randy Dunlap wrote: >> On 01/11/2012 12:22 PM, Grant Likely wrote: >>> Here are the patches that I've been working on to finish up the creation >>> of the generic irq_domain infrastructure. >> >> Does this fix

Re: [RFC 13/14] irq_domain: Remove 'new' irq_domain in favour of the ppc one

2012-01-11 Thread Rob Herring
Grant, On 01/11/2012 02:22 PM, Grant Likely wrote: > This patch removes the simplistic implementation of irq_domains and enables > the powerpc infrastructure for all irq_domain users. The powerpc > infrastructure includes support for complex mappings between Linux and > hardware irq numbers, and

Re: [RFC 0/14] Finish up irq_domain generalization

2012-01-11 Thread Grant Likely
On Wed, Jan 11, 2012 at 2:39 PM, Randy Dunlap wrote: > On 01/11/2012 12:22 PM, Grant Likely wrote: >> Here are the patches that I've been working on to finish up the creation >> of the generic irq_domain infrastructure. > > Does this fix the linux-next build problems that I have reported? > > http

Re: [RFC 0/14] Finish up irq_domain generalization

2012-01-11 Thread Randy Dunlap
On 01/11/2012 12:22 PM, Grant Likely wrote: > Here are the patches that I've been working on to finish up the creation > of the generic irq_domain infrastructure. Does this fix the linux-next build problems that I have reported? https://lkml.org/lkml/2012/1/9/318 > kernel/irq/irqdomain.c

[RFC 14/14] irq_domain: Remove irq_domain_add_simple()

2012-01-11 Thread Grant Likely
irq_domain_add_simple() was a stop-gap measure until complete irq_domain support was complete. This patch removes the irq_domain_add_simple() interface. Signed-off-by: Grant Likely --- arch/arm/mach-imx/imx51-dt.c|4 ++-- arch/arm/mach-imx/imx53-dt.c|4 ++-- arch/arm/mac

[RFC 13/14] irq_domain: Remove 'new' irq_domain in favour of the ppc one

2012-01-11 Thread Grant Likely
This patch removes the simplistic implementation of irq_domains and enables the powerpc infrastructure for all irq_domain users. The powerpc infrastructure includes support for complex mappings between Linux and hardware irq numbers, and can manage allocation of irq_descs. This patch also convert

[RFC 10/14] irq_domain: Replace irq_alloc_host() with revmap-specific initializers

2012-01-11 Thread Grant Likely
Each revmap type has different arguments for setting up the revmap. This patch splits up the generator functions so that each revmap type can do its own setup and the user doesn't need to keep track of how each revmap type handles the arguments. Signed-off-by: Grant Likely Cc: Benjamin Herrenschm

[RFC 12/14] irq_domain: Add support for base irq and hwirq in legacy mappings

2012-01-11 Thread Grant Likely
Add support for a legacy mapping where irq = (hwirq - first_hwirq + first_irq) so that a controller driver can allocate a fixed range of irq_descs and use a simple calculation to translate back and forth between linux and hw irq numbers. This is needed to use an irq_domain with many of the ARM int

[RFC 09/14] irq_domain: Remove references to old irq_host names

2012-01-11 Thread Grant Likely
No functional changes. Replaces non-exported references to 'host' with domain. Does not change any symbol names referenced by other .c files. Signed-off-by: Grant Likely Cc: Benjamin Herrenschmidt --- kernel/irq/irqdomain.c | 219 1 files chang

[RFC 07/14] irq_domain: Move irq_domain code from powerpc to kernel/irq

2012-01-11 Thread Grant Likely
This patch only moves the code. It doesn't make any changes, and the code is still only compiled for powerpc. Follow-on patches will generalize the code for other architectures. Signed-off-by: Grant Likely Cc: Benjamin Herrenschmidt --- arch/powerpc/Kconfig |1 + arch/powerpc/in

[RFC 08/14] irqdomain: remove NO_IRQ from irq domain code

2012-01-11 Thread Grant Likely
zero always means no irq when using irq domains. Get rid of the NO_IRQ references. Signed-off-by: Grant Likely Cc: Benjamin Herrenschmidt --- kernel/irq/irqdomain.c | 38 +++--- 1 files changed, 19 insertions(+), 19 deletions(-) diff --git a/kernel/irq/irqdom

[RFC 05/14] irq_domain/powerpc: eliminate irq_map; use irq_alloc_desc() instead

2012-01-11 Thread Grant Likely
This patch drops the powerpc-specific irq_map table and replaces it with directly using the irq_alloc_desc()/irq_free_desc() interfaces for allocating and freeing irq_desc structures. This patch is a preparation step for generalizing the powerpc-specific virq infrastructure to become irq_domains.

[RFC 06/14] irq_domain/powerpc: Eliminate virq_is_host()

2012-01-11 Thread Grant Likely
There is only one user, and it is trivial to open-code. Signed-off-by: Grant Likely Cc: Benjamin Herrenschmidt --- arch/powerpc/include/asm/irq.h |1 - arch/powerpc/kernel/irq.c |7 --- arch/powerpc/sysdev/xics/xics-common.c | 12 ++-- 3 files changed,

[RFC 03/14] irq_domain: convert microblaze from irq_host to irq_domain

2012-01-11 Thread Grant Likely
Trivial change, microblaze doesn't use irq remapping yet. Signed-off-by: Grant Likely Cc: Michal Simek --- arch/microblaze/include/asm/irq.h |4 ++-- arch/microblaze/kernel/irq.c |2 +- arch/microblaze/kernel/setup.c|2 -- 3 files changed, 3 insertions(+), 5 deletions(-) d

[RFC 02/14] irq_domain: Make irq_domain structure match powerpc's irq_host

2012-01-11 Thread Grant Likely
Part of the series to unify the irq remapping mechanisms in the kernel. A follow up patch will copy the powerpc implementation into kernel/irq/irqdomain.c, which will be a lot easier if the structures are identical. Where they differ, I've chose to use the powerpc names since there is a lot more

[RFC 01/14] dt: Make irqdomain less verbose

2012-01-11 Thread Grant Likely
It printk's too much. Drop some output. Signed-off-by: Grant Likely Cc: Thomas Gleixner --- kernel/irq/irqdomain.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 1f9e265..cc2cd43 100644 --- a/kernel/irq/irqdomai

[RFC 0/14] Finish up irq_domain generalization

2012-01-11 Thread Grant Likely
Here are the patches that I've been working on to finish up the creation of the generic irq_domain infrastructure. I'm taking a different approach that I originally intended. Originally I intended to start with the basic design of irq_host from powerpc, but there were some things about the impleme

Re: [PATCH][v2] mmc:sdhci: restore the enabled dma when do reset all

2012-01-11 Thread Chris Ball
Hi Shaohui, On Thu, Dec 29 2011, Shaohui Xie wrote: > If dma is enabled, it'll be cleared when reset all is performed, this can > be observed on some platforms, such as P2041 which has a version 2.3 > controller, but platform like P4080 which has a version 2.2 controller, > does not suffer this, s

[PATCH] ppc/eeh: fix crash when error happens during device probe

2012-01-11 Thread Thadeu Lima de Souza Cascardo
EEH may happen during a PCI driver probe. If the driver is trying to access some register in a loop, the EEH code will try to print the driver name. But the driver pointer in struct pci_dev is not set until probe returns successfully. Use a function to test if the device and the driver pointer is

[PATCH 1/1] powerpc: Fix partition migration hang in stop_topology_update

2012-01-11 Thread Brian King
This fixes a hang that was observed during live partition migration. Since stop_topology_update must not be called from an interrupt context, call it earlier in the migration process. The hang observed can be seen below: WARNING: at kernel/timer.c:1011 Modules linked in: ip6t_LOG xt_tcpudp xt_pk

Re: [PATCH] fsldma: fix performance degradation by optimizing spinlock use.

2012-01-11 Thread Ira W. Snyder
On Wed, Jan 11, 2012 at 07:54:55AM +, Shi Xuelin-B29237 wrote: > Hello Iris, > > As we discussed in the previous patch, I add one smp_mb() in fsl_tx_status. > In my testing with iozone, this smp_mb() could cause 1%~2% performance > degradation. > Anyway it is acceptable for me. Do you have an

RE: Problem in getting shared memory access on P1022RDK

2012-01-11 Thread Arshad, Farrukh
Adding more it, I have removed the shared memory kernel driver dependency just to narrow down the problem area and I have written a small piece of code in user space. A writer & a reader application which access the shared memory and I got the same behavior as with the shared memory kernel dri

RE: [PATCH][v2] mmc:sdhci: restore the enabled dma when do reset all

2012-01-11 Thread Xie Shaohui-B21989
Hello, Chris, May I have your attention to this patch, please? Best Regards, Shaohui Xie >-Original Message- >From: Xie Shaohui-B21989 >Sent: Friday, January 06, 2012 3:58 PM >To: 'c...@laptop.org'; linux-...@vger.kernel.org >Cc: linuxppc-dev@lists.ozlabs.org; Xie Shaohui-B21989 >Sub