From patchwork Mon Sep 23 22:35:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Tu X-Patchwork-Id: 1988706 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XCHrv0KSSz1xt0 for ; Tue, 24 Sep 2024 08:35:58 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1ssrep-0006yZ-0o; Mon, 23 Sep 2024 22:35:51 +0000 Received: from mail-bn8nam12on2043.outbound.protection.outlook.com ([40.107.237.43] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ssrem-0006vK-8f for kernel-team@lists.ubuntu.com; Mon, 23 Sep 2024 22:35:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cootT+23so3FfgIb3IU218bI2PUFRf5ZYFMJxeCPjWDdnrcVn9aUooqVZ+qXcdR0aA24K3WuDNxuKkXOqHDdkQlCjDIr39zeWvvsFvLC1EgIJ7BVEW7VOm36r7vKnx/gX/poOyTtDUGWlT9srEzGoHvzXY7viRhUzmxk2fv0BrON2AtIPzeC7A/evHAGT0G/9h2jImu/hD1KWPH0fiDi/S+0Rh3SbMO+QpP/gGfh4KsqgTs0nYGwuNwa+vz11LAGK4lF/di8yWfoGMP4/NFfRjkFnd1LaF4poicj0WLeKfveiS30+eIVt6Z2IRISSgo2r8asu23PaojynDGT0/a/Bg== 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=XfnLvop6XiyxWb+rZZFvlA6L6yhjW4B+zHAwS8N7W5U=; b=vmN6ZX8sQT8/R+O0qvnjg/n74QdgbGrbAoTzbx0Xb1fZOecEgDMLa31nwg6loMJTG+BrHv+uZcqxquBwUgi4EiG9CKpQwkbdlWHjwvpd0mBnFCx4RIWHi6nhivRorlkEfHAABYVmB9wlbd5hRXnw4n9YMeVmyBFq4rHO+ZaUkgyLsW1eWroCciIbHrlbgL4mhpWxURvmLYl6HQF3eD6L+5dPuwF4UgG1NLSTjqWAD7LiHIsk3hEVoUysOEUD32AOPzBt8HDFdmpIU2TfIBKEInu92DmY5QR6zy9CDS4FikfEfOqZZl4mZ8nVMrSzf9e1c0ceoOkwcCEfW6yAkOjM0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from SA1P222CA0183.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:3c4::7) by PH7PR12MB6636.namprd12.prod.outlook.com (2603:10b6:510:212::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Mon, 23 Sep 2024 22:35:44 +0000 Received: from SA2PEPF00003F66.namprd04.prod.outlook.com (2603:10b6:806:3c4:cafe::19) by SA1P222CA0183.outlook.office365.com (2603:10b6:806:3c4::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.26 via Frontend Transport; Mon, 23 Sep 2024 22:35:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by SA2PEPF00003F66.mail.protection.outlook.com (10.167.248.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Mon, 23 Sep 2024 22:35:44 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 23 Sep 2024 15:35:32 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 23 Sep 2024 15:35:32 -0700 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Mon, 23 Sep 2024 15:35:32 -0700 From: William Tu To: Subject: [SRU][J:linux-bluefield][PATCH v6 6/6] UBUNTU: [Config] bluefield: add config for VFIO P2P Date: Mon, 23 Sep 2024 22:35:22 +0000 Message-ID: <20240923223522.1203691-7-witu@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240923223522.1203691-1-witu@nvidia.com> References: <20240923223522.1203691-1-witu@nvidia.com> MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PEPF00003F66:EE_|PH7PR12MB6636:EE_ X-MS-Office365-Filtering-Correlation-Id: 05b7d9cf-26d9-4b8a-39df-08dcdc200fc3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: /a29kCJr2fujwEA+XTK55pnLaIXQ3CNqYcj+bzqalWuYV24uKh/i/3k8yEhKI0+kKs5qbYsJoJDUQjw0hHbIlSe8nhHiTidvc13Lve6u/Zt4bbCbWoC32Xq6/78CqftqCzhL5zAZyIEqTwRTdBCrlhImb673PdehdlpGVxD7aVonTI6Brn5aLkk7BsfpTZ2c63a2+Xumo6Zhq3IYFMfRXfhtx9wbeYZm3YkPCfP/MuDdSBOugb7bUhRF+SIaSYc3b9ImuInCbG/cjVE1tbR9S4s6YNLgYu4t0Y0pPmntmP9sB/LV3wOBK0Z7TAqXaRkjKjSGzm1r+ToxCZIglNnyFVE7Wm/xhXFoiO0weHu+9pCvxAsaUEa4Do19N7f9K6U9C22bz05IsVGR7y+7RF2evi+tUCMhu9MeCvVOyTwvhZMOmBw8zNYTNHJkDGNZ9BPKPjfMzMhWXYMDGtRPVvQXvI+PuGoJOw31BgTp83ZGw60gu29/cfvrWDJ8TlovwZ5SYkNa7AywLk+DPyZklNvscn4ezDz4LFvDixz3C0eNRssrdinV7rrufqJNBeEO8KfSQ098UYW4egGu8f3Nw+4uKdBQ/vQo4WeycpSUl+l9OPkpDrntsGWgdq4qDS0R8EY2K3OIYKQdd7B9pRfU39EKbPWXUFpTq6DH7sa7P9kigNhiC6FPPfXXIC6Muu03Sh8FMygrriO6wCsOCvVfkCj5PxOwt1meLBFRgOKLoYpiC6O1+k5f4xCbflx5GDPn8gRSHtOaQkMrFcXzo1zCuER6P6Pwv+LuvdqZj6l9uOtZOhbwDK2JhAJ7CKye6M426EEi4tDxWlWkQzT7CGOTo9PBq7DVQ2lYnNzSrKfPcnGPAhGifXVqYsafMMagmYEOIwopGuEk4NjFWv9zqX6GUvkdM8ln5r3O6W646jJNn6jUuVDt0HW+bO76s0vEMAMg2CgDNWEaWyct3dI6MC5flSxxksQGwsvjL3aBhv0kBpUjw5UhapwP3PVL4yGWLqsl5J4WzfmMlcGK4dr9gqu5msvt49RteRoq6UY1j/BmnFoa/T6bUSF/EnIEE8vH/ChlVYrzZs7rdI6a9FKvPCq/WZoSy9/wYLm+CJX15lOmsRXARAri1DidzE8qZC1UA0cP/JU5DYBGJ99Vd67YKJGEGvQHNe5q+FLz62Tb7Wct4tZFq0CLwRc7fpZpyKkaxpUtDpRY2I29/tWqBEshfQ4PoT+/xIdJfCCCghSFfS/qx6dMiKz4ryuJG9biVwDaz6taPwCnpvfAd9VyIS3ffuiKaRzA6uc9jfe5wG2FduhcZ87UkO/ze9QcjLFxaOgO4qTJTXyBUh25cbi0aLITaDht007NF5/urG8I9myduYpFWr+lToF8xgZf7zSK3CjZJnGjVMqT X-Forefront-Antispam-Report: CIP:216.228.118.233; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge2.nvidia.com; CAT:NONE; SFS:(13230040)(376014)(36860700013)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2024 22:35:44.0034 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 05b7d9cf-26d9-4b8a-39df-08dcdc200fc3 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.233]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SA2PEPF00003F66.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6636 Received-SPF: softfail client-ip=40.107.237.43; envelope-from=witu@nvidia.com; helo=NAM12-BN8-obe.outbound.protection.outlook.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: vlad@nvidia.com, bodong@nvidia.com, sergeygo@nvidia.com, jgg@nvidia.com, zwaksman@nvidia.com Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2077887 Addd CONFIG_PCI_P2PDMA and CONFIG_DMABUF_MOVE_NOTIFY. PCI_P2PDMA enables support for p2p DMA transactions. DMABUF provides two ways to share a buffer between kernel drivers. CONFIG_DMABUF_MOVE_NOTIFY enables the dynamic way for DMABUF APIs, so no need to pin the memory. Co-authored-by: Sergey Gorenko Signed-off-by: William Tu Signed-off-by: Sergey Gorenko --- debian.bluefield/config/annotations | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian.bluefield/config/annotations b/debian.bluefield/config/annotations index 553d4d84c1d3..2f405bdb9745 100644 --- a/debian.bluefield/config/annotations +++ b/debian.bluefield/config/annotations @@ -211,6 +211,7 @@ CONFIG_DE2104X policy<{'arm64': '-'}> CONFIG_DE2104X_DSL policy<{'arm64': '-'}> CONFIG_DL2K policy<{'arm64': '-'}> CONFIG_DM9102 policy<{'arm64': '-'}> +CONFIG_DMABUF_MOVE_NOTIFY policy<{'arm64': 'y'}> CONFIG_DNET policy<{'arm64': 'n'}> CONFIG_DPAA_ERRATUM_A050385 policy<{'arm64': '-'}> CONFIG_DPLL policy<{'arm64': 'y'}> @@ -807,6 +808,7 @@ CONFIG_OCTEONTX2_PF policy<{'arm64': '-'}> CONFIG_OCTEONTX2_VF policy<{'arm64': '-'}> CONFIG_OWL_EMAC policy<{'arm64': '-'}> CONFIG_PARMAN policy<{'arm64': '-'}> +CONFIG_PCI_P2PDMA policy<{'arm64': 'y'}> CONFIG_PCMCIA_XIRCOM policy<{'arm64': '-'}> CONFIG_PCNET32 policy<{'arm64': '-'}> CONFIG_PCS_LYNX policy<{'arm64': '-'}>