From owner-freebsd-scsi@FreeBSD.ORG Mon Jan 16 11:02:50 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F416616A420 for ; Mon, 16 Jan 2006 11:02:49 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1DAE43D7D for ; Mon, 16 Jan 2006 11:02:40 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0GB2e2s085002 for ; Mon, 16 Jan 2006 11:02:40 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0GB2djh084996 for freebsd-scsi@freebsd.org; Mon, 16 Jan 2006 11:02:39 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 16 Jan 2006 11:02:39 GMT Message-Id: <200601161102.k0GB2djh084996@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2006 11:02:50 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/05/03] kern/27059 scsi [sym] SCSI subsystem hangs under heavy lo o [2001/06/29] kern/28508 scsi problems with backup to Tandberg SLR40 st o [2002/06/17] kern/39388 scsi ncr/sym drivers fail with 53c810 and more o [2002/07/22] kern/40895 scsi wierd kernel / device driver bug o [2003/05/24] kern/52638 scsi [panic] SCSI U320 on SMP server won't run s [2003/09/30] kern/57398 scsi [mly] Current fails to install on mly(4) o [2003/12/26] kern/60598 scsi wire down of scsi devices conflicts with o [2003/12/27] kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C81 s [2004/01/10] kern/61165 scsi [panic] kernel page fault after calling c o [2004/12/02] kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5 o [2005/06/04] kern/81887 scsi [aac] Adaptec SCSI 2130S aac0: GetDeviceP o [2005/12/12] kern/90282 scsi [sym] SCSI bus resets cause loss of ch de 12 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/12/06] kern/23314 scsi aic driver fails to detect Adaptec 1520B o [2002/02/23] kern/35234 scsi World access to /dev/pass? (for scanner) o [2002/06/02] kern/38828 scsi [feature request] DPT PM2012B/90 doesn't o [2002/10/29] kern/44587 scsi dev/dpt/dpt.h is missing defines required o [2003/10/01] kern/57469 scsi [scsi] [patch] Quirk for Conner CP3500 o [2005/01/12] kern/76178 scsi [ahd] Problem with ahd and large SCSI Rai 6 problems total. From owner-freebsd-scsi@FreeBSD.ORG Fri Jan 20 20:00:01 2006 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.org Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 417C416A420; Fri, 20 Jan 2006 20:00:01 +0000 (GMT) (envelope-from nate@root.org) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id D655E43D68; Fri, 20 Jan 2006 19:59:59 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.53] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id k0KJxeVK028564 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 20 Jan 2006 11:59:41 -0800 Message-ID: <43D14144.3050808@root.org> Date: Fri, 20 Jan 2006 12:00:04 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marcus Alves Grando References: <20060120192131.4B0D916A44F@hub.freebsd.org> In-Reply-To: <20060120192131.4B0D916A44F@hub.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@FreeBSD.org Subject: Re: cvs commit: src/sys/cam/scsi scsi_da.c X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2006 20:00:01 -0000 Marcus Alves Grando wrote: > mnag 2006-01-20 19:21:15 UTC > > FreeBSD src repository (ports committer) > > Modified files: (Branch: RELENG_6) > sys/cam/scsi scsi_da.c > Log: > MFC: src/sys/cam/scsi/scsi_da.c 1.184 > > Allow to use Time DPA20B 1GB MP3 Player [1] > Allow to use Qware BeatZkey! Pro [2] > > PR: usb/81846 [1], usb/79164 [2] > Submitted by: Ruben de Groot [1], Radek Kozlowski [2] > Approved by: njl (implict) > > Revision Changes Path > 1.180.2.3 +16 -0 src/sys/cam/scsi/scsi_da.c It looks like we have another quirk proliferation problem that should be solved at the architectural level. Does anyone have an idea if we can do something simpler than just disabling SYNC_CACHE completely? I have a theory that Windows only does SYNC_CACHE in the final close of a USB device. So a very simple implementation in the USB device firmware: switch (cmd) case SYNC_CACHE: write_nonvolatile(); while (1) ; The problem may be that we are calling SYNC_CACHE at a time before final close. If someone could test that a broken device works if we change this behavior, we could come up with an architectural fix. Perhaps, change umass to filter out SYNC_CACHE but send it at final device close. Although, since we don't have the device_eject() method currently, there may be no way to send it at final close. If this is the case, we should just make umass disable SYNC_CACHE for all devices. -- Nate