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 AEC3942AE4; Fri, 12 May 2023 12:29:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 434E642686; Fri, 12 May 2023 12:29:15 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2040.outbound.protection.outlook.com [40.107.95.40]) by mails.dpdk.org (Postfix) with ESMTP id DD292406B7 for ; Fri, 12 May 2023 12:29:13 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NJcbPOi9jjVqNI5I/mxaj1VY4l97iNft1lDI5gNYoL0fEopMJ/kEwvY349xZzlcmfjwq/WAXywqojCJ/V7wGzXvm/2V81Ldx9hRCwHnK+m/VLV2uo6nQ1n6zc1wQHxfCUdIn/fStXu+Oj4IYz4nEnoRHQMNmmvuyFAvAnB10VoWlZy4C/RncLb33pnUYtKlxuyMD7UWRmCqqTVsbNnNawxWNUncNskkZ/lKVfKVZ7Ndor2UqtSGQCMsbkE1eTblnDeq5SzWYjU/Si+SKJkuX04x9gGwfc6HKASu9hxgOhGwd+HqQlfIYmyFByWOFffleXzrONf5qw1Dxi/E+zuJVsg== 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=unLjt99mn+JhEpsHhKvBOP3dZlm0nZRuy3yksTvxiio=; b=ef14yoyKoOy1nzkENyhvM6cjLIc9CVazp+TVLBZfA6TDtKiVGMzGwwlSIl37QY7YoQH5f8okitUKd/nVBOgGr/gbdYUHen0lBCthKJc5n+zT60/lGmCVRVccQBGB4NXoRe+OJGJkvFCyIOSb5nVw2jSlDmBwDIZGWPxzqZrdUYT/lc5Za2WhFqll1Vpt7pNbVFw+wXbjT6sqIMH+JQ4dBR2Faoq5YcDtf9G9FP1rGeRbXsCJ5rYUPzTKr56DsnmRROIEXvO8ZRB7VzJzkNSBBdhxBUvbicOdGZeMreqcJDD5qfoyHRPjWfnC3T/6wipQej9SD0L6bUNL0IPINVBRpw== 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=unLjt99mn+JhEpsHhKvBOP3dZlm0nZRuy3yksTvxiio=; b=1fh59CjpJDkGxEUHk7xw2YrMpsbrTX0P+kkL/Sg5VTzGbB5WKlneA4p7FTDmL35RCM/nKsll9ctsYzC1+1pnfk2745jUUpKBOLv7jTsAp6CjRJqRfLH446+dvQ25sqqAR367JRGfiWuHcIxNhQQ+QklYh6qhG9HgWBj03ee5FNA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by SJ0PR12MB6967.namprd12.prod.outlook.com (2603:10b6:a03:44b::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.32; Fri, 12 May 2023 10:29:11 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::7957:641d:6aba:3f9a]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::7957:641d:6aba:3f9a%4]) with mapi id 15.20.6387.023; Fri, 12 May 2023 10:29:11 +0000 Message-ID: Date: Fri, 12 May 2023 11:25:23 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v4 0/4] Support AMD CDX bus, for FPGA based CDX devices. The CDX To: Nipun Gupta , dev@dpdk.org, thomas@monjalon.net, david.marchand@redhat.com Cc: harpreet.anand@amd.com, nikhil.agarwal@amd.com References: <20230124140746.594066-1-nipun.gupta@amd.com> <20230508111812.2655-1-nipun.gupta@amd.com> Content-Language: en-US From: Ferruh Yigit In-Reply-To: <20230508111812.2655-1-nipun.gupta@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO6P265CA0019.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2ff::10) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SJ0PR12MB6967:EE_ X-MS-Office365-Filtering-Correlation-Id: 02301bf1-5673-4043-6257-08db52d3b96f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0a9dgh6yv9UNdHgg5BKdKpvcD/tiNmcIQTHQhCmA2gN+Y+yYsVY2dGZGw4fi4nfNaYXN43KO/WtDtk5H8gIn7WZP3Av5gakwIhGCZGASYFeh/Bj2uE722kuTc4hDqF7Ay3C8gPTCMihJu+SH7/dt2iWs2dsDlT1mUD60h0tOL90z55s2qM3g41osyYNwsbos4yAc1YU4WlpQa4rIudZCTqYspLQErrf5de3gXPKTGYu+HMOiGsYAF9rEGr2GuGiP5TCx8l7BXooSpP0bFbKftRSiWNpi97ZDPlnr8XsaBubgs3ovfDziCa8dWvUjmifB/J0PcInVCWjXccZa73vb7ilOFb4OCtzE55zdLqpRd3Sb/ZK4Vesc7XjqJSO4eVNmBf97478IVpByUzXdMRIBPz6ltMzi3lxPLZP0iN7SzRhTv6P4Z33y1DVoRHtbCHaagjCbxvO4flErBxPEfdzFyHtGh8SOQv4SabAsP/94V2DO2z6rkMs/Rl6JutzUAe5pJ3Ful5teBy7O2upMkt7FgO8y6LFJrrvHSMi5bEvLZcZcccuyfK4f3iortPl5ug67uYWgBJ4DHqe+9LtpLBKz/00URVQ25xNwskJQF29pgHLgt3dpf5WcprpvGTaMe77f/2XF8Md09ks70hNSsAR8BKzNTwi0zs+Rsw5k9COG5CtLmsru1G60A2fLfapd0RDW X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(346002)(376002)(366004)(136003)(396003)(39860400002)(451199021)(31686004)(8676002)(44832011)(8936002)(4326008)(5660300002)(41300700001)(316002)(83380400001)(66556008)(66476007)(66946007)(186003)(26005)(36756003)(966005)(6486002)(6666004)(478600001)(2906002)(86362001)(31696002)(2616005)(38100700002)(53546011)(6506007)(6512007)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NmE0WlQ0U2pObk5BczYxcm8yV2hIV3ZCSk94ZUFwUmJDVUpFN3I0b25XK1dv?= =?utf-8?B?TjJSUTdWTnpqV1Bpei9zOUJXUFZGSkF5Witaa0x5M1B2VWd6TjQ0bXNmd0Zt?= =?utf-8?B?Z0tSOFhsV0NpYUxuS0ZiYlRvelJKUG9CN0tGbkQyVThIZWhGWDNNVU1FSzBM?= =?utf-8?B?b2s1VWZkZXQ5c2Q3ZkJoM2lncjdCTFUwS2IwUGpMYWFFUG1TQTlaTjNvalB3?= =?utf-8?B?SW1BMnI5U2dOMmF3Qm1nbEZYbGRWb3pwaXF2MGJoRlRZMk9TZWR2dVRZZHFB?= =?utf-8?B?SWZwVWFVcDZIekVjMVk3bjEwcmtUcjcyTWE5SVZUeUE1ckpCY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ejFPSU9HckQ3?= =?utf-8?Q?zoo8HLR6hymqUjcrDoWB3Wm/w?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 02301bf1-5673-4043-6257-08db52d3b96f X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2023 10:29:10.8608 (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: d6nyWBQ7uAiZD0ZSbhCucl29PRHWty6og2ZrCJbBfCxu3bpi2uK6TUxx0JVF9yb2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6967 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 5/8/2023 12:18 PM, Nipun Gupta wrote: > It uses sysfs interface and the vfio-cdx driver to discover > and initialize the CDX devices. > > The CDX bus and VFIO support is available at Xilinx open source tree: > https://github.com/Xilinx/linux-xlnx (drivers/cdx/ and drivers/vfio/cdx) > > 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 > > 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. > > Changes v3->v4: > - removed platform specific patch (adding config for ARM CDX) > from this series > > Changes v2->v3: > - merged cdx bus compilation enablement in the first patch > - fixed issue reported by check-git-log.sh > - updated release notes > - updated offset to uint64_t instead of off_t in cdx_map_resource > > Changes v1->v2: > - Moved file rte_cdx_bus.h to internal bus_cdx_driver.h > and added this file to deivce_cdx_headers > - Moved cdx.h to private.h > - Removed rte_ prefix from the static symbols in .c files. > > Changes RFC->v1: > - Marked few API's as internal which were not required > to be provided to user. > > Nipun Gupta (4): > bus/cdx: introduce cdx bus > bus/cdx: add DMA map and unmap support > bus/cdx: add support for MSI > bus/cdx: support plug unplug and dev iterator For series, Acked-by: Ferruh Yigit