From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: RE: [PATCH] aic94xx: fix smartctl utility problem Date: Mon, 17 Sep 2007 17:59:01 -0500 Message-ID: <1190069941.3386.64.camel@localhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from hancock.steeleye.com ([71.30.118.248]:46330 "EHLO hancock.sc.steeleye.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756115AbXIQW7H (ORCPT ); Mon, 17 Sep 2007 18:59:07 -0400 In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: "Wu, Gilbert" Cc: dougg@torque.net, Linux-scsi@vger.kernel.org On Mon, 2007-09-17 at 13:53 -0700, Wu, Gilbert wrote: > I tested the SATA DVD Plextor model 716SA and 755SA with direct > attached. Both failed in my tested system and it end up with System > Panic even without my patch. Actually, because of the difficulty of wiring it up, I've not tried directly attached SATAPI devices, only expander remote ones (which do work). I did manage to cheat and force one into a drive bay using a mini inifiniband connector, and it seems to work just fine as well. This is the boot log with it directly connected to phy6: aic94xx: posting 8 control phy scbs aic94xx: control_phy_tasklet_complete: phy6, lrate:0x8, proto:0xe aic94xx: control_phy_tasklet_complete: phy0: no device present: oob_status:0x0 aic94xx: control_phy_tasklet_complete: phy1: no device present: oob_status:0x0 aic94xx: control_phy_tasklet_complete: phy2: no device present: oob_status:0x0 aic94xx: control_phy_tasklet_complete: phy3: no device present: oob_status:0x0 aic94xx: control_phy_tasklet_complete: phy4: no device present: oob_status:0x0 aic94xx: control_phy_tasklet_complete: phy5: no device present: oob_status:0x0 aic94xx: control_phy_tasklet_complete: phy7: no device present: oob_status:0x0 aic94xx: escb_tasklet_complete: phy6: BYTES_DMAED aic94xx: STP proto device-to-host FIS: aic94xx: 00: 34 00 10 01 aic94xx: 04: 01 14 eb 00 aic94xx: 08: 00 00 00 00 aic94xx: 0c: 01 00 00 00 aic94xx: 10: 00 00 00 00 aic94xx: asd_form_port: updating phy_mask 0x40 for phy6 sas: phy6 added to port0, phy_mask:0x40 sas: DOING DISCOVERY on port 0, pid:3197 sas: sas_ata_phy_reset: Found ATAPI device. ata1.00: ATAPI: PLEXTOR DVDR PX-755A, 1.03, max UDMA/66 ata1.00: configured for UDMA/66 scsi 3:0:0:0: CD-ROM PLEXTOR DVDR PX-755A 1.03 PQ: 0 ANSI: 5 sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray sr 3:0:0:0: Attached scsi generic sg1 type 5 sas: DONE DISCOVERY on port 0, pid:3197, result:0 > The CSMI_TASK should not make any > difference between ATA and ATAPI device. I am digging into it for root > cause. It does if it's set on a command that's not generated by the smartctl utility ... which is what happens for the ATA PACKET COMMAND case. James