From owner-freebsd-scsi Thu Sep 30 2:53:31 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from mail.uni-bielefeld.de (mail.uni-bielefeld.de [129.70.4.90]) by hub.freebsd.org (Postfix) with ESMTP id F0F6D159AE; Thu, 30 Sep 1999 02:53:16 -0700 (PDT) (envelope-from bfischer@Techfak.uni-bielefeld.de) Received: from frolic.no-support.loc (ppp36-386.hrz.uni-bielefeld.de) by mail.uni-bielefeld.de (Sun Internet Mail Server sims.3.5.1999.05.24.18.28.p7) with ESMTP id <0FIV00CLGA4IGT@mail.uni-bielefeld.de>; Thu, 30 Sep 1999 11:53:08 +0200 (MET DST) Received: (from bjoern@localhost) by frolic.no-support.loc (8.9.3/8.9.3) id LAA00884; Thu, 30 Sep 1999 11:52:10 +0200 (CEST envelope-from bjoern) Date: Thu, 30 Sep 1999 11:52:10 +0200 From: Bjoern Fischer Subject: check for unaligned buffers in CAM [was Re: Cdrecord problems...] In-reply-to: <37F293E7.E63F9E36@es.co.nz> To: Mike Muir Cc: Eliezer Rodriguez Gonzalez , Bjoern Fischer , freebsd-stable@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Message-id: <19990930115210.A325@frolic.no-support.loc> MIME-version: 1.0 X-Mailer: Mutt 1.0pre3i Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable References: <37F293E7.E63F9E36@es.co.nz> Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Sep 30, 1999 at 10:34:15AM +1200, Mike Muir wrote: > Eliezer Rodriguez Gonzalez wrote: > >=20 > > Hello everybody: > >=20 > > Finally I was able to burn my own copy of 3.3-RELEASE, downloaded via f= tp > > from a mirror site. > > I found out, by research and because Mr Fischer told me so, that while > > using version 1.6.1 of cdrecord there was a problem using the internal > > buffer, so I disabled that feature via the command option fs=3D0 and th= en > > everything worked fine and I was able to burn my CD-ROM with the older > > cdrecord version. >=20 > This also happens when using 1.8a28 under -current.. not quite sure why, > but i'm > guessing for the same reasons outlined in an earlier posting in this > thread. > (I'm going to try a29 next). You could check for unaligned buffers in sys/cam/cam_periph.c:cam_periph_mapmem() (around line 530 in -stable). One (Kenneth? me?) could also make this debugging hook permanent in conjunction with one or more sysctl knobs which switch on the check or/and -- even better -- send a signal (SIGBUS?) to the process on unaligned buffers. That would make it very easy to debug not only cdrecord but *any* userland process that uses cam transport. Any opinions? Bj=F6rn --=20 -----BEGIN GEEK CODE BLOCK----- GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L+++(--) !E W- N+ o>+ K- !w !O !M !V PS++ PE- PGP++ t+++ !5 X++ tv- b+++ D++ G e+ h-- y+=20 ------END GEEK CODE BLOCK------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message