Re: mmio_nvram.c users ?

2010-05-25 Thread Adrian Reber
On Tue, May 25, 2010 at 05:43:59PM +1000, Benjamin Herrenschmidt wrote: > Anybody aware of anything other than Cell using that driver ? > > I'd like to make it a platform driver instead of having something that > pokes at anything that has a "device_type" set to "nvram" (which is > gross and bogus

Re: Endian/__BYTE_ORDER question

2010-02-11 Thread Adrian Reber
On Thu, Feb 11, 2010 at 05:17:37PM +0100, Joakim Tjernlund wrote: > I am getting confused about on how to test for Endian in the kernel code. In > user > space one uses #if __BYTE_ORDER == __LITTLE_ENDIAN or #if __BYTE_ORDER == > __BIG_ENDIAN > > I can see lots of kernel headers using this test

Re: [PATCH v2] Fix RTAS watchdog driver temperature read functionality

2009-06-11 Thread Adrian Reber
I forgot about this patch. Can this still be merged? On Thu, Mar 26, 2009 at 01:05:42PM +0100, Adrian Reber wrote: > Using the RTAS watchdog driver to read out the temperature crashes > on a PXCAB: > > Unable to handle kernel paging request for data at address 0xfe347b50 > Fault

[PATCH v2] Fix RTAS watchdog driver temperature read functionality

2009-03-26 Thread Adrian Reber
ture)" in rtas_call() is removed by using the function rtas_get_sensor() which does the right thing. Signed-off-by: Adrian Reber --- v2: use rtas_get_sensor(); typo fixed --- drivers/watchdog/wdrtas.c |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/watch

Re: [PATCH] powerpc/wdrtas: Update wdrtas_get_interval to use rtas_data_buf

2009-03-24 Thread Adrian Reber
even helps. I have no tried the watchdog until now, but without the patch I get: wdrtas: could not get sp_spi watchdog timeout (0). Continuing and with the patch it reads the correct value. So only with your patch it works like it is supposed to. Thanks! Tested-by: Adrian Reber

Re: [PATCH] Fix RTAS watchdog driver temperature read functionality

2009-03-24 Thread Adrian Reber
On Tue, Mar 24, 2009 at 03:27:18PM +1100, Benjamin Herrenschmidt wrote: > On Mon, 2009-03-16 at 13:35 +0100, Adrian Reber wrote: > > Using the RTAS watchdog driver to read out the temperature crashes > > on a PXCAB: > > > > Unable to handle kernel paging request for

[PATCH] Fix RTAS watchdog driver temperature read functionality

2009-03-16 Thread Adrian Reber
t. Signed-off-by: Adrian Reber --- drivers/watchdog/wdrtas.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) Fix for: Unable to handle kernel paging request for data at address 0xfe347b50 Faulting instruction address: 0xc001af64 Oops: Kernel access of bad area, sig: 11 [#1] S

Re: [PATCH] powerpc: Add support to access the flash on SLOF based systems

2009-01-14 Thread Adrian Reber
On Mon, Jan 12, 2009 at 09:51:23AM -0600, Milton Miller wrote: > Is SLOF just exposing the user image part of the flash device? Or is it > the raw flash device? SLOF is exposing the raw flash device. > I need to keep this quick, but am intrested in a few more details. My > first reaction is

Re: [PATCH] powerpc: Add support to access the flash on SLOF based systems

2009-01-10 Thread Adrian Reber
On Sat, Jan 10, 2009 at 11:52:56AM -0600, Milton Miller wrote: > On Sun Jan 11 at 02:31:22 EST in 2009, Adrian Reber wrote: >> This adds support for a simple character device to access the >> flash for SLOF based systems like the PowerStation, QS2x and >> PXCAB. In the SLO

[PATCH] powerpc: Add support to access the flash on SLOF based systems

2009-01-10 Thread Adrian Reber
image to the flash and then directly boot the kernel from the flash. Signed-off-by: Adrian Reber --- This is based on the mmio NVRAM driver. I am not sure how useful this is for anybody else but I am posting it anyway, hoping to get some feedback. Also hoping it can be included at one point

Re: starting with 2.6.26-rc1 cell_defconfig fails on QS22

2008-06-26 Thread Adrian Reber
On Wed, Jun 25, 2008 at 05:59:33PM +0200, Segher Boessenkool wrote: >> D'oh. I spent so much time and the solution is so easy. >> >> Thanks everybody. I have updated to binutils-2.18.50.0.6-2.ppc and now >> it works again on QS22 and JS21. > > So I checked your binary, and the only differences betw

Re: starting with 2.6.26-rc1 cell_defconfig fails on QS22

2008-06-24 Thread Adrian Reber
On Tue, Jun 24, 2008 at 09:45:32AM +1000, Jeremy Kerr wrote: > > Somehow I expect that I am doing something wrong, because nobody else > > has reported something like this yet. > > Seems to work fine here - just booted 945754a on a QS22 with > cell_defconfig: > > [EMAIL PROTECTED] ~]$ cat /proc/

starting with 2.6.26-rc1 cell_defconfig fails on QS22

2008-06-23 Thread Adrian Reber
I have a custom config to build a kernel which runs on JS21/QS21/QS22. Starting with 2.6.26-rc1 that fails on JS21 (with SLOF). Bisecting lead me to the following commit: commit 366234f657879aeb7a1e2ca582f2f24f3fae9269 Author: Kumar Gala <[EMAIL PROTECTED]> Date: Wed Apr 16 05:52:28 2008 +10

Re: [PATCH 1/1] Change the default link address for pSeries zImage kernels.

2008-06-23 Thread Adrian Reber
On Mon, Jun 23, 2008 at 06:13:23PM +1000, Tony Breeds wrote: > Currently we set the start of the .text section to be 4Mb for pSeries. > In situations where the zImage is > 8Mb we'll fail to boot (due to > overlapping with OF). Move .text in a zImage from 4MB to 64MB (well past OF). > > We still w

Re: 2.6.23-rc1 breaks on JS20 w/SLOF

2007-07-25 Thread Adrian Reber
On Tue, Jul 24, 2007 at 08:06:18AM +1000, Benjamin Herrenschmidt wrote: > On Mon, 2007-07-23 at 16:47 +0200, Adrian Reber wrote: > > On a JS20 with SLOF (pretending to be Maple) 2.6.23-rc1 breaks with > > following oops. 2.6.22 is working. Let me know if I can help debug this. >

2.6.23-rc1 breaks on JS20 w/SLOF

2007-07-23 Thread Adrian Reber
On a JS20 with SLOF (pretending to be Maple) 2.6.23-rc1 breaks with following oops. 2.6.22 is working. Let me know if I can help debug this. Maple: Found RTC at IO 0x1070 Unable to handle kernel paging request for data at address 0xd8001070 Faulting instruction address: 0xc004d948