From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 16 08:11:29 2004 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7148116A4CE for ; Fri, 16 Apr 2004 08:11:29 -0700 (PDT) Received: from mail0.lsil.com (mail0.lsil.com [147.145.40.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42F8343D3F for ; Fri, 16 Apr 2004 08:11:29 -0700 (PDT) (envelope-from Emoore@lsil.com) Received: from milmhbs0.lsil.com (mhbs.lsil.com [147.145.1.30]) by mail0.lsil.com (8.12.8/8.12.8) with ESMTP id i3GFBDcq016023; Fri, 16 Apr 2004 08:11:13 -0700 (PDT) Received: from EXA-ATLANTA.se.lsil.com (atl1.se.lsil.com [147.145.16.4]) by milmhbs0.lsil.com (8.12.11/8.12.11) with ESMTP id i3GFD5vG012833; Fri, 16 Apr 2004 08:13:06 -0700 Received: by exa-atlanta.se.lsil.com with Internet Mail Service (5.5.2657.72) id ; Fri, 16 Apr 2004 11:11:26 -0400 Message-ID: <0E3FA95632D6D047BA649F95DAB60E570442C3D7@exa-atlanta.se.lsil.com> From: "Moore, Eric Dean" To: Kenneth Vestergaard Schmidt Date: Fri, 16 Apr 2004 11:11:17 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Scanned-By: MIMEDefang 2.39 cc: freebsd-scsi@freebsd.org Subject: RE: IBM x335 onboard LSI 1020 (mpt) poor performance X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2004 15:11:29 -0000 Domain validation is used to correctly tune negotiation transfers over the bus. Here is t10 spec on this: http://www.t10.org/ftp/t10/drafts/sdv/sdv-r08b.pdf It appears in the mpt driver that SCSI-SPI Device Page updates are done from mpt_freebsd.c. Look at functions mpt_setwidth() and mpt_setsync(). This called from XPT_SET_TRAN_SETTINGS, which means probally only the primary disk in the raid volume is getting the proper negotiated parmeters. >From Linux, its done from mptscsih.c; function mptscsih_doDv(). http://lxr.linux.no/source/drivers/message/fusion/mptscsih.c?v=2.6.1 We provided freebsd source having Domain Validation to Mathew Jacob a year ago, however it didn't make it into cvs. I will send that source to you in seperate email. Eric Moore > -----Original Message----- > From: Kenneth Vestergaard Schmidt [mailto:kvs@binarysolutions.dk] > Sent: Friday, April 16, 2004 3:28 AM > To: Moore, Eric Dean > Cc: freebsd-scsi@freebsd.org > Subject: Re: IBM x335 onboard LSI 1020 (mpt) poor performance > > > On Thu, Apr 15, 2004 at 06:33:56PM -0400, Moore, Eric Dean wrote: > > I was thinking scsi bus analyzer. > > If that's a hardware device, I haven't got one, unfortunately. > > > The mpt driver would need to issue SCSI-SPI > > Device Page 0 and 1 to set the negotiated parmeters > > for each of the hidden physical drive in > > the raid volume. Bios is handling off to > > the driver in asyn narrow speeds, so the > > driver needs to send these config pages. > > > > I'm working on the mpt Linux driver, however Matthew > > Jacob would know best about what config page updates > > are occuring in this bsd driver. > > It seems Matthew Jacob is tied up with other things than > FreeBSD presently, > so I'm not sure if he's able to help. > > I'm assuming the Linux driver detects the hidden drives and > sends the above- > mentioned SCSI-commands. Knowing next to nothing about the > kernel, I'm not > quite sure I'll be able to make the required changes to the > driver source > myself, but I'm willing to try. > > Is Domain Validation needed to do this? It isn't enabled in > the current FreeBSD > driver as I understand it. Also, could you point to where in > the Linux-driver > the hidden-disk-parameters are negotiated? > > -- > Best Regards > Kenneth Schmidt >