Date: Thu, 15 Sep 2011 02:32:14 +0300 From: Alexander Motin <mav@FreeBSD.org> To: Nenhum_de_Nos <matheus@eternamente.info> Cc: current <current@freebsd.org> Subject: Re: ataidle + notebook hdd + 9.0-BETA2 Message-ID: <4E71397E.9080705@FreeBSD.org> In-Reply-To: <mailpost.1315973961.5973612.72142.mailing.freebsd.current@FreeBSD.cs.nctu.edu.tw> References: <mailpost.1315973961.5973612.72142.mailing.freebsd.current@FreeBSD.cs.nctu.edu.tw>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi. On 14.09.2011 06:59, Nenhum_de_Nos wrote: > I just installed BETA2 on WD notebook disk: > > ada0 at ata2 bus 0 scbus1 target 0 lun 0 > ada0: <WDC WD5000BPVT-00HXZT1 01.01A01> ATA-8 SATA 2.x device > ada0: 150.000MB/s transfers (SATA, UDMA5, PIO 8192bytes) > ada0: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) > ada0: Previously was known as ad4 > > and tried as usual to make the disk last a little longer: > > rush# ataidle -P 243 /dev/ad4 > ataidle: error: identify device /dev/ad4 > > rush# ataidle -P 243 /dev/ada0 > (pass0:ata2:0:0:0): SETFEATURES. ACB: ef 05 00 00 00 40 00 00 00 00 f3 00 > (pass0:ata2:0:0:0): CAM status: CCB request completed with an error > Failed to configure APM: No error: 0 > > so, is this still needed after ada took place ? How can I do it now if > needed ? Strange CAM status I would say. But try this patch for ataidle: --- ataidle.c.prev 2010-11-04 16:17:28.000000000 +0200 +++ ataidle.c 2011-09-09 19:30:14.000000000 +0300 @@ -125,7 +125,7 @@ atacmd_cam(ATA *ata, int atacmd, int fea if (atacmd == ATA__IDENTIFY || atacmd == ATA__ATAPI_IDENTIFY) direction = CAM_DIR_IN; else - direction = CAM_DIR_OUT; + direction = CAM_DIR_NONE; memset(&(&ccb->ccb_h)[1], 0, sizeof(struct ccb_ataio) - sizeof(struct ccb_hdr)); -- Alexander Motin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E71397E.9080705>