Re: Kernel panic on PowerMac G5 while scanning for SMU sensors

2013-03-17 Thread Phileas Fogg
On 03/17/2013 01:07 PM, Phileas Fogg wrote: I wanted to read the temperature sensors of my PowerMac G5 11,2. For that i installed the lm-sensors package, run 'sensors-detect' command and my Linux 3.8.2 kernel paniced in _smu_i2c_low_completion_ with this message 'Unable t

Kernel panic on PowerMac G5 while scanning for SMU sensors

2013-03-17 Thread Phileas Fogg
I wanted to read the temperature sensors of my PowerMac G5 11,2. For that i installed the lm-sensors package, run 'sensors-detect' command and my Linux 3.8.2 kernel paniced in _smu_i2c_low_completion_ with this message 'Unable to handle kernel paging request for data at address 0x0008.'

Re: Linux kernel 3.x problems on PowerMac G5

2013-03-11 Thread Phileas Fogg
On 03/10/2013 01:52 PM, Benjamin Herrenschmidt wrote: On Sun, 2013-03-10 at 11:53 +0100, Phileas Fogg wrote: Good news :) I found the bug. MMU features were not set properly for PPC970MP DD1.0 which, unfortunately, my machine has. Damn, one line fix but one week searching. Linux 3.8.2 boots

Re: Linux kernel 3.x problems on PowerMac G5

2013-03-10 Thread Phileas Fogg
Good news :) I found the bug. MMU features were not set properly for PPC970MP DD1.0 which, unfortunately, my machine has. Damn, one line fix but one week searching. Linux 3.8.2 boots without problems now :) Here is my patch: --- arch/powerpc/kernel/cputable.c.old 2013-03-10 11:48:56.559480758

Re: Linux kernel 3.x problems on PowerMac G5

2013-03-10 Thread Phileas Fogg
On 03/10/2013 01:45 AM, Benjamin Herrenschmidt wrote: On Sun, 2013-03-10 at 01:26 +0100, Phileas Fogg wrote: i managed to find the bad commit after a couple of days bisecting. Thanks ! 44ae3ab3358e962039c36ad4ae461ae9fb29596c is the first bad commit commit

Re: Linux kernel 3.x problems on PowerMac G5

2013-03-09 Thread Phileas Fogg
On 03/10/2013 01:45 AM, Benjamin Herrenschmidt wrote: Have you verified that if you checkout git at the above commit point, it fails and if you then just revert that commit on top, it works again ? The above should have been mostly a NOP change but I'll have a closer look in case a typo of som

Re: Linux kernel 3.x problems on PowerMac G5

2013-03-09 Thread Phileas Fogg
On 03/07/2013 09:22 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-03-07 at 21:08 +0100, Phileas Fogg wrote: And the bisect couldn't find the commit which causes hangs on my machine. All commits which were provided by the bisect were bad. And the commit before tha last bad bisect commit wa

Re: Linux kernel 3.x problems on PowerMac G5

2013-03-07 Thread Phileas Fogg
On 03/07/2013 09:22 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-03-07 at 21:08 +0100, Phileas Fogg wrote: And the bisect couldn't find the commit which causes hangs on my machine. All commits which were provided by the bisect were bad. And the commit before tha last bad bisect commit wa

Re: Linux kernel 3.x problems on PowerMac G5

2013-03-07 Thread Phileas Fogg
On 03/03/2013 08:24 PM, Benjamin Herrenschmidt wrote: On Sun, 2013-03-03 at 20:16 +0100, Phileas Fogg wrote: Benjamin Herrenschmidt wrote: Thanks. It looks like a bisection might indeed be the way to go... Out of curiosity, have you tried without some of your additional drivers ? Maybe one of

Re: Linux kernel 3.x problems on PowerMac G5

2013-03-03 Thread Phileas Fogg
Benjamin Herrenschmidt wrote: Thanks. It looks like a bisection might indeed be the way to go... Out of curiosity, have you tried without some of your additional drivers ? Maybe one of them is the culprit... Cheers, Ben. Not yet, will do. But I tested the official Debian Wheezy RC netinstall

Re: Linux kernel 3.x problems on PowerMac G5

2013-03-03 Thread Phileas Fogg
Benjamin Herrenschmidt wrote: On Sat, 2013-03-02 at 15:40 +0100, Phileas Fogg wrote: recently i got a PowerMac G5 and installed Debian Linux 2.6.32 on it. Everything works so far and Debian boots properly. Today i tried to boot Linux 3 on the machine and it doesn't boot. The Linux 3 kerne

Re: Linux kernel 3.x problems on PowerMac G5

2013-03-02 Thread Phileas Fogg
Aaro Koskinen wrote: Hi, On Sat, Mar 02, 2013 at 03:40:19PM +0100, Phileas Fogg wrote: Have anyone tested Linux 3 kernels on PowerMac G5 recently ? 3.8 boots normally to shell and is stable on G5 iMac (PowerMac8,1). A. Thanks. Then i configured something wrongly probably. I tried Linux

Linux kernel 3.x problems on PowerMac G5

2013-03-02 Thread Phileas Fogg
Hi, recently i got a PowerMac G5 and installed Debian Linux 2.6.32 on it. Everything works so far and Debian boots properly. Today i tried to boot Linux 3 on the machine and it doesn't boot. The Linux 3 kernel was cross-compiled by me. On Linux 3.8.1 it hangs after this line: --- windfarm: Dri

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-22 Thread Phileas Fogg
Benjamin Herrenschmidt wrote: On Sat, 2013-02-23 at 00:41 +0100, Phileas Fogg wrote: Benjamin Herrenschmidt wrote: On Fri, 2013-02-22 at 21:49 +0100, Phileas Fogg wrote: i wanted to let you know that i tested your advice. And let me say, it's was a damn good advice :) I can boot Fr

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-22 Thread Phileas Fogg
Benjamin Herrenschmidt wrote: On Fri, 2013-02-22 at 21:49 +0100, Phileas Fogg wrote: i wanted to let you know that i tested your advice. And let me say, it's was a damn good advice :) I can boot FreeBSD loader on Linux 3.8 now, no SHA256 checksum failures. And no panics with FreeBSD L

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-22 Thread Phileas Fogg
Benjamin Herrenschmidt wrote: On Thu, 2013-02-21 at 22:44 +0100, Phileas Fogg wrote: Stripped OpenWRT image: c001a474: 48 00 00 05 bl 0xc001a478 c001a478: 7c a8 02 a6 mflrr5 c001a47c: 38 a5 00 1c

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-21 Thread Phileas Fogg
Benjamin Herrenschmidt wrote: On Thu, 2013-02-21 at 21:38 +0100, Phileas Fogg wrote: The new 8 bytes at offset 0x90 in dt.dump.hex look suspicously like the kernel virtual address: 0xc001a4a0. It does indeed. What does that address correspond to in the kernel text ? Can you

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-21 Thread Phileas Fogg
Benjamin Herrenschmidt wrote: On Thu, 2013-02-21 at 21:38 +0100, Phileas Fogg wrote: The new 8 bytes at offset 0x90 in dt.dump.hex look suspicously like the kernel virtual address: 0xc001a4a0. It does indeed. What does that address correspond to in the kernel text ? Can you

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-21 Thread Phileas Fogg
Benjamin Herrenschmidt wrote: On Wed, 2013-02-20 at 21:43 +0100, Phileas Fogg wrote: I found the single commit which brakes kexec stuff for FreeBSD loader or other custom ELF kernels on the PS3 console. From 7230c5644188cd9e3fb380cc97dde00c464a3ba7 Mon Sep 17 00:00:00 2001 From: Benjamin

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-20 Thread Phileas Fogg
Phileas Fogg wrote: Phileas Fogg wrote: I could finally find the commit which broke FreeBSD booting in linux-stable.git repository. The Linux 3.4-rc1 seems to have this problem already. -- commit 5375871d432ae9fc581014ac117b96aaee3cd0c7 Merge: b57cb72 dfbc2d7 Author: Linus Torvalds

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-19 Thread Phileas Fogg
Phileas Fogg wrote: I could finally find the commit which broke FreeBSD booting in linux-stable.git repository. The Linux 3.4-rc1 seems to have this problem already. -- commit 5375871d432ae9fc581014ac117b96aaee3cd0c7 Merge: b57cb72 dfbc2d7 Author: Linus Torvalds Date: Wed Mar 21

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-19 Thread Phileas Fogg
I could finally find the commit which broke FreeBSD booting in linux-stable.git repository. The Linux 3.4-rc1 seems to have this problem already. -- commit 5375871d432ae9fc581014ac117b96aaee3cd0c7 Merge: b57cb72 dfbc2d7 Author: Linus Torvalds Date: Wed Mar 21 18:55:10 2012 -0700

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-17 Thread Phileas Fogg
Geert Uytterhoeven wrote: Hi Phileas, On Sun, Feb 17, 2013 at 12:12 AM, Phileas Fogg wrote: I found new clues about the problem. Normally the device tree memory segment is allocated at the top of the boot memory region. The boot memory size on the PS3 console is 128MB. root@ps3-linux

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-16 Thread Phileas Fogg
I found new clues about the problem. Normally the device tree memory segment is allocated at the top of the boot memory region. The boot memory size on the PS3 console is 128MB. root@ps3-linux:~# kexec -l loader.ps3 segment[0].mem:0x131d000 memsz:262144 segment[1].mem:0x135d000 memsz:36864 se

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-16 Thread Phileas Fogg
Phileas Fogg wrote: I was able to capture the debug output from the purgatory code and it's very odd. This the SHA256 digest calculated by kexec-tools: root@ps3-linux:~# kexec -l loader.ps3 Warning: append= option is not passed. Using the first kernel root partition Modified cmdline: U

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-16 Thread Phileas Fogg
Phileas Fogg wrote: Hi, i'm using OpenWRT petitboot bootloader on my PS3 to boot FreeBSD loader which is a simple PPC32 ELF file. I haven't had any issues with it and OpenWRT based on Linux 3.3.8. Recently i built an OpenWRT image with Linux 3.7, i have no issues at all with kex

Re: PS3: Strange issue with kexec and FreeBSD loader

2013-02-16 Thread Phileas Fogg
I was able to capture the debug output from the purgatory code and it's very odd. This the SHA256 digest calculated by kexec-tools: root@ps3-linux:~# kexec -l loader.ps3 Warning: append= option is not passed. Using the first kernel root partition Modified cmdline: Unable to find /proc/device-tr

Re[2]: [PATCH 2/2] powerpc: Make context bits depend on virtual addr size.

2013-02-13 Thread Phileas Fogg
> >Ok. How about the below patch. This is based on the suggestion from >Paulus. I still have to take care of few comments in the code. > >We now split the proto-vsid range differently. > User: 0 to [2^(CONTEXT_BITS) - 4 + 2^(USER_ESID_BITS)] > kernel: [2^(CONTEXT_BITS) - 4 + 2^(USER_ESID_BITS)]

Re[5]: PS3 platform is broken on Linux 3.7.0

2013-02-11 Thread Phileas Fogg
>"Aneesh Kumar K.V" < aneesh.ku...@linux.vnet.ibm.com > writes: > >> Phileas Fogg < phileas-f...@mail.ru > writes: >> >>> And another note. >>> I took a look at the MMU chapter in the Cell Architecture handbook and >>&

Re[5]: PS3 platform is broken on Linux 3.7.0

2013-02-10 Thread Phileas Fogg
>Phileas Fogg < phileas-f...@mail.ru > writes: > >> Please ignore the previous patch to fix the PACA issue on PS3 arch. >> This is the correct one: >> >> --- a/arch/powerpc/kernel/setup_64.c 2013-02-10 13:56:12.803855673 +0100 >> +++ b/arch/powerpc/kerne

Re[3]: PS3 platform is broken on Linux 3.7.0

2013-02-10 Thread Phileas Fogg
3, 15:45 +04:00 от Phileas Fogg : > >>On Fri, 2012-12-14 at 16:35 +0400, Phileas Fogg wrote: >>> Hi, >>> >>> I wanted to bring to your attention the fact that the PS3 platform is >>> broken on Linux 3.7.0. >>> >>> i'm not able to boo

Re[2]: PS3 platform is broken on Linux 3.7.0

2013-02-10 Thread Phileas Fogg
>On Fri, 2012-12-14 at 16:35 +0400, Phileas Fogg wrote: >> Hi, >> >> I wanted to bring to your attention the fact that the PS3 platform is broken >> on Linux 3.7.0. >> >> i'm not able to boot Linux 3.7.0 on my PS3 slim. Linux 3.6.10 boots just >&

Re[3]: PS3 platform is broken on Linux 3.7.0

2013-02-10 Thread Phileas Fogg
bits as `0'. Software must not set these bits to any other value than `0' or the results are undefined in    the PPE. regards Воскресенье, 10 февраля 2013, 12:59 +04:00 от Phileas Fogg : >Hi, > >i found where the problem lies. >I also printed some values in ps3_hpte_insert

Re[2]: PS3 platform is broken on Linux 3.7.0

2013-02-10 Thread Phileas Fogg
Hi, i found where the problem lies. I also printed some values in ps3_hpte_insert with and without 64TB support, i used OpenWRT with Linux 3.7.6 for testing. Some values without 64TB support: - [    0.060487] RPC: Registered named UNIX socket tra

PS3: Strange issue with kexec and FreeBSD loader

2013-02-08 Thread Phileas Fogg
Hi, i'm using OpenWRT petitboot bootloader on my PS3 to boot FreeBSD loader which is a simple PPC32 ELF file. I haven't had any issues with it and OpenWRT based on Linux 3.3.8. Recently i built an OpenWRT image with Linux 3.7, i have no issues at all with kexec and any Linux kernels starting wi

PS3 platform is broken on Linux 3.7.0

2012-12-14 Thread Phileas Fogg
Hi, I wanted to bring to your attention the fact that the PS3 platform is broken on Linux 3.7.0. i'm not able to boot Linux 3.7.0 on my PS3 slim. Linux 3.6.10 boots just fine but not 3.7.0 When i try to boot Linux 3.7.0 then my PS3  shuts down. So i cloned the Linux powerpc GIT repository and