Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jan 2003 13:35:30 -0700
From:      "Justin T. Gibbs" <gibbs@scsiguy.com>
To:        Nate Lawson <nate@root.org>, Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: quirk candidate: SEAGATE ST52160N
Message-ID:  <615050000.1042576530@aslan.btc.adaptec.com>
In-Reply-To: <Pine.BSF.4.21.0301141212540.39326-100000@root.org>
References:   <Pine.BSF.4.21.0301141212540.39326-100000@root.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> On Tue, 14 Jan 2003, Justin T. Gibbs wrote:
>> What you should probably do is trace the sense buffer both before
>> and after the sense is retrieved.  Perhaps fill the target sense
>> buffer with a known pattern, log the transfer residual, and see if
>> the number of bytes overwritten is as you would expect.
> 
> i.e.
>   memset(csio.sense_data.sense_buf, 0xa5, sizeof csio.sense_data);
> before sending the sync cache in camcontrol, then
>   printf("resid %d, sense_resid %d\n", csio.resid, csio.sense_resid);
> afterwards.

For the aic7xxx driver at least, I would suggest doing this in the driver
since the csio's sense buffer is not the direct target of the DMA.

--
Justin


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?615050000.1042576530>