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 E30F845C9D for ; Wed, 6 Nov 2024 18:46:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D31FB42E68; Wed, 6 Nov 2024 18:46:08 +0100 (CET) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by mails.dpdk.org (Postfix) with ESMTP id 3B6D7402C3 for ; Wed, 6 Nov 2024 18:46:07 +0100 (CET) Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-539f1292a9bso8116602e87.2 for ; Wed, 06 Nov 2024 09:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730915167; x=1731519967; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Dhuc0OUfKXe6Cqs4sV+MBffT89tRw63u6M5unSxZ8vA=; b=iUL4GnI6qqzTMU8sZkj3mNv3GEmUb5HBtntnp18/pJNjy9NgyVa3WjJPu7L1LEa57e Rr+RBbbsVUl6/yOTEYY/GlYtIN1t78C14fRmxNIiJmLuZ5h9Chjc4yP1/KhaDFrkKEkw YzDwXvR2i764HBHVweZdrdyfaBDAF3LSx0YG51kZRKIlhv0poSNn9xWIiwLnwOB4ClVF nA+XDenk99pLkZGaWOQnXSGLTnvvuVXK2uK4jgQlqSBwpShRUrgoxMTc1Tlcu+spyX3f ugXO7aJEHt2Sn1m6a0F9VCsGQK1hrD/CYx+xxD0SYtHmYCUObWHQaPkwIY/THFl2Mhkq pKFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730915167; x=1731519967; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Dhuc0OUfKXe6Cqs4sV+MBffT89tRw63u6M5unSxZ8vA=; b=On2DM5pd3b9sQhD/MXnreKuKGK0fObOWG2QepLbCG8BeS7MtCDJCDJofQt3Y5+5QjX JU3FaGc3+nALdohbaHS+HU48lbzl0Ez386rqBAecTb61cOgg8auHsMcoSx2mfwVwJYT8 mBTnlBAO3IF6qfzZCKD82AqvR0ypORuyBt6E8xzBt/8jhf5rzyFc47qpcJXI1wJQ4SmR D1tkFcOEpehuZpBJUklMnHrSpNWujwY9FmMYDprGQl15rL8V1NvpAxClhdah9Kfdi33e rwKLy9hHFLQm2JZF/g18MmK1KJ2A6x3Vv4Rbk1dZ2JmSO8LQCqJaG0oL1eENGJEVxpIL hI/Q== X-Gm-Message-State: AOJu0YySYtJwFyeGG+/8V7Ui49iD6wv0Rh9AxTdKb8R3NH0/nqKuVOjE xkRkJ87LqLbjl/BCWJEZ1Cv/VEuSnmj9Ovp4f7KEkEv9mK1v0P6hJ7YpCg== X-Google-Smtp-Source: AGHT+IG8qWBT5Jgwwdf3LLd6AAxd2UpF6MedCtzQVwe1c35Skwsx2t6kk2BiRmAV0IgZqlO9T3SkaQ== X-Received: by 2002:a05:6512:4022:b0:539:e333:1822 with SMTP id 2adb3069b0e04-53b348b7dc7mr21202959e87.4.1730915166277; Wed, 06 Nov 2024 09:46:06 -0800 (PST) Received: from sovereign (broadband-109-173-43-194.ip.moscow.rt.ru. [109.173.43.194]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53c7bc9c370sm2559511e87.103.2024.11.06.09.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 09:46:05 -0800 (PST) Date: Wed, 6 Nov 2024 20:46:04 +0300 From: Dmitry Kozlyuk To: "Wieckowski, Jacob" Cc: "users@dpdk.org" Subject: Re: DMA Transfers to PCIe Bar Memory Message-ID: <20241106204604.444529d5@sovereign> In-Reply-To: References: X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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 better understanding of this topic? Hi, BAR (base address register) is a place in PCI configuration space, so one really 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 memory-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