Booting Imac G5 : success !

J. Mayer l_indien at
Fri Nov 12 01:31:48 EST 2004


I got a hack to fix the SATA problem on Imac G5. I was right thinking we
were missing IRQs. Here's what I think about it:
the SATA driver tries to use IRQ 0, which is not the good one. When I
look into the OF device tree, I can see this:
# hexdump
0000000 0000 0000                              
# hexdump
0000000 0000 000a 0000 0001                    

It seems that the driver uses the first (bad) one so I added a test:
if (pdev->irq == 0) pdev->irq = 0xA;
in drivers/scsi/sata_svw.c
then SATA works properly.
Of course, this is just a hack, I think the real patch is to be in the
OF tree parse, not to keep invalid IRQ definitions.

You may know better than me the proper place and way to fix this issue
(generic OF tree routines, SATA driver ?).


J. Mayer <l_indien at>
Never organized

More information about the Linuxppc64-dev mailing list