From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.132.183.28; helo=mx1.redhat.com; envelope-from=kraxel@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E33542194EB78 for ; Tue, 19 Feb 2019 00:49:18 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C61C481F33; Tue, 19 Feb 2019 08:49:17 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-228.ams2.redhat.com [10.36.116.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 816475D706; Tue, 19 Feb 2019 08:49:17 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 6B468A113; Tue, 19 Feb 2019 09:49:16 +0100 (CET) Date: Tue, 19 Feb 2019 09:49:16 +0100 From: Gerd Hoffmann To: Laszlo Ersek Cc: Ray Ni , qemu devel list , edk2-devel-01 , Markus Armbruster Message-ID: <20190219084916.yinhlryf4sgx7t5p@sirius.home.kraxel.org> References: MIME-Version: 1.0 In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 19 Feb 2019 08:49:17 +0000 (UTC) Subject: Re: nonzero LUN on USB Bulk Only Transfer fails with QEMU+edk2 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2019 08:49:19 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, > (2) If I change the cmdline to "lun=5", then the exchange is: Not supported (by the usb protocol). The protocol has a control message to query the number of devices (grep for GetMaxLun in qemu). LUNs are not allowed to be sparse. So, with a single storage device the LUN must be zero. With two devices the LUNs must be 0,1, with three 0,1,2 etc., you get the idea :) Maybe usb-bot should check for that and throw an error, I think right now we only have the generic scsi code check which will verify the lun isn't too big (<= 15) but will not check the non-sparse requirement. cheers, Gerd