Re: [PATCH 0/5] Relocatable 64-bit kernel using linker PIE support

2008-08-18 Thread Paul Mackerras
Mohan Kumar M writes: > Attaching the .config Hmmm, your config works for me on a POWER6 partition here, whether I netboot the zImage.pseries or boot it with yaboot. I wonder if your toolchain is an older version. What is the output from ld --version and gcc --version? Also, could you send me

Re: [PATCH] duplicate SNDRV_PCM_FMTBIT_S{16,24}_BE

2008-08-18 Thread Johannes Berg
roel kluin wrote: > untested, is it correct? not a clue, do you know how long ago that was? :) does the driver check endianness anywhere? > duplicate SNDRV_PCM_FMTBIT_S{16,24}_BE > > Signed-off-by: Roel Kluin <[EMAIL PROTECTED]> > --- > diff --git a/sound/aoa/codecs/snd-aoa-codec-tas.c > b/sound/

[PATCH] powerpc/spufs: Remove invalid semicolon after if statement

2008-08-18 Thread Ilpo Järvinen
Signed-off-by: Ilpo Järvinen <[EMAIL PROTECTED]> --- arch/powerpc/platforms/cell/spufs/sched.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c index 2deeeba..f7e5af8 100644 --- a/arch/

Re: [PATCH 0/5] Relocatable 64-bit kernel using linker PIE support

2008-08-18 Thread Mohan Kumar M
Hi Paul, Attaching the .config Paul Mackerras wrote: Mohan Kumar M writes: If you need, I can give the .config I use. Yes please, send it over. # # Automatically generated make config: don't edit # Linux kernel version: 2.6.27-rc1 # Mon Aug 18 14:24:37 2008 # CONFIG_PPC64=y # # Processor

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Benjamin Herrenschmidt
On Mon, 2008-08-18 at 23:12 -0400, Steven Rostedt wrote: > On Tue, 19 Aug 2008, Benjamin Herrenschmidt wrote: > > > Ok, so i did a patch, but it doesn't fix the problem. So > > there's something else whacking on the stack frames. > > Is it 32 bit or 64? I've tested the 64 bit quite a bit, but no

Re: [PATCH] ibmebus/of_platform: Move "name" sysfs attribute into generic OF devices

2008-08-18 Thread Paul Mackerras
Joachim Fenkes writes: > Recent of_platform changes made of_bus_type_init() overwrite the bus type's > .dev_attrs list, so move ibmebus' "name" attribute (which is needed by eHCA > userspace support) into generic OF device code. Tested on POWER. Is this a bugfix that is needed for 2.6.27? ___

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Steven Rostedt
On Mon, 18 Aug 2008, Mathieu Desnoyers wrote: > > > > > > > > > > Argh. See text_poke(). It's there exactly for this purpose on x86. > > > > Ouch, I just did. text_poke is quite heavy. It would be interesting to see > > that performed on 20,000 locations at one time. I could play with it, but

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Mathieu Desnoyers
* Steven Rostedt ([EMAIL PROTECTED]) wrote: > > On Mon, 18 Aug 2008, Mathieu Desnoyers wrote: > > > * Steven Rostedt ([EMAIL PROTECTED]) wrote: > > > > > > On Tue, 19 Aug 2008, Benjamin Herrenschmidt wrote: > > > > > > > > > > > > Hmm, this was originally copied from x86, where we did a cmpxch

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Steven Rostedt
On Mon, 18 Aug 2008, Mathieu Desnoyers wrote: > * Steven Rostedt ([EMAIL PROTECTED]) wrote: > > > > On Tue, 19 Aug 2008, Benjamin Herrenschmidt wrote: > > > > > > > > > Hmm, this was originally copied from x86, where we did a cmpxchg, but > > > > that > > > > is probably not needed since all

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Steven Rostedt
On Tue, 19 Aug 2008, Benjamin Herrenschmidt wrote: > Ok, so i did a patch, but it doesn't fix the problem. So > there's something else whacking on the stack frames. Is it 32 bit or 64? I've tested the 64 bit quite a bit, but not so much the 32 (my powerbook is not usually that stable). You mi

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Benjamin Herrenschmidt
Ok, so i did a patch, but it doesn't fix the problem. So there's something else whacking on the stack frames. Still, here it is: powerpc/ftrace: Fix broken assembly for code replacement Instead, uses __get_user() and __put_user(). Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- I

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Mathieu Desnoyers
* Steven Rostedt ([EMAIL PROTECTED]) wrote: > > On Tue, 19 Aug 2008, Benjamin Herrenschmidt wrote: > > > > > > Hmm, this was originally copied from x86, where we did a cmpxchg, but > > > that > > > is probably not needed since all of this is done in kstop_machine. Also, > > > only the "get" i

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Steven Rostedt
On Tue, 19 Aug 2008, Benjamin Herrenschmidt wrote: > > > Hmm, this was originally copied from x86, where we did a cmpxchg, but that > > is probably not needed since all of this is done in kstop_machine. Also, > > only the "get" is needed. If we don't fault there, we wont fault on the > > put

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Benjamin Herrenschmidt
> Hmm, this was originally copied from x86, where we did a cmpxchg, but that > is probably not needed since all of this is done in kstop_machine. Also, > only the "get" is needed. If we don't fault there, we wont fault on the > put (unless we have permissions wrong, and that would be a bug). W

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Steven Rostedt
On Tue, 19 Aug 2008, Benjamin Herrenschmidt wrote: > On Mon, 2008-08-18 at 14:27 -0400, Steven Rostedt wrote: > > > > On Mon, 18 Aug 2008, Scott Wood wrote: > > > > > Mathieu Desnoyers wrote: > > > > asm volatile ( > > > > "1: lwz %1, 0(%2)\n" > > > >

Re: [RFC][USB] powerpc: Workaround for the PPC440EPX USBH_23 errrata

2008-08-18 Thread Benjamin Herrenschmidt
.../... > There is a software workaround that uses a trick to detect if full-speed > interface > is enabled from the hi-speed driver(and vice versa), and use suspend control > for ohci > to enable/disable it appropriately. > > Initial version of the software workaround was posted to linux-u

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Benjamin Herrenschmidt
On Mon, 2008-08-18 at 14:27 -0400, Steven Rostedt wrote: > > On Mon, 18 Aug 2008, Scott Wood wrote: > > > Mathieu Desnoyers wrote: > > > asm volatile ( > > > "1: lwz %1, 0(%2)\n" > > > " cmpw%1, %5\n" > > > " bne

Re: Finding cpuid in entry_64.S

2008-08-18 Thread Benjamin Herrenschmidt
On Mon, 2008-08-18 at 17:33 -0600, Mitesh R. Meswani wrote: > Hello > > I am trying to find the cpuid when the functions that handle return > from context switch and interrupts are called, based on the cpu the > return code is executing on, I want to take some specific actions. What are you tr

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Benjamin Herrenschmidt
> > Oops: Exception in kernel mode, sig: 11 [#1] > > Exsw1600 > > Modules linked in: > > NIP: c00bbb20 LR: c00bbb20 CTR: > > REGS: dd5b1c50 TRAP: 0700 Not tainted (2.6.27-rc2) > > MSR: 00029000 CR: 24082282 XER: 2000 > > TASK = ddcce060[1707] 'find' THREAD: dd5b > > GPR00: 0

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Benjamin Herrenschmidt
On Mon, 2008-08-18 at 11:07 -0400, Steven Rostedt wrote: > Eran Liberty wrote: > > After compiling a kernel with ftrace I started to experience all sorts > > of crashes. > > Just to make sure... > > ftrace enables markers too, and RCU has tracing with the markers. This > may not be the problem,

[PATCH] hotplug/rpaphp: remove unused error path code

2008-08-18 Thread Stephen Rothwell
Commit f46753c5e354b857b20ab8e0fe7b2579831dc369 ("PCI: introduce pci_slot") removed the need for this error path. Eliminate this warning: drivers/pci/hotplug/rpaphp_slot.c: In function 'rpaphp_register_slot': drivers/pci/hotplug/rpaphp_slot.c:151: warning: label 'sysfs_fail' defined but not use

Re: [PATCH 0/5] Relocatable 64-bit kernel using linker PIE support

2008-08-18 Thread Paul Mackerras
Mohan Kumar M writes: > If you need, I can give the .config I use. Yes please, send it over. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: Corrections please ...

2008-08-18 Thread Michael Ellerman
On Mon, 2008-08-18 at 13:59 -0700, Kevin Diggs wrote: > Could I get any needed corrections on this. Especially on the "???" You're missing CC: lkml. cheers -- Michael Ellerman OzLabs, IBM Australia Development Lab wwweb: http://michael.ellerman.id.au phone: +61 2 6212 1183 (tie line 70 21183)

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Eran Liberty
Steven Rostedt wrote: Eran Liberty wrote: After compiling a kernel with ftrace I started to experience all sorts of crashes. Just to make sure... ftrace enables markers too, and RCU has tracing with the markers. This may not be the problem, but I just want to eliminate as many variables as

Finding cpuid in entry_64.S

2008-08-18 Thread Mitesh R. Meswani
Hello I am trying to find the cpuid when the functions that handle return from context switch and interrupts are called, based on the cpu the return code is executing on, I want to take some specific actions. I have been trying to use the following code segments : LOAD_REG_IMMEDIATE(r

Re: self-modifying code in 2.6 kernel for ppc writes into readonly section

2008-08-18 Thread Michael Neuling
In message <[EMAIL PROTECTED]> you wr ote: > On Tue, Aug 19, 2008 at 12:25 AM, Becky Bruce <[EMAIL PROTECTED]> wro te: > > > > On Aug 18, 2008, at 3:51 PM, Michael Neuling wrote: > > > >> In message <[EMAIL PROTECTED]> > >> you wrote: > >>> > >>> The mmu is still disabled at this point. > >>> > >>>

Re: self-modifying code in 2.6 kernel for ppc writes into readonly section

2008-08-18 Thread Michael Neuling
In message <[EMAIL PROTECTED]> you wrote: > Michael Neuling wrote: > >> It seems like no one else is interested in the subject, so i will talk > >> directly to you. > >> > >> If you say that the cpu also seg faults, it means that the problem is > >> in the code of the linux kernel... :) > > > > So

Re: self-modifying code in 2.6 kernel for ppc writes into readonly section

2008-08-18 Thread Scott Wood
Michael Neuling wrote: It seems like no one else is interested in the subject, so i will talk directly to you. If you say that the cpu also seg faults, it means that the problem is in the code of the linux kernel... :) Sorry, I was only joking. The hardware does _not_ segfault. There is no e

[RFC][USB] powerpc: Workaround for the PPC440EPX USBH_23 errrata

2008-08-18 Thread Vitaly Bordug
A published errata for ppc440epx states, that when running Linux with both EHCI and OHCI modules loaded, the EHCI module experiences a fatal error when a high-speed device is connected to the USB2.0, and functions normally if OHCI module is not loaded. Quote from original descriprion: The 440EP

Re: self-modifying code in 2.6 kernel for ppc writes into readonly section

2008-08-18 Thread Michael Neuling
> It seems like no one else is interested in the subject, so i will talk > directly to you. > > If you say that the cpu also seg faults, it means that the problem is > in the code of the linux kernel... :) Sorry, I was only joking. The hardware does _not_ segfault. There is no equivalent to seg

Re: self-modifying code in 2.6 kernel for ppc writes into readonly section

2008-08-18 Thread Mihaela Grigore
On Tue, Aug 19, 2008 at 12:25 AM, Becky Bruce <[EMAIL PROTECTED]> wrote: > > On Aug 18, 2008, at 3:51 PM, Michael Neuling wrote: > >> In message <[EMAIL PROTECTED]> >> you wrote: >>> >>> The mmu is still disabled at this point. >>> >>> What is marked as readonly is the text section of the vmlinux f

Re: [PATCH] POWERPC: duplicate test of MACIO_FLAG_SCCB_ON

2008-08-18 Thread Benjamin Herrenschmidt
On Mon, 2008-08-18 at 18:34 -0400, roel kluin wrote: > untested, is it correct? Your patch is correct. The bug is quite harmless thankfully :-) Ben. > arch/powerpc/include/asm/pmac_feature.h:359: > #define MACIO_FLAG_SCCA_ON 0x0001 > #define MACIO_FLAG_SCCB_ON 0x0002 > --- > duplicate

Re: [MPC7448] machdep_calls

2008-08-18 Thread Benjamin Herrenschmidt
On Mon, 2008-08-18 at 16:17 +0200, Sébastien Chrétien wrote: > The mpc7448hpc2 uses a tsi108-bridge. My board uses an IP on a FPGA.. > I read the code of mpc7448_hpc2.c. > It uses a ioremap in order to iniatilize the tsi108 registers. But I > have already initialized MMU with my registers in HEAD_3

[PATCH] duplicate SNDRV_PCM_FMTBIT_S{16,24}_BE

2008-08-18 Thread roel kluin
untested, is it correct? --- duplicate SNDRV_PCM_FMTBIT_S{16,24}_BE Signed-off-by: Roel Kluin <[EMAIL PROTECTED]> --- diff --git a/sound/aoa/codecs/snd-aoa-codec-tas.c b/sound/aoa/codecs/snd-aoa-codec-tas.c index 7a16a33..c922505 100644 --- a/sound/aoa/codecs/snd-aoa-codec-tas.c +++ b/sound/aoa/c

Re: self-modifying code in 2.6 kernel for ppc writes into readonly section

2008-08-18 Thread Becky Bruce
On Aug 18, 2008, at 3:51 PM, Michael Neuling wrote: In message <[EMAIL PROTECTED] > you wrote: The mmu is still disabled at this point. What is marked as readonly is the text section of the vmlinux file generated when compiling the kernel. And since the code tries to write to the text sect

[PATCH] powerpc: fix memory leaks in QE library

2008-08-18 Thread Timur Tabi
Fix two memory leaks in the Freescale QE library: add a missing kfree() in ucc_fast_init() if the ioremap() fails, and update ucc_fast_free() to call iounmap() on uf_regs. Based on a patch from Tony Breeds <[EMAIL PROTECTED]>. Signed-off-by: Timur Tabi <[EMAIL PROTECTED]> --- arch/powerpc/sysdev

Re: [MPC7448] machdep_calls

2008-08-18 Thread Benjamin Herrenschmidt
On Mon, 2008-08-18 at 13:35 +0200, Sébastien Chrétien wrote: > Can somebody explain me the aim of the function "setup_arch" in the > machine_call structure ? This is where most of your arch code gets a chance to initialize before most of the core is. The generic core linux code calls the archite

Corrections please ...

2008-08-18 Thread Kevin Diggs
Could I get any needed corrections on this. Especially on the "???" [EMAIL PROTECTED] linux-2.6.26]$ diff -U3 include/linux/completion.{h.orig,h}|more --- include/linux/completion.h.orig 2008-08-13 00:56:52.0 -0700 +++ include/linux/completion.h 2008-08-18 13:00:23.0 -0700

Re: self-modifying code in 2.6 kernel for ppc writes into readonly section

2008-08-18 Thread Michael Neuling
In message <[EMAIL PROTECTED]> you wrote: > The mmu is still disabled at this point. > > What is marked as readonly is the text section of the vmlinux file > generated when compiling the kernel. And since the code tries to write > to the text section, I assumed it was the reason for the segmentati

Re: Clock / Timebase / Bus Frequencies Help

2008-08-18 Thread surendranath . moilla
Hi, I have a similar problem with custom MPC8360 board. I am able to boot Linux with the mpc836x_dts.dtb provided by freescale. but when use dtb customised for my board i am unable to boot Linux. It is hanging after the console handover to real console from boot console. I am filling all the f

Re: self-modifying code in 2.6 kernel for ppc writes into readonly section

2008-08-18 Thread Mihaela Grigore
The mmu is still disabled at this point. What is marked as readonly is the text section of the vmlinux file generated when compiling the kernel. And since the code tries to write to the text section, I assumed it was the reason for the segmentation fault. I'm not sure how this is dealt with on re

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Steven Rostedt
On Mon, 18 Aug 2008, Scott Wood wrote: > Steven Rostedt wrote: > > What syntax to do that with? > > > > lwz %1,0(%U2) > > stu %3, 0(%X2) > > > > I'm new to those. (and the above does not compile) > > lwz%U2%X2 %1, %2 > stw%U2%X2 %3, %2 Thanks, that's new to me. > > > > Why stwu with an

Re: self-modifying code in 2.6 kernel for ppc writes into readonly section

2008-08-18 Thread Michael Neuling
In message <[EMAIL PROTECTED]> you wrote: > Hello, > > First, I'm talkin about the 2.6.11 version. I know arch/ppc is gone in > latest versions, > but i assume the code is still the same and just moved to powerpc. > > There is a piece of code in the early initialization of the 2.6 kernel > that i

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Scott Wood
Steven Rostedt wrote: What syntax to do that with? lwz %1,0(%U2) stu %3, 0(%X2) I'm new to those. (and the above does not compile) lwz%U2%X2 %1, %2 stw%U2%X2 %3, %2 Why stwu with an offset of zero, How else to do it? stwu %3, (%2) does not compile for me. stw %3, 0(%2) The "u" tel

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Steven Rostedt
On Mon, 18 Aug 2008, Eran Liberty wrote: > Steven Rostedt wrote: > > Eran Liberty wrote: > > > After compiling a kernel with ftrace I started to experience all sorts of > > > crashes. > > > > Just to make sure... > > > > ftrace enables markers too, and RCU has tracing with the markers. This may

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Steven Rostedt
On Mon, 18 Aug 2008, Scott Wood wrote: > Mathieu Desnoyers wrote: > > asm volatile ( > > "1: lwz %1, 0(%2)\n" > > " cmpw%1, %5\n" > > " bne 2f\n" > > " stwu%3, 0(%2)\n" > >

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Mathieu Desnoyers
* Eran Liberty ([EMAIL PROTECTED]) wrote: > Steven Rostedt wrote: >> Eran Liberty wrote: >>> After compiling a kernel with ftrace I started to experience all sorts of >>> crashes. >> >> Just to make sure... >> >> ftrace enables markers too, and RCU has tracing with the markers. This may >> not be

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Scott Wood
Steven Rostedt wrote: Should use a "b" constraint for %2, or you could get r0. I will make an updated patch. Or, use an "m" constraint with %U2%X2 after the lwz/stw. The 'b' seems easier ;-) The advantage of the latter is that it allows GCC to choose indexed or update instructions -- bu

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Steven Rostedt
On Mon, 18 Aug 2008, Scott Wood wrote: > Mathieu Desnoyers wrote: > > asm volatile ( > > "1: lwz %1, 0(%2)\n" > > " cmpw%1, %5\n" > > " bne 2f\n" > > " stwu%3, 0(%2)\n" > >

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Scott Wood
Mathieu Desnoyers wrote: asm volatile ( "1: lwz %1, 0(%2)\n" " cmpw%1, %5\n" " bne 2f\n" " stwu%3, 0(%2)\n" "2:\n" ".section .fixup, \"ax\"\n"

Re: [PATCH 0/5] Relocatable 64-bit kernel using linker PIE support

2008-08-18 Thread Mohan Kumar M
Hi Paul, I can't boot zImage with your patches. I'm getting the following error message from prom_init.c Error: You can't boot a kdump kernel from OF! This is due to the check: if (PHYSICAL_START > 0) prom_panic("Error: You can't boot a kdump kernel from OF!\n"); where PHYSICAL_S

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Mathieu Desnoyers
* Steven Rostedt ([EMAIL PROTECTED]) wrote: > Mathieu Desnoyers wrote: >> >> Steve ? I just noticed this : >> >> >> ftrace_modify_code(unsigned long ip, unsigned char *old_code, >>unsigned char *new_code) >> { >> unsigned replaced; >> unsigned old = *(unsigned *)

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Mathieu Desnoyers
* Steven Rostedt ([EMAIL PROTECTED]) wrote: > Eran Liberty wrote: >> After compiling a kernel with ftrace I started to experience all sorts of >> crashes. > > Just to make sure... > > ftrace enables markers too, and RCU has tracing with the markers. This may > not be the problem, but I just want

self-modifying code in 2.6 kernel for ppc writes into readonly section

2008-08-18 Thread Mihaela Grigore
Hello, First, I'm talkin about the 2.6.11 version. I know arch/ppc is gone in latest versions, but i assume the code is still the same and just moved to powerpc. There is a piece of code in the early initialization of the 2.6 kernel that identifies the cpu type and then tries to eliminate code th

[PATCH] POWERPC: duplicate test of MACIO_FLAG_SCCB_ON

2008-08-18 Thread roel kluin
untested, is it correct? arch/powerpc/include/asm/pmac_feature.h:359: #define MACIO_FLAG_SCCA_ON 0x0001 #define MACIO_FLAG_SCCB_ON 0x0002 --- duplicate test of MACIO_FLAG_SCCB_ON Signed-off-by: Roel Kluin <[EMAIL PROTECTED]> --- diff --git a/arch/powerpc/platforms/powermac/feature.c b/

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Steven Rostedt
Mathieu Desnoyers wrote: Steve ? I just noticed this : ftrace_modify_code(unsigned long ip, unsigned char *old_code, unsigned char *new_code) { unsigned replaced; unsigned old = *(unsigned *)old_code; unsigned new = *(unsigned *)new_code; int

[PATCH] powerpc, scc: duplicate SCC_UHC_USBCEN

2008-08-18 Thread roel kluin
untested, is it correct? --- arch/powerpc/platforms/cell/celleb_scc.h:224: #define SCC_UHC_USBEN 0x0001 #define SCC_UHC_USBCEN 0x0002 --- diff --git a/arch/powerpc/platforms/cell/celleb_scc_uhc.c b/arch/powerpc/platforms/cell/celleb_scc_uhc.c index d63b720..b086f33 1006

Re: Clock / Timebase / Bus Frequencies Help

2008-08-18 Thread Scott Wood
On Mon, Aug 18, 2008 at 07:52:12AM -0400, [EMAIL PROTECTED] wrote: > We've got an 8347 based board very similar to the A&M asp8347. Core clock > is 400MHz. Bus clock is 2Hz. > According to the data sheet for the 8347, the decrementer clock runs at a > quarter of the rate of the bus clock. I

Re: [PATCH v2] powerpc: Improve message for vio bus entitlement panic

2008-08-18 Thread Robert Jennings
Add information regarding the available and required entitlement amounts to the message displayed for the panic when insufficient entitlement is provided at boot. Signed-off-by: Robert Jennings <[EMAIL PROTECTED]> --- I had typed "Submitted-by" instead of "Signed-off-by" previously. --- arch/pow

Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public

2008-08-18 Thread Anton Vorontsov
On Mon, Aug 18, 2008 at 04:44:36PM +0200, Laurent Pinchart wrote: > On Monday 18 August 2008, Anton Vorontsov wrote: > > On Mon, Aug 18, 2008 at 03:58:46PM +0200, Laurent Pinchart wrote: > > [...] > > > > Not exactly. But you can do this way, if you need to preserve > > > > a direction. What I did

Re: [PATCH] powerpc: 85xx: TQM8548: DTS file fixes and cleanup

2008-08-18 Thread Kumar Gala
On Aug 17, 2008, at 3:51 AM, Wolfgang Grandegger wrote: Due to the missing compatible property for the SOC, the MPC I2C buses are not found any more. This patch fixes this issue. Furthermore it corrects the name of the SOC node and adds the missing I2C node for the RTC. Signed-off-by: Wolf

Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

2008-08-18 Thread Steven Rostedt
Eran Liberty wrote: After compiling a kernel with ftrace I started to experience all sorts of crashes. Just to make sure... ftrace enables markers too, and RCU has tracing with the markers. This may not be the problem, but I just want to eliminate as many variables as possible. Could you dis

Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public

2008-08-18 Thread Laurent Pinchart
On Monday 18 August 2008, Anton Vorontsov wrote: > On Mon, Aug 18, 2008 at 03:58:46PM +0200, Laurent Pinchart wrote: > [...] > > > Not exactly. But you can do this way, if you need to preserve > > > a direction. What I did is a bit different though. > > > > > > qe_gpio_set_dedicated() actually jus

[PATCH 1/3 v2] powerpc: make CMO paging space pool ID and page size available

2008-08-18 Thread Robert Jennings
During platform setup, save off the primary/secondary paging space pool IDs and the page size. Added accessors in hvcall.h for these variables. Signed-off-by: Robert Jennings <[EMAIL PROTECTED]> --- I wrote "Submitted-by" on the last patch for some strange reason, that't the only thing changed h

Re: [PATCH] [fs_enet] powerpc: Fix SCC Ethernet on CPM2, and crash in fs_enet_rx_napi()

2008-08-18 Thread Kumar Gala
On Jun 11, 2008, at 7:32 PM, Vitaly Bordug wrote: From: Heiko Schocher <[EMAIL PROTECTED]> Initially posted on: http://ozlabs.org/pipermail/linuxppc-dev/2008-January/049682.html Feedback is addressed in this version (yes, this patch was floating around for a while...) Signed-off-by: Heiko

Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public

2008-08-18 Thread Anton Vorontsov
On Mon, Aug 18, 2008 at 03:58:46PM +0200, Laurent Pinchart wrote: [...] > > Not exactly. But you can do this way, if you need to preserve > > a direction. What I did is a bit different though. > > > > qe_gpio_set_dedicated() actually just restores a mode that > > firmware had set up, including dir

Re: [MPC7448] machdep_calls

2008-08-18 Thread Sébastien Chrétien
The mpc7448hpc2 uses a tsi108-bridge. My board uses an IP on a FPGA.. I read the code of mpc7448_hpc2.c. It uses a ioremap in order to iniatilize the tsi108 registers. But I have already initialized MMU with my registers in HEAD_32.S. Do I need to use ioremap in setup_arch() ? 2008/8/18, Michae

Re: [PATCH 1/3] gpiolib: make gpio_to_chip() public

2008-08-18 Thread Laurent Pinchart
On Thursday 14 August 2008, Anton Vorontsov wrote: > On Thu, Aug 14, 2008 at 04:45:52PM +0200, Laurent Pinchart wrote: > > On Thursday 14 August 2008, Anton Vorontsov wrote: > > > On Thu, Aug 14, 2008 at 04:04:18PM +0200, Laurent Pinchart wrote: > > > > On Friday 08 August 2008, Anton Vorontsov wro

Re: [MPC7448] machdep_calls

2008-08-18 Thread Michael Ellerman
On Mon, 2008-08-18 at 13:35 +0200, Sébastien Chrétien wrote: > Can somebody explain me the aim of the function "setup_arch" in the > machine_call structure ? Is this MPC7448 anything like an mpc7448hpc2 ? If so maybe you should start by looking at the code for it in: arch/powerpc/platforms/embe

Clock / Timebase / Bus Frequencies Help

2008-08-18 Thread [EMAIL PROTECTED]
We've got an 8347 based board very similar to the A&M asp8347. Core clock is 400MHz. Bus clock is 2Hz. According to the data sheet for the 8347, the decrementer clock runs at a quarter of the rate of the bus clock. I have two questions: In arch/powerpc/boot/redboot-83xx.c, the timebase cloc

Re: [MPC7448] machdep_calls

2008-08-18 Thread Sébastien Chrétien
Can somebody explain me the aim of the function "setup_arch" in the machine_call structure ? 2008/8/18, Sébastien Chrétien <[EMAIL PROTECTED]>: > > Ok I am going to copy some examples. > > 2008/8/18, Benjamin Herrenschmidt <[EMAIL PROTECTED]>: >> >> On Mon, 2008-08-18 at 10:45 +0200, Sébastien Ch

Re: [MPC7448] machdep_calls

2008-08-18 Thread Sébastien Chrétien
Ok I am going to copy some examples. 2008/8/18, Benjamin Herrenschmidt <[EMAIL PROTECTED]>: > > On Mon, 2008-08-18 at 10:45 +0200, Sébastien Chrétien wrote: > > Hello, > > > > I am developping a Linux for my PPC Board. I must write a > > define_machine structure (marchdep_calls). Where can I find

Re: [MPC7448] machdep_calls

2008-08-18 Thread Benjamin Herrenschmidt
On Mon, 2008-08-18 at 10:45 +0200, Sébastien Chrétien wrote: > Hello, > > I am developping a Linux for my PPC Board. I must write a > define_machine structure (marchdep_calls). Where can I find some > Information about functions of this structure ? It isn't well documented unfortunately. Best is

[MPC7448] machdep_calls

2008-08-18 Thread Sébastien Chrétien
Hello, I am developping a Linux for my PPC Board. I must write a define_machine structure (marchdep_calls). Where can I find some Information about functions of this structure ? Thanx Sébastien Chrétien ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.