From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.web11.96907.1673327241334848966 for ; Mon, 09 Jan 2023 21:07:21 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@quicinc.com header.s=qcppdkim1 header.b=F/h4GB/r; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: quicinc.com, ip: 205.220.168.131, mailfrom: quic_rcran@quicinc.com) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30A3q8qp010861; Tue, 10 Jan 2023 05:07:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=4fmK+ka89jy0ocoIxSgW6vosqQ4HDffesQKOk6fZwto=; b=F/h4GB/rB0gTs1KGp5fSnpAexwUn2FcSbOg5sj1ZQVsblKfo3e9aZHYYBgOujZW31jV1 E5g0QgG04nPmsuQI1AuWMGbNkeWBHZRY4hhgyFfNokTgNtcuGvodsXbJ/OlcTA3d/RlT NBK8SaXHuBjxSR9F6T8s3n1uhdGybu1tIHAOu2Zbn+juijUjGoKXJ6CcttCUP8P91cXA rGA2+H1TACnvE4gvkCtErGDExeNuCvTP5H3KOOyIg6aENEkRABMgjtYp+RX9bbUIt/iJ owBCRYSylcFmYGFxgiOOpuquMU4TjhclqNpK7OOHlp+xOeu6hON7QTx2THVIeuwyA//M QQ== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3my1wu4qtg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Jan 2023 05:07:18 +0000 Received: from nasanex01b.na.qualcomm.com (corens_vlan604_snip.qualcomm.com [10.53.140.1]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30A57I9v013995 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Jan 2023 05:07:18 GMT Received: from [10.110.12.52] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 9 Jan 2023 21:07:17 -0800 Message-ID: <975ac4fc-838e-7cd5-1663-41af227d8da6@quicinc.com> Date: Mon, 9 Jan 2023 22:07:16 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [edk2-devel] [PATCH 1/3] UsbNetworkPkg/UsbRndis: Add USB RNDIS devices support To: , , =?UTF-8?B?UmljaGFyZEhvIFvkvZXmmI7lv6Bd?= References: <1271.1673174497155150644@groups.io> From: "Rebecca Cran" In-Reply-To: <1271.1673174497155150644@groups.io> X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: AzuG4qCM3O6swIvS7B_obdr0OYgrBIx0 X-Proofpoint-GUID: AzuG4qCM3O6swIvS7B_obdr0OYgrBIx0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-10_01,2023-01-09_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 malwarescore=0 clxscore=1011 mlxscore=0 priorityscore=1501 impostorscore=0 spamscore=0 lowpriorityscore=0 phishscore=0 suspectscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301100032 X-MIME-Autoconverted: from 8bit to quoted-printable by mx0a-0031df01.pphosted.com id 30A3q8qp010861 Content-Language: en-US Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable You might still be using the Metronome driver from EmbeddedPkg instead=20 of MdeModulePkg. That will for example cause gBS->Stall to take much=20 longer than it should. --=20 Rebecca Cran On 1/8/23 03:41, tinhnguyen via groups.io wrote: > Hi RichardHo, >=20 > This driver has interested me. > I've ported your driver to tinh_ampere_edk2=20 > =C2=A0and=20 > tinh_ampere_edk2_platform=20 > . > I'm having the same issue with our USB CDC ECM driver, which we've=20 > already published here Ampere USB CDC Net=20 > . > That is a bug in polling performance; we also have a thread with the=20 > same issue USB Net for Aarch64 platform=20 > >=20 > Currently, on the Jade platform (use your USB net driver), performance=20 > is quite low and the OS cannot be booted. >=20 > The root cause is that we spend a long time waiting for USB=20 > UsbBulkTransfer to complete, but if there is no data to communicate > -> it will always time out. >=20 > I have no idea why the polling time of MNP is 10 ms > #defineMNP_SYS_POLL_INTERVAL(10 * TICKS_PER_MS)// 10 milliseconds, > But I don't see why it should be changed; it could have some unexpected= =20 > consequences for other platforms. >=20 > I have a workaground for Ampere usb net driver: /I include a function=20 > like "filter," "slow down," or something similar. If there are a lot of= =20 > transaction timeouts, I reject some income requests from the upper=20 > layer. I've already tried it on your driver /tinh_ampere_edk2=20 > /, and it works = ./ > / > /Anyway, hope you can solve this problem; I think many platforms are=20 > experiencing the same issue. >=20 > Thanks, > Tinh Nguyen >=20 >=20