From owner-freebsd-scsi@FreeBSD.ORG Mon Apr 30 09:45:21 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E38016A402; Mon, 30 Apr 2007 09:45:21 +0000 (UTC) (envelope-from thomas@FreeBSD.ORG) Received: from melamine.cuivre.fr.eu.org (melusine.cuivre.fr.eu.org [82.225.155.84]) by mx1.freebsd.org (Postfix) with ESMTP id 1908313C48C; Mon, 30 Apr 2007 09:45:21 +0000 (UTC) (envelope-from thomas@FreeBSD.ORG) Received: by melamine.cuivre.fr.eu.org (Postfix, from userid 1000) id 0263C5C20F; Mon, 30 Apr 2007 11:45:15 +0200 (CEST) Date: Mon, 30 Apr 2007 11:45:15 +0200 From: Thomas Quinot To: Josh Carroll Message-ID: <20070430094515.GB76467@melamine.cuivre.fr.eu.org> References: <460AA9E3.4030106@samsco.org> <8cb6106e0703281531k4c5bebecp5566c64c8f458a74@mail.gmail.com> <8cb6106e0704030039if46397fvfc993d9c9e19e1fc@mail.gmail.com> <8cb6106e0704032107w457026b1t1e04ed11008af48a@mail.gmail.com> <20070424162008.GA7087@melamine.cuivre.fr.eu.org> <8cb6106e0704240929j38178df6k1b6391446c69a2ae@mail.gmail.com> <20070424165843.GD7087@melamine.cuivre.fr.eu.org> <8cb6106e0704241132vfa6b312s3b4cbea0c823b796@mail.gmail.com> <8cb6106e0704241845r737dca05p50fc967a61d66677@mail.gmail.com> <8cb6106e0704242119h4a09d7d4v667d64071b3bd053@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8cb6106e0704242119h4a09d7d4v667d64071b3bd053@mail.gmail.com> X-message-flag: WARNING! Using Outlook can damage your computer. User-Agent: Mutt/1.5.11 Cc: freebsd-scsi@freebsd.org, bug-followup@freebsd.org, c47g@gmx.at Subject: Re: kern/103602: drive gets wedged on READ CD CAPACITY if no disc is in X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2007 09:45:21 -0000 * Josh Carroll, 2007-04-25 : > I used the following patch (attached) against a RELENG_6_2 src tree, > and it's working brilliantly. No problems to speak of. I can boot with > atapicam in the kernel without a disk in the drive and there were no > hangs at all. Good! It's relieving that we have finally zeroed in on this one! I have committed the DMA change to HEAD; I'll wait a bit for things to stabilize before merging it into RELENG_6. Now it would be interesting to test whether the scsi_cd and cam_xpt changes are still required in your configuration, or whether they were just working around the real underlying issue. You'll find attached to this message a patch against RELENG_6 atapi-cam.c (which includes the DMA fix and also a related error handling fix from kern/112119). Could you please test whether a kernel with: - just this patch; - this patch + the cam_xpt change (CAM_QUIRK_NOSERIAL) works for you? Thanks! Thomas. Index: atapi-cam.c =================================================================== RCS file: /space/mirror/ncvs/src/sys/dev/ata/atapi-cam.c,v retrieving revision 1.42.2.3 diff -u -r1.42.2.3 atapi-cam.c --- atapi-cam.c 29 Mar 2007 20:08:32 -0000 1.42.2.3 +++ atapi-cam.c 30 Apr 2007 09:39:46 -0000 @@ -513,10 +513,10 @@ switch (ccb_h->flags & CAM_DIR_MASK) { case CAM_DIR_IN: - request_flags |= ATA_R_READ|ATA_R_DMA; + request_flags |= ATA_R_READ; break; case CAM_DIR_OUT: - request_flags |= ATA_R_WRITE|ATA_R_DMA; + request_flags |= ATA_R_WRITE; break; case CAM_DIR_NONE: /* No flags need to be set */ @@ -525,8 +525,6 @@ device_printf(softc->dev, "unknown IO operation\n"); goto action_invalid; } - if (softc->atadev[tid]->mode < ATA_DMA) - request_flags &= ~ATA_R_DMA; if ((hcb = allocate_hcb(softc, unit, bus, ccb)) == NULL) { printf("cannot allocate ATAPI/CAM hcb\n"); @@ -591,7 +589,24 @@ request->u.atapi.ccb[3] = request->u.atapi.ccb[1] & 0x1f; request->u.atapi.ccb[2] = 0; request->u.atapi.ccb[1] = 0; + /* FALLTHROUGH */ + + case READ_10: + /* FALLTHROUGH */ + case WRITE_10: + /* FALLTHROUGH */ + case READ_12: + /* FALLTHROUGH */ + case WRITE_12: + /* + * Enable DMA (if target supports it) for READ and WRITE commands + * only, as some combinations of drive, controller and chipset do + * not behave correctly when DMA is enabled for other commands. + */ + if (softc->atadev[tid]->mode >= ATA_DMA) + request_flags |= ATA_R_DMA; break; + } if ((ccb_h->flags & CAM_DIR_MASK) == CAM_DIR_IN && (len & 1)) { @@ -613,7 +628,7 @@ /* * no retries are to be performed at the ATA level; any retries - * will be done by CAM . + * will be done by CAM. */ request->retries = 0; @@ -726,7 +741,7 @@ * issued a REQUEST SENSE automatically and that operation * returned without error. */ - if (request->u.atapi.saved_cmd != 0 && request->error == 0) { + if (request->u.atapi.sense.key != 0 && request->error == 0) { bcopy (&request->u.atapi.sense, &csio->sense_data, sizeof(struct atapi_sense)); csio->ccb_h.status |= CAM_AUTOSNS_VALID; } From owner-freebsd-scsi@FreeBSD.ORG Mon Apr 30 11:08:27 2007 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.org Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7A23E16A47F for ; Mon, 30 Apr 2007 11:08:27 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 62FC213C480 for ; Mon, 30 Apr 2007 11:08:27 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l3UB8RBm007060 for ; Mon, 30 Apr 2007 11:08:27 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l3UB8PV9007056 for freebsd-scsi@FreeBSD.org; Mon, 30 Apr 2007 11:08:26 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 30 Apr 2007 11:08:26 GMT Message-Id: <200704301108.l3UB8PV9007056@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2007 11:08:27 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/39388 scsi ncr/sym drivers fail with 53c810 and more than 256MB m o kern/40895 scsi wierd kernel / device driver bug o kern/52638 scsi [panic] SCSI U320 on SMP server won't run faster than s kern/57398 scsi [mly] Current fails to install on mly(4) based RAID di o kern/60598 scsi wire down of scsi devices conflicts with config o kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C810 under load s kern/61165 scsi [panic] kernel page fault after calling cam_send_ccb o kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5.3 o kern/81887 scsi [aac] Adaptec SCSI 2130S aac0: GetDeviceProbeInfo comm o kern/90282 scsi [sym] SCSI bus resets cause loss of ch device o kern/92798 scsi [ahc] SCSI problem with timeouts o kern/93128 scsi [sym] FreeBSD 6.1 BETA 1 has problems with Symbios/LSI o kern/94838 scsi Kernel panic while mounting SD card with lock switch o o kern/99954 scsi [ahc] reading from DVD failes on 6.x (regression) o kern/110847 scsi [ahd] Tyan U320 onboard problem with more than 3 disks 15 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/23314 scsi aic driver fails to detect Adaptec 1520B unless PnP is o kern/35234 scsi World access to /dev/pass? (for scanner) requires acce o kern/38828 scsi [feature request] DPT PM2012B/90 doesn't work o kern/44587 scsi dev/dpt/dpt.h is missing defines required for DPT_HAND o kern/76178 scsi [ahd] Problem with ahd and large SCSI Raid system o kern/96133 scsi [scsi] [patch] add scsi quirk for joyfly 128mb flash u o kern/103702 scsi [cam] [patch] ChipsBnk: Unsupported USB memory stick 7 problems total. From owner-freebsd-scsi@FreeBSD.ORG Tue May 1 01:27:18 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 30B8216A406 for ; Tue, 1 May 2007 01:27:18 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.freebsd.org (Postfix) with ESMTP id CBAF913C480 for ; Tue, 1 May 2007 01:27:17 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so1509268pyh for ; Mon, 30 Apr 2007 18:27:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sCx4QgrD8AWFIbjLa0OqLpwm26xCkipSPkKAXdluf3iyb4XijvzNrXaWmxt9fmhk/3wBbE+Z32PcJuuP5K3Y2hnvq9dQBOhm30UJUNQsDzYvxni+YK28aZlqdqDbF+/PIkwUoTJtKGdaZpXFutTYpX9BsCXsJFguf8P86MlD+pA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CuiLSO6Sq7miUFrsnZ19qFTn0/Ouhlfyian5VjpA8ZvAhQkydlBjOUVhpSkBKuStEeuScaNvPwrY8ZdBCf71CPEAmIzh7S/loNdmV6SZuR82B78QHyli7u98LcjQ5OQ2kaccj2dS7jAuS1N1BuAq2mWWPNl1kEGfKil6hyFyeec= Received: by 10.35.75.1 with SMTP id c1mr12369623pyl.1177982837231; Mon, 30 Apr 2007 18:27:17 -0700 (PDT) Received: by 10.35.83.9 with HTTP; Mon, 30 Apr 2007 18:27:17 -0700 (PDT) Message-ID: <8cb6106e0704301827y6aa3125flec12c056061b23a6@mail.gmail.com> Date: Mon, 30 Apr 2007 18:27:17 -0700 From: "Josh Carroll" To: "Thomas Quinot" In-Reply-To: <20070430094515.GB76467@melamine.cuivre.fr.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <460AA9E3.4030106@samsco.org> <8cb6106e0704030039if46397fvfc993d9c9e19e1fc@mail.gmail.com> <8cb6106e0704032107w457026b1t1e04ed11008af48a@mail.gmail.com> <20070424162008.GA7087@melamine.cuivre.fr.eu.org> <8cb6106e0704240929j38178df6k1b6391446c69a2ae@mail.gmail.com> <20070424165843.GD7087@melamine.cuivre.fr.eu.org> <8cb6106e0704241132vfa6b312s3b4cbea0c823b796@mail.gmail.com> <8cb6106e0704241845r737dca05p50fc967a61d66677@mail.gmail.com> <8cb6106e0704242119h4a09d7d4v667d64071b3bd053@mail.gmail.com> <20070430094515.GB76467@melamine.cuivre.fr.eu.org> Cc: freebsd-scsi@freebsd.org, bug-followup@freebsd.org, c47g@gmx.at Subject: Re: kern/103602: drive gets wedged on READ CD CAPACITY if no disc is in X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2007 01:27:18 -0000 > Now it would be interesting to test whether the scsi_cd and cam_xpt > changes are still required in your configuration, or whether they were > just working around the real underlying issue. > > You'll find attached to this message a patch against RELENG_6 > atapi-cam.c (which includes the DMA fix and also a related error > handling fix from kern/112119). Could you please test whether > a kernel with: > - just this patch; > - this patch + the cam_xpt change (CAM_QUIRK_NOSERIAL) > works for you? Hi Thomas, The patch alone works great! There was no need for the cam_xpt change, nor the scsi_cd change. I was able to blank and burn a CD-RW with the new kernel just fine with cdrecord. Thanks, Josh From owner-freebsd-scsi@FreeBSD.ORG Tue May 1 03:55:02 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E622516A409 for ; Tue, 1 May 2007 03:55:02 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177]) by mx1.freebsd.org (Postfix) with ESMTP id 5859C13C465 for ; Tue, 1 May 2007 03:55:02 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so1528925pyh for ; Mon, 30 Apr 2007 20:55:01 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZLpjl5IDL3Rnlg/RQpxG0J6jyORzpqVzhW6iWxLmrDoQ3dFyqI4CLxvFResRGWMIwKV43N1mfzHovTpaYUyuS/C8txhp5NoqwtV99YSJ0eEOThRX4LD9430dMazT135Ug0eK/of1jUCVW3eTRio51+0vNWFYQSe2pboCkgtPKrI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=awJYHo31+oAGiANdVa7E/WPQ5igyQ6/ottjuzM41E2jyQCrglu5b2QpTkLIPHf5c9jHmKGhM1/pJO+T0QwYDc6FD6ZSPah3Xc6uR/juc8hUk+hQRuVT6U0IZGQ3OG1XYw43zGewiGALDLjVFKMXz3la0NtnJ+6V1UMbyssI0/Lc= Received: by 10.35.57.2 with SMTP id j2mr12552986pyk.1177991701436; Mon, 30 Apr 2007 20:55:01 -0700 (PDT) Received: by 10.35.83.9 with HTTP; Mon, 30 Apr 2007 20:55:01 -0700 (PDT) Message-ID: <8cb6106e0704302055x4c430b4bode7a0ec2edd590ff@mail.gmail.com> Date: Mon, 30 Apr 2007 20:55:01 -0700 From: "Josh Carroll" To: "Thomas Quinot" In-Reply-To: <8cb6106e0704301827y6aa3125flec12c056061b23a6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <460AA9E3.4030106@samsco.org> <8cb6106e0704032107w457026b1t1e04ed11008af48a@mail.gmail.com> <20070424162008.GA7087@melamine.cuivre.fr.eu.org> <8cb6106e0704240929j38178df6k1b6391446c69a2ae@mail.gmail.com> <20070424165843.GD7087@melamine.cuivre.fr.eu.org> <8cb6106e0704241132vfa6b312s3b4cbea0c823b796@mail.gmail.com> <8cb6106e0704241845r737dca05p50fc967a61d66677@mail.gmail.com> <8cb6106e0704242119h4a09d7d4v667d64071b3bd053@mail.gmail.com> <20070430094515.GB76467@melamine.cuivre.fr.eu.org> <8cb6106e0704301827y6aa3125flec12c056061b23a6@mail.gmail.com> Cc: freebsd-scsi@freebsd.org, bug-followup@freebsd.org, c47g@gmx.at Subject: Re: kern/103602: drive gets wedged on READ CD CAPACITY if no disc is in X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2007 03:55:03 -0000 > The patch alone works great! There was no need for the cam_xpt change, > nor the scsi_cd change. I was able to blank and burn a CD-RW with the > new kernel just fine with cdrecord. I forgot to mention, I applied the patch against the 6.2-RELEASE-p4 source. Two of the hunks failed, but the first was just a different between a comment "CAM ." versus "CAM.", so I left that alone. The second was because of an if not including the second part of the if condition. So I manually made that change. Below is the patch I used against RELENG_6_2 src, just in case someone needs it. Thanks, Josh diff -urN sys.old/dev/ata/atapi-cam.c sys/dev/ata/atapi-cam.c --- sys.old/dev/ata/atapi-cam.c Mon Apr 30 20:52:07 2007 +++ sys/dev/ata/atapi-cam.c Mon Apr 30 20:53:15 2007 @@ -505,10 +505,10 @@ switch (ccb_h->flags & CAM_DIR_MASK) { case CAM_DIR_IN: - request_flags |= ATA_R_READ|ATA_R_DMA; + request_flags |= ATA_R_READ; break; case CAM_DIR_OUT: - request_flags |= ATA_R_WRITE|ATA_R_DMA; + request_flags |= ATA_R_WRITE; break; case CAM_DIR_NONE: /* No flags need to be set */ @@ -517,8 +517,6 @@ device_printf(softc->dev, "unknown IO operation\n"); goto action_invalid; } - if (softc->atadev[tid]->mode < ATA_DMA) - request_flags &= ~ATA_R_DMA; if ((hcb = allocate_hcb(softc, unit, bus, ccb)) == NULL) { printf("cannot allocate ATAPI/CAM hcb\n"); @@ -580,7 +578,24 @@ request->u.atapi.ccb[3] = request->u.atapi.ccb[1] & 0x1f; request->u.atapi.ccb[2] = 0; request->u.atapi.ccb[1] = 0; + /* FALLTHROUGH */ + + case READ_10: + /* FALLTHROUGH */ + case WRITE_10: + /* FALLTHROUGH */ + case READ_12: + /* FALLTHROUGH */ + case WRITE_12: + /* + * Enable DMA (if target supports it) for READ and WRITE commands + * only, as some combinations of drive, controller and chipset do + * not behave correctly when DMA is enabled for other commands. + */ + if (softc->atadev[tid]->mode >= ATA_DMA) + request_flags |= ATA_R_DMA; break; + } if ((ccb_h->flags & CAM_DIR_MASK) == CAM_DIR_IN && (len & 1)) { @@ -702,7 +717,7 @@ return; #else /* The ATA driver has already requested sense for us. */ - if (request->error == 0) { + if (request->u.atapi.sense.key != 0 && request->error == 0) { /* The ATA autosense suceeded. */ bcopy (&request->u.atapi.sense, &csio->sense_data, sizeof(struct atapi_sense)); csio->ccb_h.status |= CAM_AUTOSNS_VALID; From owner-freebsd-scsi@FreeBSD.ORG Tue May 1 09:22:58 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C139416A408; Tue, 1 May 2007 09:22:58 +0000 (UTC) (envelope-from thomas@FreeBSD.ORG) Received: from melamine.cuivre.fr.eu.org (melusine.cuivre.fr.eu.org [82.225.155.84]) by mx1.freebsd.org (Postfix) with ESMTP id 8303913C45D; Tue, 1 May 2007 09:22:58 +0000 (UTC) (envelope-from thomas@FreeBSD.ORG) Received: by melamine.cuivre.fr.eu.org (Postfix, from userid 1000) id 824785C1BB; Tue, 1 May 2007 11:22:57 +0200 (CEST) Date: Tue, 1 May 2007 11:22:57 +0200 From: Thomas Quinot To: Josh Carroll Message-ID: <20070501092257.GA21120@melamine.cuivre.fr.eu.org> References: <8cb6106e0704030039if46397fvfc993d9c9e19e1fc@mail.gmail.com> <8cb6106e0704032107w457026b1t1e04ed11008af48a@mail.gmail.com> <20070424162008.GA7087@melamine.cuivre.fr.eu.org> <8cb6106e0704240929j38178df6k1b6391446c69a2ae@mail.gmail.com> <20070424165843.GD7087@melamine.cuivre.fr.eu.org> <8cb6106e0704241132vfa6b312s3b4cbea0c823b796@mail.gmail.com> <8cb6106e0704241845r737dca05p50fc967a61d66677@mail.gmail.com> <8cb6106e0704242119h4a09d7d4v667d64071b3bd053@mail.gmail.com> <20070430094515.GB76467@melamine.cuivre.fr.eu.org> <8cb6106e0704301827y6aa3125flec12c056061b23a6@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8cb6106e0704301827y6aa3125flec12c056061b23a6@mail.gmail.com> X-message-flag: WARNING! Using Outlook can damage your computer. User-Agent: Mutt/1.5.11 Cc: freebsd-scsi@freebsd.org, bug-followup@freebsd.org, c47g@gmx.at Subject: Re: kern/103602: drive gets wedged on READ CD CAPACITY if no disc is in X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2007 09:22:58 -0000 * Josh Carroll, 2007-05-01 : > The patch alone works great! There was no need for the cam_xpt change, > nor the scsi_cd change. I was able to blank and burn a CD-RW with the > new kernel just fine with cdrecord. Great, this means that this is all fixed in HEAD now. Thanks for your help and patience in investigating this issue! Thomas. From owner-freebsd-scsi@FreeBSD.ORG Sat May 5 04:40:16 2007 Return-Path: X-Original-To: freebsd-scsi@hub.freebsd.org Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BC24C16A400 for ; Sat, 5 May 2007 04:40:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 6665B13C45D for ; Sat, 5 May 2007 04:40:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l454eGtk054322 for ; Sat, 5 May 2007 04:40:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l454eFG1054321; Sat, 5 May 2007 04:40:16 GMT (envelope-from gnats) Date: Sat, 5 May 2007 04:40:16 GMT Message-Id: <200705050440.l454eFG1054321@freefall.freebsd.org> To: freebsd-scsi@FreeBSD.org From: Juergen Dankoweit Cc: Subject: Re: kern/93128: [sym] FreeBSD 6.1 BETA 1 has problems with Symbios/LSI-HBAs (regression) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Juergen Dankoweit List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 04:40:16 -0000 The following reply was made to PR kern/93128; it has been noted by GNATS. From: Juergen Dankoweit To: bug-followup@FreeBSD.org, Juergen.Dankoweit@T-Online.de Cc: Subject: Re: kern/93128: [sym] FreeBSD 6.1 BETA 1 has problems with Symbios/LSI-HBAs (regression) Date: Sat, 05 May 2007 06:23:04 +0200 Hello support team, the same problems are at FreeBSD 6.2. But FreeBSD 7.0 runs only in safe mode. Best reagrds Jürgen Dankoweit From owner-freebsd-scsi@FreeBSD.ORG Sat May 5 18:49:53 2007 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.org Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4C18616A402 for ; Sat, 5 May 2007 18:49:53 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id ED44B13C459 for ; Sat, 5 May 2007 18:49:42 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 95F72487F3; Sat, 5 May 2007 20:29:24 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 86F0F45696 for ; Sat, 5 May 2007 20:29:19 +0200 (CEST) Date: Sat, 5 May 2007 20:28:49 +0200 From: Pawel Jakub Dawidek To: freebsd-scsi@FreeBSD.org Message-ID: <20070505182849.GC16398@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ncSAzJYg3Aa9+CRW" Content-Disposition: inline X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: Subject: SCSI disk serial number. X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 18:49:53 -0000 --ncSAzJYg3Aa9+CRW Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi. Can someone confirm this is the right thing to do to get SCSI disk serial number? http://people.freebsd.org/~pjd/patches/scsi_da_ident.patch Thanks in advance! Can someone help me with other drivers? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --ncSAzJYg3Aa9+CRW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGPMzhForvXbEpPzQRAlv4AKCXCql9nlhMDuHa90ic/xEOqIQxRACfQmGy 6P1peZklvjPG0L/5oo8ay0s= =AQ+9 -----END PGP SIGNATURE----- --ncSAzJYg3Aa9+CRW-- From owner-freebsd-scsi@FreeBSD.ORG Sat May 5 19:04:06 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0DF5816A402 for ; Sat, 5 May 2007 19:04:06 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id BCE5C13C455 for ; Sat, 5 May 2007 19:04:05 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.13.8/8.13.8) with ESMTP id l45ISDEi094324 for ; Sat, 5 May 2007 11:28:21 -0700 (PDT) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.13.8/8.13.8/Submit) with ESMTP id l45ISDKw094321 for ; Sat, 5 May 2007 11:28:13 -0700 (PDT) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Sat, 5 May 2007 11:28:13 -0700 (PDT) From: mjacob@freebsd.org To: freebsd-scsi@freebsd.org Message-ID: <20070505112730.H93632@ns1.feral.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: MP safe CAM && sparc? X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 19:04:06 -0000 Anyone tried any of the 'safe' drivers on sparc64 yet? From owner-freebsd-scsi@FreeBSD.ORG Sat May 5 21:48:19 2007 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.org Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 233FB16A401; Sat, 5 May 2007 21:48:19 +0000 (UTC) (envelope-from scottl@pooker.samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id BA7C013C457; Sat, 5 May 2007 21:48:18 +0000 (UTC) (envelope-from scottl@pooker.samsco.org) Received: from [192.168.254.15] (ydesk.samsco.home [192.168.254.15]) (authenticated bits=0) by pooker.samsco.org (8.13.8/8.13.8) with ESMTP id l45KiDdN079799; Sat, 5 May 2007 14:44:13 -0600 (MDT) (envelope-from scottl@pooker.samsco.org) Message-ID: <463CEC79.5030502@pooker.samsco.org> Date: Sat, 05 May 2007 14:43:37 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.7) Gecko/20050416 X-Accept-Language: en-us, en MIME-Version: 1.0 To: mjacob@FreeBSD.org References: <20070505112730.H93632@ns1.feral.com> In-Reply-To: <20070505112730.H93632@ns1.feral.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [192.168.254.1]); Sat, 05 May 2007 14:44:13 -0600 (MDT) X-Spam-Status: No, score=-1.4 required=5.5 tests=ALL_TRUSTED autolearn=failed version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: freebsd-scsi@FreeBSD.org Subject: Re: MP safe CAM && sparc? X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 21:48:19 -0000 mjacob@freebsd.org wrote: > Anyone tried any of the 'safe' drivers on sparc64 yet? > I haven't tried it myself, but there's no reason why they shouldn't work. Have you tried? Scott