[PATCH 1/1] Work around the fomit-frame-pointer bug

2008-09-01 Thread Tony Breeds
This bug is causing random crashes (http://bugzilla.kernel.org/show_bug.cgi?id=11414). -fomit-frame-pointer is only needed on powerpc when -pg is also supplied. This patch ensures that CONFIG_FRAME_POINTER is only selected by ftrace. When CONFIG_FTRACE is enabled we also pass -mno-sched-epilog t

Re: Trace

2008-09-01 Thread Sébastien CHRETIEN
My board has only a uart device on a FPGA. I don't use the serial layer because it isn't documented in Linux Device Driver 3rd. Only the tty layer is documented Benjamin Herrenschmidt a écrit : On Mon, 2008-09-01 at 18:33 +0200, Sébastien Chrétien wrote: Thanks for your answer. Your analys

[PATCH] powerpc: Reserve syscall number 319

2008-09-01 Thread Benjamin Herrenschmidt
Some stuff I'm working on that isn't released yet needs a syscall number but I can't say what it's for until I get permission to release it :-) In the meantime, it would be nice if a number could be set aside so the tools being developped to use that stuff don't all need to be updated when things

Re: Trace

2008-09-01 Thread Benjamin Herrenschmidt
On Tue, 2008-09-02 at 07:13 +0200, Sébastien CHRETIEN wrote: > My board has only a uart device on a FPGA. I don't use the serial layer > because it isn't documented in Linux Device Driver 3rd. Only the tty > layer is documented You won't go very far in linux kernel dev. with using books like tha

Buglet in 16G page handling

2008-09-01 Thread David Gibson
When BenH and I were looking at the new code for handling 16G pages, we noticed a small bug. It doesn't actually break anything user visible, but it's certainly not the way things are supposed to be. The 16G patches didn't update the huge_pte_offset() and huge_pte_alloc() functions, which means th

[PATCH] powerpc: make sure all kernel text is before _etext

2008-09-01 Thread Stephen Rothwell
This makes core_kernel_text() (and therefore kernel_text_address()) return the correct result. Currently all the __devinit routines (at least) will not be considered to be kernel text. This is just a quick fix for 2.6.27 - hopefully we will be able to fix this better in 2.6.28. Signed-off-by: St

Re: gdb woes

2008-09-01 Thread Michael Neuling
In message <[EMAIL PROTECTED]> you wrote: > Hello all, > I have some trouble when trying to use gdb to debug a custom app. > That app crashes for no reason but always on the same spots (probably > hardware related, it runs on homebrew ppc-based card). > I've used gdb in the past, but always as par

Re: Trace

2008-09-01 Thread Benjamin Herrenschmidt
On Mon, 2008-09-01 at 18:33 +0200, Sébastien Chrétien wrote: > Thanks for your answer. > Your analyse of ttys is very well. It was not my answer. All adresses in > system.map begin with 0xc... So I think it is the case for ttys too. > > I found the mistake. It came from my board_device function i

Re: [PATCH] usb: add Freescale QE/CPM USB peripheral controller driver

2008-09-01 Thread Anton Vorontsov
On Thu, Aug 28, 2008 at 05:43:33PM +0800, Li Yang wrote: > Some of Freescale SoC chips have a QE or CPM co-processor which > supports full speed USB. The driver adds device mode support > of both QE and CPM USB controller to Linux USB gadget. The > driver is tested with MPC8360 and MPC8272, and s

Re: Trace

2008-09-01 Thread Sébastien Chrétien
Thanks for your answer. Your analyse of ttys is very well. It was not my answer. All adresses in system.map begin with 0xc... So I think it is the case for ttys too. I found the mistake. It came from my board_device function in struct console(console ->device). It didn't change the value of th

Re: [PATCH] usb: add Freescale QE/CPM USB peripheral controller driver

2008-09-01 Thread Anton Vorontsov
On Thu, Aug 28, 2008 at 05:43:33PM +0800, Li Yang wrote: > Some of Freescale SoC chips have a QE or CPM co-processor which > supports full speed USB. The driver adds device mode support > of both QE and CPM USB controller to Linux USB gadget. The > driver is tested with MPC8360 and MPC8272, and s

[PATCH] powerpc: enforce a non-spe kernel build even on broken compilers

2008-09-01 Thread Sebastian Siewior
From: Thiemo Seufer <[EMAIL PROTECTED]> those two are requried on my fresh gcc 4.3.1 Signed-off-by: Thiemo Seufer <[EMAIL PROTECTED]> Signed-off-by: Sebastian Siewior <[EMAIL PROTECTED]> --- Not sure if this is intendent or a gcc bug but with -mno-spe the spe opcodes were not used floating point

RE: Trace

2008-09-01 Thread Jenkins, Clive
> Why can't tty have value 0x5741 ? To answer my own question, because it ends in 1 and is not word-aligned! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jenkins, Clive Sent: 01 September 2008 14:54 To: Sébastien Chrétien Cc: linuxppc-dev@ozlabs.or

RE: Trace

2008-09-01 Thread Jenkins, Clive
I'm not sure that is a failure. Why can't tty have value 0x5741 ? I think the code in tty_io.c initialises driver->ttys and you shouldn't need to do anything in your driver. If you are not already aware, a useful way to explore kernel code is to use LXR: http://lxr.linux.no/linux+v2.6.26/in

Re: [PATCH] usb: add Freescale QE/CPM USB peripheral controller driver

2008-09-01 Thread Anton Vorontsov
On Thu, Aug 28, 2008 at 05:43:33PM +0800, Li Yang wrote: > Some of Freescale SoC chips have a QE or CPM co-processor which > supports full speed USB. The driver adds device mode support > of both QE and CPM USB controller to Linux USB gadget. The > driver is tested with MPC8360 and MPC8272, and s

[RFC PATCH 2/2 v2] powerpc/83xx: mpc836x_mds: add support for USB Host

2008-09-01 Thread Anton Vorontsov
Various changes to support QE USB Host on a MPC8360E-MDS board: - Update the device tree per QE USB bindings; - Configure QE Par IO; - Set up BCSR for both USB Host and Peripheral modes; - Add timer (GTM) node; - Add gpio-controller node for BCSR13 bank; - Select FSL_GTM, QE_GPIO and OF_SIMPLE_GPI

gdb woes

2008-09-01 Thread Guillaume Dargaud
Hello all, I have some trouble when trying to use gdb to debug a custom app. That app crashes for no reason but always on the same spots (probably hardware related, it runs on homebrew ppc-based card). I've used gdb in the past, but always as part of 'bigger' IDEs. So I run "gdb myapp" locally

Re: Trace

2008-09-01 Thread Sébastien Chrétien
I found where is the failure with your advices In init_dev (tty_io.c), init_dev calls "tty = driver->ttys[idx]" after this call, tty value is : tty = 0x5741 Have I to initialize driver->ttys in my driver. If yes, how have I to Initialize this ? The driver tty is used in order to have a consol

[PATCH v4 1/2] powerpc: Board support for GE Fanuc SBC610

2008-09-01 Thread Martyn Welch
Support for the SBC610 VPX Single Board Computer from GE Fanuc (PowerPC MPC8641D). This is the basic board support for GE Fanuc's SBC610, a 6U single board computer, based on Freescale's MPC8641D. Signed-off-by: Martyn Welch <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/gef_sbc610.dts | 25

[PATCH v4 2/2] powerpc: Default configuration for GE Fanuc SBC610

2008-09-01 Thread Martyn Welch
Support for the SBC610 VPX Single Board Computer from GE Fanuc (PowerPC MPC8641D). This is the default config file for GE Fanuc's SBC610, a 6U single board computer, based on Freescale's MPC8641D. Signed-off-by: Martyn Welch <[EMAIL PROTECTED]> --- arch/powerpc/configs/86xx/gef_sbc610_defconfig

[PATCH v4 0/2] powerpc: Board support for GE Fanuc SBC610

2008-09-01 Thread Martyn Welch
The following series implements basic board support for GE Fanuc's SBC610, a 6U single board computer, based on Freescale's MPC8641D. This series provides basic functionality: - The board can boot with a serial console. - Ethernet works, though the phys are polled. - The PCI bus is scanned and sa

RE: Trace

2008-09-01 Thread Jenkins, Clive
The instruction that caused the fault is at this address: > NIP [c0110ddc] init_dev+0x2bc/0x584 The hex value of the instruction is also highlighted between <> here: > Instruction dump: > 7d808120 4e800020 7c832378 4bfa9ea9 7c7f1b79 418201f0 a81e0062 2f81 > 409efd98 83ff00d0 2c1f 4182fd90

Re: Efficient memcpy()/memmove() for G2/G3 cores...

2008-09-01 Thread Joakim Tjernlund
On Mon, 2008-09-01 at 09:23 +0200, David Jander wrote: > On Friday 29 August 2008 14:20:33 Joakim Tjernlund wrote: > >[...] > > > The problem is: I have very little experience with powerpc assembly and > > > only very limited time to dedicate to this and I am looking for others > > > who have > > >

Re: Trace

2008-09-01 Thread Benjamin Herrenschmidt
On Mon, 2008-09-01 at 11:16 +0200, Sébastien Chrétien wrote: > Hello, > > I am triying to write a tty_driver under ppc. And I get a kernel > panic. > Can somebody explain me how finding the source of the error with a > kernel panic trace : > thanks What kind of device are you writing a tty drive

Trace

2008-09-01 Thread Sébastien Chrétien
Hello, I am triying to write a tty_driver under ppc. And I get a kernel panic. Can somebody explain me how finding the source of the error with a kernel panic trace : thanks Unable to handle kernel paging request for data at address 0x57f9 Faulting instruction address: 0xc0110ddc Oops: Kernel

Re: [PATCH v3 1/2] powerpc: Board support for GE Fanuc SBC610

2008-09-01 Thread Martyn Welch
On Fri, 29 Aug 2008 07:04:18 -0500 Kumar Gala <[EMAIL PROTECTED]> wrote: > > On Aug 26, 2008, at 8:13 AM, Martyn Welch wrote: > > > + > > + PowerPC,[EMAIL PROTECTED] { > > + device_type = "cpu"; > > + reg = <0x>; > > + d-cac

Re: Efficient memcpy()/memmove() for G2/G3 cores...

2008-09-01 Thread David Jander
On Friday 29 August 2008 22:34:21 Steven Munroe wrote: > > I am not complaining. I was only wondering if it is just me or there > > really is very little that has been done (for either uClibc, glibc, or > > whatever for powerpc) to improve performance of (linux-) applications on > > "lower"-power p

Re: [Evolves!] Why does one "stw" fail with address translation disabled in PPC405EP?

2008-09-01 Thread Zhou Rui
> Paul spotted today that you are actually trying to use __pa() on > addresses returned from vmalloc, that will not work. Those are virtual > addresses in a non-linear mapping, _pa() only works on the linear > mapping. > > Ben. Oh, do you mean the addresses vmalloc() returns are non-linear mappi

[PATCH] ppc4xx_pci: necessary fixes for 4GB RAM size (updated)

2008-09-01 Thread Ilya Yanok
1. declaration of total_memory removed. Now including instead. 2. is_power_of_2() works with u32 so I just inlined (size & (size-1)) != 0 instead. Also this patch fixes default initialization: res->end should be 0x7fff not 0x8000. Signed-off-by: Ilya Yanok <[EMAIL PROTECTED]> --- arch/po

Re: [PATCH] ppc4xx_pci: necessary fixes for 4GB RAM size

2008-09-01 Thread Ilya Yanok
Benjamin Herrenschmidt wrote: >>> 1. total_memory should be phys_addr_t not unsigned long >>> 2. is_power_of_2() works with u32 so I just inlined (size & (size-1)) != 0 >>> instead. >>> Also this patch fixes default initialization: res->end should be 0x7fff >>> not 0x8000. >>> >>> Signed-of

Re: Efficient memcpy()/memmove() for G2/G3 cores...

2008-09-01 Thread David Jander
On Friday 29 August 2008 14:20:33 Joakim Tjernlund wrote: >[...] > > The problem is: I have very little experience with powerpc assembly and > > only very limited time to dedicate to this and I am looking for others > > who have > > I improved the PowerPC memcpy and friends in uClibc a while ago. I

Re: [Evolves!] Why does one "stw" fail with address translation disabled in PPC405EP?

2008-09-01 Thread Benjamin Herrenschmidt
On Mon, 2008-09-01 at 09:22 +0200, Zhou Rui wrote: > 在 2008-09-01一的 15:42 +1000,Benjamin Herrenschmidt写道: > > On Sun, 2008-08-31 at 13:50 +0200, Zhou Rui wrote: > > > Hi, all: > > > My problem seems basically solved. > > > We we used to call vmalloc() in the memory management part of our >