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 4F8A7428E3; Fri, 7 Apr 2023 09:30:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF62740E03; Fri, 7 Apr 2023 09:30:01 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2088.outbound.protection.outlook.com [40.107.93.88]) by mails.dpdk.org (Postfix) with ESMTP id 581BB40150 for ; Fri, 7 Apr 2023 09:30:01 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jl9hW67TN6lHimBCsbKm7Jdlds25opljf6o5l2ZF61fN5yf3IFfRpdeFIALNlA+bwglmlGiiApBXKtEFcmoQKkr4ADJbEfjf2Qm9yfJC6VTBKOUe5ILKWgGytMfPCvOd65PJrtVXeapu41Re3hYw7AONmO09i/+/MROpwSqr5q3IXBvh7kIY9SCYsCFhl7vUlB0T/2GAoWLlSK4r2oQ9n0SkKUO0VZP1TDbRTQr4Ev5kmD3ZAlBygkIswefna/Xpzz+epWswQVy0r8eKTMHS1Y28DG2nPCChTNsunPdoSl/29Q5ncR1CpIi9VpFbau11vAZI8ora57OOkiv2hzJDdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=5TZnoXCyhjn1qvXX1s8CxNM4s2CqzKBTPs84DjxsXVs=; b=G+VS5kA97iVTcW+nOvZOb8V6z6MvZVIyv/71xyhEW5piYXTAyxbP54f2b+cJ144mJghwn57SydXhHRUWecO+34SR/nh7mVv1ZWRq3IX2IRsWzMmd4XP/mJxY0Yx0kpLLRNBQKuV5X+TZ1ywamAjpRP7BEv1aGR4OtRG8ARUW9BDb7CveIt1d7Omb5LYSQqcnZ/XTRpqlI/ywoigOpXHRC4dr7MP5DgtEg9HH6DxYcweYTJLv4wf7MLCJKXBmBk1fUeY7iny3lq0lA7PWjb6sC3SKaotMMzRCP61zVJ5wSo4Ny5MsLydMzTqJsHbws4qJ2bwhOSjq9Nq31RTSWu8DkQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5TZnoXCyhjn1qvXX1s8CxNM4s2CqzKBTPs84DjxsXVs=; b=rFja4tCTXStFlyNAa4jnHjXILVlY3lPBiagDKkCoDVo1YYW5wf93/d0O5wjXz/5RXAE1PfkYElsiiCuGfmbpF5kUaUVQIafD9A6yVKYgddMney85XqMXzNs8ZeBsxJvp+q6pw3Cbh3XTKUaIeKAYyFja+9Vz77Uxh42qiHUy/FY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM6PR12MB3082.namprd12.prod.outlook.com (2603:10b6:5:11b::12) by MW3PR12MB4460.namprd12.prod.outlook.com (2603:10b6:303:2f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.35; Fri, 7 Apr 2023 07:29:58 +0000 Received: from DM6PR12MB3082.namprd12.prod.outlook.com ([fe80::72ca:e9ef:88e5:26d0]) by DM6PR12MB3082.namprd12.prod.outlook.com ([fe80::72ca:e9ef:88e5:26d0%4]) with mapi id 15.20.6277.031; Fri, 7 Apr 2023 07:29:58 +0000 Message-ID: Date: Fri, 7 Apr 2023 12:59:45 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 0/6] add support for CDX bus Content-Language: en-US To: David Marchand Cc: dev@dpdk.org, thomas@monjalon.net, ferruh.yigit@amd.com, harpreet.anand@amd.com, nikhil.agarwal@amd.com References: <20230124140746.594066-1-nipun.gupta@amd.com> <20230407060152.16335-1-nipun.gupta@amd.com> From: Nipun Gupta In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: PN2PR01CA0229.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:eb::11) To DM6PR12MB3082.namprd12.prod.outlook.com (2603:10b6:5:11b::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR12MB3082:EE_|MW3PR12MB4460:EE_ X-MS-Office365-Filtering-Correlation-Id: 50e95614-9699-4a67-e486-08db3739e40a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aHHsg9/6oaoP2clS77RLtNiK3xNvRSYTJZYNnlYW+SNtTMamH+El9U+dbT22yI7wOQzix8DozY/9AytXHujzZWLFjdikkh7XsvF/05vgVIzMWLK6GRTE203Ig8sppFhGbQtxuFsorI2rf2g22ahkUyeyzIVXHhiJ5mthZwM77MDe3svWQ+7CcutYPYGL7zA5pRgMjZJoDu3dOFfUbz41dN9ghMAIU9nEYFGHnPRjDLtNXEt3CGvDNAveeHD6r9kBfl2HF1AOs4PoDaFA4BM7mh3G/JQ5Qd+Y3yb1D1TCVkhCbky4o53RMMmAVArEocBX9zT1zUswPPGsn8waEDBiWNwaJ4fFwfzjSBeb+MyeNJBtLbKyICpEiJZy4/p5IjpdcvV8DCHNN/A70ytU0kc6XaPXKawYrvQhmK6oEQoz/xbJYdOpSxPLPumgfi7Z5Y2gbR291O5kdMK2grvwujukKmw1AZvoT9EE95BCaazIFae9P5eHJN87JXRM5CGFEkwwr4gqVsGnn9kXoSXVxw1KwdweIbXT+auT7vpXox6HZ6k1jpgiWWx/nk/QdICbhuI75e5nhypcjP1k4MjfD0FDn0WDoLWXygKdw4NkPtpssp8al5Q4nNYDz8QwEf14St0w1j/yMp0KGOThbPZ+UnaQFAYAGoGRhjn+vmB92hiS6oXTVLsF5rvTsdqJQSb6hZ4u X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3082.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(376002)(136003)(396003)(346002)(366004)(451199021)(86362001)(31696002)(36756003)(38100700002)(2906002)(6506007)(966005)(26005)(53546011)(6512007)(6666004)(66946007)(41300700001)(31686004)(4326008)(6916009)(8676002)(66476007)(478600001)(5660300002)(44832011)(8936002)(316002)(83380400001)(66556008)(6486002)(2616005)(186003)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YU5CYmJsZWo4ckkxYlVHbnNXSHQ0ekNQazl0M016amYxclhNeitFSTdOT2xW?= =?utf-8?B?Qkd3YXNnMjVYSU16YzVRTUNIb0NpMDdaZUVGY0ZFRW5TQW9ySXd2ZmwrRVhN?= =?utf-8?B?TFE1TXpuYlhNUU0rSGY1Y216VmpGUnU3UXNJNVJNa1g0SEpqbjNUY3dkVWU2?= =?utf-8?B?dU8vVnBIQndLelNObmNpanRrZ2xSclgybmFiWTlUaTJhTEZPSFQ0Nk0wek9D?= =?utf-8?B?WHVpckpLZVk0RE9nVXp3YzdaSy9MMWZxOWNVNCttQ2RRRkUwM1QzUkpWZmxq?= =?utf-8?B?cFFuL2VnRzA1Rms4L0lLdEdmT0EydkUwV1BkTVQ3Ym5rL2lQZVlISDN1N2Fm?= =?utf-8?B?N1diWnp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atorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50e95614-9699-4a67-e486-08db3739e40a X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3082.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2023 07:29:58.5589 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0ydvmJ1H+/yOAP7coy9kRdnQRxzN7Q2IYP0JLp8c/CNUIaHfXN9rfixqQQB/Bq8O X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4460 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 On 4/7/2023 12:48 PM, David Marchand wrote: > Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding. > > > Hello, > > On Fri, Apr 7, 2023 at 8:02 AM Nipun Gupta wrote: >> >> Support AMD CDX bus, for FPGA based CDX devices. The CDX >> devices are memory mapped on system bus for embedded CPUs. >> >> It uses sysfs interface and the vfio-cdx driver to discover >> and initialize the CDX devices. >> >> The patches are intended for DPDK 23.07 release, and have been sent >> as an RFC as patches are yet to be merged in Linux. >> >> Linux CDX bus patches has been added into linux next: >> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/cdx >> >> VFIO patches are also submitted in upstream: >> https://www.spinics.net/lists/kvm/msg310623.html > > Hard to tell just from this link what the status is. > Has it been reviewed? > When are you expecting this to get merged? The CDX bus code has been merged and VFIO code is under review. Apart from this, we will soon have Open source Linux from AMD which has all the required patches for CDX in a week or so (I will provide the link once that is available). > > >> >> CDX is a Hardware Architecture designed for AMD FPGA devices. It >> consists of mechanism for interaction between FPGA, Firmware and >> the APUs (Application CPUs). >> Firmware resides on RPU (Realtime CPUs) which interacts with >> the FPGA program manager and the APUs. The RPU provides memory-mapped >> interface (RPU if) which is used to communicate with APUs. >> >> VFIO CDX driver provides the CDX device resources like MMIO and interrupts >> to map to user-space. DPDK CDX bus uses sysfs interface and the vfio-cdx >> driver to discover and initialize the CDX devices for user-space >> applications. >> >> RFC patches in DPDK were submitted at: >> http://patches.dpdk.org/project/dpdk/patch/20230124140746.594066-2-nipun.gupta@amd.com/ >> >> Changes RFC->v1: >> - Marked few API's as internal which were not required >> to be provided to user. > > Just a quick pass on this series. > > - There is an issue with the exported header rte_bus_cdx.h. > All the bus specific / driver only parts must be moved to a dedicated > bus_cdx_driver.h header (which must be listed in driver_sdk_headers). > > - To whom is the rte_cdx_dump symbol intended to? Is this for use by > user applications? > If so, the rte_bus_cdx.h can be kept, to export this symbol. > But otherwise, everything in rte_bus_cdx.h can be moved to bus_cdx_driver.h. > > - Please remove the rte_ prefix for static symbols in *.c. Agree to this. Regards, Nipun > > > -- > David Marchand >