Re: [PATCH 0/9] powerpc: port of dynamic ftrace

2008-11-20 Thread Ingo Molnar
* Steven Rostedt [EMAIL PROTECTED] wrote: arch/powerpc/Kconfig |2 + arch/powerpc/include/asm/ftrace.h | 14 +- arch/powerpc/include/asm/module.h | 16 ++- arch/powerpc/kernel/ftrace.c | 473 +--- arch/powerpc/kernel/idle.c

[PATCH] powerpc: Add use of Epson RTX-8581 RTC to GE Fanuc SBC610 dts

2008-11-20 Thread Martyn Welch
Adding use of newly added Epson RTX-8581 real-time clock driver to GE Fanuc SBC610's dts file and adding driver to default config. Signed-off-by: Martyn Welch [EMAIL PROTECTED] --- arch/powerpc/boot/dts/gef_sbc610.dts |5 + arch/powerpc/configs/86xx/gef_sbc610_defconfig |8

Re: [PATCH 0/9] powerpc: port of dynamic ftrace

2008-11-20 Thread Steven Rostedt
On Thu, 20 Nov 2008, Ingo Molnar wrote: Hm, something like this shouldnt be pulled into the powerpc tree: it touches the core kernel, x86 code and ftrace code as well. Please do the suggestion i outlined and which Paul agreed with: prepare a branch that touches _only_ powerpc files and

[PATCH] cpm2: Round the baud-rate clock divider to the nearest integer.

2008-11-20 Thread Laurent Pinchart
Instead of rounding the divider down, improve the baud-rate generators accuracy by rounding to the nearest integer. Signed-off-by: Laurent Pinchart [EMAIL PROTECTED] --- arch/powerpc/sysdev/cpm2.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git

[PATCH] Add support for the nwp serial device

2008-11-20 Thread Arnd Bergmann
From: Benjamin Krill [EMAIL PROTECTED] This patch adds support for the nwp serial device which is connected to a DCR bus. It uses the of_serial device driver to determine necessary properties from the device tree. The supported device is added as serial port number 84. Signed-off-by: Benjamin

Re: [PATCH] Add support for the nwp serial device

2008-11-20 Thread Josh Boyer
On Thu, Nov 20, 2008 at 03:01:23PM +0100, Arnd Bergmann wrote: From: Benjamin Krill [EMAIL PROTECTED] This patch adds support for the nwp serial device which is connected to a DCR bus. It uses the of_serial device driver to determine necessary properties from the device tree. The supported device

USB on lite5200 does not work.

2008-11-20 Thread gianfranco.casanova
Hi folks I've got a little problem with USB using a board based on lite5200. Some infos: -uBoot 1.2.0 -Linux version 2.6.21.7-hrt1-WR2.0bl_standard -time_init: processor frequency = 396.00 MHz We are using a minimal rootfs in order to jump on the real rootfs. We reach the shell using the

Re :Re: 8360E MDS - linux 2.6.20

2008-11-20 Thread nanda
Hi Kim,I did the following steps, but Iam unable to generate the rootfs.ext2.gz.uboot - Executed the ./install command from the 8360CD. As a result of it generated the ltib directory- In the ltib directory ./ltib --configureIn the configure menu, I specified the following, before saving the

Re: [PATCH 0/9] powerpc: port of dynamic ftrace

2008-11-20 Thread Ingo Molnar
* Steven Rostedt [EMAIL PROTECTED] wrote: branch: ppc/ftrace-disable Matt Fleming (1): ftrace: align __mcount_loc sections Steven Rostedt (8): ftrace: disable dynamic ftrace from PowerPC powerpc: ftrace, do not latency trace idle powerpc: ftrace, convert

Re: USB on lite5200 does not work.

2008-11-20 Thread Grant Likely
On Thu, Nov 20, 2008 at 7:09 AM, [EMAIL PROTECTED] wrote: Hi folks I've got a little problem with USB using a board based on lite5200. Some infos: -uBoot 1.2.0 -Linux version 2.6.21.7-hrt1-WR2.0bl_standard -time_init: processor frequency = 396.00 MHz There have been a lot of

Re: Please pull 'merge' branch of powerpc-4xx git tree

2008-11-20 Thread Josh Boyer
On Thu, 13 Nov 2008 10:36:23 -0500 Josh Boyer [EMAIL PROTECTED] wrote: Hi Paul, Please pull the merge branch of the powerpc-4xx git tree. It contains two small fixes that should go into .28. Ping? josh The following changes since commit cb8fdc69a2a80e81e1280ec58afd2c3217ac8a7f: Paul

times(2) sys call bug?

2008-11-20 Thread Joakim Tjernlund
Why does the below program end up reporting -1 multiple seconds when times() wrap: #include sys/times.h #include stdio.h main() { unsigned long t1; clock_t t2; while(1){ t1 = times(NULL); t2 = times(NULL); sleep(1);

Re: [PATCH] powerpc: Add MSR[CE, DE] to the MSR bits we print on show_regs()

2008-11-20 Thread Kumar Gala
On Nov 19, 2008, at 10:46 PM, Benjamin Herrenschmidt wrote: On Wed, 2008-11-19 at 08:39 -0600, Kumar Gala wrote: Signed-off-by: Kumar Gala [EMAIL PROTECTED] --- Shouldn't this be protected by some ifdef ? Ben. arch/powerpc/kernel/process.c |2 ++ 1 files changed, 2 insertions(+), 0

Re: [PATCH] cpm2: Round the baud-rate clock divider to the nearest integer.

2008-11-20 Thread Kumar Gala
On Nov 20, 2008, at 6:32 AM, Laurent Pinchart wrote: Instead of rounding the divider down, improve the baud-rate generators accuracy by rounding to the nearest integer. Signed-off-by: Laurent Pinchart [EMAIL PROTECTED] --- arch/powerpc/sysdev/cpm2.c |3 ++- 1 files changed, 2

Re: times(2) sys call bug?

2008-11-20 Thread Josh Boyer
On Thu, 20 Nov 2008 16:09:16 +0100 Joakim Tjernlund [EMAIL PROTECTED] wrote: Why does the below program end up reporting -1 multiple seconds when times() wrap: http://sources.redhat.com/bugzilla/show_bug.cgi?id=5209 josh ___ Linuxppc-dev mailing

Re: [PATCH] Add support for the nwp serial device

2008-11-20 Thread Josh Boyer
On Thu, 20 Nov 2008 16:20:54 +0100 Benjamin Krill [EMAIL PROTECTED] wrote: Hi Josh, What does 'NWP' stand for, and how is it different from a regular serial port? Also, what platforms can this device be found on currently? Some of that should be included in the changelog, but I'm curious

Re: R: USB on lite5200 does not work.

2008-11-20 Thread Grant Likely
On Thu, Nov 20, 2008 at 8:33 AM, [EMAIL PROTECTED] wrote: I Grant I would but I cannot move up to an other kernel, project constraints. Complement of INFO: using a lite5200EVB USB works. using our board (kernel modified for our board), USB does not work. Have you got some ideas? I can

Re: [PATCH] cpm2: Round the baud-rate clock divider to the nearest integer.

2008-11-20 Thread Kumar Gala
On Nov 20, 2008, at 9:57 AM, Laurent Pinchart wrote: Hi Kumar, On Thursday 20 November 2008 16:32:21 Kumar Gala wrote: On Nov 20, 2008, at 6:32 AM, Laurent Pinchart wrote: Instead of rounding the divider down, improve the baud-rate generators accuracy by rounding to the nearest integer.

Re: times(2) sys call bug?

2008-11-20 Thread Joakim Tjernlund
On Thu, 2008-11-20 at 10:37 -0500, Josh Boyer wrote: On Thu, 20 Nov 2008 16:09:16 +0100 Joakim Tjernlund [EMAIL PROTECTED] wrote: Why does the below program end up reporting -1 multiple seconds when times() wrap: http://sources.redhat.com/bugzilla/show_bug.cgi?id=5209 josh I see,

[PATCH V2] powerpc: Add sync_*_for_* to dma_ops

2008-11-20 Thread Becky Bruce
We need to swap these out once we start using swiotlb, so add them to dma_ops. Create CONFIG_PPC_NEED_DMA_SYNC_OPS Kconfig option; this is currently enabled automatically if we're CONFIG_NOT_COHERENT_CACHE. In the future, this will also be enabled for builds that need swiotlb. If

Re: [PATCH v2] powerpc: allow configuring max stack dump depth

2008-11-20 Thread Johannes Berg
On Thu, 2008-11-20 at 09:10 +1100, Paul Mackerras wrote: Johannes Berg writes: On my screen, when something crashes, I only have space for maybe 16 functions of the stack trace before the information above it scrolls off the screen. It's easy to hack the kernel to print out only that

[PATCH v3] powerpc: allow configuring max stack dump depth

2008-11-20 Thread Johannes Berg
On my screen, when something crashes, I only have space for maybe 16 functions of the stack trace before the information above it scrolls off the screen. It's easy to hack the kernel to print out only that much, but it's harder to remember to do it. This patch introduces a config option for it so

ltib error -linux2.6.20.6 with MPC8360E MDS

2008-11-20 Thread nanda
Hi All,nbsp;nbsp; Iam forwarding the mail which I have posted to powerpc linux listnbsp;[EMAIL PROTECTED]nbsp; Iam getting the below error during the generation of rootfs.ext2.gz.uboot (Power PC Linux RAM Disk Image) and uImage (Power PC Linux Kernel Image) for linux-2.6.20.6 kernel on the

Re: USB on lite5200 does not work.

2008-11-20 Thread Wolfgang Denk
Dear [EMAIL PROTECTED], In message [EMAIL PROTECTED] you wrote: I've got a little problem with USB using a board based on lite5200. Some infos: -uBoot 1.2.0 -Linux version 2.6.21.7-hrt1-WR2.0bl_standard 2.6.21 is a pretty old kernel. In mainline, it didn't include real stable

Re: powerpc: udbg based backend for hvc_console

2008-11-20 Thread Milton Miller
[I'm going to reply to several points in this thread in one reply. I have restored context that was trimmed in later replys when I wanted to speak to.] David Gibson wrote at 2008-11-18 00:28:28: On Mon, Nov 17, 2008 at 01:41:24PM -0600, Timur Tabi wrote: On Thu, Oct 23, 2008 at 9:54 PM,

[PATCH 3/5] powerpc: ftrace, use probe_kernel API to modify code

2008-11-20 Thread Steven Rostedt
From: Steven Rostedt [EMAIL PROTECTED] Impact: use cleaner probe_kernel API over assembly Using probe_kernel_read/write interface is a much cleaner approach than the current assembly version. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/powerpc/kernel/ftrace.c | 53

[PATCH 5/5] powerpc/ppc32: ftrace, dynamic ftrace to handle modules

2008-11-20 Thread Steven Rostedt
From: Steven Rostedt [EMAIL PROTECTED] Impact: add ability to trace modules on 32 bit PowerPC This patch performs the necessary trampoline calls to handle modules with dynamic ftrace on 32 bit PowerPC. Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- arch/powerpc/include/asm/module.h |5

Re: [PATCH 0/5] powerpc: dynamic ftrace port

2008-11-20 Thread Ingo Molnar
* Steven Rostedt [EMAIL PROTECTED] wrote: Paul and Ingo, The following are the changes to get dynamic ftrace working on PowerPC. I modified these a little from the last postings. 1) I removed the changes to recordmcount.pl. This is not a PowerPC change, although PowerPC needs it

Re: [PATCH] Fix BSR to allow mmap of small BSR on 64k kernel

2008-11-20 Thread Sonny Rao
On Thu, Nov 20, 2008 at 09:54:21AM +1100, Paul Mackerras wrote: Sonny Rao writes: On Wed, Nov 19, 2008 at 03:07:04PM +1100, Paul Mackerras wrote: I think we should be checking that dev-bsr_len == 4096 here. Paul. Well, dev-bsr_len could be 4096 or 8192 Isn't the dev-bsr_len

[PATCH 3/3] ftrace: create default variables for archs in recordmcount.pl

2008-11-20 Thread Steven Rostedt
From: Steven Rostedt [EMAIL PROTECTED] Impact: cleanup of recordmcount.pl Now that more architectures are being ported to the MCOUNT_RECORD method, there is no reason to have each declare their own arch specific variable if most of them share the same value. This patch creates a set of default

[PATCH 0/1] powerpc: make mcount a stub for dynamic ftrace

2008-11-20 Thread Steven Rostedt
Paul, I have one more patch. I added it to the end of the ppc/ftrace branch. The new way of handling the finding of mcounts means we do not need to do anything in the mcount call itself. It should just be a stub and when ftrace is enabled, it will change the caller sites to call something other

[PATCH 1/1] powerpc: ftrace, do nothing in mcount call for dyn ftrace

2008-11-20 Thread Steven Rostedt
From: Steven Rostedt [EMAIL PROTECTED] Impact: quicken mcount calls that are not replaced by dyn ftrace Dynamic ftrace no longer does on the fly recording of mcount locations. The mcount locations are now found at compile time. The mcount function no longer needs to store registers and call a

[GIT PULL] Please pull spufs.git merge branch

2008-11-20 Thread Jeremy Kerr
Hi Paul, Please do a: git pull \ git://git.kernel.org/pub/scm/linux/kernel/git/jk/spufs.git merge For a spufs bugfix Cheers, Jeremy --- diffstat: arch/powerpc/platforms/cell/spufs/file.c |3 +++ 1 file changed, 3 insertions(+) 1 commits:

Re: [Ltib] ltib error -linux2.6.20.6 with MPC8360E MDS

2008-11-20 Thread Stuart Hughes
Hi Nanda, This is happening because you don't have access to http://www.bitshrine.org/gpp for some reason. If LTIB needs to download sources to build a package, it will get them from bitshrine.org. Can you check that you are able to access this URL from the command line with wget. Regards,

Re: [PATCH] ftrace: mcountrecord.pl for arm

2008-11-20 Thread Jim Radford
Ingo and Steven, Here's an updated version of the arch/arm changes for dynamic ftrace based on top of your latest tip/master. -Jim --- From: Jim Radford [EMAIL PROTECTED] Subject: ftrace: enable dynamic ftrace for arm Update to the latest api, syncing functions with the x86 versions. Index:

Re: powerpc: udbg based backend for hvc_console

2008-11-20 Thread David Gibson
On Thu, Nov 20, 2008 at 01:16:27PM -0600, Timur Tabi wrote: Milton Miller wrote: Stated differently, if your routine (1) fundamently works one character at a time and (2) is not interrupt driven, and (3) only supports one channel, what avantage is there to an explicit hvc driver? I

Re: powerpc: udbg based backend for hvc_console

2008-11-20 Thread David Gibson
On Thu, Nov 20, 2008 at 01:07:11PM -0600, Milton Miller wrote: [I'm going to reply to several points in this thread in one reply. I have restored context that was trimmed in later replys when I wanted to speak to.] David Gibson wrote at 2008-11-18 00:28:28: On Mon, Nov 17, 2008 at

Re: [PATCH] Add support for the nwp serial device

2008-11-20 Thread David Gibson
On Thu, Nov 20, 2008 at 03:01:23PM +0100, Arnd Bergmann wrote: From: Benjamin Krill [EMAIL PROTECTED] This patch adds support for the nwp serial device which is connected to a DCR bus. It uses the of_serial device driver to determine necessary properties from the device tree. The supported

Re: [PATCH] powerpc/cell/axon-msi: retry on missing interrupt

2008-11-20 Thread Michael Ellerman
On Mon, 2008-11-17 at 17:10 +0100, Arnd Bergmann wrote: The MSI capture logic for the axon bridge can sometimes lose interrupts in case of high DMA and interrupt load, when it signals an MSI interrupt to the MPIC interrupt controller while we are already handling another MSI. 8 8 8 Index:

Re: [PATCH 4/4] leds: Let GPIO LEDs keep their current state

2008-11-20 Thread Trent Piepho
On Mon, 17 Nov 2008, Richard Purdie wrote: On Fri, 2008-10-24 at 16:09 -0700, Trent Piepho wrote: +if (template-keep_state) +state = !!gpio_get_value(led_dat-gpio) ^ led_dat-active_low; +else +state = template-default_state; state =

Re: [PATCH] powerpc/mpic: don't reset affinity for secondary MPIC on boot

2008-11-20 Thread Benjamin Herrenschmidt
On Thu, 2008-11-20 at 18:23 +0100, Arnd Bergmann wrote: Kexec/kdump currently fails on the IBM QS2x blades when the kexec happens on a CPU other than the initial boot CPU. It turns out that this is the result of mpic_init trying to set affinity of each interrupt vector to the current boot

Re: [spi-devel-general] [PATCH v3] spi: Add PPC4xx SPI driver

2008-11-20 Thread David Brownell
On Thursday 30 October 2008, Jason Hanna wrote: Also, any pointers to sample/test code incorporating a spi protocol driver would be incredibly helpful. Look at Documentation/spi/*.c ... for user mode code hooking up through spidev. I'm very new to device driver programming and don't really

Re: [spi-devel-general] [PATCH v4] spi: Add PPC4xx SPI driver

2008-11-20 Thread David Brownell
On Friday 31 October 2008, Stefan Roese wrote: +   dev_dbg(spi-dev, %s: mode %d, %u bpw, %d hz\n, +   __FUNCTION__, spi-mode, spi-bits_per_word, +   spi-max_speed_hz); Oh, and checkpatch.pl would warn about __FUNCTION__ vs __func__ ...

Re: [PATCH] Add support for the nwp serial device

2008-11-20 Thread David Gibson
On Fri, Nov 21, 2008 at 08:21:02AM +0100, Benjamin Krill wrote: * David Gibson | 2008-11-21 11:35:45 [+1100]: Uh.. registers as port number 84?? What's this random number about? It's just the next free number in serial_core.h. Ah, right, sorry, those are type codes. Thought you meant