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 89FC845CB1 for ; Thu, 7 Nov 2024 10:16:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F7A942E86; Thu, 7 Nov 2024 10:16:45 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2059.outbound.protection.outlook.com [40.107.22.59]) by mails.dpdk.org (Postfix) with ESMTP id 99B3741611 for ; Thu, 7 Nov 2024 10:16:43 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SFqWO/2otimZ3+YW1fEY/bVIkU4Mz8etTgjRUHS+MPxgWdlEdOG/wzXKzPPtWzyVkYo6oIaxA23sdgngDAhpXnpxOcU1WjU0gV2T6/EjRJNMoC5V9KZxhTVf7J6tw9VQapCG2FIoF8PA4ZMFtqAxNS4cF6NwMuXWgwYxCPRRaFDeDj2tdB+aTRAZ1jSYghxlbTlEOrjc8O4teJMxbC6R4pslkPUPe1hYRABKMZ4LmEjliana+Edn4g2L9nhqqn0OCspIdZ+2Vf+oCS3KhPWGQq0yrTBU6W8BkLru5sgzPK3Gxhq5Rr7dhUgj+CJQEtgxOJP3RcdrrW2lK8SZgtLebA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=ylaYcMXyAKgEpN8LM3OZbS0IcJjEYQ6dsNb7usE9KFA=; b=giYT/Bxvz4GbGiUQs6sOsHvVvjYrH7K+n1Shyu359W+OzIL8baNZjUAIZuDmibJyYJ2zLyHV3+eW/YD7yluFIQz3ifw/YpmgUuSISHyqyMElrHKxHfMUnfyPjF8cC06YHpMptwNCHI4u79Z3vCfbGmxANsGi8IxpQlnhqzKTMoShLDQiPH9eYP1P4yyiX9gKytCI15i4MII4dXA0B4GaXgX32b6BdU15+hc8fY5RSo8bHcj/xRszEpRd96zfMKvYepM/LximLf4BAWiymKY5DdbXOpIU5yVUxRUmugzHknGJF9wDhSEPnViSpTtTxtbqR/GRRtUP1/ouN7DhwUkCag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vector.com; dmarc=pass action=none header.from=vector.com; dkim=pass header.d=vector.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vector.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ylaYcMXyAKgEpN8LM3OZbS0IcJjEYQ6dsNb7usE9KFA=; b=sGiNRvkiUnyG5TyWvTCOh4e/DbejwUtszgcTUY4N9Nx1br+520cdKfSfUuJgWQ8X7o2QkskV3lFvdQEZl1pChmALQDgUywB2G4didUFVcRzYZif5fYXakr0oqbyy/gqGI86RXPtNpU8P+k4vHPpdC6b/p2JP0a8I3zPWHAEp7Zg= Received: from AS4PR01MB10408.eurprd01.prod.exchangelabs.com (2603:10a6:20b:4f3::17) by AM7PR01MB6644.eurprd01.prod.exchangelabs.com (2603:10a6:20b:1a3::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19; Thu, 7 Nov 2024 09:16:40 +0000 Received: from AS4PR01MB10408.eurprd01.prod.exchangelabs.com ([fe80::4750:2971:54c2:f3f8]) by AS4PR01MB10408.eurprd01.prod.exchangelabs.com ([fe80::4750:2971:54c2:f3f8%3]) with mapi id 15.20.8137.018; Thu, 7 Nov 2024 09:16:39 +0000 From: "Wieckowski, Jacob" To: Dmitry Kozlyuk CC: "users@dpdk.org" Subject: RE: DMA Transfers to PCIe Bar Memory Thread-Topic: DMA Transfers to PCIe Bar Memory Thread-Index: AdswY6adfiRF48DGTNiDOKrJVv5H2AAEBl8AAB75BBA= Date: Thu, 7 Nov 2024 09:16:39 +0000 Message-ID: References: <20241106204604.444529d5@sovereign> In-Reply-To: <20241106204604.444529d5@sovereign> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vector.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AS4PR01MB10408:EE_|AM7PR01MB6644:EE_ x-ms-office365-filtering-correlation-id: a966aaca-a01c-4d9c-9393-08dcff0ce351 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?NaPreB9uxm6sUpbo/1WoEUuyJp6WNqCW6jLjT6vbNR9i6s2TN6GXgvFZ+btL?= =?us-ascii?Q?Ma3QcOWRspCDol27hHltgBW/muGVRkSLhiVPDMl2bGFb+Ignpp/poWmarcaR?= =?us-ascii?Q?uqPJUqlsbjuXN/7PGdivMd0haoYGomAtJ6/6WjofWxKzHehzWFYmfihehjvL?= =?us-ascii?Q?iT9bcjm10/edbnYrvrjI/c/Gh78k+tS8Wld4BS7OJECNmstS19oVP8InSJJ4?= =?us-ascii?Q?McwSlw3/iMiOowlCsQk08QrhxmZpqV8ousvIsEGtWOGAM71ZqwLRm61IUtZ4?= =?us-ascii?Q?BGoU6hEwvXSWokb7KFUWWXEP1dQ0NkdX5sQ4y+mskzZ/HXWzhwBDNEvMES6P?= =?us-ascii?Q?EpYdtfaoFEoRtdqvJWx82YQryPJNIqYqDfdQL9CrflEOxvCMZa+10bIoYhAW?= =?us-ascii?Q?FrdqVmrVqQXw8JSY3ZDO9inJ3+z7lxxswatW14v9HVMH/Q5rtrg1lxWgHEfL?= =?us-ascii?Q?1+WWaQM+xsnaQzbg4RAwHqMp+mBWOLM0OyxBndmsqgmsNZwsPjC4jE8JatE0?= =?us-ascii?Q?MDExB8rYwx7VbrfXHGNHAFWiLcxFHa45C+2ErSR5QDWy7o4XBrE87uX6Eb9b?= =?us-ascii?Q?Lu38Euh2i9JDQMMBoZogTcOud/YmspWDiQFLz2NsapaPvZLSZv65pUcMgBQM?= =?us-ascii?Q?RyJmbwoIMZVVQ4AsDMduGDjBKzo6WAGuxEq67NMpaKtPgF/aUxMOtB2d8dFs?= =?us-ascii?Q?IWf/Xh50x/YlJctVlvK2cLSyZxuvqfQFRQhY1HNS4ug7TfkhvN13dzEeuKJ4?= =?us-ascii?Q?8cs2MEABOXDtWyFkgDYhSKLTBQWkIfuh1ZW8PX48lAfZwldLBHiTKyP86H/Q?= =?us-ascii?Q?Fzd/+SS/5d5NQ/c+c+rAJvFH+xeTWVYg34rI0kk6orLlWf1KNpWP2AUggT4Y?= =?us-ascii?Q?22IThFaTSd7Y/x+fQn6qLju5YHbiIUvtCHZ0KSEKtN92NcLkLhhqmjYUsEBT?= =?us-ascii?Q?RA1kSwfQ/GHp/rNTa0UzjTewzgKE2CiRg1+LUtxTnJH7NcZcZnlYJK7jiP9k?= =?us-ascii?Q?7wdAz4qg0e+6uetWGJgrJ2skC+2p9InT+55jTpfU7L/mTdO3dev8cmytelHX?= =?us-ascii?Q?VnLCMGiz+nHggj+mb5pmJxkZJGBra38O56VYWALCdaU9k3GHZA5hFG9kwFH8?= =?us-ascii?Q?swCqioyg61sLPWbKC2++WynNNdTsPTKkVpnBwXYZf40r8EhBZykxGTTcVcxv?= =?us-ascii?Q?rz1IsMjqkxTQEcLOOoOWWOGP3wFYRMdkEn6jh+Y+LpyFWj4n38L/bzMz66xn?= =?us-ascii?Q?99M4+tZBUV/x5BhLtDLOdNmPNxcXVvlIo5/e1NVQeiSKzDU7axSaDIjiPM5h?= =?us-ascii?Q?hMDG0w4kNwgUvzAmgZJx/MRq?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS4PR01MB10408.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?JKcUbDU1fe4FPQruYtP9c7HWhW7kFtpHUEnEt36eXYuzfxqTR3gHttZoY6xP?= =?us-ascii?Q?cbfQeDsI02p4nnXzEZtEScLnPWdsy1Fe808z4TTv1C05hscZMkUJ7ja9sPac?= =?us-ascii?Q?sFm0Y89fOutZQdWFTDdBADokvJMRY2zwE6g2p7MnkvlFW8181IRytwhd3iGa?= =?us-ascii?Q?9NbTQEVGPPpOBl1Ee4Ue9uoOBtxeAtAbN9uzCNmZ0CvGU/0TASETBVXQOezE?= =?us-ascii?Q?FjAEWTRpihGTB/4ttOGXL1lJESRbW9WpzgdlXaG2GuY4d51EJKmGizcR8yj1?= =?us-ascii?Q?UiTYYpYIP0HlVELl07uxFgedFoyY/jD86Ku1VgGKINisa4Bv3bcuYVQOx/GY?= =?us-ascii?Q?JxRHm8BcrkFMIxzHVRTIba1f7FIJed3qy0bDkqFk4YrEk+/d4R722BO+cdpE?= =?us-ascii?Q?+JUF09uMZPXkJmqa13GuVkpaRdBqvMqijrej0j9fEOuCoIt17z0icLOo6hxZ?= =?us-ascii?Q?b1ZHJt7kSjGXjHycwKtWUFPQG07oPz9+OdKwjoIVOnt6983ilcQPNZOaao7l?= =?us-ascii?Q?1AUlTU77ZkcN7ueK53KWs9USzXnYCDBvjewtDdbhT1saALN+BmAOoxHDantv?= =?us-ascii?Q?HHdWSAZ9Y5AXr4x5sbhkcFLG7cWLZ4U0JzyLgINs8miX0+pmr7aAgF6fNj4N?= =?us-ascii?Q?mMkByRJVxSzJCbCBAxiCudsOG6xKBA0QPwpnuxGFXj+jAlt6fTA7G0QNtXr9?= =?us-ascii?Q?8AyTOB46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8rH81h0?= =?us-ascii?Q?Qw=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: vector.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AS4PR01MB10408.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: a966aaca-a01c-4d9c-9393-08dcff0ce351 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Nov 2024 09:16:39.7742 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: c844b2b9-7a68-473f-b386-e2e1b968279d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1GbTgMDimoRqcVeXn1L3+3Y52b1KSTOcWvR4ie3T0zYZF7h8tTOlAKCT0850yVaudCN4Q4fH9VGbgNR5LoqUHUSYxBfyzx+7K2QNymbwfs4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR01MB6644 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hi Dimitry, thank you for the quick response. Ok, DMA in the classic sense is not possible.=20 However, if you carry out a write transfer into the BAR memory from DPDK, t= hen, as I understand it, this access should be divided into several small p= ostage-compliant TLP packets with a maximum payload size as specified in co= nfig space.=20 Can block transfers in sizes of 512 bytes be carried out with the rte memcp= y? The DPDK API states that the AVX-512 memcpy parameter must be enabled fo= r x86 platforms. Do other special precautions have to be taken in the DPDK environment to se= tup this kind of transfer? Kind regards Jakob -----Original Message----- From: Dmitry Kozlyuk =20 Sent: Wednesday, November 6, 2024 6:46 PM To: Wieckowski, Jacob Cc: users@dpdk.org Subject: Re: DMA Transfers to PCIe Bar Memory [Sie erhalten nicht h?ufig E-Mails von dmitry.kozliuk@gmail.com. Weitere In= formationen, warum dies wichtig ist, finden Sie unter https://aka.ms/LearnA= boutSenderIdentification ] 2024-11-06 15:50 (UTC+0000), Wieckowski, Jacob: > Is DMA access to the bar memory of a PCIe device with DPDK possible? > If so, which example project could be used as a reference to gain a bette= r understanding of this topic? Hi, BAR (base address register) is a place in PCI configuration space, so one r= eally doesn't "DMA transfers to PCIe BAR memory" to be precise. Read https://wiki.osdev.org/PCI_Express to explore the topic. DPDK drivers write to BARs to configure devices, specifically to setup memo= ry-mapped IO which is used for DMA. Take a look at this project, which is a toy version of DPDK, and thus it is= easier to grasp: https://github.com/ixy-languages/ixy-languages