Re: [PATCH][v1] powerpc/85xx: Create dts for each core in CAMP mode for P2020RDB

2009-09-10 Thread Gabriel Paubert
On Thu, Sep 10, 2009 at 02:27:11PM +0530, Poonam Aggrwal wrote: This patch creates the dts files for each core and splits the devices between the two cores for P2020RDB. core0 has memory, L2, i2c, spi, dma1, usb, eth0, eth1, crypto, global-util, pci0 core1 has L2, dma2, eth0, pci1, msi.

Re: [PATCH][v1] powerpc/85xx: Create dts for each core in CAMPmode for P2020RDB

2009-09-10 Thread Gabriel Paubert
On Thu, Sep 10, 2009 at 08:48:38PM +0530, Aggrwal Poonam-B10812 wrote: -Original Message- From: Gabriel Paubert [mailto:paub...@iram.es] Sent: Thursday, September 10, 2009 3:03 PM To: Aggrwal Poonam-B10812 Cc: linuxppc-...@ozlabs.org Subject: Re: [PATCH][v1] powerpc/85xx

Re: [PATCH][v1] powerpc/85xx: Create dts for each core in CAMPmodefor P2020RDB

2009-09-11 Thread Gabriel Paubert
On Fri, Sep 11, 2009 at 05:17:50PM +0530, Aggrwal Poonam-B10812 wrote: -Original Message- From: Gabriel Paubert [mailto:paub...@iram.es] Sent: Thursday, September 10, 2009 9:33 PM To: Aggrwal Poonam-B10812 Cc: linuxppc-...@ozlabs.org Subject: Re: [PATCH][v1] powerpc/85xx

Re: High load average but low cpu (xenomai can be the explanation?)

2009-09-21 Thread Gabriel Paubert
On Mon, Sep 21, 2009 at 05:13:05PM +0200, diba...@libero.it wrote: Hi, I have an MPC880 @133MHz. If I look into the load (with uptime) I get values around 3.0 but my CPU is always under 5 percent (top). How could I explain this? I'm using linux 2.6.19 with xenomai but no xenomai

Re: Problem when disabled interrupt in system call (ppc8270)

2009-10-16 Thread Gabriel Paubert
On Fri, Oct 16, 2009 at 09:12:34AM +0800, wilbur.chan wrote: ppc 8270, kernel 2.6.21.7 I took the following steps: In a system call function , say , sys_reboot, interrupt was disabled by local_irq_disable. Then , value at the address of 0xc50 was set to a value , say , 0x1234.

Re: Accessing flash directly from User Space [SOLVED]

2009-10-30 Thread Gabriel Paubert
On Fri, Oct 30, 2009 at 10:46:46AM -0600, Jonathan Haws wrote: Michael Buesch wrote: Yes, I think the barrier is wrong. Please try with #define mb() __asm__ __volatile__(eieio\n sync\n : : : memory) For uncached memory, eieio should be enough. I tried eieio alone

Re: [RFC] powerpc/mm: honor O_SYNC flag for memory map

2009-11-25 Thread Gabriel Paubert
On Wed, Nov 25, 2009 at 04:07:46PM +0800, Li Yang wrote: On Sun, Nov 22, 2009 at 4:01 AM, Segher Boessenkool seg...@kernel.crashing.org wrote: You need to be a bit more careful tho. You must not allow RAM managed by the kernel to be mapped non-cachable. Even if the user explicitly sets

Re: [RFC PATCH 03/19] powerpc: gamecube: bootwrapper bits

2009-11-26 Thread Gabriel Paubert
On Thu, Nov 26, 2009 at 03:36:56PM +1100, Benjamin Herrenschmidt wrote: On Tue, 2009-11-24 at 22:00 +0100, Segher Boessenkool wrote: Sure, the memory controllers don't do coherency. I'm slightly worried about two things: 1) Will the generic code use M=0 as well? Is it a problem if it

Re: [PATCH v2 1/4] Add platform support for AmigaOne

2009-02-04 Thread Gabriel Paubert
On Wed, Feb 04, 2009 at 02:50:07PM +1100, Benjamin Herrenschmidt wrote: + hose-first_busno = bus_range ? bus_range[0] : 0; + hose-last_busno = bus_range ? bus_range[1] : 0xff; + + setup_indirect_pci(hose, 0xfec00cf8, 0xfee00cfc, 0); Minor in the context of amigaone but still... the

[PATCH] Disable mv643xx Ethernet port 0 on Pegasos

2009-02-10 Thread Gabriel Paubert
After the last changes, the mv643xx_eth driver now detects a spurious interface on port 0. Since only port 1 is actually connected to a PHY, remove its description. Signed-off-by: Gabriel Paubert paub...@iram.es --- Tested on the last batch of Pegasos produced. Caveat: do not enable the Marvell

Re: [RFC] Moving toward smarter disabling of FPRs, VRs, and VSRs in the MSR

2009-03-16 Thread Gabriel Paubert
On Sat, Mar 14, 2009 at 02:49:02PM +0100, Segher Boessenkool wrote: Another option might be simply to say that if an app has used FP, VMX or VSX -once-, then it's likely to do it again and just keep re-enabling it :-) I'm serious here, do we know that many cases where these things are

Re: freeze when reading a PCI bridge register

2009-04-22 Thread Gabriel Paubert
On Wed, Apr 22, 2009 at 10:04:29AM +0200, Nicolas Lavocat wrote: Hi everybody! I' am trying to configure a PCI bridge on a private board, with a powerpc . In a first time, I tried to get informations about PCI devices, in order to be sure that my read and write methods work ( using

Re: [PATCH 00/18] ide: warm-plug support for IDE devices and other goodies

2008-02-12 Thread Gabriel Paubert
On Fri, Feb 08, 2008 at 07:40:43PM +1100, Benjamin Herrenschmidt wrote: On Fri, 2008-02-08 at 01:44 +0100, Bartlomiej Zolnierkiewicz wrote: - couple of fixes and preparatory patches - rework of PowerMac media-bay support ([un]register IDE devices instead of [un]registering IDE

Re: [PATCH 00/18] ide: warm-plug support for IDE devices and other goodies

2008-02-12 Thread Gabriel Paubert
On Tue, Feb 12, 2008 at 12:49:05PM +0100, Gabriel Paubert wrote: On Fri, Feb 08, 2008 at 07:40:43PM +1100, Benjamin Herrenschmidt wrote: On Fri, 2008-02-08 at 01:44 +0100, Bartlomiej Zolnierkiewicz wrote: - couple of fixes and preparatory patches - rework of PowerMac media-bay

Re: [PATCH 00/18] ide: warm-plug support for IDE devices and other goodies

2008-02-13 Thread Gabriel Paubert
On Tue, Feb 12, 2008 at 01:30:03PM +0100, Gabriel Paubert wrote: On Tue, Feb 12, 2008 at 12:49:05PM +0100, Gabriel Paubert wrote: On Fri, Feb 08, 2008 at 07:40:43PM +1100, Benjamin Herrenschmidt wrote: On Fri, 2008-02-08 at 01:44 +0100, Bartlomiej Zolnierkiewicz wrote: - couple

Re: [PATCH 1/2] firewire: endianess fix

2008-03-03 Thread Gabriel Paubert
On Fri, Feb 29, 2008 at 12:48:33AM -0500, Jarod Wilson wrote: Benjamin Herrenschmidt wrote: On Thu, 2008-02-28 at 13:42 -0500, Jarod Wilson wrote: On Thursday 28 February 2008 01:25:59 am Benjamin Herrenschmidt wrote: Under Mac OS X, system.log says FireWire (OHCI) Apple ID 31 built-in now

Re: [PATCH 1/2] firewire: endianess fix

2008-03-05 Thread Gabriel Paubert
On Mon, Mar 03, 2008 at 03:35:01PM +0100, Stefan Richter wrote: Gabriel Paubert wrote: I have a Pismo which I use on a virtually daily basis (and about to remove the last remnants of MacOS on it). However I have disabled Firewire because it would not sleep and wake up properly. I

Re: [PATCH 1/2] firewire: endianess fix

2008-03-06 Thread Gabriel Paubert
On Thu, Mar 06, 2008 at 12:26:00AM +0100, Stefan Richter wrote: Gabriel Paubert wrote: I have a Pismo which I use on a virtually daily basis (and about to remove the last remnants of MacOS on it). However I have disabled Firewire because it would not sleep and wake up properly

Re: interrupt latency spi

2008-04-03 Thread Gabriel Paubert
On Thu, Apr 03, 2008 at 09:09:04AM -0400, mejjad lahcen wrote: hi all of you , I am wndering if someone has already done test for interrupt latency on linx 2.6.23 mpc5200b. I am working on writing a driver which is get SPi involved on design, and I know that the spi interrupt will occurs at

Re: removal of arch/ppc in 2.6.27?

2008-04-20 Thread Gabriel Paubert
On Sun, Apr 20, 2008 at 10:27:27PM +1000, Paul Mackerras wrote: Marvin writes: will this be the end of life for all the PReP's ? I remember a patch posted some month ago, but didn't heard anything since then. Any news? Or just let it die quietly? No, I'm still planning on getting

Re: [PATCH] [POWERPC] ppc32: Fix errata for 603 CPUs

2008-04-21 Thread Gabriel Paubert
On Mon, Apr 21, 2008 at 02:57:47PM -0500, Kumar Gala wrote: 603 CPUs have the same issue that some 750 CPUs have in that they can crash in funny ways if a store from an FPU register instruction is executed on a register that has never been initialized since power on. This patch fixes it by

Re: [patch 27/35] Work around errata 4290

2007-07-05 Thread Gabriel Paubert
On Thu, Jul 05, 2007 at 12:03:00PM -0500, Olof Johansson wrote: Workaround for errata 4290: The decrementer ticks at half the expected rate so load it with half the value it would otherwise be loaded with. Index: 2.6.21/include/asm-powerpc/time.h

Re: [PATCH 2.6.21-rt2] PowerPC: decrementer clockevent driver

2007-07-10 Thread Gabriel Paubert
On Fri, May 18, 2007 at 05:52:45PM +0100, Matt Sealey wrote: Kumar Gala wrote: On May 18, 2007, at 9:48 AM, Thomas Gleixner wrote: On Fri, 2007-05-18 at 15:28 +0100, Matt Sealey wrote: I think both the MPC52xx GPT0-7 and the SLT0-1 fulfil this fairly easily. There is some

Re: [RFC/PATCH 1/2] Basic generic time/clocksource code for PowerPC

2007-09-07 Thread Gabriel Paubert
On Fri, Sep 07, 2007 at 04:20:12AM +1000, Paul Mackerras wrote: Gabriel Paubert writes: On Fri, Sep 07, 2007 at 12:41:38AM +1000, Paul Mackerras wrote: This changes PowerPC to use the generic time infrastructure for gettimeofday et al. We register a clocksource which uses the timebase

Re: [RFC/PATCH] Implement {read,update}_persistent_clock.

2007-09-11 Thread Gabriel Paubert
On Tue, Sep 11, 2007 at 05:49:17PM +1000, Tony Breeds wrote: With these functions implemented we cooperate better with the generic timekeeping code. This obsoletes the need for the timer sysdev as a bonus. Looks fine, there is still the problem that most PPC RTC seem to prefer update on the

Re: [PATCH v2 3/4] Implement clockevents driver for powerpc

2007-10-19 Thread Gabriel Paubert
On Fri, Oct 19, 2007 at 10:14:54AM +1000, Paul Mackerras wrote: Sergei Shtylyov writes: What problem do you see arising from this? Timers firing too early. Only if the minimum interrupt latency is less than 1 decrementer tick. That seems pretty unlikely to me unless you have a

Re: [PATCHv3 2/2] powerpc: implement arch_scale_smt_power for Power7

2010-01-29 Thread Gabriel Paubert
On Thu, Jan 28, 2010 at 05:20:55PM -0600, Joel Schopp wrote: On Power7 processors running in SMT4 mode with 2, 3, or 4 idle threads there is performance benefit to idling the higher numbered threads in the core. Really 2, 3, or 4? When you have 4 idle threads out of 4, performance becomes

Re: [PATCH 5/5] powerpc: Increase NR_IRQS Kconfig maximum to 32768

2010-02-01 Thread Gabriel Paubert
On Sun, Jan 31, 2010 at 10:14:03PM +1100, Anton Blanchard wrote: With dynamic irq descriptors the overhead of a large NR_IRQS is much lower than it used to be. With more MSI-X capable adapters and drivers exploiting multiple vectors we may as well allow the user to increase it beyond the

Re: resurrecting the mvme5100 ppc platform

2010-02-08 Thread Gabriel Paubert
On Thu, Feb 04, 2010 at 01:39:35PM +, Paride Legovini wrote: Hello, I'm just started working on some mvme5100 boards, and so I discovered that support for these cards has been dropped with linux-2.6.27 due to lack of interest. Here is the relevent post on linuxppc-embedded:

Re: mv643xx_eth broken again on pegasos2 G4

2010-03-10 Thread Gabriel Paubert
On Wed, Mar 10, 2010 at 04:14:41PM +0100, acrux wrote: hi, mv643xx_eth driver seems to be broken (and very often there is a kernel panic too). Last working kernel is 2.6.31.2 here a dmesg from 2.6.32.9: My Pegasos running a pristine 2.6.32 seems to disagree with you. [...] Linux version

Re: Xorg on Fujitsu Lime with MPC5200b?

2010-04-16 Thread Gabriel Paubert
On Thu, Apr 15, 2010 at 03:53:53PM +0200, Roman Fietze wrote: Hello Bill, On Thursday 15 April 2010 15:01:59 Bill Gatliff wrote: Are you talking about this code here? void shadowUpdatePacked (ScreenPtr pScreen, shadowBufPtr pBuf) { ...

Re: cpu_clock confusion

2008-04-28 Thread Gabriel Paubert
On Thu, Apr 24, 2008 at 11:27:37AM +0200, Johannes Berg wrote: On Thu, 2008-04-24 at 02:24 -0700, David Miller wrote: From: Johannes Berg [EMAIL PROTECTED] Date: Thu, 24 Apr 2008 11:21:52 +0200 Hmm. Why is that whole cpu_clock stuff in place anyway? powerpc has perfectly synchronised

Re: [PATCH] [POWERPC] Fix bootwrapper builds with newer gcc versions

2008-05-05 Thread Gabriel Paubert
On Sat, May 03, 2008 at 12:55:10AM -0700, David Miller wrote: From: Benjamin Herrenschmidt [EMAIL PROTECTED] Date: Sat, 03 May 2008 17:50:17 +1000 Best would be if we could get those runtime bits linked in the module itself, but I don't know enough about our toolchain to know if that's

Re: [PATCH] [POWERPC] Rework EXC_LEVEL_EXCEPTION_PROLOG code

2008-05-05 Thread Gabriel Paubert
On Thu, May 01, 2008 at 08:22:08AM -0500, Kumar Gala wrote: So we have 4 actual exceptions: * CriticalInput (some external device signaled this. There are two concepts of critical. One is error the other is high priority) However this would have the same caveats as any ExternalInput

Re: [PATCH 2/9] powerpc: Add macros to access floating point registers in thread_struct.

2008-06-25 Thread Gabriel Paubert
On Wed, Jun 25, 2008 at 10:34:32AM -0500, Scott Wood wrote: Kumar Gala wrote: +/* Macros to workout the correct index for the FPR in the thread struct */ +#define FPRNUMBER(i) (((i) - PT_FPR0) 1) +#define FPRHALF(i) (((i) - PT_FPR0) % 2) Have you looked at what the compiler spits out

Re: [PATCH 2/9] powerpc: Add macros to access floating point registers in thread_struct.

2008-06-26 Thread Gabriel Paubert
On Wed, Jun 25, 2008 at 11:17:45AM -0500, Scott Wood wrote: Gabriel Paubert wrote: On Wed, Jun 25, 2008 at 10:34:32AM -0500, Scott Wood wrote: Kumar Gala wrote: +/* Macros to workout the correct index for the FPR in the thread struct */ +#define FPRNUMBER(i) (((i) - PT_FPR0) 1) +#define

2.6.26 does not boot on Pegasos

2008-07-15 Thread Gabriel Paubert
Hi, I just tried to boot 2.6.26 on a Pegasos and the kernel does not boot. The last message I have is: gunzip (0x - some more hex digits) The configuration has been created from a working 2.6.25 one with make oldconfig and answering N to new config options. Anybody has seen

Re: 2.6.26 does not boot on Pegasos

2008-07-15 Thread Gabriel Paubert
On Tue, Jul 15, 2008 at 08:05:49PM +1000, Benjamin Herrenschmidt wrote: On Tue, 2008-07-15 at 12:00 +0200, Gabriel Paubert wrote: Hi, I just tried to boot 2.6.26 on a Pegasos and the kernel does not boot. The last message I have is: gunzip (0x - some more hex digits

Re: [HOW] binutils-2.17 breaks the 2.6.26 kernel

2008-07-16 Thread Gabriel Paubert
On Wed, Jul 16, 2008 at 08:38:14PM -0400, Jon Smirl wrote: On 7/16/08, Milton Miller [EMAIL PROTECTED] wrote: Hi. Previous threads have mentioned that binutil-2.17 is broken for building powerpc kernels. It is fixed in binutils-2.18. I have encountered this and upgrading to 2.18 fixed my

Re: CONFIG_FRAME_POINTER [was [PATCH] x86: BUILD_IRQ say .text]

2008-07-28 Thread Gabriel Paubert
On Sat, Jul 26, 2008 at 10:36:42PM +1000, Benjamin Herrenschmidt wrote: On Sat, 2008-07-26 at 12:02 +0100, Hugh Dickins wrote: Hmm, perhaps it is doing sibling calls differently even without the explicit -fno-optimize-sibling-calls (but when I add that option, the vmlinux size does go up

Re: [RFC][PATCH] Demultiplexing SIGTRAP signal -v2

2008-09-23 Thread Gabriel Paubert
On Tue, Sep 23, 2008 at 07:55:01PM +0530, Srinivasa Ds wrote: On Tuesday 23 September 2008 17:00:01 Ingo Molnar wrote: applied to [the new topic] tip/core/signal, thanks Srinivasa! There are some other pending x86 signal changes already, so i based tip/core/signal on tip/x86/signal.

[OT] Re: Floating inputs on unused GPIO pins

2008-10-14 Thread Gabriel Paubert
[Marked off-topic because it is exclusively hardware related] On Mon, Oct 13, 2008 at 08:12:02AM -0500, Bill Gatliff wrote: Laurent Pinchart wrote: There are no internal pull-up or pull-down resistors on the MPC8248 GPIO pins. I know our hardware engineer has a valid point

Re: adding more machines to snd-aoa

2008-10-23 Thread Gabriel Paubert
On Thu, Oct 23, 2008 at 03:44:21PM +0200, Johannes Berg wrote: Hi, Andreas (Cc'ed) asked whether it was possible to use snd-aoa on his machine, a PowerMac3,6. It appears that it is fairly easy since the machine seems to use a regular i2sbus. To identify it, after looking through my

Re: adding more machines to snd-aoa

2008-10-24 Thread Gabriel Paubert
On Fri, Oct 24, 2008 at 10:40:23AM +0200, Johannes Berg wrote: On Thu, 2008-10-23 at 18:43 +0200, Gabriel Paubert wrote: Can you tell me which devices it has, like does it have line-in, microphone, headphones, ...? I'm not an audio specialist, so the symbols used to identify

Re: [RFC PATCH] rtc: add rtc_systohc for ntp use

2008-11-11 Thread Gabriel Paubert
On Tue, Nov 11, 2008 at 02:10:39PM +, David Woodhouse wrote: On Mon, 2008-11-10 at 16:40 +0100, Alessandro Zummo wrote: Adds in-kernel hctosys functionality that can be used by ntp sync code. This is an RFC and has not been tested, I just want to check if something similar could

Re: [RFC PATCH] rtc: add rtc_systohc for ntp use

2008-11-12 Thread Gabriel Paubert
On Tue, Nov 11, 2008 at 12:58:59PM -0800, David Brownell wrote: On Tuesday 11 November 2008, David Woodhouse wrote: I believe you were also concerned that some device wouldn't want the behaviour given by the existing sync_cmos_clock() function and workqueue stuff in kernel/ntp.c, where we

Re: times(2) sys call bug?

2008-11-21 Thread Gabriel Paubert
On Fri, Nov 21, 2008 at 10:52:14AM +1100, Paul Mackerras wrote: Joakim Tjernlund writes: This little hack changes the kernel sys call handling in an crude way and then it works. Apperently the kernel thinks is an error if the syscall returns a value between -_LAST_ERRNO and -1. Try

Re: times(2) sys call bug?

2008-11-21 Thread Gabriel Paubert
On Fri, Nov 21, 2008 at 08:03:06PM +1100, Paul Mackerras wrote: Gabriel Paubert writes: On Fri, Nov 21, 2008 at 10:52:14AM +1100, Paul Mackerras wrote: Joakim Tjernlund writes: This little hack changes the kernel sys call handling in an crude way and then it works. Apperently

Re: Floating point exceptions with MPC5200

2009-01-19 Thread Gabriel Paubert
On Mon, Jan 19, 2009 at 10:33:40AM +0100, Wolfgang Grandegger wrote: Hello, I want to provoke a floating point exception by doing a division by 0. The expection does come as expected on my x86 PC: $ ./divby0 Floating point exception but not on my MPC5200 board. Any idea why? I

Re: mv643xx broken on pegasos

2009-01-19 Thread Gabriel Paubert
. And the old 2.6.26 code doesn't compile so the workaround is dead. This is probably because mv643xx_eth now no longer fails registration of the interface if no valid PHY could be found. Gabriel Paubert (CC'ed) had a patch for this that basically amounted to removing the initialisation for eth1

Re: [PATCH] tty/serial/pmac_zilog: Fix nobody cared IRQ message

2012-04-29 Thread Gabriel Paubert
On Sat, Apr 28, 2012 at 06:53:49PM -0500, Larry Finger wrote: Following commit a79dd5a titled tty/serial/pmac_zilog: Fix suspend resume, my Powerbook G4 Titanium showed the following stack dump: [ 36.878225] irq 23: nobody cared (try booting with the irqpoll option) [ 36.878251] Call

Re: pread() and pwrite() system calls

2012-05-25 Thread Gabriel Paubert
On Fri, May 25, 2012 at 02:29:06PM +0100, David Laight wrote: We have a system with linux 2.6.32 and the somewhat archaic uClibc 0.9.27 (but I'm not sure the current version is any better, and I think there are binary compatibility if we update). I've just discovered that pread() is

Re: kernel panic during kernel module load (powerpc specific part)

2012-05-31 Thread Gabriel Paubert
On Thu, May 31, 2012 at 07:04:42AM +, Wrobel Heinz-R39252 wrote: Michael, On Wed, 2012-05-30 at 16:33 +0200, Steffen Rumler wrote: I've found the following root cause: (6) Unfortunately, the trampoline code (do_plt_call()) is using register r11 to setup the jump.

Re: kernel panic during kernel module load (powerpc specific part)

2012-06-04 Thread Gabriel Paubert
On Fri, Jun 01, 2012 at 11:33:37AM +, Wrobel Heinz-R39252 wrote: I believe that the basic premise is that you should provide a directly reachable copy of the save/rstore functions, even if this means that you need several copies of the functions. I just fixed a very similar

Re: kernel panic during kernel module load (powerpc specific part)

2012-06-05 Thread Gabriel Paubert
On Tue, Jun 05, 2012 at 08:00:42AM +1000, Benjamin Herrenschmidt wrote: On Mon, 2012-06-04 at 13:03 +0200, Gabriel Paubert wrote: There is no conflict to the ABI. These functions are supposed to be directly reachable from whatever code section may need them. Now I have a question: how

Re: kernel panic during kernel module load (powerpc specific part)

2012-06-05 Thread Gabriel Paubert
On Tue, Jun 05, 2012 at 08:00:42AM +1000, Benjamin Herrenschmidt wrote: On Mon, 2012-06-04 at 13:03 +0200, Gabriel Paubert wrote: There is no conflict to the ABI. These functions are supposed to be directly reachable from whatever code section may need them. Now I have a question: how

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

2012-06-21 Thread Gabriel Paubert
On Thu, Jun 21, 2012 at 03:36:01PM +1000, Michael Ellerman wrote: On Wed, 2012-06-20 at 17:50 +1000, Stephen Rothwell wrote: Hi all, After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: powerpc64-linux-ld: arch/powerpc/net/built-in.o: In

Re: [PATCH 1/2] power: Define PV_POWER7P

2012-07-13 Thread Gabriel Paubert
On Thu, Jul 12, 2012 at 04:59:12PM -0700, Sukadev Bhattiprolu wrote: From: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com Date: Tue, 3 Jul 2012 13:32:46 -0700 Subject: [PATCH 1/2] power: Define PV_POWER7P This change is based on the patch that Carl Love posted to LKML

Re: TTM placement caching issue/questions

2014-09-04 Thread Gabriel Paubert
On Wed, Sep 03, 2014 at 10:36:57PM -0400, Jerome Glisse wrote: On Wed, Sep 03, 2014 at 10:31:18PM -0400, Jerome Glisse wrote: On Thu, Sep 04, 2014 at 12:25:23PM +1000, Benjamin Herrenschmidt wrote: On Wed, 2014-09-03 at 22:07 -0400, Jerome Glisse wrote: So in the meantime the

Re: deb-pkg: Add support for powerpc little endian

2014-09-05 Thread Gabriel Paubert
On Fri, Sep 05, 2014 at 03:28:47PM +1000, Michael Neuling wrote: The Debian powerpc little endian architecture is called ppc64le. This Huh? ppc64le or ppc64el? is the default architecture used by Ubuntu for powerpc. The below checks the kernel config to see if we are compiling little

Re: [RFC PATCH 2/2]powerpc: rewrite local_* to use CR5 flag

2014-12-01 Thread Gabriel Paubert
On Thu, Nov 27, 2014 at 05:48:41PM +0530, Madhavan Srinivasan wrote: This patch re-write the current local_* functions to CR5 based one. Base flow for each function is { set cr5(eq) load .. store clear cr5(eq) } Above set of instructions are followed by

Re: [RFC PATCH 1/2]powerpc: foundation code to handle CR5 for local_t

2014-12-01 Thread Gabriel Paubert
On Thu, Nov 27, 2014 at 05:48:40PM +0530, Madhavan Srinivasan wrote: This patch create the infrastructure to handle the CR based local_* atomic operations. Local atomic operations are fast and highly reentrant per CPU counters. Used for percpu variable updates. Local atomic operations only

Re: [PATCH] powerpc: provide __bswapdi2

2013-05-13 Thread Gabriel Paubert
On Mon, May 13, 2013 at 05:09:59PM +1000, Michael Neuling wrote: David Woodhouse dw...@infradead.org wrote: From: David Woodhouse david.woodho...@intel.com Some versions of GCC apparently expect this to be provided by libgcc. Signed-off-by: David Woodhouse david.woodho...@intel.com

Re: [PATCH] powerpc: provide __bswapdi2

2013-05-13 Thread Gabriel Paubert
On Mon, May 13, 2013 at 11:38:13AM +0100, David Woodhouse wrote: On Mon, 2013-05-13 at 11:33 +0100, David Woodhouse wrote: On Mon, 2013-05-13 at 09:33 +0200, Gabriel Paubert wrote: Actually, I'd swap the two mr instructions to never have an instruction that uses the result from

[PATHC] Fix for Pegasos keyboard and mouse

2011-05-13 Thread Gabriel Paubert
in all failure cases. Specifically, the case where the device-tree contains nothing matching pnpPNP,303 or pnpPNP,f03 doesn't seem to be handled well. It sort of falls through to the old code, but leaves the IRQs set to 0. Signed-off-by: Gabriel Paubert paub...@iram.es --- This fix has only been

Re: [PATCH 2/3] powerpc: POWER7 optimised memcpy using VMX

2011-06-17 Thread Gabriel Paubert
On Fri, Jun 17, 2011 at 02:54:00PM +1000, Anton Blanchard wrote: Implement a POWER7 optimised memcpy using VMX. For large aligned copies this new loop is over 10% faster and for large unaligned copies it is over 200% faster. On POWER7 unaligned stores rarely slow down - they only flush when

Re: Bug#630845: linux-image-2.6.39-2-powerpc: CHRP Pegasos2 boot failure

2011-06-28 Thread Gabriel Paubert
On Sun, Jun 26, 2011 at 11:14:13PM +0100, Ben Hutchings wrote: On Thu, 2011-06-23 at 20:36 +0800, Andrew Buckeridge wrote: Package: linux-image-3.0.0-rc3-powerpc Version: 3.0.0~rc3-1~experimental.1 On Wed, 22 Jun 2011 04:01:38 +0100 Ben Hutchings b...@decadent.org.uk wrote:

Re: [patch 0/4] powerpc: Mark various interrupts IRQF_NO_THREAD

2011-10-05 Thread Gabriel Paubert
On Wed, Oct 05, 2011 at 12:30:49PM -, Thomas Gleixner wrote: The following series marks the obvious interrupts IRQF_NO_THREAD to prevent forced interrupt threading - no guarantee of completeness :) The last patch enables the forced threading mechanism in the core code, which in turn

Re: [patch 0/4] powerpc: Mark various interrupts IRQF_NO_THREAD

2011-10-06 Thread Gabriel Paubert
On Wed, Oct 05, 2011 at 05:31:48PM +0200, Thomas Gleixner wrote: On Wed, 5 Oct 2011, Gabriel Paubert wrote: On Wed, Oct 05, 2011 at 12:30:49PM -, Thomas Gleixner wrote: The following series marks the obvious interrupts IRQF_NO_THREAD to prevent forced interrupt threading

Re: linux-3.0.4, mv643xx_eth troubles on Pegasos2 G4

2011-10-18 Thread Gabriel Paubert
On Mon, Oct 17, 2011 at 11:40:54PM +0200, nello martuscielli wrote: i'm trying to enable marvel gigabit ethernet support but it doesn't work. Here my dmesg instead my config is attached. [snipped] via_rhine: v1.10-LK1.5.0 2010-10-09 Written by Donald Becker mv643xx_eth: MV-643xx 10/100/1000

Re: [PATCH 3/3] perf: Use 64-bit value when comparing sample_regs

2014-03-06 Thread Gabriel Paubert
On Thu, Mar 06, 2014 at 09:44:47AM +, David Laight wrote: From: Sukadev Bhattiprolu When checking whether a bit representing a register is set in sample_regs, a 64-bit mask, use 64-bit value (1LL). Signed-off-by: Sukadev Bhattiprolu suka...@linux.vnet.ibm.com ---

Re: [PATCH] powerpc: irq work racing with timer interrupt can result in timer interrupt hang

2014-05-09 Thread Gabriel Paubert
On Fri, May 09, 2014 at 06:41:13AM -0700, Paul E. McKenney wrote: On Fri, May 09, 2014 at 05:47:12PM +1000, Anton Blanchard wrote: I am seeing an issue where a CPU running perf eventually hangs. Traces show timer interrupts happening every 4 seconds even when a userspace task is running on

Re: power and percpu: Could we move the paca into the percpu area?

2014-06-11 Thread Gabriel Paubert
On Thu, Jun 12, 2014 at 06:22:11AM +1000, Benjamin Herrenschmidt wrote: On Wed, 2014-06-11 at 14:37 -0500, Christoph Lameter wrote: Looking at arch/powerpc/include/asm/percpu.h I see that the per cpu offset comes from a local_paca field and local_paca is in r13. That means that for all

Re: power and percpu: Could we move the paca into the percpu area?

2014-06-13 Thread Gabriel Paubert
On Thu, Jun 12, 2014 at 07:26:39AM -0500, Segher Boessenkool wrote: Actually, from gcc/config/rs6000.h: /* 1 for registers that have pervasive standard uses and are not available for the register allocator. [snip] So cr5, which is number 73, is never used by gcc. Not

Re: PCIe Access - achieve bursts without DMA

2014-01-31 Thread Gabriel Paubert
On Thu, Jan 30, 2014 at 12:20:21PM +, Moese, Michael wrote: Hello PPC-developers, I'm currently trying to benchmark access speeds to our PCIe-connected IP-cores located inside our FPGA. On x86-based systems I was able to achieve bursts for both read and write access. On PPC32, using an

Re: [RFC PATCH] powerpc: add ioremap_wt

2014-02-03 Thread Gabriel Paubert
On Mon, Feb 03, 2014 at 08:16:49AM +0100, Michael Moese wrote: Allow for IO memory to be mapped cacheable for performing PCI read bursts. Signed-off-by: Michael Moese michael.mo...@men.de --- arch/powerpc/include/asm/io.h | 3 +++ arch/powerpc/mm/pgtable_32.c | 8 2 files

Re: arch/powerpc/math-emu/mtfsf.c - incorrect mask?

2014-02-06 Thread Gabriel Paubert
On Thu, Feb 06, 2014 at 12:09:00PM +1000, Stephen N Chivers wrote: I have a MPC8548e based board and an application that makes extensive use of floating point including numerous calls to cos. In the same program there is the use of an sqlite database. The kernel is derived from 2.6.31 and is

Re: arch/powerpc/math-emu/mtfsf.c - incorrect mask?

2014-02-07 Thread Gabriel Paubert
Hi Stephen, On Fri, Feb 07, 2014 at 11:27:57AM +1000, Stephen N Chivers wrote: Gabriel Paubert paub...@iram.es wrote on 02/06/2014 07:26:37 PM: From: Gabriel Paubert paub...@iram.es To: Stephen N Chivers schiv...@csc.com.au Cc: linuxppc-dev@lists.ozlabs.org, Chris Proctor cproc

Re: arch/powerpc/math-emu/mtfsf.c - incorrect mask?

2014-02-10 Thread Gabriel Paubert
On Fri, Feb 07, 2014 at 02:49:40PM -0600, James Yang wrote: On Fri, 7 Feb 2014, Gabriel Paubert wrote: Hi Stephen, On Fri, Feb 07, 2014 at 11:27:57AM +1000, Stephen N Chivers wrote: Gabriel Paubert paub...@iram.es wrote on 02/06/2014 07:26:37 PM: From: Gabriel Paubert paub

Re: arch/powerpc/math-emu/mtfsf.c - incorrect mask?

2014-02-10 Thread Gabriel Paubert
On Mon, Feb 10, 2014 at 11:17:38AM +, David Laight wrote: However, your other solutions are better. mask = (FM 1); mask |= (FM 3) 0x10; mask |= (FM 6) 0x100; mask |= (FM 9) 0x1000; mask |= (FM 12) 0x1; mask |= (FM 15) 0x10;

Re: arch/powerpc/math-emu/mtfsf.c - incorrect mask?

2014-02-10 Thread Gabriel Paubert
On Mon, Feb 10, 2014 at 12:32:18PM +, David Laight wrote: I disagree, perhaps mostly because the compiler is not clever enough, but right now the code for solution 1 is (actually I have rewritten the code and it reads: mask = (FM 1) | ((FM 3) 0x10)

Re: arch/powerpc/math-emu/mtfsf.c - incorrect mask?

2014-02-10 Thread Gabriel Paubert
Hi James, On Mon, Feb 10, 2014 at 11:03:07AM -0600, James Yang wrote: [snipped] Ok, if you have measured that method1 is faster than method2, let us go for it. I believe method2 would be faster if you had a large out-of-order execution window, because more parallelism can be

Re: Change in PCI behaviour

2010-11-22 Thread Gabriel Paubert
On Fri, Nov 19, 2010 at 08:42:46AM -0700, Gary Thomas wrote: In this case, note that PCI device :00:0c.0 is at 0xc000. This causes problems because it's a truly stupid device that does not work properly at PCI [relative] address 0x. It simply does not respond at that address.

Re: Pegasos i8042 broken again

2011-04-04 Thread Gabriel Paubert
On Sun, Oct 10, 2010 at 06:35:47PM +1100, Benjamin Herrenschmidt wrote: On Sat, 2010-10-09 at 20:37 -0500, pac...@kosh.dhis.org wrote: Pegasos has no keyboard again. I blame commit 540c6c392f01887dcc96bef0a41e63e6c1334f01, which tries to find i8042 IRQs in the device-tree but doesn't fall

Re: Pegasos i8042 broken again

2011-04-04 Thread Gabriel Paubert
On Tue, Apr 05, 2011 at 08:28:50AM +1000, Benjamin Herrenschmidt wrote: Ok, I got fed up about it. The patch referred above is obviously wrong since it leaves interrupts at 0 when a device_type or name of 8042 is found, so what about the following? I can ship it with a signed-off-by

Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?

2011-04-04 Thread Gabriel Paubert
Hi, I've had the following funny crashes on PPC machines, with cataleptic X server as a consequence: kernel: [drm] Setting GART location based on new memory map kernel: Oops: Exception in kernel mode, sig: 4 [#1] kernel: CHRP kernel: last sysfs file:

Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?

2011-04-06 Thread Gabriel Paubert
On Wed, Apr 06, 2011 at 06:46:55PM +1000, Dave Airlie wrote: 2011/4/6 Uwe Kleine-König u.kleine-koe...@pengutronix.de: Hi Gabriel, On Tue, Apr 05, 2011 at 01:52:59AM +0200, Gabriel Paubert wrote: I've had the following funny crashes on PPC machines, with cataleptic X server

Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?

2011-04-07 Thread Gabriel Paubert
Hi Dave, This is the old DRM driver for radeon, which relies on userspace to start X then calls the kernel Actually, even the old DRM driver occasionally hangs on this machine, I suspect a missing barrier, but I might be completely off base. The system is up, only X uses 100% of one

Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?

2011-04-07 Thread Gabriel Paubert
Hi Dave, sorry, in my previous message I forgot the strace output, which is an inifinite loop of the following: --- SIGALRM (Alarm clock) @ 0 (0) --- sigreturn() = ? (mask now []) ioctl(7, 0xc0286429, 0xffdf9bb8)= -1 EBUSY (Device or resource busy) ---

Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?

2011-04-11 Thread Gabriel Paubert
On Thu, Apr 07, 2011 at 04:04:35PM +0200, Michel Dänzer wrote: On Mit, 2011-04-06 at 22:43 +0200, Gabriel Paubert wrote: The probem is that, at least on one of my machines, the new driver does not work: the system hangs (apparently solid, but it's before networking starts up and I've

Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?

2011-04-12 Thread Gabriel Paubert
Hi Micel, On Mon, Apr 11, 2011 at 05:32:43PM +0200, Michel Dänzer wrote: [ Adding the dri-devel list ] Have you ruled out any MSI related problems? I think the IRQ not working could explain the symptoms... Booting with MSI disabled does not change anything. Actually on this machine

Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?

2011-04-12 Thread Gabriel Paubert
On Tue, Apr 12, 2011 at 01:46:10PM +0200, Michel Dänzer wrote: With no_wb=1 the driver goes a bit further but the X server ends up in an infinite ioctl loop and the logs are: Which ioctl does it loop on? Please provide the Xorg.0.log file as well. From memory, the code was 0x64, which

Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?

2011-04-13 Thread Gabriel Paubert
On Tue, Apr 12, 2011 at 07:29:22PM +0200, Michel Dänzer wrote: On Die, 2011-04-12 at 14:00 +0200, Gabriel Paubert wrote: On Tue, Apr 12, 2011 at 01:46:10PM +0200, Michel Dänzer wrote: With no_wb=1 the driver goes a bit further but the X server ends up in an infinite ioctl loop

Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?

2011-04-13 Thread Gabriel Paubert
On Tue, Apr 12, 2011 at 01:46:10PM +0200, Michel Dänzer wrote: BTW, if your kernel contains commit 69a07f0b117a40fcc1a479358d8e1f41793617f2, can you try if reverting that helps? My kernel is pristine 2.6.38 and does not include this commit (was introduced before 2.6.39-rc1 according to gitk).

Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?

2011-04-13 Thread Gabriel Paubert
On Wed, Apr 13, 2011 at 06:16:13PM +1000, Benjamin Herrenschmidt wrote: On Wed, 2011-04-13 at 09:59 +0200, Gabriel Paubert wrote: Well, X is dead, or rather in an infinite ioctl loop as described above. IIRC, the display enters a power-down mode and there is nothing to see. So

Re: small git lesson [Was: Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?]

2011-04-13 Thread Gabriel Paubert
On Wed, Apr 13, 2011 at 10:59:14AM +0200, Andreas Schwab wrote: Uwe Kleine-König u.kleine-koe...@pengutronix.de writes: $ git name-rev --refs=refs/tags/v2.6\* 69a07f0b117a40fcc1a479358d8e1f41793617f2 69a07f0b117a40fcc1a479358d8e1f41793617f2 tags/v2.6.39-rc2~3^2~43^2~4 so it was

Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?

2011-04-13 Thread Gabriel Paubert
On Wed, Apr 13, 2011 at 02:12:16PM +0200, Michel Dänzer wrote: On Mit, 2011-04-13 at 09:59 +0200, Gabriel Paubert wrote: On Tue, Apr 12, 2011 at 07:29:22PM +0200, Michel Dänzer wrote: On Die, 2011-04-12 at 14:00 +0200, Gabriel Paubert wrote: On Tue, Apr 12, 2011 at 01:46:10PM +0200

Re: Probing for native availability of isel from userspace

2012-09-22 Thread Gabriel Paubert
On Sat, Sep 22, 2012 at 02:12:42PM +0400, malc wrote: On Sat, 22 Sep 2012, Segher Boessenkool wrote: Is it possible to determine if _native_ isel is available from userspace somehow? Just try to execute one and catch the SIGILL? Unfortunately my kernel emulates ISEL for me in

Re: Probing for native availability of isel from userspace

2012-09-24 Thread Gabriel Paubert
On Sun, Sep 23, 2012 at 03:46:06AM +0200, Segher Boessenkool wrote: Why does the kernel emulate this, btw? I can see emulation is useful for running older binaries, for instructions that have been removed from the architecture; but for newly added instructions, or optional instructions, it

Re: Probing for native availability of isel from userspace

2012-09-24 Thread Gabriel Paubert
On Mon, Sep 24, 2012 at 05:58:37PM +1000, Benjamin Herrenschmidt wrote: On Mon, 2012-09-24 at 09:55 +0200, Gabriel Paubert wrote: On Sun, Sep 23, 2012 at 03:46:06AM +0200, Segher Boessenkool wrote: Why does the kernel emulate this, btw? I can see emulation is useful for running older

  1   2   >