Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1405554pxj; Fri, 18 Jun 2021 06:28:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxns3y+iUGyrKennBG8eWIscn+G0XDQhrla83umgGR6x7D0RJ4ms2fhSjIKBJKEanTBztT9 X-Received: by 2002:a05:6602:702:: with SMTP id f2mr7797131iox.29.1624022918330; Fri, 18 Jun 2021 06:28:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1624022918; cv=pass; d=google.com; s=arc-20160816; b=WICaKzmfQ96QbG7S/ObtKexB9VTR/W3s9dIO30J9cwrf0tBLXM8w1U3ut40FIxIpn7 KxMhJoVuhjjJ2vaERLP1ju85CumfbTVFSt+Uz8NRPs6vpX2Cs2rNogSkChrCyaeRvpxY YVBJOCezUgbyLTUUZm91Bi3edKSVLdFD59njgP9h3NDhrKXwKJ60ovTDpL5rpVs+MSAQ tgJYsUQgzPny2V9QOZAix4H5QWz7Tbc/YpuRwZSdgD6+tAPk3CyUYghlQ+64lNZw+mg1 MaQYoD2JLY5yJSxi569MfmaPXpmbAsGtweJq8TVppc0IN0/kXWMUrsgwOxZ6ww2IUSPg 4GRQ== 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=o5X8U0XoT3ysVa4LX1FoKBtCIp8Wd6yHSPcpULxj6xg=; b=LUTh161K71kpeJiOj5ouaBh39mLdXE2FIOsPohwe2zJKfHoI9X/3wIIMO3+1pAYzh/ 631BVH30HNFnbyHkBQ5WXYiffm/77voF+v02TL3JS7rAZpF1aYODx8LOnjN8Ctv2bpEI /3Zh5g2cMCd4+p67nWBz98Mta8+KvvRJCL34CV8eTXOHfFkspQCxanOa9DOvYdp94QEx 735uMXEZJ8MUyNLE6huL2JWAf80BR47hoxFOmWSUuy6A4xj7rrByI5JUyMwhkkd6DqMZ b98SvJvrstpHPTEqQNU4xi9Jjtaye6/bz8ZlpJ91ut+tkfi52WNbbK0HbIVg5HZsabTF zaew== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b="W+WEQ/5e"; 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 8si10893673jao.112.2021.06.18.06.28.25; Fri, 18 Jun 2021 06:28:38 -0700 (PDT) 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="W+WEQ/5e"; 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 S233692AbhFRN2V (ORCPT + 99 others); Fri, 18 Jun 2021 09:28:21 -0400 Received: from mail-mw2nam10on2125.outbound.protection.outlook.com ([40.107.94.125]:43232 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232740AbhFRN2U (ORCPT ); Fri, 18 Jun 2021 09:28:20 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dTPb/Thd+GDXP4gvciTDHhizCy8vG94bydV9p95JW4Q2cw7O5ZbZTaIjCN12NSqFnVvytltw+etxsTfaH7lbiX+QX8uneZhDXwgZ9oLMM0g9i69P8R5pPYZikv21BvbI5Y3n16yKPFIBE6JYO2eXqkxqTv7eVEkWpCBuyD9a4/a2Z8SXluaNB4L62elPbn7jhd7o1cMLpsxrbwGw9hWj338vVBirStOWFyB2Q4Ng3ViwGaySooxaEcequ9LZDGvq6Cy1nPHqFxTJKseDx+1xuA6vVMycCqrOmgame1e+WubRZukOdVn2Hoht8ow5NKz5CMSHcaMzNaHsMNu4pkJLwg== 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=o5X8U0XoT3ysVa4LX1FoKBtCIp8Wd6yHSPcpULxj6xg=; b=RjOt3nbL008pA7Ry9BbwFnCmhTu7b1Lq3GIeVIpRvYtZxgKAYw2jRplA/D6Yw+maHONSZMj1vMZLAqgiWPsD93dpytVxvbchOp0DYUFJl9Yh0wIqG0Y+QQGUPY2D3XLGic5QKvEFHG7rxzinGZnz9GUsWdYL5jXmUotIOfM8Y16ptoVumoyVsQSA9zeojRszCUd3Zi1OGjkFleSNWtynVUJijBlUvqWgt2hkCw67ZVOOhuVDZDuOyQ6VT86fQWvcLrQ49NSJzCLtZSbLvymICbUQh1+v5KQbVI5WEG60FYiw9o2udLlaCTYeOKladU7MCdBEOJWS0JsuBxm68Rd9Xw== 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=o5X8U0XoT3ysVa4LX1FoKBtCIp8Wd6yHSPcpULxj6xg=; b=W+WEQ/5eCUpvQ953qxMhp9mV79ToqYaPEIFnqRkKZKR14Y4srFt2g/tU7oeLD0llUyxvK/Tn5dxzY4EHf5kjE5wmRvXYz99PjpwBFNiWrq68nL2prZLpeJhpBcnXQH+1kGSYoPQmFASo5CGUgPEe6KnAEo7wGoxlh/Gq5wNWZUo= Received: from MN2PR21MB1295.namprd21.prod.outlook.com (2603:10b6:208:3e::25) by MN2PR21MB1407.namprd21.prod.outlook.com (2603:10b6:208:204::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.3; Fri, 18 Jun 2021 13:26:06 +0000 Received: from MN2PR21MB1295.namprd21.prod.outlook.com ([fe80::f8d4:8bc1:147:6f40]) by MN2PR21MB1295.namprd21.prod.outlook.com ([fe80::f8d4:8bc1:147:6f40%9]) with mapi id 15.20.4264.013; Fri, 18 Jun 2021 13:26:06 +0000 From: Haiyang Zhang To: Wei Liu , Bjorn Helgaas CC: "bhelgaas@google.com" , "lorenzo.pieralisi@arm.com" , "linux-hyperv@vger.kernel.org" , "linux-pci@vger.kernel.org" , KY Srinivasan , "olaf@aepfle.de" , vkuznets , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] pci-hyperv: Add check for hyperv_initialized in init_hv_pci_drv() Thread-Topic: [PATCH] pci-hyperv: Add check for hyperv_initialized in init_hv_pci_drv() Thread-Index: AQHXUbxdC4Kbc7RbE06RxTwA62fpnKsAkZgAgAPbdwCAAN3WgIAUm6MAgAAA0uA= Date: Fri, 18 Jun 2021 13:26:06 +0000 Message-ID: References: <20210602103206.4nx55xsl3nxqt6zj@liuwe-devbox-debian-v2> <20210604212622.GA2241239@bjorn-Precision-5520> <20210605104021.amywuuhlyesgmybw@liuwe-devbox-debian-v2> <20210618132236.lhbszxfgqnv2p4hq@liuwe-devbox-debian-v2> In-Reply-To: <20210618132236.lhbszxfgqnv2p4hq@liuwe-devbox-debian-v2> 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=e27a2826-6cec-4830-863c-bddad44f52d4;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=2021-06-18T13:25:31Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 725f54df-0bcc-4575-d78d-08d9325ca091 x-ms-traffictypediagnostic: MN2PR21MB1407: x-ms-exchange-transport-forked: True x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OOMfJVpVJrUXJmtkzVDJd5ewa3A2/zAHQP2j3nkWM218gIrysycjrJo6lX/1ITNhPMN2gPddtElAYKEkdSww/m0GK5xF/RsNFOykpo482UbfTWaDA/7XJp9RuQ9rQ+s8lHyl7IPN84iRVyxT4aLRyCm5XRLrpRvnbb5nd7NHdJEEn8ndMrCDu7SxU3Rp99H8TOslMX36fYLAHYlgAlB8OloZUH5H2Qpf2JKrQYbSQMe3KHl1raBl8eiXpbj6l1ZgF+ukbQnu7Mmz0yMYvbuBglq5w7wA31kbp17pFAnHk0JaTJFukc0uRYS3seghxaSJfTu39avkshWtmeC8WjuljcsR6iT0DY6SR1CTwXYToRWylD2PEi1HknGYXlWQh7Acuhw8YMoUl8CtePhtN5Uz5a2z/BIIyfp3nh/KskdbB850GdoB2FRZbhWc6wtJsBEqtwWYhz8SQn13YItxxAkjxt02FNBwSn/431DdqAKTykkeIe0yYyygmqXOMb0B77x9zYxLY9/UD/te+VCQYrCeWoSzbXOV86r+DajQOxlLZ7+8xtKK1yl+wznyXdg60GQmglYa/7adGDZNgrTkLy9I17S2ahgw8ExevuZOZrJfEjlk5g8FvxVCd4lX2n3QKF6pkVpbnzTLWK9bfWTLa86gGA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR21MB1295.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(52536014)(478600001)(122000001)(71200400001)(83380400001)(76116006)(186003)(86362001)(26005)(38100700002)(9686003)(10290500003)(55016002)(8676002)(6506007)(82950400001)(82960400001)(53546011)(33656002)(5660300002)(66476007)(66556008)(7696005)(110136005)(316002)(64756008)(8936002)(66446008)(54906003)(2906002)(8990500004)(4326008)(66946007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?cCl+GG5U8XRQtyj5E24+k3Dx8FYZmZNMfCYzGY6SH3wcDT3WAVQnUTLka+jD?= =?us-ascii?Q?1lwuaeSJxNWWyDIffB2o0tD5vYkG+K+tK7kmn791vV/SZ8VO70s5hXlenJ/M?= =?us-ascii?Q?nW7YoeEvkUdbJJsz9Pn6wZyt8VNGKoDsG9FcMBnaCn9eVUo+MLiQ4bXsedtD?= =?us-ascii?Q?7v1FjNVrBE+9WuZZFg5v25B86cXDyIor+uRUGPzTeX0bLB3zXthGOM2viaG0?= =?us-ascii?Q?P1pbkLbUTTpSLVMD33tXx2yeU/b6XsEl2G6RxTcjklWxhUEbCkmhNSBRAz5I?= =?us-ascii?Q?deWgz6kV2/h5Jp4nL2xiH0lvpl+RPAQqvvY7H/z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yqYfRYEWN0GbnfEFcBttq6P0RabMA6IQhcGuNX3JHTP5wbdasj6?= =?us-ascii?Q?D2TwMwit0GB2xJFTkGYfAyKY+X9chD8U6rUnR3h7cnl6RGAicoyE8DpywclA?= =?us-ascii?Q?ufxtdclcuSKVqReO5YEBRo4s?= 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: MN2PR21MB1295.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 725f54df-0bcc-4575-d78d-08d9325ca091 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jun 2021 13:26:06.0878 (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: cVeVSAfbWrFpAL+/iaLRfoGBKur/eIJcg9qKxfdd0s1xTbwP64QDUMG1y9BnP3zErJYlVzUull75P30kRBgvSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR21MB1407 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Wei Liu > Sent: Friday, June 18, 2021 9:23 AM > To: Bjorn Helgaas > Cc: Wei Liu ; Haiyang Zhang ; > bhelgaas@google.com; lorenzo.pieralisi@arm.com; linux- > hyperv@vger.kernel.org; linux-pci@vger.kernel.org; KY Srinivasan > ; olaf@aepfle.de; vkuznets ; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH] pci-hyperv: Add check for hyperv_initialized in > init_hv_pci_drv() >=20 > On Sat, Jun 05, 2021 at 10:40:21AM +0000, Wei Liu wrote: > > On Fri, Jun 04, 2021 at 04:26:22PM -0500, Bjorn Helgaas wrote: > > > On Wed, Jun 02, 2021 at 10:32:06AM +0000, Wei Liu wrote: > > > > On Tue, May 25, 2021 at 04:17:33PM -0700, Haiyang Zhang wrote: > > > > > Add check for hv_is_hyperv_initialized() at the top of > > > > > init_hv_pci_drv(), so if the pci-hyperv driver is force-loaded > > > > > on non Hyper-V platforms, the > > > > > init_hv_pci_drv() will exit immediately, without any side > > > > > effects, like assignments to hvpci_block_ops, etc. > > > > > > > > > > Signed-off-by: Haiyang Zhang > > > > > Reported-and-tested-by: Mohammad Alqayeem > > > > > > > > > > > > > Hello PCI subsystem maintainers, are you going to take this patch > > > > or shall I? > > > > > > This was mistakenly assigned to me, so I reassigned it back to > > > Lorenzo. > > > > > > If you *do* take this, please at least update it to follow the PCI > > > commit log conventions, e.g., > > > > > > PCI: hv: Add check ... > > > > > > and wrap the text so it fits in 75 columns. > > > > Lorenzo already picked up two Hyper-V PCI patches from Long Li. I > > think leaving this to him is better. > > >=20 > This patch is still missing from pci/hv, so I've picked it up via hyperv-= next > (with the adjustments required by Bjorn). Thank you! - Haiyang