From owner-freebsd-stable@FreeBSD.ORG Sun Sep 9 17:11:25 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A019A106566B; Sun, 9 Sep 2012 17:11:25 +0000 (UTC) (envelope-from kirk.j.russell@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 04F508FC0C; Sun, 9 Sep 2012 17:11:24 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so1010600wgb.31 for ; Sun, 09 Sep 2012 10:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=49urNlBcDR1ZVjLc0FmTSSEtfD0GQmbbe9fnW5mLcoY=; b=c96ZwkYSPGrWIZCyj7uVqsLP3ygMTJnxa/roaXYzGFpHsC+yYyf6ppFmJ0mnNmj2uH ImtfcoMllp+ASOyc/cjDIsIwKUZKb6ujikb2nu3kI9IkOcH1T1jJzLLt2FBf9R/tUjDv ecU0uX37VGGpbWmToTUZBg1CyTZHV6yftaToKKWEAGmu6aHK5VIPx+fELZ2+foY3FFgX oSNb8snKsfwr1Ft09rwGH74eaiJ80b/TTip/NLkPMmTgypjRfJ0VtNXTVqKM+0DjTuy9 lqOLiHNpPLCjoUXoG2XEGn7Ia4twqyNlAu11Uc5KhAsXWILtZIOuO37q3jf6iHMHVzEY HtQg== MIME-Version: 1.0 Received: by 10.180.96.3 with SMTP id do3mr11543119wib.5.1347210683561; Sun, 09 Sep 2012 10:11:23 -0700 (PDT) Sender: kirk.j.russell@gmail.com Received: by 10.180.164.14 with HTTP; Sun, 9 Sep 2012 10:11:23 -0700 (PDT) In-Reply-To: <504CBBB1.20905@FreeBSD.org> References: <504B2C35.3030800@FreeBSD.org> <504CBBB1.20905@FreeBSD.org> Date: Sun, 9 Sep 2012 18:11:23 +0100 X-Google-Sender-Auth: os-XQaNF1AYf-scadmnm38X3Ons Message-ID: From: kirk russell To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD 9.1 RC1 and CAM issues with old SCSI drive X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kirk@ba23.org List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2012 17:11:25 -0000 On Sun, Sep 9, 2012 at 4:54 PM, Alexander Motin wrote: > On 09.09.2012 16:25, kirk russell wrote: >> >> On Sat, Sep 8, 2012 at 12:29 PM, Alexander Motin wrote: >>> >>> Hi. >>> >>> It seems like both of your problems have the same cause: device report >>> wrong >>> size of INQUIRY data, that causes failure on attempt to fetch it. With >>> FreeBSD 9.0 it caused domain validation failures and so reduced transfer >>> rate, on 9.1 it also causes detection failure. I am not sure why >>> detection >>> worked on 9.0, it needs some deeper code comparison, but I think it is >>> mostly device problem. >>> >>> Could you send me output of such commands from FreeBSD 9.0: >>> camcontrol cmd da0 -vEc "12 00 00 00 24 00" -i 36 - | hd >>> camcontrol cmd da0 -vEc "12 00 00 00 fe 00" -i 254 - | hd >>> camcontrol cmd da0 -vEc "12 00 00 01 00 00" -i 256 - | hd >>> >>> -- >>> Alexander Motin >> >> [.....] > > It seems that problem can be in our SCSI code that rounds inquiry data size > up to even. Please try to comment out line > inquiry_len = roundup2(inquiry_len, 2); > in sys/cam/scsi/scsi_xpt.c and rebuild the kernel. It should probably fix > both device detection and transfer speed. > This is running 9.0-RELEASE, with your patch to scsi_xpt.c: da0 at ahc0 bus 0 scbus2 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit) da0: Command Queueing enabled da0: 8678MB (17773500 512 byte sectors: 255H 63S/T 1106C) This is running FreeBSD 9.1-RC1, with your patch to scsi_xpt.c: da0 at ahc0 bus 0 scbus2 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit) da0: Command Queueing enabled da0: 8678MB (17773500 512 byte sectors: 255H 63S/T 1106C) -- Kirk Russell http://www.ba23.org/