Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3010467pxb; Sun, 28 Feb 2021 22:08:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwd089jcbb81ksxJFO678XH3qjB1FKEffwYmwvNNVf6TuSN7/ZmPaN+NXcAmTxZeZY6qyzZ X-Received: by 2002:a17:907:75d9:: with SMTP id jl25mr7516560ejc.452.1614578904444; Sun, 28 Feb 2021 22:08:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614578904; cv=pass; d=google.com; s=arc-20160816; b=BqzrQljNNY3lUkJG5dVpOfJWCqPW9MXy+FryxVD9N4ureOccw13TgoQ6PyI7AWW+fw BVzMizOkGNmtpiWWvv10qYDFpvixpXdJ88M7wN9Wp89VFFYs71UYS9C8H9QWsPlC6Anh ITH7cemU+OBfFi2S5TndpZ4lB+psAL2WC+aUC7n+z3c0gTx/ARAmkwuR/RF9WmxlJhL/ owKaqX4kpqk10OyoWtXBnzX0jIDDO9GwPAFK/bdAsEhFhcz2nqHQO11OSTmQ0TuHzB/Z ZOkQ1E+AF2rAV8hK55b1CXduIZMISHQBysucDXifBpOwcNDNAFfLmomVrI6Hj29kvWM5 /9kw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=/2icsW3OsEdmdclppKAN4flTxD1k5egjw8P3Y2n4N6M=; b=xsd6usjJtRO822xGbvHe7PaOWpEOhoRll+h3owJNQWJDdsRmlro0rSOPXI6FupPbgq 6GC8im0jxxOOIwQ0pBQSZefNTe7OEIL+UFB4V7aob4o9fxvQchmtuPlly6idH8dx4rYA b1Uj2bHLzTQZxRi35XHHMa7QYr8x71uMC+lC/0R81CKz3DLbAogiOVH2G/+vd0/b/Fd6 drH8ymzB6rnKl59e8OlKf3yv07y5r86SYHJC6KLaJIUKqPZPrFbfthk8tg0y/3+OF9PW Ze4fS+cWF+qGNf6rNLpdiZNzljv+7b8nXqP0wzA3OMm8yu5m1O+9Hk5VTjEBEvvW6eTz /hJQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=gOExQM9+; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si3892036edv.55.2021.02.28.22.08.01; Sun, 28 Feb 2021 22:08:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=gOExQM9+; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233424AbhCAEZ0 (ORCPT + 99 others); Sun, 28 Feb 2021 23:25:26 -0500 Received: from mail-eopbgr760130.outbound.protection.outlook.com ([40.107.76.130]:15305 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233413AbhCAEZC (ORCPT ); Sun, 28 Feb 2021 23:25:02 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ql948GNaUeEaTodMaWy7gkw/DxvawY7BK8dnWwxECCU8gPDFW6CJnOHsxI5a0zRb+rYlrVWLPrPT5FNiXf0SOvgifPZUB0JIeWurRgrxawBYc2aVodz72hu4ugYFBkiBsUICyQXO6bx49Qe/OjY3j0Ibamuy85Cikx02u8PiTb5ucf5VxiCnua5f0z7Mm7ty+vejfH6YIsWvkMrTLTnrpGNVlt0J9VB9OQemfw41GnMqjS7QfijbEJiSszaood4inZT33wk5PawFP8BjUNxXUpBUsJh4luBxKPozFDNpRNAHpoWFtGgrgwjiXuHTekl7hhK3yOEzwJ2sxivSTanrgA== 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-SenderADCheck; bh=/2icsW3OsEdmdclppKAN4flTxD1k5egjw8P3Y2n4N6M=; b=MlSANyILSqWOuCBF7+8ngr7XeVs+RMw5ruT5tRCSE+e48gijuiGfcuVIvjwLoQJqr4hIF7wDQFIS5hzJZrnDfjQ9229T4StPQakGYfiEvvsD13G0xNry/qvS/guHEp5CcG6MO1u/zzxo64zgQipwgyBBWL7/TnmmXScOwBOqc9TwFRLJS7PzBnKKHthL/YAoRdEyfPLysrRE9mVhn2Yg1XvjQzuFj7AWAhRxQJlCUPXv2Xcwe6GhN+zm73iwnf36iYq+o2gZ8rLfDq+HhVNPKObPy5U44LSk8f7hgxwNHGPUx3N14rWD92nlzplKziVmH+LzZgxvSX8qHbbQ6EgZ7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/2icsW3OsEdmdclppKAN4flTxD1k5egjw8P3Y2n4N6M=; b=gOExQM9+jQNMb5SNdt4VvQtGffVIOTDHCuAmEXlVkpknOmLxQgM4X+RaMQQQyGGR0rpgyKJQpORKcmoRDXWxSSC2Y3r/zv8i85MzYZSsfVFHKGSjwPGZPe1f8vYHwhL5veO0V7h0iB8Bmh0kGd4CU9W5hnmJDaWLwL/TUpVXlO8= Received: from MWHPR21MB1593.namprd21.prod.outlook.com (2603:10b6:301:7c::11) by MW2PR2101MB1771.namprd21.prod.outlook.com (2603:10b6:302:7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.2; Mon, 1 Mar 2021 04:24:12 +0000 Received: from MWHPR21MB1593.namprd21.prod.outlook.com ([fe80::9c8:94c9:faf1:17c2]) by MWHPR21MB1593.namprd21.prod.outlook.com ([fe80::9c8:94c9:faf1:17c2%9]) with mapi id 15.20.3912.016; Mon, 1 Mar 2021 04:24:11 +0000 From: Michael Kelley To: Marc Zyngier , Lorenzo Pieralisi , Bjorn Helgaas CC: Frank Wunderlich , Thierry Reding , Thomas Gleixner , Rob Herring , Will Deacon , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , Thierry Reding , Jonathan Hunter , Ryder Lee , Marek Vasut , Yoshihiro Shimoda , Michal Simek , Paul Walmsley , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-hyperv@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "linux-renesas-soc@vger.kernel.org" Subject: RE: [PATCH 04/13] PCI: hyperv: Drop msi_controller structure Thread-Topic: [PATCH 04/13] PCI: hyperv: Drop msi_controller structure Thread-Index: AQHXC4iU5jnjuyQltkGI/zHzReHG96pujFzA Date: Mon, 1 Mar 2021 04:24:11 +0000 Message-ID: References: <20210225151023.3642391-1-maz@kernel.org> <20210225151023.3642391-5-maz@kernel.org> In-Reply-To: <20210225151023.3642391-5-maz@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2021-03-01T04:24:10Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=eabb8b66-493f-4e10-bbd2-5adf76bfaeff; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0 authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [24.22.167.197] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: ae85f2f2-95fa-4380-3578-08d8dc69dd8f x-ms-traffictypediagnostic: MW2PR2101MB1771: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3383; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zA8Xf97FeNAYMljx+guElN6hLuiADXn+Ors6gSxVINeqsZjYMOdM9QpqBC/SCZJZUsgYlxGyxc6miqwYCyX326kirktKEk/HwqKszapoJoznZiiPy5JbM/hgyZAxHHzq9Px9dgoezx762tGsAbL1HjFcIyXt8Ppoz2xZSZTwAcgmWQUHFSd6wUVdiApwFEfUX9Wd/pNYOFSgwZRIjjz7q47zR2m4v+3HkDWBWQggJS8NGRV5NO83Mg2/sVGEFD6yQNFk316YXpAc0gV5Ad4vN/NytoQY9vCNKAsM0dUCOdoZrZt+C+DRr8I0f4FcyqMpbzyss963VCiNcmnFySOT//iDZcit/IWpJLEbYmS3XEboFW/Ky04/zXa7/5fEmOsrk+swD++KEjIqc6geESxW74wghwc1rYpM7lU8IZ4kaMMhSQndW28w4oac4Hp99oP+4PRpY+ZZ4TmP0VRUQRr+8elW/NQ/6ko+xcH4zNAtm6fVNNtI3SPJpjCkLGZCjoOfSdkB7o0wHeAL/65Ydgps8w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR21MB1593.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(376002)(346002)(136003)(366004)(39860400002)(9686003)(54906003)(7416002)(55016002)(5660300002)(4326008)(8990500004)(316002)(8676002)(110136005)(6506007)(7696005)(83380400001)(86362001)(10290500003)(76116006)(33656002)(66946007)(66476007)(66556008)(82950400001)(26005)(186003)(2906002)(71200400001)(64756008)(66446008)(52536014)(82960400001)(478600001)(8936002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?BS7e8GTot/mfhUYn4XRAqpCaC9qkKHu5pIQNn26SdVhirzYgribrl9KzyKKj?= =?us-ascii?Q?loMZ/d195BsNT562EsvSLfeMux2lyG4HbR4yS12/5/UbQGOFPhD+FTaPwQY1?= =?us-ascii?Q?bAxfNHnqgeYFhNgVrzNN/sX6MDrmnAFFXH1k04GOS8jHUAhODVr/C2llx8to?= =?us-ascii?Q?/lHdHwiP3uzezEfTC+48HcIbmwBKwXMpFD5RS9zzpk3+5wLpwL38QXsMNwxL?= =?us-ascii?Q?54T1wj9KlWe5BSC9RgFSNARERKiGT8UrEbXIP456pJP0FMiWEkWqHxlLYLLw?= =?us-ascii?Q?tXsFV+4noEVziUrr5As86LQZHETT6non+/8OISrGQPn+OGv0aPgxL0BGm4Oo?= =?us-ascii?Q?R6kS8xlqlphrp7KByjPuWRlrfg5ejM7gm5qtdYITlyaArfYCiY1ugMd7AEJ5?= =?us-ascii?Q?GHZ6N4o8jcRmtvJp27TirSYDkR/0gEhOCPu7H3nb30/4v8tvntF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ODS?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR21MB1593.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae85f2f2-95fa-4380-3578-08d8dc69dd8f X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Mar 2021 04:24:11.8282 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: n+O5UsEWE9p2BnBFvIgm9albmGBjI85pKIIq3L0urnCof6QKmTCRClUpDznQAspFSfUjwtTuRu5HWQB+ryEA1sCejGQztMC36Yu9FTt1CkE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR2101MB1771 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marc Zyngier Sent: Thursday, February 25, 2021 7:10 = AM >=20 > The Hyper-V PCI driver still makes use of a msi_controller structure, > but it looks more like a distant leftover than anything actually > useful, since it is initialised to 0 and never used for anything. >=20 > Just remove it. >=20 > Signed-off-by: Marc Zyngier > --- > drivers/pci/controller/pci-hyperv.c | 4 ---- > 1 file changed, 4 deletions(-) >=20 > diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller= /pci-hyperv.c > index 6db8d96a78eb..93dc0fd004a3 100644 > --- a/drivers/pci/controller/pci-hyperv.c > +++ b/drivers/pci/controller/pci-hyperv.c > @@ -473,7 +473,6 @@ struct hv_pcibus_device { > struct list_head dr_list; >=20 > struct msi_domain_info msi_info; > - struct msi_controller msi_chip; > struct irq_domain *irq_domain; >=20 > spinlock_t retarget_msi_interrupt_lock; > @@ -1866,9 +1865,6 @@ static int create_root_hv_pci_bus(struct hv_pcibus_= device *hbus) > if (!hbus->pci_bus) > return -ENODEV; >=20 > - hbus->pci_bus->msi =3D &hbus->msi_chip; > - hbus->pci_bus->msi->dev =3D &hbus->hdev->device; > - > pci_lock_rescan_remove(); > pci_scan_child_bus(hbus->pci_bus); > hv_pci_assign_numa_node(hbus); > -- > 2.29.2 Reviewed-by: Michael Kelley I also tested in an Azure VM on Hyper-V, with a Mellanox ConnectX-4 virtual function as the PCI device. Started with a 5.11 kernel and applied all 13 patches in the series. The VM booted up correctly with nothing anomalous in the 'dmesg' output. The Mellanox VF was detected and configured properly. 'ethtool -S' output showed that the Mellanox VF was handling network traffic as expected. I also hot-removed the Mellanox VF, and then hot-added it back again. All worked as expected. So, Tested-by: Michael Kelley