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 8B0E342C3C; Tue, 6 Jun 2023 09:27:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12E5540A84; Tue, 6 Jun 2023 09:27:36 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2057.outbound.protection.outlook.com [40.107.243.57]) by mails.dpdk.org (Postfix) with ESMTP id 1ADB340697 for ; Tue, 6 Jun 2023 09:27:34 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ye5KatYlzUvqczvq1aDI4S++TJEcGeyW4s7/3kxjAbPAYZk1+3OBQYx8hzOB+3G2XaGm8o932osFbiJlK30tphl1cn+vLcaz0bc6mFhYRqEHEH0WzSN6QjLShT0XGDk3ZyUuMQwpPqQ5qqwtxCp/IdExshoyXHue+DF1ZuaoBzCe7MDzeIpBJh2QBtFshcFOfz24tvi/eNAMrTOLAloni3a0aDfkljdzY+gk1jwHW3CJWHykPt9Z9IYXkQl2tDJgK+TE/R9ytLOC2iMMU4YqYhqYzP6jsRS0kGzRdfMgHMNxop3WhmW9CMAnVYhmClpvF4Bac/VI02o3AzrSHFBkkw== 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=/MJS4QyHj8IjoqXvossq7yYnoGF0KJYdAicjwSrXoyY=; b=DL0xfIB5+C2x9LQ+LUPipCWxv8q8rUOTId96/KJV5reeZ5NkeUlIUVnrXUJYlpBWfk/ICgDvudePGVeb0jExwy9AhXDR3IllEt0awnuM40ZjGRxk9axGeYC1wVMYhbJJv+++PYnQTpGswC9dxZhghmrvFJ2WlKf8i0gwtuqSja05q1slFGRNNBnyXVbpGRq0e5MPT39HM2zh7hBd4rg4ckn99QOKkroIpo5/hWHR2T7P/OExyzyfumcFFtk2ipSVXZKDxT3sbcuNVk4n/l1LnU6GPpIcP018oIaVsA0CW4npR4tU5VxcE/rX2CHu+NeZF+8ELP5xH95wVH/9/RvpMg== 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=/MJS4QyHj8IjoqXvossq7yYnoGF0KJYdAicjwSrXoyY=; b=XcjiMG48SP0PdOu75uG8DPS9HZ6//LtELowRL99Ijyi4iGLWlg4uXPt1bIsFt2ZYaiwhqQkFRPSL2BgoI333qOKJCn5EsmUT6+2g1x7lQsgbWLNH0LzJzTbP0c6l1ok2OAAoa+2mh9H/0WHhSWsEW4YamtQWFDf82G+2SqiIk0k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH3PR12MB8308.namprd12.prod.outlook.com (2603:10b6:610:131::8) by CH2PR12MB4215.namprd12.prod.outlook.com (2603:10b6:610:ab::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Tue, 6 Jun 2023 07:27:29 +0000 Received: from CH3PR12MB8308.namprd12.prod.outlook.com ([fe80::e452:1914:1054:de79]) by CH3PR12MB8308.namprd12.prod.outlook.com ([fe80::e452:1914:1054:de79%7]) with mapi id 15.20.6455.030; Tue, 6 Jun 2023 07:27:29 +0000 Message-ID: Date: Tue, 6 Jun 2023 12:57:16 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [EXT] [PATCH v5 3/5] eal/interrupts: add IRQ count in interrupt handle Content-Language: en-US To: Harman Kalra , "dev@dpdk.org" , "thomas@monjalon.net" , "david.marchand@redhat.com" , "anatoly.burakov@intel.com" , "stephen@networkplumber.org" Cc: "ferruh.yigit@amd.com" , "harpreet.anand@amd.com" , "nikhil.agarwal@amd.com" References: <20230124140746.594066-1-nipun.gupta@amd.com> <20230525100821.12148-1-nipun.gupta@amd.com> <20230525100821.12148-4-nipun.gupta@amd.com> From: Nipun Gupta In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN3PR01CA0116.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:96::6) To CH3PR12MB8308.namprd12.prod.outlook.com (2603:10b6:610:131::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PR12MB8308:EE_|CH2PR12MB4215:EE_ X-MS-Office365-Filtering-Correlation-Id: af627e55-a665-4295-a5ed-08db665f7bc8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3X9jOpCMVz3qu/s/lNv225RQ4e4v1Z6UcWfSg/flIbJRSL1BtwzB9Ws6Da1Wft9eoFvZSEUdRXlbQAP5zhX7JoMw217V+DeYKN73RsVICPriVsSJ/XTE5NojZMndIjny+jtwX2JaGSfq3ZPCfFw2FjzblQ91LQHeqoapyvVCFRBNHAjOIBZuXvIeWckkOtWVcVG/pzlPXN4/4yiTnCgyTB8wvIoBfAwpWIJzKKw9HcL9+E2pzGgPJFQXX2ZfLIPWdVkWPG7w0gUJ5mSzpAWudanLpaEi6P+qzAL7dnu2JqhFHo1V2V/NOPtqEciVLgfVdyFGswVBRRklMQvWdITmwisiFBf+S9513X6WSAwlDHwuzImwQa/gExSEx9aujQ6yIPakb91cUsI/Q4N+8L0wNzKdsYn38inZR0uOVdrRY9vsmGB4LobHgW/eGdczmd/E9vaMha8tzswL9gXxBuOle0zhFpk8BH4L982F/NlgLcjQwIr/LhI0igPJLP4vF2YYXyPX8LvFwt6HNIH9P2VWt9WMTbmx9hjzp6jVlKhNdYVpg++LJ9a7QzMgXzK7yRMhZiU3RBVxwSEd2CGAlIuv/CO24fzrXvtL4LnXmG5HDu9CoZk8ezpqkxplAYI1qWWfdQvl7sP6+og97bughoSrnA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH3PR12MB8308.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(376002)(136003)(396003)(366004)(346002)(451199021)(44832011)(6506007)(26005)(6512007)(53546011)(31686004)(83380400001)(86362001)(2906002)(36756003)(186003)(5660300002)(31696002)(316002)(8936002)(8676002)(41300700001)(2616005)(38100700002)(6666004)(66556008)(66946007)(66476007)(110136005)(54906003)(4326008)(478600001)(6486002)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZFdrY0tNWGtDdGkxM1FVa2tJcS9vRzl4dWF6M3M4LzM5WjExb1ZIVnFRck4z?= =?utf-8?B?OHNoaDJPeW5wdEE4TXBiUzVOS0NTOHB2S25QNEo2cUk4SjQzVFdkcnpPN3M2?= =?utf-8?B?aTMyVDRJM0IveTVqeG9YdE9RTm5oU3hPZzZjRWYwSFJhQ3F6ZjViMUo4WnFU?= =?utf-8?B?Sml1TGJpNkhMaW5Wd3VUL25VWmNNdHA2UXlDRUkrWEtqcmw1TkVSOVNWMG1q?= =?utf-8?B?M05Ja2ZwY3U3MmlFbkNjVy8yMCtpU3ZoVWdFZElOZmUrV00zWGhMSkZ2bE4r?= =?utf-8?B?UHNHdDBCODFFQlJDYX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i?= =?utf-8?Q?tQf4MypEJ0wVbu/+BWWUQdP3o?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: af627e55-a665-4295-a5ed-08db665f7bc8 X-MS-Exchange-CrossTenant-AuthSource: CH3PR12MB8308.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2023 07:27:29.1977 (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: KZVQyz4SF7qZfofXADGsGP5l120r69VG46U3URYiA4PsLhxrFLWiJVN7tHk8N7Vr X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4215 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 6/6/2023 12:48 PM, Harman Kalra wrote: > >> -----Original Message----- >> From: Nipun Gupta >> Sent: Thursday, May 25, 2023 3:38 PM >> To: dev@dpdk.org; thomas@monjalon.net; david.marchand@redhat.com; >> Harman Kalra ; anatoly.burakov@intel.com; >> stephen@networkplumber.org >> Cc: ferruh.yigit@amd.com; harpreet.anand@amd.com; >> nikhil.agarwal@amd.com; Nipun Gupta >> Subject: [EXT] [PATCH v5 3/5] eal/interrupts: add IRQ count in interrupt >> handle >> >> External Email >> >> ---------------------------------------------------------------------- >> Have total number of IRQ count support in interrupt handle. >> In case of VFIO this IRQ count is returned when >> VFIO_DEVICE_GET_IRQ_INFO ioctl is invoked. This IRQ_count can used by >> the devices to store/provide total number of interrupts available and to >> enable or disable these interrupts. >> > > Hi Nipun, > > We already have "max_intr" field for the same purpose and its respective APIs > plt_intr_max_intr_set()/plt_intr_max_intr_get() Hi Harman, If we have a look into rte_intr_efd_enable() API, 'max_intr' being set in this API. So once a driver is using the interrupts the 'max_intr' would be overwritten. 'nb_intr' which is described as "Max vector count" seems more relevant to me here and I have used 'nb_intr' to have the total interrupt count available and sent out the updated series for CDX bus. Please let me know in case you have separate thoughts on this. Thanks, Nipun > > Thanks > Harman