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 C57B045917; Fri, 6 Sep 2024 06:16:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 55E844025D; Fri, 6 Sep 2024 06:16:21 +0200 (CEST) Received: from mail-qv1-f41.google.com (mail-qv1-f41.google.com [209.85.219.41]) by mails.dpdk.org (Postfix) with ESMTP id 402454025C for ; Fri, 6 Sep 2024 06:16:20 +0200 (CEST) Received: by mail-qv1-f41.google.com with SMTP id 6a1803df08f44-6c3552ce7faso14682036d6.1 for ; Thu, 05 Sep 2024 21:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1725596179; x=1726200979; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tO2qRbiMswi3W74Ikha05zNxXIiX28sOKGdO73VyH2I=; b=PIyOgck3/vhqdgvy6+CWDUaUuXhyE6iyh5scOShOE5JpdLBNGnPTukvlcxq4PcB5ui OKtwhd5iS12eWAwUw2zCzjfwhxEjxdCKsv362fI2lun8+rwa2B0xdt1sWfAr0g8SzQsj nShG7MwpgL1ourrG4FvihQgDt4m33uVnGuPE8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725596179; x=1726200979; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tO2qRbiMswi3W74Ikha05zNxXIiX28sOKGdO73VyH2I=; b=fJ0xoRkjU8W1YArepItFKoaC565ugTMYmgZ/v5GJAaeHhOgMiXLX/o57tAZMBRNIgu +oTqLzoP7n2E0zB0xSdbzkf2uF/rJFCe2D8Dwa6SXbXRUxhvZsLcKsBF9RGPclYFYTDa mBgjShewMNsLd6Aqgs7xtwHjVQVQQLmmS0mswKvRemIWnaLijooT9KCAvHpA2bcDiSHY xUuA3iZ6skC7qqMZnKJYCpFH0ofj054Hupogpa8U1GkKqXXSz+3Nhmj+S2qLjDEG0tkb SXZfeFENqowoRNKFr6zOAL+CdOs8EsZjd4G3rMcEWgvsiWXlYbUIKA3t+eUjjqKjVjEL p1CQ== X-Gm-Message-State: AOJu0YyZOx1th8YQvOgRAiQf2zoPmWD3pfqCjMoOgsX/0nvxedE3/im4 lky5d7Bko3Bvr7eLVPR5cA4hBKUbnUEqIvTZ/F8lBvZA9LrLQG5ihHhQU4+M2bSCVMUH9gYCBg3 JHRc770RaOi7lm3ppFLDQb3LeW5ZxP4qxmzA3lB7IqrTVJSY86Qy5QGlKNuBZ0xhZOaV9QP/4Tu 8KYXp5LvnaelARQi8NJhiXIqU2dCjY X-Google-Smtp-Source: AGHT+IGM1HuJ+6ao1tFPsZ5dfTEm8NrfKnOxA0fLQbSHGIq3snxtAEKCystMFOjGs6fEvluF4XLrOg== X-Received: by 2002:a05:6214:4b0f:b0:6c5:26b1:7ae1 with SMTP id 6a1803df08f44-6c52850eaa4mr33673976d6.22.1725596178636; Thu, 05 Sep 2024 21:16:18 -0700 (PDT) Received: from localhost.localdomain ([136.52.21.78]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6c520419eb9sm13418276d6.122.2024.09.05.21.16.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 21:16:18 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Cc: thomas@monjalon.net, eagostini@nvidia.com Subject: [PATCH 0/2] add API to get GPU physical address Date: Thu, 5 Sep 2024 21:16:12 -0700 Message-Id: <20240906041614.36962-1-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Add API to get the physical address of the peer GPU. This should allow some NIC hardware to directly use the physical address for DMA instead of the CUDA Unified Memory provided by current mem_map calls. A dependent code change has been pushed to the gdrcopy tree on github. The pull request is open here. https://github.com/NVIDIA/gdrcopy/pull/304 Please review. Thanks Ajit Khaparde (2): gpudev: add API to get GPU physical address gpu/cuda: extend cuda code to get PA of GPU drivers/gpu/cuda/common.h | 2 + drivers/gpu/cuda/cuda.c | 117 ++++++++++++++++++++++++++++++------- drivers/gpu/cuda/gdrcopy.c | 50 ++++++++++++++++ lib/gpudev/gpudev.c | 61 +++++++++++++++++++ lib/gpudev/gpudev_driver.h | 6 ++ lib/gpudev/rte_gpudev.h | 49 ++++++++++++++++ lib/gpudev/version.map | 2 + 7 files changed, 265 insertions(+), 22 deletions(-) -- 2.39.3 (Apple Git-146)