Subject: Re: IEEE1394/Firewire(TM)(R)(C) oddity
To: Christopher Tribo <t1345@hopi.dtcc.edu>
From: Love <lha@stacken.kth.se>
List: current-users
Date: 02/17/2003 07:48:54
Christopher Tribo <t1345@hopi.dtcc.edu> writes:

> 	I just have two questions; 1 - where's the beef? :) 2 - is 
> deadbeef bad?
>
> Feb 16 21:49:44 Suck /netbsd: uk0 at scsibus0 target 0 lun 0: <Apple, 
> iPod, 1.21> simplified direct removable

I used the patch below to make simplyfied direct/reduced block command
(RBC) device to "work". I've been meaning to send a mail about it but keep
forgetting. NetBSD sd driver seems to not use any commands outside RBC,
hopefully someone with more scsi clue then me can tell me its ok to commit.

<powered on device>
fwohci0: SelfID Error
fwnode0 at fwohci0 Node 0: UID 00:00:00:00:00:00:00:00
fwnode1 at fwohci0 Node 0: UID 00:d0:4b:00:e0:00:99:00
fwnode0 detached
fwnode1: Link Speed: 100Mb/s, max_rec: 64 bytes
sbpscsi0 at fwnode1
scsibus0 at sbpscsi0: 1 target, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <IBM-DPTA, -353750, P51O> simplified direct fixed
sd0: mode sense (4) returned nonsense; using fictitious geometry
sd0: 35772 MB, 35772 cyl, 64 head, 32 sec, 512 bytes/sect x 73261440 sectors
<powered off device>
sd0 detached
scsibus0 detached
sbpscsi0 detached
fwnode1 detached


> <unplugged>
> Feb 16 21:50:16 Suck /netbsd: uk0 detached
> Feb 16 21:50:21 Suck /netbsd: scsibus0 detached
> Feb 16 21:50:21 Suck /netbsd: sbpscsi0 detached
> Feb 16 21:50:21 Suck /netbsd: fwnode0 detached
> Feb 16 21:50:22 Suck /netbsd: Data modified on freelist: word 59 of object 
> 0xc11
> f9500 size 192 previous type 1394data (0xc1218c00 != 0xdeadbeef)

Yes, its bad.

Love


Index: sd_scsi.c
===================================================================
RCS file: /sources/netbsd/NetBSD-cvs/src/sys/dev/scsipi/sd_scsi.c,v
retrieving revision 1.26
diff -u -u -w -r1.26 sd_scsi.c
--- sd_scsi.c	4 Oct 2002 03:43:06 -0000	1.26
+++ sd_scsi.c	8 Feb 2003 17:25:29 -0000
@@ -84,6 +84,10 @@
 	 "",         "",                 ""},
 	{T_DIRECT, T_REMOV,
 	 "",         "",                 ""},
+	{T_SIMPLE_DIRECT, T_FIXED,
+	 "",         "",                 ""},
+	{T_SIMPLE_DIRECT, T_REMOV,
+	 "",         "",                 ""},
 	{T_OPTICAL, T_FIXED,
 	 "",         "",                 ""},
 	{T_OPTICAL, T_REMOV,