Re: No booting - ata1-slave: FAILURE

From: Simon L. Nielsen <simon_at_FreeBSD.org>
Date: Mon, 18 Oct 2004 23:00:00 +0200
On 2004.10.17 18:50:24 +0200, Søren Schmidt wrote:
> Jochen Gensch wrote:
> >Hi,
> >
> >I just cvsup'd RELENG_5 and the system is not booting any more with the 
> >new kernel. It hangs at the ata identifying with the message:
> >
> >ata1-slave: FAILURE - ATAPI_IDENTIFY timed out
> >
> >I am using the GENERIC kernel, the only additional thing in there is 
> >atapicam. Maybe I just cvsup'd  at a bad time :-) ?
> 
> Maybe not, could you please try the attached patch and let me know if 
> that helps or not ?

I'm not sure if I dare to tell you... :-) but my Thinkpad R40 also
hangs now with RELENG_5 from today.  It's OK with 5.3-BETA7 from Oct
10.

The patch below did not fix it.  I haven't tried backstepping ata(4)
yet, but I will do that shortly.

> Index: ata-all.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/dev/ata/ata-all.c,v
> retrieving revision 1.222.2.4
> diff -u -r1.222.2.4 ata-all.c
> --- ata-all.c	16 Oct 2004 08:43:06 -0000	1.222.2.4
> +++ ata-all.c	17 Oct 2004 16:38:21 -0000
> _at__at_ -306,6 +306,12 _at__at_
>  	}
>      }
>  
> +    ch->flags &= ~ATA_IMMEDIATE_MODE;
> +    mtx_lock(&ch->state_mtx);
> +    ch->state = ATA_IDLE;
> +    mtx_unlock(&ch->state_mtx);
> +    ch->locking(ch, ATA_LF_UNLOCK);
> +
>      /* attach new devices */
>      if ((newdev = ~devices & ch->devices)) {
>  	if ((newdev & (ATA_ATA_MASTER | ATA_ATAPI_MASTER)) &&
> _at__at_ -323,12 +329,6 _at__at_
>      if (bootverbose)
>  	ata_printf(ch, -1, "device config done ..\n");
>  
> -    ch->flags &= ~ATA_IMMEDIATE_MODE;
> -    mtx_lock(&ch->state_mtx);
> -    ch->state = ATA_IDLE;
> -    mtx_unlock(&ch->state_mtx);
> -    ch->locking(ch, ATA_LF_UNLOCK);
> -
>      ata_start(ch);
>      return 0;
>  }


-- 
Simon L. Nielsen
FreeBSD Documentation Team

Received on Mon Oct 18 2004 - 19:00:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:18 UTC