From owner-freebsd-current@FreeBSD.ORG Wed Sep 14 23:32:44 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E64A1106566B for ; Wed, 14 Sep 2011 23:32:44 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 765068FC0C for ; Wed, 14 Sep 2011 23:32:43 +0000 (UTC) Received: by fxg9 with SMTP id 9so126677fxg.13 for ; Wed, 14 Sep 2011 16:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=HQRMeURlNDH0ZyHm3WT/JrBdcz+IuH0bQUdElc505Sw=; b=dx72TH4j5SnP07wwNo1AX50grazqmvHkyRsu4E4v0//98oviYoFPhTPBT1ByYqd13D g5OGPV/JR9El+Bw+pB4pMswWsxJW3bbUGS1n9LYc3nQRSwPitdm5LbK1KVILT71gCvb9 vemZIBUCUlijgm1itoX/xKjcmHUqxLH92msBg= Received: by 10.223.22.15 with SMTP id l15mr195576fab.85.1316043163295; Wed, 14 Sep 2011 16:32:43 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id x22sm4967864faa.5.2011.09.14.16.32.41 (version=SSLv3 cipher=OTHER); Wed, 14 Sep 2011 16:32:42 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E71397E.9080705@FreeBSD.org> Date: Thu, 15 Sep 2011 02:32:14 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110910 Thunderbird/6.0.2 MIME-Version: 1.0 To: Nenhum_de_Nos References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: current Subject: Re: ataidle + notebook hdd + 9.0-BETA2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2011 23:32:45 -0000 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: 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