Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1079682rwl; Fri, 7 Apr 2023 09:35:01 -0700 (PDT) X-Google-Smtp-Source: AKy350ZPoacA6oeqHDTKiWH8mlruM9O3bO4QhCOueB0GqxwcBz0sZt4izOiHLrg6OsghOsgA+O/M X-Received: by 2002:a62:52d0:0:b0:62e:43ce:e6ab with SMTP id g199-20020a6252d0000000b0062e43cee6abmr2902998pfb.13.1680885301052; Fri, 07 Apr 2023 09:35:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680885301; cv=pass; d=google.com; s=arc-20160816; b=YPPcycZTdMQmlx0ANIJHDwV3EucZ3XaPbIysBX3FMBOv045aNUE7NSuJrfKO6xoYIZ 8shvL2U+4jQc8SFsxVLcU94Zo3uMHzd/FMNB2A7ATydcuvSuQZNjnsKZCPy5WdjXaPeK f5zx4hTA/1OCY1rZhQ5OxoVAIW785Xif1GF5sJoSFiWL4mgUWPwbOR2/ZY8lcqD4lf/y ixJTNsPVo1ztu8LC1zA07BhUCnM9YwKLlVESKaQ2v7nz0gmyYjvzhHCwUSQJtbl5ZoEK bXWsaKz/dQnDb1w4YOep5YOE/kyg44T9zzRnmItaezfk2jhQQ0Jdbhuq/z1hBbSfVChg DD9A== 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=OaxRUfVwr0B4GhbaRw2ixKbe8Ce4kFEaMx/imqMjom8=; b=ZS8mAtbrdSf1gxih+eChV26+LwCVkpW46pBL3kuPiFufPjiZawryDjMrOJvUhZ1fr6 yBTESt1LezmwRxmvi2rp5McmsE+7WoP/d6pb16sKTTHUPu5MgQWqVeN9wIEfi0hzwbwK NcyFTqYxgk59vosOFKBpf2nTmF5r3BCcFQ+bj3Yjj8uz0mb1wf1mXf2no3/IeA6tbxzX d2xZ+kkk52ciJYoSApBtjAufNiMrT59TQFCbIVK0pTFBh3pEwKVJDWNbKtOariH8dw48 9Qmge6ZELOZENiGbBfGuE26b35tXYePeYTDMRO+iSyw3EaVaK9MypYQliHxjsItwHtK8 ZBMw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=XHIOAAhl; 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 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g29-20020aa796bd000000b00623cc95e511si3917305pfk.117.2023.04.07.09.34.49; Fri, 07 Apr 2023 09:35:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=XHIOAAhl; 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 2620:137:e000::1:20 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 S229631AbjDGQde (ORCPT + 99 others); Fri, 7 Apr 2023 12:33:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbjDGQdd (ORCPT ); Fri, 7 Apr 2023 12:33:33 -0400 Received: from DM6FTOPR00CU001.outbound.protection.outlook.com (mail-cusazon11020020.outbound.protection.outlook.com [52.101.61.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F68346B3; Fri, 7 Apr 2023 09:33:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FKNtV0jn0JoCYkM/NcAbMvBWzxT42/eIFWJ+OZo7vwoovkamt/0IkBzJw4SNJdC0uZ0kxqsO1ylYP5LADvmJL7Z9kv8/PXm1v6D7uSJE1kJ6Eo+qlSz5fPElofN4bOjyifH2XqJAq2Mimiu9PKo03oEchSiDDLIYuckTHMCDP9XxHkMyTdxPxWnEifwSQlw6JOWlen1GYeDfpZc58UDS9I5CF1lT+5q40FMuQo+smoQYpjGJdiHpHn6ieqgFVusr+83MMyczzNG9KsSNPH02WIgIICnxQTwuERPTYdooItd8cD08YUKLmbPUl1H2nPZEJGdT/dzAyKLdfpVe/t16Xg== 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=OaxRUfVwr0B4GhbaRw2ixKbe8Ce4kFEaMx/imqMjom8=; b=NNO0V6fOi7da6T7upSd5Xr8YgnVPL9QBqzfdKX4YMKI3utGdz42hsMacRBslTsISQvArPr/ONUwL0Yz9SbzNVoZIGqFJJaAhNxNBMS6pHaYwaTFVjXbBjJ2ak0s1HDD6AmXQVOtQzYKe2zMPXl1Q5I5r+5n7RavoGPSzUKVAlYWQjkWJcpKqY9ChCVbPopP44VIsajuAxRUsdQu+glxJFFd5S9Kkvn3bOCntQVCXw5v+Q6Wxs+S0RadS1JunKfAF01qKZ8bD5gOTLD4UQMDML+J1q4k6bmn0w2eWiudr1G/znXmVOOaXbYojcRTD6c6ZtVXVgU1KFdv4J1xxlmanYA== 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=OaxRUfVwr0B4GhbaRw2ixKbe8Ce4kFEaMx/imqMjom8=; b=XHIOAAhlkBvTK404uoTm+9laqWTa8h5y23o2WlnI31tO9Gj7PFOZVJiprHJBGPDhJKae65yu+mZ7k+clsxLVI5pdjaOTViyRa+k3y45WmAseKEtcWyTuo/P1FFIfqs9+IFyaEgw0UdqONOEYnW2yvzKjZq8fj4jD10QIfOSpedY= Received: from BYAPR21MB1688.namprd21.prod.outlook.com (2603:10b6:a02:bf::26) by BL1PR21MB3138.namprd21.prod.outlook.com (2603:10b6:208:396::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.16; Fri, 7 Apr 2023 16:33:21 +0000 Received: from BYAPR21MB1688.namprd21.prod.outlook.com ([fe80::acd0:6aec:7be2:719c]) by BYAPR21MB1688.namprd21.prod.outlook.com ([fe80::acd0:6aec:7be2:719c%7]) with mapi id 15.20.6298.018; Fri, 7 Apr 2023 16:33:21 +0000 From: "Michael Kelley (LINUX)" To: Dexuan Cui , "bhelgaas@google.com" , "davem@davemloft.net" , "edumazet@google.com" , Haiyang Zhang , Jake Oshins , "kuba@kernel.org" , "kw@linux.com" , KY Srinivasan , "leon@kernel.org" , "linux-pci@vger.kernel.org" , "lpieralisi@kernel.org" , "pabeni@redhat.com" , "robh@kernel.org" , "saeedm@nvidia.com" , "wei.liu@kernel.org" , Long Li , "boqun.feng@gmail.com" , Saurabh Singh Sengar , "helgaas@kernel.org" CC: "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "netdev@vger.kernel.org" , "stable@vger.kernel.org" Subject: RE: [PATCH v2 4/6] Revert "PCI: hv: Fix a timing issue which causes kdump to fail occasionally" Thread-Topic: [PATCH v2 4/6] Revert "PCI: hv: Fix a timing issue which causes kdump to fail occasionally" Thread-Index: AQHZZpopUQZ8ge3HAEe7nozotRXSl68gDtTw Date: Fri, 7 Apr 2023 16:33:21 +0000 Message-ID: References: <20230404020545.32359-1-decui@microsoft.com> <20230404020545.32359-5-decui@microsoft.com> In-Reply-To: <20230404020545.32359-5-decui@microsoft.com> 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_ActionId=0646763c-c920-4a7d-929b-d542dcfd3725;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;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_SetDate=2023-04-07T16:28:42Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR21MB1688:EE_|BL1PR21MB3138:EE_ x-ms-office365-filtering-correlation-id: 8e2888a6-f3b4-40a3-f0f7-08db3785ccf2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: KX7KniZCgV+vD49iSTmmlWgJ1dw1jCpj0qQqZsUIxqYv9nHTec63O8WaWbOQQ9jwyLek6VNvvOvE8uKUaOYTjd6QdiNIqpgH1kRVcIXQjFtQwq8nnY+oNKfOrYLK0umSccnl9p5kPTLI9JwgGU2rf6k7fx2S63OTuwhoLg0HAIBStPKtns3RG+FsayQ+yekYIbsJVkOW0ZpvEkZdO8eKNsA8Ke0scIoUoSZE4bpIWUuGkVmTpLOZlhdZUETPBRk5TgTQvktth57Ez6MozcWfs72nP5selSmy4hF9wIunafcIRUGEP4vFyFyMEk4CP+1uwpmamm+k1nF9OctK8lz7mue1WuVimakWm1aEI+OFA+fWdZBzyZD84HTL/iChw3dUJ08GkXfsEmZrME5ATO/KrTOQMS4TcjLWQix6Vl+uWvAaFZmhad6RmjwoWlVjdjBYeaVjwQD5zAIn4renEllLfQXIIdo8S1GMo1pxwcZdmy6ugsOqPJ52gmXK3q2bl18FjSqz+XVd55C+qHuS5z1Nl8ABvruFfcVNmbCav+UDel9BrQjj10XwFpZ0GMskCfRNcjGHhTpbJ1XqLfYIJ7stw7G9LnHuA0J0kCpmlru279MmBCwKtQ/QAaqUoQgz0lmGK6bQ4GBZdB/J8Mre1B+A7KOQ1zXsPTZqaN1D8rXvpGExftw5gMNTHtsMZ3H3ASS0 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:cs;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR21MB1688.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(396003)(39860400002)(376002)(366004)(451199021)(55016003)(122000001)(66446008)(38100700002)(33656002)(38070700005)(2906002)(7416002)(5660300002)(52536014)(786003)(66946007)(8936002)(86362001)(8676002)(66556008)(41300700001)(921005)(82950400001)(64756008)(76116006)(66476007)(82960400001)(4326008)(83380400001)(110136005)(54906003)(26005)(9686003)(8990500004)(6506007)(316002)(71200400001)(10290500003)(7696005)(478600001)(186003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?9nj8Xji5801wmyc6GnsHHM7/k5tn/Y9PO9VvmMEP/emshvglZLWafuroLoa7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Au8wOmTCjoBi8Pmv+HVgZ7DJUBgjfmcfg2?= =?us-ascii?Q?XnDOUzuhesF6l7s6QCtKCYgJZcLUuo/IrPf0DaiqOsGo2Nc3z2a6CwzHlUdS?= =?us-ascii?Q?WMMf0RJ40OL205USdDdM1oEllk2FQ1S18BpwtyHYN0ReF0jAyhRcFdJBKf5u?= =?us-ascii?Q?N88qAYyuKbOpYmqVTq4FZ6zyg7MmjrWmC6ZfxgCPDw4pmGzXvgXeF+Kh0Q/X?= =?us-ascii?Q?+WMqmBQh+VuCpRvnYWt+Uk6zUX+dyH2KM52xjfhyWWo5N8FZDJGVmGTmeogC?= =?us-ascii?Q?soYfZ4eeRHMc/TqfKTZsk05aaJf8VJNov695OBnWaDbxChxJ3vLUmjZK9N3R?= =?us-ascii?Q?Nn0UAhJkIMunaYeqfy5MEt42TmRStZBvkLBXfaCPeDhj94j3uusqIoKFXqFe?= =?us-ascii?Q?/PaTCypX8gfj4FnoXRdhgWgIM0j62WlYIs+M1pmsvTXuBIIEtymyCD/r8lmZ?= =?us-ascii?Q?HNlzSmC+u4y3lzaD5Qthyp5HstNNYRM69fgfZtv+4q4C+G+1czJIVDUrf77T?= =?us-ascii?Q?XDYFQmGObqaBxAiBIuyLPeHD3PDmFFMFJ6hwvKTKWDrkO6W0MBGUZkrJeUcS?= =?us-ascii?Q?UyCMn2ldBxFEc9x5ceTKZ6vrZUBiufATNLnRn1f4dHFpYONfH+rG4XwjCTk/?= =?us-ascii?Q?7pHCnBNs2QinM508rHad2qXQIEgBiPu7Tqpl7RoYiUfkur9hKlJUEB404TzY?= =?us-ascii?Q?dA=3D=3D?= 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: BYAPR21MB1688.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e2888a6-f3b4-40a3-f0f7-08db3785ccf2 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Apr 2023 16:33:21.1462 (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: cCNJRowe1oPyNpxH0ECvF7YexIf/OgNseZjW7Y6WYw4eNGFwMnU82Ef1lromVJZbnb9ZSkL/VEtqLPP3wDp8QcI3Xwcr5uNudIWQmwE6Fg8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR21MB3138 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dexuan Cui Sent: Monday, April 3, 2023 7:06 PM >=20 > This reverts commit d6af2ed29c7c1c311b96dac989dcb991e90ee195. >=20 > The statement "the hv_pci_bus_exit() call releases structures of all its > child devices" in commit d6af2ed29c7c is not true: in the path > hv_pci_probe() -> hv_pci_enter_d0() -> hv_pci_bus_exit(hdev, true): the > parameter "keep_devs" is true, so hv_pci_bus_exit() does *not* release th= e > child "struct hv_pci_dev *hpdev" that is created earlier in > pci_devices_present_work() -> new_pcichild_device(). >=20 > The commit d6af2ed29c7c was originally made in July 2020 for RHEL 7.7, > where the old version of hv_pci_bus_exit() was used; when the commit was > rebased and merged into the upstream, people didn't notice that it's > not really necessary. The commit itself doesn't cause any issue, but it > makes hv_pci_probe() more complicated. Revert it to facilitate some > upcoming changes to hv_pci_probe(). >=20 > Signed-off-by: Dexuan Cui > Acked-by: Wei Hu > Cc: stable@vger.kernel.org > --- >=20 > v2: > No change to the patch body. > Added Wei Hu's Acked-by. > Added Cc:stable >=20 > drivers/pci/controller/pci-hyperv.c | 71 ++++++++++++++--------------- > 1 file changed, 34 insertions(+), 37 deletions(-) >=20 Reviewed-by: Michael Kelley