[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DMA disabled after lost interrupt (on ibook)



On Mon, 08 Aug 2005 11:09:05 +0200 , Benjamin Herrenschmidt wrote:

> Can you try tweaking the driver in drivers/ide/ppc/pmac.c, and put this
> code in #if 0 :
> 
> 	/* Get cable type from device-tree */
> 	if (pmif->kind == controller_kl_ata4 || pmif->kind == controller_un_ata6
> 	    || pmif->kind == controller_k2_ata6
> 	    || pmif->kind == controller_sh_ata6) {
> 		char* cable = get_property(np, "cable-type", NULL);
> 		if (cable && !strncmp(cable, "80-", 3))
> 			pmif->cable_80 = 1;
> 	}
> 	/* G5's seem to have incorrect cable type in device-tree. Let's assume
> 	 * they have a 80 conductor cable, this seem to be always the case unless
> 	 * the user mucked around
> 	 */
> 	if (device_is_compatible(np, "K2-UATA") ||
> 	    device_is_compatible(np, "shasta-ata"))
> 		pmif->cable_80 = 1;
> 
> (That is make sure cable_80 is never set to 1)
> 
> That will have the effect of slowing down your interface to U/DMA2. Let me know if
> that helps.
> 
> Ben.
> 

It seems to help,  no more 'lost interrupt' message since 4 days :)

Thank you for this hack^W beautiful workaround ;)


Sebastien

Attachment: pgpAF5uCGSqhL.pgp
Description: PGP signature


Reply to: