From owner-freebsd-current@FreeBSD.ORG Sat Jun 5 20:04:04 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 480D31065676 for ; Sat, 5 Jun 2010 20:04:04 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 04B9F8FC0C for ; Sat, 5 Jun 2010 20:04:03 +0000 (UTC) Received: from [127.0.0.1] (pooker.samsco.org [168.103.85.57]) (authenticated bits=0) by pooker.samsco.org (8.14.3/8.14.3) with ESMTP id o55K42xT086447; Sat, 5 Jun 2010 14:04:02 -0600 (MDT) (envelope-from scottl@samsco.org) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Scott Long In-Reply-To: Date: Sat, 5 Jun 2010 14:04:02 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Alexander Best X-Mailer: Apple Mail (2.1078) X-Spam-Status: No, score=-50.0 required=3.8 tests=ALL_TRUSTED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on pooker.samsco.org Cc: freebsd-current@freebsd.org Subject: Re: strange scsi/CAM related dmesg output X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 05 Jun 2010 20:04:04 -0000 On Jun 5, 2010, at 1:12 PM, Alexander Best wrote: > sure. sorry. >=20 > the output >=20 > ada0 at ahcich2 bus 0 scbus3 target 0 lun 0 > ada0: ATA-7 SATA 2.x device > ada0: 300.000MB/s transferscd0 at ata2 bus 0 scbus2 target 0 lun 0 > cd0: Removable CD-ROM SCSI-0 device > cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) > cd0: cd present [1944656 x 2048 byte records] > (SATA 2.x, UDMA6, PIO 8192bytes) > ada0: Command Queueing enabled > ada0: 238474MB (488395055 512 byte sectors: 16H 63S/T 16383C >=20 > should actually look like this: >=20 > ada0 at ahcich2 bus 0 scbus3 target 0 lun 0 > ada0: ATA-7 SATA 2.x device > ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > cd0 at ata2 bus 0 scbus2 target 0 lun 0 > cd0: Removable CD-ROM SCSI-0 device > cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) > cd0: cd present [1944656 x 2048 byte records] > ada0: Command Queueing enabled > ada0: 238474MB (488395055 512 byte sectors: 16H 63S/T 16383C >=20 > cheers. >=20 >=20 The attribute print code in /sys/cam/ata/ata_xpt.c purposely prints a = partial line without a , with the expectation that the rest will be = printed immediately after it. It probably gets interrupted to print the = other device detection; I thought that all of this got single-threaded = through the camisr, but maybe not. Anyways, the quick fix is to print = these attributes into a sprintf buffer first, then splat that buffer out = once its complete. Scott