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 940FFA034F for ; Wed, 10 Nov 2021 07:59:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8D00540142; Wed, 10 Nov 2021 07:59:48 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2062.outbound.protection.outlook.com [40.107.223.62]) by mails.dpdk.org (Postfix) with ESMTP id 0971540E28 for ; Wed, 10 Nov 2021 07:59:47 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AViyfy6R4kyFwjRVKWSi05r10NrWQh8T7IzTrFLMNOQIbVriHOq2YDtXqfHA/vxpMhjloKW7F1Z0sTcBxZ2YhjaOwCy4ME4MojEeAOXqeY2H5+DqUJa7yvzVI9PEHoK0KImUIwFGMVm0e8QVLOYjPWF70IXwLZfjZJyLZzvt8u9f0Y4+C1j0eant6z9JoqLcVyo3mNYSaeqH8nnBDXHXZYxx1hm1yuSqKMRifXjjVOgyIqaJecntTIklLDgK2RzFklXcsXneYKMmTrf0c/2FxbaAEJ8vIjS4n1ktTar9IawOyZssdbISq8nUS6sV36bXJUsb9uvNZ3bx52YgX3O5/Q== 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=KEZKjsRpZ5cAvwUC/iyad9cyNN9IktxZIJ+/scio8BY=; b=g0P2at5eub3axj3N2D8BJ2sqEyIjMDy0Jj1RkqFD5Z+RknRngb3Y6N7mkUwgqf49vGJk9q9Itidl5ppDWFg7SQTVYS9YSaN/XhI+grgt7oBLDPgOXB1oZybCz04sdGPQg5bTQyk8hWxtwR+xX4nMPH9vi7UNJ5k4seyVCVpn6plXgHUYOhCDTQqs70U9RcU9Icg4SBSpXyOWwFWkyesqeOL+yTzYtW5asbjw12k1g9DMq26Qs4DhcKTV1J883rrALZStCa3kAVWuBD+AfEaBMNhSs/mT6kmQTqN3sHmwMVWXDTqu1RrvkFDjFVFEQ4eG0vxzaNKGDq/keA3GtNOzpQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KEZKjsRpZ5cAvwUC/iyad9cyNN9IktxZIJ+/scio8BY=; b=ol2GUtMBh8lwhB68MWOd3O6+UCDv0q5Vc4kgq5nf9rb7qwN64ZZXpXAnWDwGbK9JMS3mG4qVXGVVxLUuxDmB/+UreWwElyceqjluIi9X2bdnXAuDtSWZdcaa3S53OsAK0g67aGISAVcLLube5izd/v1YyaRVFjUUEwkqLTVWtw/NwDSZyK8uzBVmK5NVAwVJO0v3yvAm0pfhj6jiEg7iQEuWmGxHsHN1yrc6I3uK4XBqaxdHPjmAKYXCtatednNHetUSAbd1r6Ha81zo3u6gdWYAnccAotqw78zskW2e5lfmZiIljiaAHIFTX3aZ4Z7ZwZRZsIYnuQ6TNKWUVHb7yA== Received: from DS7PR03CA0229.namprd03.prod.outlook.com (2603:10b6:5:3ba::24) by DM6PR12MB4731.namprd12.prod.outlook.com (2603:10b6:5:35::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11; Wed, 10 Nov 2021 06:59:43 +0000 Received: from DM6NAM11FT055.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3ba:cafe::2e) by DS7PR03CA0229.outlook.office365.com (2603:10b6:5:3ba::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.16 via Frontend Transport; Wed, 10 Nov 2021 06:59:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT055.mail.protection.outlook.com (10.13.173.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:59:43 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 10 Nov 2021 06:59:41 +0000 From: Xueming Li To: Maciej Szwed CC: Luca Boccassi , dpdk stable Date: Wed, 10 Nov 2021 14:32:13 +0800 Message-ID: <20211110063216.2744012-250-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 42892339-7e5a-4ee2-5bb7-08d9a417ac8d X-MS-TrafficTypeDiagnostic: DM6PR12MB4731: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OV85UWLPjjpYbRM42Z1D0JpOuRi0qxKxVD/azlEablXe78xjBMS+F3AIbwW814ZSJERqvaILlC6NEpzYtdjlNzHASlHDlXVdzHKg27OaSUhj/HCxXUs/TXT6xgvF5bjuvDU9MezbrUTrzG8XR8DWKU6r4RQi/rMDS7IOJoeLysuqJGholyY8c56dc53ag4ZuzTZ+V/wwl8Ykz/nMSOtlFty1R7nN01SGckP9TcXV3T/Yjb93KiY3bedd7zNtEREpxWHBvLu5sghnvc+iB4KnQh57ojjIriVY/ryqwxqc0Lx/E6oFS/cP1eBeYbxDcL+m7kRcLpg9XRz0xzYQhYB9CUPO1tjHOoLEG1SK358IVaV5iksrcZGdkmCkFvj6UTOD6oejqLjEMCc7/Lo3jsCiIf4TXahyHDPn9PSVCGtckFwGPEoHSZU0alMW5zMbghTCIP3ENGz2ODn1Qam3hR7mdbD/auiWL96hSIeG293n8n6VMZx3TB5ymq+JF0VJvD5kaJWLQdNDQS7UbT1nFTM494xghnsabV8IKTPWmXoOm6H73tR9RmdlW+ZAQmmu+6xIQYZjht4PPtiAFXc06jCKxEoNR+C3HLHg3Xx0oKb1Ogj5OLtzW3/FdJoSrHQbJpKxO4tN9YV2yeE/o29HfdAJqzLtwnyB4eFYV9Tgs0NWUbygrbZ+7B+A1HfPwEucLfRboznx/4Tl5qLNEktMFP3/NeeUyiH9IZTATREewPX1F09Wt4Z/V6f2PBfFElEip8HHXSTRgPd3iQdQ5qruMfrvuaLeoj6nLOy6Rm7oNyRpXgxkNs2IJGJneJbMrvkjvTPeXDh1o2q8wKBQP2RMKaaetQ== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(316002)(6916009)(82310400003)(7696005)(47076005)(966005)(70206006)(4326008)(508600001)(36860700001)(356005)(70586007)(8936002)(1076003)(8676002)(7636003)(86362001)(55016002)(53546011)(336012)(2616005)(6286002)(4001150100001)(2906002)(36756003)(426003)(26005)(5660300002)(16526019)(186003)(6666004)(54906003)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:59:43.4554 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42892339-7e5a-4ee2-5bb7-08d9a417ac8d X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT055.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4731 Subject: [dpdk-stable] patch 'interrupt: fix request notifier interrupt processing' has been queued to stable release 20.11.4 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/12/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/0fcdac4ba11dcf8f0631c41b80db8d64147baa5a Thanks. Xueming Li --- >From 0fcdac4ba11dcf8f0631c41b80db8d64147baa5a Mon Sep 17 00:00:00 2001 From: Maciej Szwed Date: Tue, 19 Oct 2021 12:06:57 +0200 Subject: [PATCH] interrupt: fix request notifier interrupt processing Cc: Xueming Li [ upstream commit aeed570a211fe31c976f9f4de07039cb7c8a125e ] We should call read() on RTE_INTR_HANDLE_VFIO_REQ event to confirm that event. Fixes: 0eb8a1c4c786 ("vfio: add request notifier interrupt") Signed-off-by: Maciej Szwed --- lib/librte_eal/linux/eal_interrupts.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/librte_eal/linux/eal_interrupts.c b/lib/librte_eal/linux/eal_interrupts.c index 1dd994bd1f..6fe22589bd 100644 --- a/lib/librte_eal/linux/eal_interrupts.c +++ b/lib/librte_eal/linux/eal_interrupts.c @@ -906,17 +906,14 @@ eal_intr_process_interrupts(struct epoll_event *events, int nfds) bytes_read = sizeof(buf.timerfd_num); break; #ifdef VFIO_PRESENT +#ifdef HAVE_VFIO_DEV_REQ_INTERFACE + case RTE_INTR_HANDLE_VFIO_REQ: +#endif case RTE_INTR_HANDLE_VFIO_MSIX: case RTE_INTR_HANDLE_VFIO_MSI: case RTE_INTR_HANDLE_VFIO_LEGACY: bytes_read = sizeof(buf.vfio_intr_count); break; -#ifdef HAVE_VFIO_DEV_REQ_INTERFACE - case RTE_INTR_HANDLE_VFIO_REQ: - bytes_read = 0; - call = true; - break; -#endif #endif case RTE_INTR_HANDLE_VDEV: case RTE_INTR_HANDLE_EXT: -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:12.840215631 +0800 +++ 0249-interrupt-fix-request-notifier-interrupt-processing.patch 2021-11-10 14:17:02.090744291 +0800 @@ -1 +1 @@ -From aeed570a211fe31c976f9f4de07039cb7c8a125e Mon Sep 17 00:00:00 2001 +From 0fcdac4ba11dcf8f0631c41b80db8d64147baa5a Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit aeed570a211fe31c976f9f4de07039cb7c8a125e ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -14 +16 @@ - lib/eal/linux/eal_interrupts.c | 9 +++------ + lib/librte_eal/linux/eal_interrupts.c | 9 +++------ @@ -17,5 +19,5 @@ -diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/linux/eal_interrupts.c -index 15a27a2abf..6e3925efd4 100644 ---- a/lib/eal/linux/eal_interrupts.c -+++ b/lib/eal/linux/eal_interrupts.c -@@ -947,17 +947,14 @@ eal_intr_process_interrupts(struct epoll_event *events, int nfds) +diff --git a/lib/librte_eal/linux/eal_interrupts.c b/lib/librte_eal/linux/eal_interrupts.c +index 1dd994bd1f..6fe22589bd 100644 +--- a/lib/librte_eal/linux/eal_interrupts.c ++++ b/lib/librte_eal/linux/eal_interrupts.c +@@ -906,17 +906,14 @@ eal_intr_process_interrupts(struct epoll_event *events, int nfds)