From owner-freebsd-current@FreeBSD.ORG Mon Sep 6 14:21:15 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FC8A16A4CE; Mon, 6 Sep 2004 14:21:15 +0000 (GMT) Received: from wally.statscout.com (wally.statscout.com [203.39.101.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E3C343D6B; Mon, 6 Sep 2004 14:21:13 +0000 (GMT) (envelope-from paul.koch@statscout.com) Received: from localhost (localhost.statscout.com [127.0.0.1]) by wally.statscout.com (8.12.11/8.12.11) with ESMTP id i86ELCpv062318; Tue, 7 Sep 2004 00:21:12 +1000 (EST) (envelope-from paul.koch@statscout.com) Received: from wally.statscout.com ([127.0.0.1]) by localhost (wally.statscout.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 61643-03-2; Tue, 7 Sep 2004 00:21:06 +1000 (EST) Received: from speedy.statscout.com (home-pak33.statscout.com [10.1.9.33]) by wally.statscout.com (8.12.11/8.12.11) with ESMTP id i86EJkgp062290; Tue, 7 Sep 2004 00:19:47 +1000 (EST) (envelope-from paul.koch@statscout.com) Received: from speedy.statscout.com (localhost [127.0.0.1]) by speedy.statscout.com (8.13.1/8.13.1) with ESMTP id i86E1P3M013534; Tue, 7 Sep 2004 00:01:25 +1000 (EST) (envelope-from paul.koch@statscout.com) Received: from localhost (localhost [[UNIX: localhost]]) by speedy.statscout.com (8.13.1/8.13.1/Submit) id i86E1OIE013354; Tue, 7 Sep 2004 00:01:24 +1000 (EST) (envelope-from paul.koch@statscout.com) X-Authentication-Warning: speedy.statscout.com: pak set sender to paul.koch@statscout.com using -f From: Paul Koch Organization: Statscout To: current@freebsd.org Date: Tue, 7 Sep 2004 00:01:23 +1000 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200409070001.24254.paul.koch@statscout.com> X-Virus-Scanned: by amavisd-new at statscout.com X-Mailman-Approved-At: Tue, 07 Sep 2004 11:41:37 +0000 cc: re@freebsd.org Subject: 5.3 BETA3 testing / feedback X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2004 14:21:15 -0000 Hi, didn't know exactly where to send this info. I started off last week playing around with getting a little MP3 player to run on 4.10-STABLE, but never quite got it working right, then ended up giving 5.3 BETA3 a go, which turned into a big test session. So far I have three machines running: Machine 1: Dell Latitude 700Mhz Laptop. Nothing fancy about this laptop these days. A IDE attached CDROM, Lucent Winmodem, 256M RAM, port replicator, USB1, external fdd, etc... acpi power management stuff appears to do its stuff fine. acpi use to panic it on 4.x. Had no crashes except when plugging in various USB devices as explained further down. Machine 2: A Dell Dual Processor 2.4G P4, 512M RAM, 60G IDE disk, Adaptec Ultra wide SCSI-160, 3 x IBM 9G ultrawide disks, Intel gig (em) and 100M (fxp) NICs. This machine has been thrashing away doing lots of port/package builds and hasn't missed a beat. Machine 3: Dell Latitude X300 1.2GHz 512M ram, USB-2 DVD drive, USB-2 FDD, 60G IDE disk, lots of USB2 ports, firewire, bge NIC, infrared serial port, Intel AC97 sound/winmodem, D-Link pcmcia modem, etc. This is my working machine, so I swapped in a new disk, and spent the weekend trying to get it going. Sigh. I couldn't do an install from CD. The CD would boot, but the kernel didn't find the DVD drive, so I had to install over NFS. I didn't have these problems with 4.9 and 4.10. My Clicker MP3 player and Pentax S30 camera would panic the kernel. I originally started out trying to work out the correct quirks for the MP3 player under 4.10-STABLE but couldn't quite getting it working. Went and bought a cordless Logitech mouse with a USB wireless thingy bob, which worked fine. Didn't bother with the internal Winmodem so I randomly bought a D-link pcmcia modem DM-560 and it worked straight away with no further configuration. Tried a random USB flash drive thing which worked fine also. Also tried a Kodak DX6440 which caused no problems, came up on ugen0 and could talk to it with gphoto2 (gphoto2 still has really big memory leaks). USB floppy drive spits out lots of syslog errors or warnings, but appears to work just fine. ehci appear to be a bit unstable (as stated in the manual page) with a few kernels I tried, so I pulled it out. I read Nate Lawsons usb quirks doc and started playing. Managed to get everything working fine accept the error/warning messages from the USB Sony Floppy drive. MP3 Player: This device has 128M internal and a 256M external SD card. # dmesg ... umass1: AccFast AFMP3 Player, rev 1.10/2.05, addr 2 da0 at umass-sim1 bus 1 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 1.000MB/s transfers da0: 120MB (245760 512 byte sectors: 64H 32S/T 120C) da1 at umass-sim1 bus 1 target 0 lun 1 da1: Removable Direct Access SCSI-2 device da1: 1.000MB/s transfers da1: 243MB (499611 512 byte sectors: 64H 32S/T 243C) # usbdevs -v list Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 addr 2: full speed, power 100 mA, config 1, AFMP3 Player(0x0001), AccFast(0x1011), rev 2.05 port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 addr 2: full speed, self powered, config 1, A01(0x9001), Dell USB Drive(0x413c), rev 1.04 port 2 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: low speed, power 50 mA, config 1, USB Receiver(0xc50a), Logitech(0x046d), rev 20.10 # camcontrol devlist at scbus0 target 0 lun 0 (cd0,pass0) at scbus2 target 0 lun 0 (da0,pass1) at scbus2 target 0 lun 1 (da1,pass2) # ls -l /dev/da* crw-r----- 1 root operator 4, 25 Sep 6 18:38 /dev/da0 crw-r----- 1 root operator 4, 26 Sep 6 18:38 /dev/da1 crw-r----- 1 root operator 4, 27 Sep 6 18:38 /dev/da1s1 # mount -t msdos /dev/da0 /udisk0 # mount -t msdos /dev/da1s1 /udisk1 # df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 145M 76M 57M 57% / devfs 1.0K 1.0K 0B 100% /dev /dev/ad0s1f 48G 8.5G 36G 19% /home /dev/ad0s1e 3.8G 1.5G 2.0G 44% /usr /dev/ad0s1d 965M 65M 823M 7% /var procfs 4.0K 4.0K 0B 100% /proc /dev/da0 120M 4.0K 120M 0% /udisk0 /dev/da1s1 244M 82M 162M 34% /udisk1 # umount /udisk1 # umount /udisk0 ... pull device out # dmesg umass1: at uhub0 port 1 (addr 2) disconnected (da0:umass-sim1:1:0:0): lost device (da0:umass-sim1:1:0:0): removing device entry (da1:umass-sim1:1:0:1): lost device (da1:umass-sim1:1:0:1): removing device entry umass1: detached No more panics. Diffs of files below. PENTAX S30 Digital Camera: This device would panic the kernel fairly quickly. Fiddled with the quirks and achieved good results # dmesg umass1: PENTAX Digical camera, rev 1.10/0.00, addr 2 da0 at umass-sim1 bus 1 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 244MB (499712 512 byte sectors: 64H 32S/T 244C) # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 addr 2: full speed, self powered, config 1, Digical camera(0x0019), PENTAX(0x0a17), rev 0.00 port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 addr 2: full speed, self powered, config 1, A01(0x9001), Dell USB Drive(0x413c), rev 1.04 port 2 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: low speed, power 50 mA, config 1, USB Receiver(0xc50a), Logitech(0x046d), rev 20.10 # camcontrol devlist at scbus0 target 0 lun 0 (cd0,pass0) at scbus2 target 0 lun 0 (da0,pass1) # ls -l /dev/da* crw-r----- 1 root operator 4, 28 Sep 6 18:38 /dev/da0 crw-r----- 1 root operator 4, 29 Sep 6 18:38 /dev/da0s1 # mount -t msdos /dev/da0s1 /udisk0 # df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 145M 76M 57M 57% / devfs 1.0K 1.0K 0B 100% /dev /dev/ad0s1f 48G 8.5G 36G 19% /home /dev/ad0s1e 3.8G 1.5G 2.0G 44% /usr /dev/ad0s1d 965M 65M 823M 7% /var procfs 4.0K 4.0K 0B 100% /proc /dev/da0s1 244M 39M 205M 16% /udisk0 Copy lots of data with no problems. # umount /udisk0 ... remove device # dmesg umass1: at uhub0 port 1 (addr 2) disconnected (da0:umass-sim1:1:0:0): lost device (da0:umass-sim1:1:0:0): removing device entry umass1: detached I didn't quite understand the entries in sys/dev/usb/usbdevs as the PENTAX vendor ID appears as ASAHIOPTICAL. Is that the same company ?? I had to remove first quirk in umass.c as its Product ID is set to a wildcard! Don't know what that will break for anyone but I couldn't put my quirk entry in because the kernel would panic immediately. Diffs included below. DELL DVD drive: Added some quirks and it now works fine. Oddly, I don't have ehci in the kernel and the dvd drive gets about 2Mbytes per second transfer. DELL (Sony USB Floppy Drive) Couldn't work out this one out. It use to give this error before I added an entry to umass.c: umass0: Unsupported UFI command 0x35 (probe0:umass-sim0:0:0:0): Synchronsize cache failed, status == 0x6, scsi status == 0x0 (probe0:umass-sim0:0:0:0): Synchronsize cache failed, status == 0x6, scsi status == 0x0 (probe0:umass-sim0:0:0:0): Synchronsize cache failed, status == 0x6, scsi status == 0x0 Now it does the following: # dmesg umass0: Sony USB Floppy Drive, rev 1.10/5.01, addr 2 (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:29,0 (probe0:umass-sim0:0:0:0): Power on, reset, or bus device reset occurred (probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data) da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 but it appears to work fine. DIFFs: src/sys/dev/usb/usbdevs # diff usbdevs usbdevs.orig 353d352 < vendor ACCFAST 0x1011 AccFast 412,414d410 < /* AccFast products */ < product ACCFAST AFMP3 0x0001 AFMP3 Player < 485d480 < product ASAHIOPTICAL OPTIOS30 0x0019 Digical camera 1228d1222 < product SONY FDU 0x002d Sony USB Floppy Drive src/sys/dev/usb/umass.c # diff usbdevs usbdevs.orig 353d352 < vendor ACCFAST 0x1011 AccFast 412,414d410 < /* AccFast products */ < product ACCFAST AFMP3 0x0001 AFMP3 Player < 485d480 < product ASAHIOPTICAL OPTIOS30 0x0019 Digical camera 1228d1222 < product SONY FDU 0x002d Sony USB Floppy Drive # # # diff umass.c umass.c.orig 318,322d317 < { USB_VENDOR_ACCFAST, USB_PRODUCT_ACCFAST_AFMP3, RID_WILDCARD, < UMASS_PROTO_SCSI | UMASS_PROTO_BBB, < RS_NO_CLEAR_UA < }, < /* Hmm, this looks too all encompassing 326,333d320 < }, */ < { USB_VENDOR_ASAHIOPTICAL, USB_PRODUCT_ASAHIOPTICAL_OPTIOS30, RID_WILDCARD, < UMASS_PROTO_SCSI | UMASS_PROTO_BBB, < NO_QUIRKS < }, < { USB_VENDOR_DELL, PID_WILDCARD, RID_WILDCARD, < UMASS_PROTO_SCSI | UMASS_PROTO_BBB, < FORCE_SHORT_INQUIRY 452,455d438 < }, < { USB_VENDOR_SONY, USB_PRODUCT_SONY_FDU, RID_WILDCARD, < UMASS_PROTO_SCSI | UMASS_PROTO_BBB, < NO_INQUIRY src/sys/cam/scsi/scsi_da.c # diff scsi_da.c scsi_da.c.orig 321,341d320 < { < /* < * AccFast MP3 Player < */ < {T_DIRECT, SIP_MEDIA_REMOVABLE, "AccFast", "*", "*"}, < /* quirks */ DA_Q_NO_SYNC_CACHE|DA_Q_NO_PREVENT < }, < { < /* < * Pentax Optio S30 Digial Camera < */ < {T_DIRECT, SIP_MEDIA_REMOVABLE, "PENTAX", "DIGITAL_CAMERA", "*"}, < /* quirks */ DA_Q_NO_SYNC_CACHE < }, < { < /* < * Sony USB Floppy Drive < */ < {T_DIRECT, SIP_MEDIA_REMOVABLE, "SONY", "USB-FDU", "*"}, < /* quirks */ DA_Q_NO_SYNC_CACHE < }, Btw, this shell behaviour doesn't look right: speedy:$ pwd /home/pak speedy:$ ls -l /var total 40 drwx------ 2 root wheel 512 Sep 5 06:10 PaxHeader drwxr-xr-x 2 root wheel 512 Aug 28 09:27 account drwxr-xr-x 4 root wheel 512 Sep 5 06:10 at drwxr-x--- 2 root wheel 512 Sep 6 03:01 backups drwxr-x--- 2 root wheel 512 Sep 5 06:10 crash drwxr-x--- 3 root wheel 512 Sep 5 06:10 cron drwxr-xr-x 7 root wheel 512 Sep 5 08:56 db dr-xr-xr-x 2 root wheel 512 Aug 28 09:27 empty drwxrwxr-x 2 root games 512 Aug 29 07:33 games drwx------ 2 root wheel 512 Aug 28 09:27 heimdal drwxr-xr-x 4 root wheel 512 Sep 6 14:02 lib drwxr-xr-x 2 root wheel 1024 Sep 6 18:38 log drwxrwxr-x 2 root mail 512 Sep 6 03:02 mail drwxr-xr-x 2 daemon wheel 512 Sep 4 20:28 msgs drwxr-xr-x 2 root wheel 512 Aug 28 09:27 preserve drwxr-xr-x 4 root wheel 512 Sep 6 23:11 run drwxrwxr-x 2 root daemon 512 Aug 28 09:27 rwho drwxr-xr-x 9 root wheel 512 Sep 4 22:39 spool drwxrwxrwt 5 root wheel 512 Sep 6 23:13 tmp drwxr-xr-x 2 root wheel 512 Sep 5 06:10 yp speedy:$ cd /var/heimdal cd: can't cd to /var/heimdal speedy:$ pwd /var/heimdal speedy:$ /bin/pwd /home/pak I assume I am suppose to raise some PRs ?? which is a problem because I am off on a trip for the next month. 5.3 is looking really nice. I had planned on sticking with 4.10, but I might think about making all our customers upgrade their servers to 5.x later in the year. Paul. -- Paul Koch Chief Technology Officer, Statscout Pty Ltd paul.koch@statscout.com, +61 7 3211 7115 7fl / 300 Adelaide St, Brisbane, Qld, Australia