Re: [PATCH 2/2] powerpc,kexec: Speedup kexec hpte tear down

2010-05-11 Thread Michael Ellerman
On Tue, 2010-05-11 at 16:28 +1000, Michael Neuling wrote: > Currently for kexec the PTE tear down on 1TB segment systems normally > requires 3 hcalls for each PTE removal. On a machine with 32GB of > memory it can take around a minute to remove all the PTEs. > .. > - /* TODO: Use bulk call */

Curious serial slowdown

2010-05-11 Thread Guillaume Dargaud
Hello all, I'm looking for hints on a curious problem. I have a working kernel on a custom embedded device and it works fine. We came up with a variation of the device with a few hardware changes, one of them being the number of serial ports that goes from 4 to 2. In order to save time I tried

[PATCH] kexec-tools, ppc64: Fix segfault parsing DR memory property

2010-05-11 Thread Matt Evans
add_dyn_reconf_usable_mem_property() iterates over memory spans in /ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory and intersects these with usablemem_rgns ranges. Not only did it seem to write null properties for every range that didn't match, but it used an unchecked fixed-size array whi

Re: [RFC][PATCH 0/12] KVM, x86, ppc, asm-generic: moving dirty bitmaps to user space

2010-05-11 Thread Takuya Yoshikawa
In usual workload, the number of dirty pages varies a lot for each iteration and we should gain really a lot for relatively clean cases. Can you post such a test, for an idle large guest? OK, I'll do! Result of "low workload test" (running top during migration) first, 4GB guest picked u

Re: [PATCH] 85xx: Fix PCI-E interrupt mapping for slot 0 of P2020DS

2010-05-11 Thread Kumar Gala
On May 10, 2010, at 2:15 PM, Felix Radensky wrote: > Fix legacy PCI-E interrupt mapping for PCI-E slot 0 of > P2020DS evaluation board. The patch is based on P2020DS > device tree from Freescale BSP for this board. > > Signed-off-by: Felix Radensky > --- > arch/powerpc/boot/dts/p2020ds.dts |

Re: [PATCH] 85xx: Fix PCI-E interrupt mapping for slot 0 of P2020DS

2010-05-11 Thread Kumar Gala
On May 10, 2010, at 2:15 PM, Felix Radensky wrote:Fix legacy PCI-E interrupt mapping for PCI-E slot 0 ofP2020DS evaluation board. The patch is based on P2020DSdevice tree from Freescale BSP for this board.Signed-off-by: Felix Radensky ---arch/powerpc/boot/dts/p2020ds.dts |    8 1 files chan

Re: [PATCH] powerpc: Use more accurate limit for first segment memory allocations

2010-05-11 Thread Michael Ellerman
On Tue, 2010-05-11 at 14:59 +1000, Anton Blanchard wrote: > Author: Milton Miller > > On large machines we are running out of room below 256MB. In some cases we > only need to ensure the allocation is in the first segment, which may be > 256MB or 1TB. > > Add slb0_limit and use it to specify the

[PATCH] powerpc/44x: Add basic ICON PPC440SPe board support

2010-05-11 Thread Stefan Roese
ICON is based on the AppliedMicro 440SPe. It is equipped with 64MByte NOR FLASH, SODIMM, Gigabit ethernet, SM502 on PCI(X), LSI SAS1068E on PCIe0 and custom FPGA on PCIe1. Signed-off-by: Stefan Roese Cc: Josh Boyer --- arch/powerpc/boot/dts/icon.dts | 447 ++ arch/powerpc/c

Re: [RFC][PATCH 11/12] KVM: introduce new API for getting/switching dirty bitmaps

2010-05-11 Thread Marcelo Tosatti
On Tue, May 11, 2010 at 02:53:54PM +0900, Takuya Yoshikawa wrote: > (2010/05/11 12:43), Marcelo Tosatti wrote: > >On Tue, May 04, 2010 at 10:08:21PM +0900, Takuya Yoshikawa wrote: > >>+How to Get > >>+ > >>+Before calling this, you have to set the slot member of kvm_user_dirty_log > >>+to indicate

[PATCH] Fix kexec on powerpc32

2010-05-11 Thread Maxim Uvarov
Hello everybody, Please find here patch for user land kexec-tools application. Following patch makes kexec-tools work for both kexec and kdump. I tested it with git kernel (linus-tree) and Freescale/Logic MPC8360ERDK board with mpc83xx_defconfig kernel config. kex

[PATCH] [POWEPC] crashdump: do not fail on null pointer dereferencing

2010-05-11 Thread Maxim Uvarov
Best regards, Maxim Uvarov. From: Maxim Uvarov Signed-off-by: Maxim Uvarov --- arch/powerpc/kernel/crash.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/crash.c b/arch/powerpc/kernel/crash.c index 6f4613d..341d8af 100644 --- a/arch/powerpc/kern

Re: [RFC][PATCH 0/12] KVM, x86, ppc, asm-generic: moving dirty bitmaps to user space

2010-05-11 Thread Alexander Graf
Takuya Yoshikawa wrote: > Hi, sorry for sending from my personal account. > The following series are all from me: > > From: Takuya Yoshikawa > > The 3rd version of "moving dirty bitmaps to user space". > > From this version, we add x86 and ppc and asm-generic people to CC lists. > > > [To KVM

Re: [RFC][PATCH 7/12 not tested yet] PPC: introduce __set_bit() like function for bitmaps in user space

2010-05-11 Thread Alexander Graf
Takuya Yoshikawa wrote: > During the work of KVM's dirty page logging optimization, we encountered > the need of manipulating bitmaps in user space efficiantly. To achive this, > we introduce a uaccess function for setting a bit in user space following > Avi's suggestion. > > KVM is now using dir

Re: [PATCH] [POWEPC] crashdump: do not fail on null pointer dereferencing

2010-05-11 Thread Vitaly Wool
Hi, > diff --git a/arch/powerpc/kernel/crash.c b/arch/powerpc/kernel/crash.c > index 6f4613d..341d8af 100644 > --- a/arch/powerpc/kernel/crash.c > +++ b/arch/powerpc/kernel/crash.c > @@ -375,6 +375,9 @@ void default_machine_crash_shutdown(struct pt_regs *regs) >        for_each_irq(i) { >        

[PATCH 1/2] Fix kexec on powerpc32

2010-05-11 Thread Maxim Uvarov
This patch is required in case if you are using new toolchains. Best regards, Maxim Uvarov. From: Maxim Uvarov Signed-off-by: Maxim Uvarov --- kexec/arch/ppc/Makefile|2 kexec/arch/ppc/crashdump-powerpc.c | 439 ++ kexec/arch/ppc/crashdump-p

[PATCH 2/2] powerpc new toolchains fix (crt.S)

2010-05-11 Thread Maxim Uvarov
This patch is required in case if you are using new toolchains. Best regards, Maxim Uvarov. From: Maxim Uvarov Linker does not provide some vital functions when building freestanding applications with a new toolchain, so we have to provide our own CRT. p.s. Without the CRT we won't see any bu

[PATCH] powerpc new toolchains fix (crt.S)

2010-05-11 Thread Maxim Uvarov
Forgot to add purgatory/arch/ppc/crt.S to the patch. Resending... -- This patch is required in case if you are using new toolchains. Best regards, Maxim Uvarov. From: Maxim Uvarov Linker does not provide some vital functions when building freestanding applications with a new toolchain, so we h

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-11 Thread Christian Kujau
On Tue, 11 May 2010 at 21:47, Maxim Uvarov wrote: > This patch is required in case if you are using new toolchains. Ah, thanks I was missing (and looking for) crashdump-powerpc.h already :-) Christian -- make bzImage, not war ___ Linuxppc-dev mailing l

Re: [PATCH] media/IR: Add missing include file to rc-map.c

2010-05-11 Thread Peter Hüwe
Am Mittwoch 05 Mai 2010 17:20:21 schrieb Peter Hüwe: > From: Peter Huewe > > This patch adds a missing include linux/delay.h to prevent > build failures[1-5] > > Signed-off-by: Peter Huewe > --- Any updates on this patch? Issue still exists with today's linux-next tree Thanks, Peter __

Re: [PATCH] powerpc: eeh: Fix oops when probing in early boot

2010-05-11 Thread Linas Vepstas
On 10 May 2010 20:38, Anton Blanchard wrote: > > If we take an EEH early enough, we oops: > > > Call Trace: > [c00010483770] [c0013ee4] .show_stack+0xd8/0x218 (unreliable) > [c00010483850] [c0658940] .dump_stack+0x28/0x3c > [c000104838d0] [c0057a68] .eeh_dn_chec

Re: [PATCH] 85xx: Fix PCI-E interrupt mapping for slot 0 of P2020DS

2010-05-11 Thread Felix Radensky
Hi Kumar, On 5/11/2010 3:36 PM, Kumar Gala wrote: On May 10, 2010, at 2:15 PM, Felix Radensky wrote: Fix legacy PCI-E interrupt mapping for PCI-E slot 0 of P2020DS evaluation board. The patch is based on P2020DS device tree from Freescale BSP for this board. Signed-off-by: Felix Radensky

Re: [PATCH] hwmon: (tmp421) Add nfactor support.

2010-05-11 Thread Jean Delvare
On Tue, 11 May 2010 21:03:27 +0200, Andre Prendel wrote: > On Mon, May 10, 2010 at 10:43:07AM -0400, Jeff Angielski wrote: > > Hi Jeff, > > A few comments below. > > > Add support for reading and writing the n-factor correction > > registers. This is needed to compensate for the characteristic

Re: [PATCH] hwmon: (tmp421) Add nfactor support.

2010-05-11 Thread Jeff Angielski
On 05/11/2010 03:03 PM, Andre Prendel wrote: On Mon, May 10, 2010 at 10:43:07AM -0400, Jeff Angielski wrote: Hi Jeff, A few comments below. Add support for reading and writing the n-factor correction registers. This is needed to compensate for the characteristics of a particular sensor hangi

Re: [PATCH] powerpc: eeh: Fix oops when probing in early boot

2010-05-11 Thread Brian King
The needs_freset bit went in since the last time I touched all this code, so I don't think this will affect ipr at least. The way this works for the ipr adapters we needed a warm reset for was, we would get the hot reset in the generic EEH code, the the ipr driver would come along after that and is

Re: [PATCH] hwmon: (tmp421) Add nfactor support.

2010-05-11 Thread Andre Prendel
On Mon, May 10, 2010 at 10:43:07AM -0400, Jeff Angielski wrote: Hi Jeff, A few comments below. > Add support for reading and writing the n-factor correction > registers. This is needed to compensate for the characteristics > of a particular sensor hanging off of the remote channels. > > Signe

Problem setting link_address too high on PowerPC 40x

2010-05-11 Thread David Baird
Hi, I am working with the PowerPC 405 in the Virtex-II Pro FPGA. I've come across a possible problem where the device tree is located in at an address that the kernel cannot access if link_address (the location where zImage executes from, set in the "wrapper" script) is set too high (somewhere in

Re: [PATCH 2/2] powerpc,kexec: Speedup kexec hpte tear down

2010-05-11 Thread Michael Neuling
In message <1273561463.9209.138.ca...@concordia> you wrote: > > --=-S056dRzmrEHDBzKyyTOs > Content-Type: text/plain; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > > On Tue, 2010-05-11 at 16:28 +1000, Michael Neuling wrote: > > Currently for kexec the PTE tear down on 1TB segme

Re: [PATCH 2/2] powerpc,kexec: Speedup kexec hpte tear down

2010-05-11 Thread Michael Ellerman
On Wed, 2010-05-12 at 09:29 +1000, Michael Neuling wrote: > > In message <1273561463.9209.138.ca...@concordia> you wrote: > > > > --=-S056dRzmrEHDBzKyyTOs > > Content-Type: text/plain; charset="UTF-8" > > Content-Transfer-Encoding: quoted-printable > > > > On Tue, 2010-05-11 at 16:28 +1000, Mich

Re: [PATCH 2/2] powerpc,kexec: Speedup kexec hpte tear down

2010-05-11 Thread Michael Neuling
In message <1273624565.5738.8.ca...@concordia> you wrote: > > --=-wnrJa93KBardFtse2eHB > Content-Type: text/plain; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > > On Wed, 2010-05-12 at 09:29 +1000, Michael Neuling wrote: > >=20 > > In message <1273561463.9209.138.ca...@concord

Re: [PATCH 2/2] powerpc,kexec: Speedup kexec hpte tear down

2010-05-11 Thread Paul Mackerras
On Wed, May 12, 2010 at 10:43:08AM +1000, Michael Neuling wrote: > We probably only do the remove on < 1% of the hptes now. So I doubt we > would get a speedup since most of the time we aren't do the remove > anymore. It would be nice to have some actual numbers. Could you add some counters and

Re: [PATCH 2/2] powerpc,kexec: Speedup kexec hpte tear down

2010-05-11 Thread Michael Neuling
> > We probably only do the remove on < 1% of the hptes now. So I doubt we > > would get a speedup since most of the time we aren't do the remove > > anymore. > > It would be nice to have some actual numbers. Could you add some > counters and print the results at the end? (Or don't you have any

Re: [PATCH 2/2] powerpc,kexec: Speedup kexec hpte tear down

2010-05-11 Thread Michael Ellerman
On Wed, 2010-05-12 at 11:06 +1000, Michael Neuling wrote: > > > We probably only do the remove on < 1% of the hptes now. So I doubt we > > > would get a speedup since most of the time we aren't do the remove > > > anymore. > > > > It would be nice to have some actual numbers. Could you add some

[PATCH] Fix UART clocks on 440SPe

2010-05-11 Thread Benjamin Herrenschmidt
The code to fixup the serial ports on 440SPe uses the incorrect addresses for these. This fixes it. Signed-off-by: Benjamin Herrenschmidt --- I'm surprised nobody noticed, serial is pretty busted for me without that patch :-) diff --git a/arch/powerpc/boot/4xx.c b/arch/powerpc/boot/4xx.c index

440SPe/Katmai PCIe problems

2010-05-11 Thread Benjamin Herrenschmidt
Hi Stefan ! (Or somebody from AMCC) I noticed we still have this old problem on PCIe where some cards don't seem to work. The link trains but they don't respond on config space. This is the case for example of that Sunix quad USB card. It seems to be related to the kind of TI PCIe <-> PCI bridge

Re: [PATCH] kexec-tools, ppc64: Fix segfault parsing DR memory property

2010-05-11 Thread Michael Neuling
In message <4be9102c.6040...@axio.ms> you wrote: > > add_dyn_reconf_usable_mem_property() iterates over memory spans > in /ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory and intersects > these with usablemem_rgns ranges. Not only did it seem to write > null properties for every range tha

Re: 440SPe/Katmai PCIe problems

2010-05-11 Thread Benjamin Herrenschmidt
On Wed, 2010-05-12 at 12:40 +1000, Benjamin Herrenschmidt wrote: > Hi Stefan ! > > (Or somebody from AMCC) > > I noticed we still have this old problem on PCIe where some cards don't > seem to work. The link trains but they don't respond on config space. > This is the case for example of that Sun

[Patch 0/3] PPC64-HWBKPT: Hardware Breakpoint interfaces - ver XVIII

2010-05-11 Thread K.Prasad
Hi Ben/Paul, Please find a new version of the patchset that implements hw-breakpoint interfaces for PowerPC Book III S. The changes in this version over the previous version are as listed below, and are the result of addressing comments received for the previous version. Changelog - ver X

[Patch 1/3] PPC64-HWBKPT: Disable interrupts for data breakpoint exceptions

2010-05-11 Thread K.Prasad
Data address breakpoint exceptions are currently handled along with page-faults which require interrupts to remain in enabled state. Since exception handling for data breakpoints aren't pre-empt safe, we handle them separately. Signed-off-by: K.Prasad Acked-by: Paul Mackerras --- arch/powerpc/k

[Patch 2/3] Allow arch-specific cleanup before breakpoint unregistration

2010-05-11 Thread K.Prasad
Certain architectures (such as PowerPC Book III S) have a need to cleanup data-structures before the breakpoint is unregistered. This patch introduces an arch-specific hook in release_bp_slot() along with a weak definition in the form of a stub funciton. Signed-off-by: K.Prasad --- kernel/hw_bre

[Patch 3/3] PPC64-HWBKPT: Implement hw-breakpoints for PowerPC Book III S

2010-05-11 Thread K.Prasad
Implement perf-events based hw-breakpoint interfaces for PowerPC Book III S processors. These interfaces help arbitrate requests from various users and schedules them as appropriate. Signed-off-by: K.Prasad --- arch/powerpc/Kconfig |1 arch/powerpc/include/asm/cputable.h

Re: [Patch 2/2] PPC64-HWBKPT: Implement hw-breakpoints for PPC64

2010-05-11 Thread K.Prasad
On Wed, May 05, 2010 at 02:03:03AM +0530, K.Prasad wrote: > On Mon, May 03, 2010 at 04:23:30PM +1000, Paul Mackerras wrote: > > On Wed, Apr 14, 2010 at 09:18:27AM +0530, K.Prasad wrote: > > [snipped] > > It has been pointed out to me before (Roland's mail Ref:linuxppc-dev > message-id: 2010011910

RE: 440SPe/Katmai PCIe problems

2010-05-11 Thread Pravin Bathija
> -Original Message- > From: Benjamin Herrenschmidt [mailto:b...@kernel.crashing.org] > Sent: Tuesday, May 11, 2010 8:03 PM > To: Stefan Roese > Cc: linuxppc-dev; Pravin Bathija > Subject: Re: 440SPe/Katmai PCIe problems > > On Wed, 2010-05-12 at 12:40 +1000, Benjamin Herrenschmidt wrote:

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-11 Thread Christian Kujau
Maxim Uvarov wrote on 2010-05-11 10:47 : > This patch is required in case if you are using new toolchains. I'm on Debian/stable (binutils 2.18, gcc 4.3.2), so I applied your patches to the latest -git checkout: First, compilation fails with: cc1: warnings being treated as errors kexec/arch/ppc/

Re: [RFC][PATCH 11/12] KVM: introduce new API for getting/switching dirty bitmaps

2010-05-11 Thread Takuya Yoshikawa
One alternative would be: KVM_SWITCH_DIRTY_LOG passing the address of a bitmap. If the active bitmap was clean, it returns 0, no switch performed. If the active bitmap was dirty, the kernel switches to the new bitmap and returns 1. And the responsability of cleaning the new bitmap could also b

Re: [RFC][PATCH RFC 10/12] KVM: move dirty bitmaps to user space

2010-05-11 Thread Takuya Yoshikawa
r = 0; @@ -1195,11 +1232,16 @@ void mark_page_dirty(struct kvm *kvm, gfn_t gfn) gfn = unalias_gfn(kvm, gfn); memslot = gfn_to_memslot_unaliased(kvm, gfn); if (memslot&& memslot->dirty_bitmap) { - unsigned long rel_gfn = gfn - memslot->base_gfn; +

Re: [Patch 2/2] PPC64-HWBKPT: Implement hw-breakpoints for PPC64

2010-05-11 Thread Paul Mackerras
On Wed, May 05, 2010 at 02:03:03AM +0530, K.Prasad wrote: > It is true that the breakpoint exceptions will go amiss following the > alignment exception, and be restored when the thread single-steps due > to other requests causing undesirable effects. (Borrowing from some of > the discussions I had

8640D Erratum fixup

2010-05-11 Thread Thirumalai
Hi kumar, I just want to know whether the erratum of MPC8640D has fixed on u-boot or linux ? -Thirumalai CAUTION - Disclaimer *This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use,

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-11 Thread Maxim Uvarov
2010/5/12 Christian Kujau > Maxim Uvarov wrote on 2010-05-11 10:47 : > > This patch is required in case if you are using new toolchains. > > I'm on Debian/stable (binutils 2.18, gcc 4.3.2), so I applied your patches > to the latest -git checkout: > > First, compilation fails with: > > cc1: warnin

Re: [PATCH 1/2] Fix kexec on powerpc32

2010-05-11 Thread Christian Kujau
On Wed, 12 May 2010 at 10:31, Maxim Uvarov wrote: > Yes, that is expected result for old tool chains. New tool chains (from code > sourcery ) need this crt.S. > I think we can have --with-oldtoolchain option to configure to point to old > tool chains. (or even rename it to --with-crts, > I don't k