From owner-freebsd-current@FreeBSD.ORG Wed Aug 28 19:42:59 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BB61F39A; Wed, 28 Aug 2013 19:42:59 +0000 (UTC) (envelope-from vsityz@gmail.com) Received: from mail-ee0-x234.google.com (mail-ee0-x234.google.com [IPv6:2a00:1450:4013:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 120F82280; Wed, 28 Aug 2013 19:42:58 +0000 (UTC) Received: by mail-ee0-f52.google.com with SMTP id c41so3148234eek.39 for ; Wed, 28 Aug 2013 12:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=e6yXnJ8/HV0g1ccgzOsLTDMJhPas87wy9jCXAVI53i0=; b=ODZfN/jeSJuKlU9CWgPIh3lXDHsJbCqHqtmEQs1KQor5YD991jxynNyXzEbckbIxcA mAEnPptu7a91KFDC7sF45h9I09gEuHMa9kStcYnV3qQ83uRwSlCC0Csweq2ibbQJEoHH K9qZReytFKaVVWTF61r+y4TRU5I8JHMg08w0ilri/3bSlzWvTsfvRln4tZMlFFEHfcHV 1HE3Qb5VED4F7RZamNFvBTI1sVWgRfwluHBS3etGNZ6oV7Ibag7Lb0nEVyKmtIUW4cKa a7dfLhuCfR8+3yRQiBdBNaIzn0Zg1PGO+X5gspIUvny1eeA52NoNmX1StpuRamaG80y6 4caw== X-Received: by 10.14.127.4 with SMTP id c4mr4731679eei.61.1377718977267; Wed, 28 Aug 2013 12:42:57 -0700 (PDT) Received: from scorpion.kiev.ua ([130.180.220.174]) by mx.google.com with ESMTPSA id r48sm40071206eev.14.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 12:42:56 -0700 (PDT) Message-ID: <521E52BB.1050001@gmail.com> Date: Wed, 28 Aug 2013 22:42:51 +0300 From: Alexander Panyushkin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130811 Thunderbird/17.0.8 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: USB no proper work References: <520E8602.5050408@gmail.com> <520E8842.4020609@bitfrost.no> <520E8DE1.1090609@gmail.com> <520F16B6.1070106@bitfrost.no> <520FA7C3.2060708@FreeBSD.org> <520FF137.1020709@gmail.com> <520FF37D.6050002@bitfrost.no> <521277DB.4010200@gmail.com> <521278BC.5010009@bitfrost.no> In-Reply-To: <521278BC.5010009@bitfrost.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Alexander Motin , FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Wed, 28 Aug 2013 19:42:59 -0000 19.08.2013 22:57, Hans Petter Selasky пишет: > On 08/19/13 21:54, Alexander Panyushkin wrote: >> 18.08.2013 01:04, Hans Petter Selasky пишет: >>> On 08/17/13 23:55, Alexander Panyushkin wrote: >>>> 17.08.2013 19:41, Alexander Motin пишет: >>>>> On 17.08.2013 09:22, Hans Petter Selasky wrote: >>> >>>> >>>> On USB device FAT-32 file system. When I removed flash drive, the >>>> file >>>> system has been unmounted. >>> >>> Hi, >>> >>> The problem might be in the GELI module then. Did you test that >>> Alexander ? >>> >>> Aug 16 23:23:43 scorpion kernel: GEOM_ELI: Device gpt/swap0.eli >>> created. >>> Aug 16 23:23:43 scorpion kernel: GEOM_ELI: Encryption: AES-XTS 128 >>> Aug 16 23:23:43 scorpion kernel: GEOM_ELI: Crypto: software >>> >>> Hint: You can set the following knob to disable the USB waiting at >>> reboot. >>> >>> hw.usb.no_shutdown_wait=1 >>> >> If set hw.usb.no_shutdown_wait = 1 >> Reboot successful, but if detach and attach again, USB device not >> detecting. > > This test is an indication that the USB stack is waiting for the CAM > layer to finish detaching its clients. Maybe you can turn on cam > debugging to figure out who is leaking a ref. Alexander Motin knows how. > > --HPS > Hi This is debug information ugen3.4: at usbus3 umass0: on usbus3 da0 at umass-sim0 bus 0 scbus8 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 7580MB (15523840 512 byte sectors: 255H 63S/T 966C) da0: quirks=0x2 (noperiph:umass-sim0:0:0:0): debugging flags now 1 (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (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): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) (da0:umass-sim0:0:0:0): Error 22, Unretryable error (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (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): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) (da0:umass-sim0:0:0:0): Error 22, Unretryable error (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (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): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) (da0:umass-sim0:0:0:0): Error 22, Unretryable error (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (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): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) (da0:umass-sim0:0:0:0): Error 22, Unretryable error (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (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): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) (da0:umass-sim0:0:0:0): Error 22, Unretryable error (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (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): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) (da0:umass-sim0:0:0:0): Error 22, Unretryable error (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (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): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) (da0:umass-sim0:0:0:0): Error 22, Unretryable error (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (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): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) (da0:umass-sim0:0:0:0): Error 22, Unretryable error (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (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): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) (da0:umass-sim0:0:0:0): Error 22, Unretryable error (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (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): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) (da0:umass-sim0:0:0:0): Error 22, Unretryable error (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (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): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) (da0:umass-sim0:0:0:0): Error 22, Unretryable error (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (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): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) (da0:umass-sim0:0:0:0): Error 22, Unretryable error ugen3.4: at usbus3 (disconnected) umass0: at uhub5, port 5, addr 4 (disconnected) (pass3:umass-sim0:0:0:0): Periph invalidated (sg0:umass-sim0:0:0:0): Periph invalidated (da0:umass-sim0:0:0:0): Periph invalidated (da0:umass-sim0:0:0:0): lost device - 0 outstanding, 2 refs (pass3:umass-sim0:0:0:0): Periph destroyed