From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 47A822194235A for ; Sun, 9 Apr 2017 21:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491799726; x=1523335726; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=jlXRE5ln10lPkW8e/BQMCMKwZhawaaZqQ0gH1IeegPc=; b=D/HgASDeOM2Htd3s578hbTv7W5/97pL9H8VJy2rY8w0wyQbvaw+eiBBL zHPVHM9QQNi09r1yu55DPuYaXHQzUA==; Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Apr 2017 21:48:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,180,1488873600"; d="scan'208";a="1117627561" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 09 Apr 2017 21:48:45 -0700 Received: from fmsmsx124.amr.corp.intel.com (10.18.125.39) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 9 Apr 2017 21:48:45 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx124.amr.corp.intel.com (10.18.125.39) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 9 Apr 2017 21:48:45 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.193]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.224]) with mapi id 14.03.0319.002; Mon, 10 Apr 2017 12:48:41 +0800 From: "Tian, Feng" To: Vladimir Olovyannikov , "edk2-devel@lists.01.org" CC: "Tian, Feng" Thread-Topic: [edk2] Using USB-Ethernet adapter in UEFI on an arm64 platform Thread-Index: AdKv0gCxbDA0t89kRG2lVZbbetx1aQB4pVlg Date: Mon, 10 Apr 2017 04:48:40 +0000 Message-ID: <7F1BAD85ADEA444D97065A60D2E97EE5699E345F@SHSMSX101.ccr.corp.intel.com> References: <4adbd13b509299cf2a0fd734c0c901f0@mail.gmail.com> In-Reply-To: <4adbd13b509299cf2a0fd734c0c901f0@mail.gmail.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: Using USB-Ethernet adapter in UEFI on an arm64 platform X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2017 04:48:46 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Vladimir, Which usb2lan driver you are using for AX88772 adpater? The one in OptionRo= mPkg\Bus\Usb\UsbNetworking has bug on the polling performance. The one in O= ptionRomPkg\Bus\Usb\UsbNetworking\Ax88772b is better but if there is no dat= a received, the polling operation still wastes some time. The root cause about the low performance of polling is because USB spec doe= sn't clearly define which value should be returned if user requests Bulk Re= ad operation but there is no data. Some data-streaming usb devices, such as= Realtek usb2lan, return success with data length setting to 0, but others,= such as AX88772, just keep active and wait for data always. From BIOS view= , we have to return EFI_TIMEOUT for latter case to avoid system hang. That'= s why you see the low performance for polling operation in no-data case.=20 Thanks Feng -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Vlad= imir Olovyannikov Sent: Saturday, April 8, 2017 3:06 AM To: edk2-devel@lists.01.org Subject: [edk2] Using USB-Ethernet adapter in UEFI on an arm64 platform Hi, I would like to enable Ethernet using USB-Ethernet AX88772 adapter in the U= EFI on an armv8 arm64 platform. Ethernet polling is done by MnpPoll() periodically. This creates a burden o= n the system so that UEFI boots in 1 minute to the Shell due to receive pol= ling. The USB operation is very resource expensive which causes UEFI to choke up. There is DisableBackgroundPolling option in the EFI_MANAGED_NETWORK_CONFIG_= DATA structure, but it is turned off by all other drivers (DNSDxe, Ip4Dxe, = ArpDxe...). Can anybody advise what I could do? Mass storage/keyboard/etc. all work fine... Thank you, Vladimir _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel