From owner-freebsd-current@FreeBSD.ORG Sun Jul 5 03:02:52 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E2551065670; Sun, 5 Jul 2009 03:02:52 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id D6A8D8FC08; Sun, 5 Jul 2009 03:02:51 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from [10.251.87.223] (166-205-131-101.mobile.mymmode.com [166.205.131.101] (may be forged)) (authenticated bits=0) by pooker.samsco.org (8.14.2/8.14.2) with ESMTP id n6532Zs4078915; Sat, 4 Jul 2009 21:02:44 -0600 (MDT) (envelope-from scottl@samsco.org) References: <4A4517BE.9040504@FreeBSD.org> <200906272303.n5RN3rTi070177@lava.sentex.ca> <4A471F44.7010108@FreeBSD.org> <200907021859.n62IxghN009931@lava.sentex.ca> <4A4F3B18.5010905@FreeBSD.org> Message-Id: <6E8AB140-4BF4-4CBC-BC96-D620F7A7CDFE@samsco.org> From: Scott Long To: Alexander Motin In-Reply-To: <4A4F3B18.5010905@FreeBSD.org> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPhone Mail (7A341) Mime-Version: 1.0 (iPhone Mail 7A341) Date: Sat, 4 Jul 2009 21:02:25 -0600 X-Spam-Status: No, score=-2.6 required=3.8 tests=BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: FreeBSD-Current , "scottl@FreeBSD.org" , Mike Tancsa Subject: Re: RFC: ATA to CAM integration patch 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: Sun, 05 Jul 2009 03:02:52 -0000 On Jul 4, 2009, at 5:20 AM, Alexander Motin wrote: > Mike Tancsa wrote: >> On the ich10 board, its trying to boot up now, but I am getting >> uhub8: 4 ports with 4 removable, self powered >> (probe2:ahcich2:0:0:0): SIGNATURE: eb14 >> run_interrupt_driven_hooks: still waiting after 60 seconds for >> xpt_config >> ahcich2: Timeout on slot 4 >> run_interrupt_driven_hooks: still waiting after 120 seconds for >> xpt_config >> ahcich2: Timeout on slot 5 >> run_interrupt_driven_hooks: still waiting after 180 seconds for >> xpt_config >> ahcich2: Timeout on slot 6 >> run_interrupt_driven_hooks: still waiting after 240 seconds for >> xpt_config >> ahcich2: Timeout on slot 7 >> run_interrupt_driven_hooks: still waiting after 300 seconds for >> xpt_config >> ahcich2: Timeout on slot 8 >> ada0 at ahcich1 bus 0 target 0 lun 0 >> ada0: ATA/ATAPI-8 SATA 2.x device >> ada0: 300.000MB/s transfers >> ada0: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C) >> ada0: Native Command Queueing Enabled > > I've found how to make this DVD work. It refused to process PACKET > command until I have explicitly set it's PATA-legacy transfer mode > to the maximal supported. > > %camcontrol devlist > at scbus0 target 0 lun 0 > (pass0,ada0) > at scbus2 target 0 lun 0 > (cd0,pass1) > > Patch committed to P4. > > -- > Alexander Motin I mentioned this a few months ago. Both atapi and ata devices need a state machine to set their max transfer parameters, regardless if they are sata or pata. Newer sata devices might not need it, but older ones definitely do. IMHO, it's easiest to just do the negotiation for all sata devices instead of trying to be selective about it. Scott