Re: [PATCH 1/3] sh: dynamic ftrace support.

2008-11-21 Thread Paul Mundt
On Thu, Nov 20, 2008 at 03:34:16PM -0500, Steven Rostedt wrote: +} elsif ($arch eq sh) { +$section_regex = Disassembly of section\\s+(\\S+):; +$function_regex = ^([0-9a-fA-F]+)\\s+(.*?):; +$mcount_regex = ^\\s*([0-9a-fA-F]+):.*\\smcount\$; +$type = .long; + +# force

Re: times(2) sys call bug?

2008-11-21 Thread Joakim Tjernlund
On Fri, 2008-11-21 at 10:52 +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 this patch

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 Joakim Tjernlund
On Fri, 2008-11-21 at 09:41 +0100, Gabriel Paubert wrote: 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

Re: times(2) sys call bug?

2008-11-21 Thread Paul Mackerras
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 the kernel thinks is an error if the syscall returns a value between

Re: Kernel completely crashes after accessing an unmapped area.

2008-11-21 Thread Benjamin Herrenschmidt
On Wed, 2008-11-19 at 13:59 +0100, Ricardo wrote: Hello All: I am using the paulus tree popwerpc linux kernel for a ppc440 cpu located in a Virtex5 FPGA. While developing some drivers (a simple gpio device) I have notice that if I try to access an unmapped area (an address without any

Re: times(2) sys call bug?

2008-11-21 Thread Joakim Tjernlund
On Fri, 2008-11-21 at 20:03 +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 the

Re: times(2) sys call bug?

2008-11-21 Thread Joakim Tjernlund
On Fri, 2008-11-21 at 10:52 +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 this patch

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: times(2) sys call bug?

2008-11-21 Thread Paul Mackerras
Joakim Tjernlund writes: + force_successful_syscall_return(); return (long) jiffies_64_to_clock_t(get_jiffies_64()); Why is 64 bits ops used here when you only use 32 bits? If HZ is 1000, jiffies_64_to_clock_t is going to divide jiffies by 10, so we need to start with 64 bits in

Re: times(2) sys call bug?

2008-11-21 Thread Joakim Tjernlund
On Fri, 2008-11-21 at 10:31 +0100, Joakim Tjernlund wrote: On Fri, 2008-11-21 at 10:52 +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

Re: times(2) sys call bug?

2008-11-21 Thread Paul Mackerras
Gabriel Paubert writes: Who does this? I have spotted some errors in other places on my man pages too, especially in the networking area (they were correct once upon a time, but have not been updated). Michael Kerrisk [EMAIL PROTECTED], I believe. Paul.

Re: times(2) sys call bug?

2008-11-21 Thread Joakim Tjernlund
On Fri, 2008-11-21 at 20:51 +1100, Paul Mackerras wrote: Joakim Tjernlund writes: + force_successful_syscall_return(); return (long) jiffies_64_to_clock_t(get_jiffies_64()); Why is 64 bits ops used here when you only use 32 bits? If HZ is 1000, jiffies_64_to_clock_t is going to

Re: times(2) sys call bug?

2008-11-21 Thread Joakim Tjernlund
On Fri, 2008-11-21 at 10:50 +0100, Gabriel Paubert wrote: 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

Re: [PATCH 1/3] sh: dynamic ftrace support.

2008-11-21 Thread Matt Fleming
On Fri, Nov 21, 2008 at 04:44:29PM +0900, Paul Mundt wrote: On Thu, Nov 20, 2008 at 03:34:16PM -0500, Steven Rostedt wrote: +} elsif ($arch eq sh) { +$section_regex = Disassembly of section\\s+(\\S+):; +$function_regex = ^([0-9a-fA-F]+)\\s+(.*?):; +$mcount_regex =

MPC5200B: Trouble with config pins

2008-11-21 Thread Juergen Beisert
Hi all, we have trouble with the eth based config pins (ETH0...ETH6) of the MPC5200B CPU. These pins act as the interface to an external phy and also act as configurations pins to configure the size of the flash and other things. While the reset is active these pins should be in their high

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

2008-11-21 Thread Steven Rostedt
On Fri, 21 Nov 2008, Russell King - ARM Linux wrote: On Thu, Nov 20, 2008 at 02:11:49PM -0800, Jim Radford wrote: Ingo and Steven, Here's an updated version of the arch/arm changes for dynamic ftrace based on top of your latest tip/master. Excuse me if I'm rather confused, but...

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

2008-11-21 Thread Russell King - ARM Linux
On Thu, Nov 20, 2008 at 02:11:49PM -0800, Jim Radford wrote: Ingo and Steven, Here's an updated version of the arch/arm changes for dynamic ftrace based on top of your latest tip/master. Excuse me if I'm rather confused, but... When ftrace for ARM was originally merged, neither

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

2008-11-21 Thread nanda
Hi Stuart,nbsp;nbsp; Thanks for the information.nbsp;nbsp; gpp access was resolved. nbsp;nbsp; I was successful in building the linux 2.6.11 using the ltib and able to bring up the MPC8360 EMDS.But, I stillnbsp;face the problem for linux kernel 2.6.19 and 2.6.20.nbsp;nbsp;nbsp;When I tried

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

2008-11-21 Thread Stuart Hughes
Hi Nanda, You'll need to get help from the kernel experts with this issue. Regards, Stuart On Fri, 2008-11-21 at 14:16 +, nanda wrote: Hi Stuart, Thanks for the information. gpp access was resolved. I was successful in building the linux 2.6.11 using the ltib and able to bring

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

2008-11-21 Thread Arnd Bergmann
On Friday 21 November 2008, Benjamin Herrenschmidt wrote: Oh just that for powermac for example, I know I'm resetting the thing, so can't rely on init values, and on some BML embedded boxes too, while on things like cell I don't off hand know what the right CPU number is to hit the right C3PO

[PATCH] IB/ehca: Fix lockdep failures for shca_list_lock

2008-11-21 Thread Joachim Fenkes
From: Michael Ellerman [EMAIL PROTECTED] shca_list_lock is taken from softirq context in ehca_poll_eqs, so we need to lock IRQ safe elsewhere. Signed-off-by: Michael Ellerman [EMAIL PROTECTED] Acked-by: Joachim Fenkes [EMAIL PROTECTED] --- drivers/infiniband/hw/ehca/ehca_main.c | 17

Re: powerpc: udbg based backend for hvc_console

2008-11-21 Thread Milton Miller
On Nov 20, 2008, at 1:16 PM, 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 think it's because

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

2008-11-21 Thread Laurent Pinchart
Hi Scott, On Thursday 20 November 2008, Scott Wood wrote: On Thu, Nov 20, 2008 at 01:32:23PM +0100, 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

Re: powerpc: udbg based backend for hvc_console

2008-11-21 Thread Timur Tabi
Milton Miller wrote: We want the last console= parameter on the command line to win. So if that implys the last call to add_preferred_console wins, then you have code overriding the command line. Hmm, good point. However, how likely is it that we'll have more than one console driver?

[PATCH] IB/ehca: Fix locking for shca_list_lock

2008-11-21 Thread Joachim Fenkes
shca_list_lock is taken from softirq context in ehca_poll_eqs, so we need to lock IRQ safe elsewhere. Signed-off-by: Michael Ellerman [EMAIL PROTECTED] Signed-off-by: Joachim Fenkes [EMAIL PROTECTED] --- On Friday 21 November 2008 17:02, Johannes Berg wrote: On Fri, 2008-11-21 at 16:37 +0100,

Re: MPC5200B: Trouble with config pins

2008-11-21 Thread Andre Schwarz
Jürgen, Have a look at the manual chapter 4 (=Reset + Config). SRESET (issued by gpt0 - watchdog) isn't supposed to do a full hardware reset. Looks like you should make use of the SRESET and trigger HRESET accordingly. I could solve this with _not_ using the internal watchdog but an external

Re: MPC5200B: Trouble with config pins

2008-11-21 Thread Juergen Beisert
Hi Andre, On Freitag, 21. November 2008, Andre Schwarz wrote: Have a look at the manual chapter 4 (=Reset + Config). SRESET (issued by gpt0 - watchdog) isn't supposed to do a full hardware reset. Looks like you should make use of the SRESET and trigger HRESET accordingly. I could solve

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

2008-11-21 Thread Scott Wood
Laurent Pinchart wrote: On Thursday 20 November 2008, Scott Wood wrote: This makes things worse on mpc8272ads -- the result of the division is 13.56, but I only get error-free serial output when rounding down. I don't think the remote end has timing problems, as I don't see this with any other

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

2008-11-21 Thread Stefan Roese
Dave, On Friday 21 November 2008, David Brownell wrote: 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

Re: [PATCH] IB/ehca: Fix locking for shca_list_lock

2008-11-21 Thread Roland Dreier
Looks good... I'll add this for 2.6.29, since as far as I can tell this bug has been there approximately forever already. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: powerpc: udbg based backend for hvc_console

2008-11-21 Thread Milton Miller
On Nov 21, 2008, at 10:13 AM, Timur Tabi wrote: Milton Miller wrote: We want the last console= parameter on the command line to win. So if that implys the last call to add_preferred_console wins, then you have code overriding the command line. Hmm, good point. However, how likely is it that

Re: powerpc: udbg based backend for hvc_console

2008-11-21 Thread Milton Miller
On Nov 20, 2008, at 6:35 PM, David Gibson wrote: On Thu, Nov 20, 2008 at 01:07:11PM -0600, Milton Miller wrote: 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, David Gibson [EMAIL PROTECTED] wrote: This

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

2008-11-21 Thread Benjamin Herrenschmidt
On Fri, 2008-11-21 at 15:40 +0100, Arnd Bergmann wrote: On Friday 21 November 2008, Benjamin Herrenschmidt wrote: Oh just that for powermac for example, I know I'm resetting the thing, so can't rely on init values, and on some BML embedded boxes too, while on things like cell I don't off

Nodes with no memory

2008-11-21 Thread Dave Hansen
I was handed off a bug report about a blade not booting with a, um newer kernel. After turning on some debugging messages, I got this ominous message: node 1 NODE_DATA() = c000 Which obviously comes from here: arch/powerpc/mm/numa.c

Re: Nodes with no memory

2008-11-21 Thread Nathan Lynch
Dave Hansen wrote: I was handed off a bug report about a blade not booting with a, um newer kernel. If you're unable to provide basic information such as the kernel version then perhaps this isn't the best forum for discussing this. :) I'm thinking that we need to at least fix