From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 98981A00C5; Thu, 25 Aug 2022 09:18:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 750FD40DFD; Thu, 25 Aug 2022 09:18:37 +0200 (CEST) Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by mails.dpdk.org (Postfix) with ESMTP id 695DB40156 for ; Thu, 25 Aug 2022 04:53:12 +0200 (CEST) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 27P2qsOeB029989, This message is accepted by code: ctloc85258 Received: from RSEXMBS01.realsil.com.cn ([172.29.17.195]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 27P2qsOeB029989 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 25 Aug 2022 10:52:55 +0800 Received: from RSEXMBS03.realsil.com.cn (172.29.17.197) by RSEXMBS01.realsil.com.cn (172.29.17.195) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2044.4; Thu, 25 Aug 2022 10:53:09 +0800 Received: from RSEXMBS01.realsil.com.cn (172.29.17.195) by RSEXMBS03.realsil.com.cn (172.29.17.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Thu, 25 Aug 2022 10:53:09 +0800 Received: from RSEXMBS01.realsil.com.cn ([fe80::9f:6d6e:dd01:f517]) by RSEXMBS01.realsil.com.cn ([fe80::9f:6d6e:dd01:f517%7]) with mapi id 15.01.2044.013; Thu, 25 Aug 2022 10:53:09 +0800 From: =?gb2312?B?zfXQxw==?= To: "dev@dpdk.org" CC: =?gb2312?B?s8LBog==?= , =?gb2312?B?zfXyqw==?= Subject: about RTL8168 PMD on ARM SoC Thread-Topic: about RTL8168 PMD on ARM SoC Thread-Index: Adi4LaKuPzXQ83AtRk2H4o+i4ISMWw== Date: Thu, 25 Aug 2022 02:53:09 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.29.32.21] Content-Type: multipart/alternative; boundary="_000_e6c53cdd2ab148adb4e1c30e0c11ec44realsilcomcn_" MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 25 Aug 2022 09:18:35 +0200 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --_000_e6c53cdd2ab148adb4e1c30e0c11ec44realsilcomcn_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SGkgRFBESywNCg0KSSBhbSBhIHBtZCBkcml2ZXIgZGV2ZWxvcGVyIGZyb20gUmVhbHRlayBOSUMg ZGVwYXJ0bWVudCwNCndoZW4gSSB3YXMgcG9ydGluZyByODE2OHBtZCBhbHJlYWR5IHZlcmlmaWVk IG9uIHg4NiB0byBhbiBBUk02NCBTb0MgVW5pc29jOiBVSVM4NjUwDQpJIGZvdW5kIHRoYXQgYWZ0 ZXIgTklDIFJ4IGluaXQgKGluIGdlbmVyYWwsIFJ4IHJpbmcgYW5kIGJ1ZmZlcnMgc2hvdWxkIGhh dmUgYmVlbiBwcmVwYXJlZCBmb3IgTklDIHRvIERNQSByZWFkKSwNCnRoZSBOSUMgc3RhdHVzIHJl ZyBzaG93ZWQgUkRVIChSeCBEZXNjcmlwdG9yIFVuYXZhaWxhYmxlKSwgd2hpY2ggbWVhbnMgTklD IGNhbm5vdCByZWFkIHRoZSBwcm9wZXIgZGVzYyBjb250ZW50LA0KDQpsYXRlciBJIHNlbmRlZCBz b21lIHBhY2tldHMgdG8gT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44realsilcomcn_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

Hi DPDK,

 

I am a pmd driver developer fro= m Realtek NIC department,

when I was porting r8168pmd alr= eady verified on x86 to an ARM64 SoC Unisoc: UIS8650

I found that after NIC Rx init = (in general, Rx ring and buffers should have been prepared for NIC to DMA r= ead),

the NIC status reg showed RDU (= Rx Descriptor Unavailable), which means NIC cannot read the proper desc con= tent,

 

later I sended some packets to = NIC hold by testpmd rx_only mode, HW internal Rx packet counter can grow to= some value, then stuck, 8168pmd Rx debug print reported it received less p= ackets than that value, and the print showed up even some minutes later!

 

I doubt the phenomenon is cause= d by improper HW-based IO coherency support on this ARM SoC,

I have read the ARM SoC support= list on DPDK website, to name it: NV Bluefield, NXP DPAA, Marvell Octeon T= X =A1=AD

 

Does DPDK (or UIO/VFIO driver o= r hugetlb driver) need special HW IO cache coherency support on ARM platfor= m, say, ACE and Device side MMU etc?

Should the SoC provide speciali= zed UIO/VFIO driver or hugetlb driver and/or specific DPDK lib to support s= uch user mode DMA?

Will you please give suggestions, thanks a lot!

 

BRs

--_000_e6c53cdd2ab148adb4e1c30e0c11ec44realsilcomcn_--