Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1403622pxj; Fri, 18 Jun 2021 06:25:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjrZbxV4J1Py4ecT/eNTeX3pX+QHE6+pGmvmzo2cvZgW3Kyyw1zZ5mWCVDKiY+79Ur/9Vn X-Received: by 2002:a05:6638:3898:: with SMTP id b24mr563917jav.17.1624022758360; Fri, 18 Jun 2021 06:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624022758; cv=none; d=google.com; s=arc-20160816; b=YjRXWSsL6sMb1dhp0nrflDFQ4vhtwZpRtomOm+bbk0cK+0rkaXmjc90I+eflU1/Usp uGZ+QCRZQmPObvDaKqRRl1L71zgOHrPzaq6Xc2918B4hNgLFq+0KESxsVBOv2knFdG0l JJ3HT6BwWqe4pfwxnlZJrkVNOP54p25gWvHhFZXRrP4S7wrKhbb7PhO3rtBlAIeOEI6p iSco7wg+/f1Boj2rSXXvY6/OrP++dfoE0U4yq8JUwSJ8l/3GwnibZFNhgrICABVk2OSN 65/aY+f/EEDMoDR4/TekrISUwU3IlMOptydtsUw0e9ObJSCvknI+g4Wo90OHwpy3/j7q iL4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=3J7spmUIge5HH2THGTJ309Cn2stvZUkJhLQIU1Ek4f0=; b=t3u+zp/d3N6kwcZOBJ5N98Y/udgUQDOjEa9vupQ/7a6/OPExnjYYxP5Rdgl3JAso46 Iqsq/70gFSaZJvl6NTXoRgzlw+ISymlOvrJSzsH/bE5cqf44xC7orVFpGMZ/aFaFpMQr +E07mzMTcxHauKUAop17V+knRRP9kzTmRRpYkmYxnrP1sK6FEUihH+owgK1hZ1IGaLA7 miMcRa2JxOVBx69cNMho2sZkV0pq99y4P0nLULgq+CgqprL4eZUKBEvO3B5hSUkeDaNb tfqYK1xq741ptGJkH33dntEuK/lGqkZZEDX9ZJGb12P3adTVwM7oSqfoJgegdQg6/K4g AsZw== ARC-Authentication-Results: i=1; mx.google.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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r14si9023693jad.0.2021.06.18.06.25.45; Fri, 18 Jun 2021 06:25:58 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233169AbhFRNYt (ORCPT + 99 others); Fri, 18 Jun 2021 09:24:49 -0400 Received: from mail-wm1-f48.google.com ([209.85.128.48]:50843 "EHLO mail-wm1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbhFRNYs (ORCPT ); Fri, 18 Jun 2021 09:24:48 -0400 Received: by mail-wm1-f48.google.com with SMTP id k42so3774207wms.0; Fri, 18 Jun 2021 06:22:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3J7spmUIge5HH2THGTJ309Cn2stvZUkJhLQIU1Ek4f0=; b=kP+DNkZX++3nnPE/QX0DE/99rBXmjTFRgckenz/b62SEKn0J50KhJ9mDs+6KkswFow wijvxjn4scng3o82b6Djd7gp+BgFsOkMv4LLs8F55AAyFsOFBpYfcGjYXimLaDwErB8G MGktC2M1xUXwDaIUfYskgEa5gHRlGPuPehF7Eq2eY2axdUrtlXBoh/mAaC+4QWjOWlN5 Vwemy14VBnFd5JW5toUJAaa3eKnn7BYneZ14eLOIEpYpvjQZZqFl624fmxzDMZ1glbYO xFy1lIRJzPCzUbQ7kcQVGKgyjJFm1nmsxFaYGQCy0mBIc9/i8BS/ig6Kwj0HLsBd+7qV c19w== X-Gm-Message-State: AOAM533GGJeQraPtnTnxbretu/BuC2E1mUg2hMA0JUEyBKAHP5uDpJVQ nTu/stR7YgFPeUJOX3rCqWU= X-Received: by 2002:a05:600c:1d1a:: with SMTP id l26mr11743448wms.189.1624022558258; Fri, 18 Jun 2021 06:22:38 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id x14sm8177204wrq.78.2021.06.18.06.22.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 06:22:37 -0700 (PDT) Date: Fri, 18 Jun 2021 13:22:36 +0000 From: Wei Liu 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, kys@microsoft.com, olaf@aepfle.de, vkuznets@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pci-hyperv: Add check for hyperv_initialized in init_hv_pci_drv() Message-ID: <20210618132236.lhbszxfgqnv2p4hq@liuwe-devbox-debian-v2> References: <20210602103206.4nx55xsl3nxqt6zj@liuwe-devbox-debian-v2> <20210604212622.GA2241239@bjorn-Precision-5520> <20210605104021.amywuuhlyesgmybw@liuwe-devbox-debian-v2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210605104021.amywuuhlyesgmybw@liuwe-devbox-debian-v2> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > This patch is still missing from pci/hv, so I've picked it up via hyperv-next (with the adjustments required by Bjorn). Wei.