From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.70]) by mx.groups.io with SMTP id smtpd.web10.33774.1676948505657046326 for ; Mon, 20 Feb 2023 19:01:46 -0800 Authentication-Results: mx.groups.io; dkim=fail, err=mail: missing word in phrase: charset not supported: "big5"; spf=pass (domain: ami.com, ip: 40.107.92.70, mailfrom: richardho@ami.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BR1FDETZ3HOINQPN3mtPF7/EcD5sXHmzPXqzXgqiuHP/sdTvHYSaYBAbKvrVmltDnCYswusWFSV8pA9ZosQ6DBgz1nwNO7AdP6Z3JPeIwhpPPF8MdK2AdFXMZlVd8ahYwZ1XtVLp16u8bsK/pcb6Nfqt6mWUgktuAWMAE4YNz96rt4X4842G2kDvu/TWR5YG5fUJwpViefkcXdu91sfzhpNrA7JiErhT2irCa8mJFxJwVkd4hdlL157oWcDwU43QLPhDp8cXRz5hushOQCTrA8ab4HLQg0V+GAZ6GVAOuU6Bz3cgJt57Zi62lhJzOXC9jAfW9bY9PbDxGdNXQAv2PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UuLZzCz5dngvh7B3FZslZLXCrJaulHAQYQL4klj9+Qw=; b=FtxYl+WhRSWy2AD/cEG9vtkG6pJll7ouQ5Sd8Ut6UPXxi/B9BmY9Yx56cvXZ55dah03Wbh4KmqluR6JD7avPT54lXiPFglMBeK6eKv+NlehTguQIsx01zJSVHzveuxTNi1cwLOx0lCNeJKcTNENqe2CR9JLQaU0DDmPg3uMgTZqjVYn515OvK+VoN5eh9N//+VrRPJmvawbb2h7ngaGm5vqqJzPy7P2ysAghNqcICouUlUy3IyQJB8P60rKA2h74hf74OerRybWLjykUEENvMT+BNvqYzxtZ8AqoFG1+a+hefwEIHGVC0zBLMnpR7GvVh1yShJTzgPaegatvEdU7jQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ami.com; dmarc=pass action=none header.from=ami.com; dkim=pass header.d=ami.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ami.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UuLZzCz5dngvh7B3FZslZLXCrJaulHAQYQL4klj9+Qw=; b=icGQmWta1NERByLFnh3OK6ntIbME7qWI0o5NhL655Fic+arBlsFfxNVHpJVfvrmDlAFDkKjDsZWp63DNY0L2xd8BQN07rFPL1bxjFjw0o2GDDKLeDACBJOkrJsz4+BGlCM0oxqhJZ0GciQKL+pJVWS3FbSxLmS+KshpkALmmZJ0= Received: from CY8PR10MB6441.namprd10.prod.outlook.com (2603:10b6:930:63::16) by BL3PR10MB6187.namprd10.prod.outlook.com (2603:10b6:208:3be::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.12; Tue, 21 Feb 2023 03:01:42 +0000 Received: from CY8PR10MB6441.namprd10.prod.outlook.com ([fe80::7b59:85c6:a3d0:1921]) by CY8PR10MB6441.namprd10.prod.outlook.com ([fe80::7b59:85c6:a3d0:1921%6]) with mapi id 15.20.6134.016; Tue, 21 Feb 2023 03:01:42 +0000 From: =?UTF-8?B?UmljaGFyZEhvIFvkvZXmmI7lv6Bd?= To: Tinh Nguyen OS , "devel@edk2.groups.io" CC: =?big5?B?VG9ueSBMbyAow7mq96pRKQ==?= , Felix Polyudov , Srini Narayana , Harikrishna Doppalapudi , Dos Hsieh Subject: Re: [edk2-devel] [PATCH v4 1/3] UsbNetworkPkg/UsbRndis: Add USB RNDIS devices support Thread-Topic: [EXTERNAL] Re: [edk2-devel] [PATCH v4 1/3] UsbNetworkPkg/UsbRndis: Add USB RNDIS devices support Thread-Index: AQHZQ34SK8qTUvG2GEyIwgXD7WF6Xa7YsAGAgAAFRnA= Date: Tue, 21 Feb 2023 03:01:41 +0000 Message-ID: References: <20230218094743.358-1-richardho@ami.com> <2e170b3a-0822-9e13-bbf1-15c99d646d78@amperemail.onmicrosoft.com> In-Reply-To: <2e170b3a-0822-9e13-bbf1-15c99d646d78@amperemail.onmicrosoft.com> Accept-Language: zh-TW, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ami.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CY8PR10MB6441:EE_|BL3PR10MB6187:EE_ x-ms-office365-filtering-correlation-id: 816ce4f8-59c2-469e-7890-08db13b7f53b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oJM+mjpakIJNWaJNCjYj5KO9qXFI/LHqiZRWiFHcoOzZWyLNauuFq25pug7LpfONKpTfUAGKHFcZ2IwuyHJe5s23K/OwYmZpSJ6mmcIlOUJpi+VI9cjU50vIfePEBhchM/FkZLjWguIwoPfRpECXrZHJRNyLtAClNZjuKojXI4k0mjIBySMhnw75D2kqQ6DW6PjzE4tSdvm3nkJMsrEAjd/VosRflO2W5Rp9O/4TBIDS6FmFQ1pIHIbt9TG9uTWwv0q4rtE+RwHqI8gMU1yBk0uYMGUsHxxgIsJLrViVjPms7Vd32Wni6mrwxXLG5qzfCqvDTjKT1KhdcJEK2oKduYkoJRKpVYxgt10AnBjcbIT92UCHf8dvZSHoVRPlM+rHiwtjba07cqgbrRDmXwzeDNeb5sLut1mUPewkxjtdy/+8hZDr+Ytt0KT+KWQbfvOqwwj2nRJWUe6qsV9mbD9zxmPCfiGV3RVmjgnFbCgUamsAAR+fLxlP/0/JiiDpW4pd6b3skHMG3qCQsFFCHKfYLUwCqB3QQXSO+KrarfoEIK3gwEV3eQV8i+JfoFXIwV4s8ELNvogy1Tk+helR/2d1yTSXdOCYZXv7SUzu2svgm9w3v/VU1pCY8qWMQSrSg5Zs3wjfFquqkKJ6+qG9kUSzhKjb1FINWWHtCJd5kd8ws8+Prz4rDeJa2/ws5aeqLfdDQcSGTFcpOaVE9hnE4AOeVdJIXBp9CbRmRz0StHuDX1Q= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY8PR10MB6441.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(396003)(39850400004)(346002)(366004)(136003)(376002)(451199018)(4326008)(66946007)(76116006)(66476007)(66446008)(5660300002)(8676002)(122000001)(38100700002)(64756008)(66556008)(38070700005)(54906003)(8936002)(52536014)(6506007)(40140700001)(33656002)(53546011)(9326002)(86362001)(41300700001)(316002)(55016003)(166002)(83380400001)(110136005)(2906002)(71200400001)(26005)(7696005)(9686003)(186003)(478600001)(966005)(85182001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?big5?B?SGU1dW1Ec2dDWWhQY2U1M3RmeHRQaEp5R3VIL2tucHJBM3U0UHk4WC92R1dlWjQ0?= =?big5?B?S3RRQlNlWWFWVklJTVM1YzZPdi9tM2E1WnhnNmxWRlBkeVJjaFd0Q1ZTTFZpajZh?= =?big5?B?aFRQTXRBYWdhZVE3WWVxZzhLWDRvbWdaUVp4WlNCNUVuTlczaFcvNTIzVitYdCtF?= =?big5?B?N3JiRnNLdEVic0xYM1VzMjlPempwd2VhT3pXMEtaYjZ0cnB5MERpZ2d5eW51Sll3?= =?big5?B?bkZ4VGJLWnp5NC9CSnZieU11T0ZyZmw2aXNkMVl5Smg3SGZOaVN4UXdmVWhpN2dH?= =?big5?B?SWZlWk9aNTloS2tFbWNIOEJMd3lSQlArSzFiaWNlTHl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?= =?big5?B?UnVjN3VrOHBxTzhHWnpBeFlmTWhDc1IrZnhSSlZhejZGR25YR2hMSTNWeDJZK2Vq?= =?big5?B?cFlIY3VDcUZuZ0hhR1BiTVVHdExVOWhRTzBhRCtVZEk1ekEzNi9PY2ttRkNrWEhL?= =?big5?B?WEQ4NG9RWnFHcmdSNTFvYmNPUzdDN2NrZjdGaG5OTzhwUGFPZXBPYVdWRXVQU1cx?= =?big5?B?MzVyMGVydjdab1hBN3FDU3o1SjQ4c2pUSFZ3UGo1OU91aFkwUkpJbitycllWdmdH?= =?big5?B?S1B4aGRpb1N4T2NYcnRPS2VRdVlWdzhCZU04RENPQldSNGxjVmVtbzMxRDFHOTRE?= =?big5?B?allIblVRQXcxZnpwVW1BUEp4MytITFk5QkFNWDF2M2d6N0pGZnRFKzd6ZVNBS0Q4?= =?big5?B?SmNCMU9zYTIzYkNUL0JKZmZudTRhZFB6SUNwWFJNUlIzZXo2dGpldTNwTmlMeDI4?= =?big5?B?bkxNMU0vT3N5TTRYYnRXQTBiMVlhSUw3RDNlemd5MXBjM0lvZS9UL3BMUXVGazhP?= =?big5?B?QnFGSG1tSmlJMmtYWTFJQVFHYUUyOVVoa2YrSzNUZEtuT1pNRDkyT1YwYkduNGdH?= =?big5?B?aXlJdmZJUFd5M2YrWXF2K3E5aTltQWp0SndJUkIzS2NpemNxUVYrNmVSVVg2ajda?= =?big5?B?LzRQNUtxU3p1dm9hM1llVHdZM1hrem5YTlZJd1p1NFVyemNvMDR2WGVzak9LMzJa?= =?big5?B?U0pyNms2aWNUbC81MXpwUXZEd1pwQXEzeHIzNXkrUTNWbkMzajkyak5pbGl3aGdV?= =?big5?B?YVpnemNtdkN3Sy9VN2hrblVZUlgwcVEyZzNQY2ozNjJMUzB6WmNMZXVjRWVUTms2?= =?big5?Q?uSzVp3xAyv5aCbfk?= MIME-Version: 1.0 X-OriginatorOrg: ami.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY8PR10MB6441.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 816ce4f8-59c2-469e-7890-08db13b7f53b X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2023 03:01:41.7159 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 27e97857-e15f-486c-b58e-86c2b3040f93 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: XA6cIZtq0j1ll6l9TmcjEFtwrZxSxpoLbWJODgZqSS/rd5SN+y+JtREThdV6PRB+Ci8dpKb74hgJ6yV+dAVSug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR10MB6187 Content-Language: zh-TW Content-Type: multipart/alternative; boundary="_000_CY8PR10MB644167959900C7CD0D6C68D4B0A59CY8PR10MB6441namp_" --_000_CY8PR10MB644167959900C7CD0D6C68D4B0A59CY8PR10MB6441namp_ Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: base64 SGkgVGluaCwNCg0KT3VyIGxhc3QgUk5ESVMgZHJpdmVyoaZzIGNvZGUgaGFzIGFkZCB0aGF0Lg0K VG8gc2VlIGh0dHBzOi8vbGVhcm4ubWljcm9zb2Z0LmNvbS9lbi11cy93aW5kb3dzLWhhcmR3YXJl L2RyaXZlcnMvbmV0d29yay9jb250cm9sLWNoYW5uZWwtY2hhcmFjdGVyaXN0aWNzPGh0dHBzOi8v bmFtMTIuc2FmZWxpbmtzLnByb3RlY3Rpb24ub3V0bG9vay5jb20vP3VybD1odHRwcyUzQSUyRiUy RmxlYXJuLm1pY3Jvc29mdC5jb20lMkZlbi11cyUyRndpbmRvd3MtaGFyZHdhcmUlMkZkcml2ZXJz JTJGbmV0d29yayUyRmNvbnRyb2wtY2hhbm5lbC1jaGFyYWN0ZXJpc3RpY3MmZGF0YT0wNSU3QzAx JTdDUmljaGFyZEhvJTQwYW1pLmNvbSU3QzRlZGJjNjYzNjBmYTQ5MzZkO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ID0gR0VUX0VOQ0FQU1VMQVRFRF9SRVNQT05TRTsNCg0KLVRoZSBpbmZvcm1hdGlvbiBj b250YWluZWQgaW4gdGhpcyBtZXNzYWdlIG1heSBiZSBjb25maWRlbnRpYWwgYW5kIHByb3ByaWV0 YXJ5IHRvIEFtZXJpY2FuIE1lZ2F0cmVuZHMgKEFNSSkuIFRoaXMgY29tbXVuaWNhdGlvbiBpcyBp bnRlbmRlZCB0byBiZSByZWFkIG9ubHkgYnkgdGhlIGluZGl2aWR1YWwgb3IgZW50aXR5IHRvIHdo b20gaXQgaXMgYWRkcmVzc2VkIG9yIGJ5IHRoZWlyIGRlc2lnbmVlLiBJZiB0aGUgcmVhZGVyIG9m IHRoaXMgbWVzc2FnZSBpcyBub3QgdGhlIGludGVuZGVkIHJlY2lwaWVudCwgeW91IGFyZSBvbiBu b3RpY2UgdGhhdCBhbnkgZGlzdHJpYnV0aW9uIG9mIHRoaXMgbWVzc2FnZSwgaW4gYW55IGZvcm0s IGlzIHN0cmljdGx5IHByb2hpYml0ZWQuIFBsZWFzZSBwcm9tcHRseSBub3RpZnkgdGhlIHNlbmRl ciBieSByZXBseSBlLW1haWwgb3IgYnkgdGVsZXBob25lIGF0IDc3MC0yNDYtODYwMCwgYW5kIHRo ZW4gZGVsZXRlIG9yIGRlc3Ryb3kgYWxsIGNvcGllcyBvZiB0aGUgdHJhbnNtaXNzaW9uLg0K --_000_CY8PR10MB644167959900C7CD0D6C68D4B0A59CY8PR10MB6441namp_ Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable

Hi Tinh,

 =

Our last RNDIS driver=A1= =A6s code has add that.

To see https://learn.microsoft.com/en-us/windows-hardware/drivers/network/control-= channel-characteristics,

It need to read the= Interrupt IN endpoint before response the RNDIS message.=

 

The host does not continuously poll = the USB Control endpoint for input control messages. Upon placing a control= message

on its Control endpoint, the device must retu= rn a notification on the Communication Class interface's Interrupt IN endpo= int,

which is polled by the host whenever= the device can return control messages. The transfer from the device's int= errupt IN endpoint

to the host is a standard USB Interr= upt IN transfer. The only defined device notification is the RESPONSE_AVAIL= ABLE notification,

defined in the following table.

 =

 =

 =

Thanks,

Richard

 =

From: Tinh Nguyen OS <tinhnguyen@os.amperecomputing.co= m>
Sent: 2023=A6~2=A4= =EB21=A4=E9 10:24 AM
To: devel@edk2.groups.io; Richard Ho (
=A6=F3=A9=FA=A9=BE
) <RichardHo@ami.com>
Subject: [EXTERNAL] Re: [edk2-devel] [PATCH v4 1/3] UsbNetworkPkg/Us= bRndis: Add USB RNDIS devices support

 

 

**CAUTION: The e-mail below is from an external source. Please exerc= ise caution before opening attachments, clicking links, or following guidance.**

 

On 18/02/2023 16:47, RichardHo [= =A6=F3=A9=FA=A9=BE] via groups.io wrote:

 
+  PrintRndisMsg (RndisMsg);
+
+  Status =3D UsbIo->UsbControlTransfer (
+           &nb=
sp;        UsbIo,
+           &nb=
sp;        &DevReq,
+           &nb=
sp;        EfiUsbDataOut,
+           &nb=
sp;        USB_ETHERNET_TRANSFER_TIMEOUT=
,
+           &nb=
sp;        RndisMsg,
+           &nb=
sp;        RndisMsg->MessageLength,
+           &nb=
sp;        &UsbStatus
+           &nb=
sp;        );
+
+  DEBUG ((DEBUG_INFO, "RndisControlMsg: UsbStatus : %x Stat=
us : %r RndisMsgResponse : %lx\n", UsbStatus, Status, RndisMsgResponse=
));
+
+  // Error or no response expected
+  if ((EFI_ERROR (Status)) || (RndisMsgResponse =3D=3D NULL)) {<=
o:p>
+    DEBUG ((DEBUG_INFO, "RndisControlMsg: UsbStat=
us : %x Status : %r\n", UsbStatus, Status));
+    return Status;
+  }
+
+  for (Index =3D 0; Index < (RNDIS_CONTROL_TIMEOUT/100); Inde=
x++) {
+    ReadRndisResponseInterrupt (UsbRndisDevice);<=
/o:p>

Could you help review the ReadRndisResponseInterrupt function? (). While= using USB Rndis, the Jade platform crashes.

I found that AMI had published the same driver here OSF-Aptio-OpenEdition/UsbRndisFunction.c at main =A1P opencomputeproject/OS= F-Aptio-OpenEdition (github.com),

however the RndisControlMsg function does not call ReadRndisResponseInte= rrupt.

Jade platform (aarch64) works well with this (OSF-Aptio-OpenEdition/UsbRndis= Function.c at main =A1P opencomputeproject/OSF-Aptio-OpenEdition (github.com)). D= oes your x86 system work without this line ?

+    ZeroMem (&DevReq, sizeof (EFI_USB_DEVICE_REQUE=
ST));
+
+    DevReq.RequestType =3D USB_ENDPOINT_DIR_IN | USB_R=
EQ_TYPE_CLASS | USB_TARGET_INTERFACE;
+    DevReq.Request     =3D GET_ENC=
APSULATED_RESPONSE;
-The information contained in this message may be confidential and propriet= ary to American Megatrends (AMI). This communication is intended to be read= only by the individual or entity to whom it is addressed or by their desig= nee. If the reader of this message is not the intended recipient, you are on notice that any distribution of = this message, in any form, is strictly prohibited. Please promptly notify t= he sender by reply e-mail or by telephone at 770-246-8600, and then delete = or destroy all copies of the transmission. --_000_CY8PR10MB644167959900C7CD0D6C68D4B0A59CY8PR10MB6441namp_--