From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 147901B627; Fri, 3 Nov 2017 11:36:38 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Nov 2017 03:36:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,338,1505804400"; d="scan'208";a="1213822544" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga001.fm.intel.com with ESMTP; 03 Nov 2017 03:36:37 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 3 Nov 2017 03:36:37 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 3 Nov 2017 03:36:37 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.218]) with mapi id 14.03.0319.002; Fri, 3 Nov 2017 18:36:35 +0800 From: "Wu, Jingjing" To: "Dai, Wei" , "Xing, Beilei" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH v3 1/2] net/i40e: fix VFIO interrupt mapping in VF Thread-Index: AQHTVIH575LsVXwF3kKqTpn8vT4vtqMCdgvQ Date: Fri, 3 Nov 2017 10:36:34 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810EACDB0@SHSMSX103.ccr.corp.intel.com> References: <1509693243-43101-1-git-send-email-wei.dai@intel.com> <1509698850-13301-1-git-send-email-wei.dai@intel.com> <1509698850-13301-2-git-send-email-wei.dai@intel.com> In-Reply-To: <1509698850-13301-2-git-send-email-wei.dai@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTMzNGM4YzUtYzg4Mi00ZDNiLTg1ZTEtZTY2OTRjYjg5NWUxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjRVb2FiUDI3aG1jMlJodUd4aE5IR3N0NTFPdmx5RFlHWjF1aXhOVlQxWTg9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 1/2] net/i40e: fix VFIO interrupt mapping in VF X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2017 10:36:39 -0000 > -----Original Message----- > From: Dai, Wei > Sent: Friday, November 3, 2017 4:47 PM > To: Wu, Jingjing ; Xing, Beilei > Cc: dev@dpdk.org; Dai, Wei ; stable@dpdk.org > Subject: [PATCH v3 1/2] net/i40e: fix VFIO interrupt mapping in VF >=20 > When a VF port is bound to VFIO-PIC, only miscellaneous interrupt > is mapped to VFIO vector 0 in i40evf_dev_init( ). > In i40evf_dev_interrupt_handle( ) and i40evf_dev_rx_queue_intr_enable( ), > if previous VFIO interrupt mapping set in i40evf_dev_init( ) is not > cleared, it will fail when PMD tries to map Rx queue interrupt to other > VFIO vectors by calling rte_intr_enable( ). > This patch clears the VFIO interrupt mappings before setting both > miscellaneous and Rx queue interrupt mappings again to avoid failure. > And remove the calling of rte_intr_enable( ) in > i40evf_dev_interrupt_handler( ) as there is no need to map VFIO interrupt > in this function repeatedly. >=20 > Fixes: 4b90a3ff26c5 ("i40evf: support Rx interrupt") > Cc: stable@dpdk.org >=20 > Signed-off-by: Wei Dai Acked-by: Jingjing Wu