Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2661995pxb; Fri, 8 Oct 2021 12:18:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx43Q6Z5DS5ScTee86aOfzpETfq9iXoq5N3Hixn6RLT0ShgruPb2+BWaDJsr/PFC2/mzG9i X-Received: by 2002:a17:90a:5d8c:: with SMTP id t12mr11386635pji.98.1633720707757; Fri, 08 Oct 2021 12:18:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633720707; cv=none; d=google.com; s=arc-20160816; b=0WykaH4LZv/BoRdQ9SVbUQvPFdyo+mIHz0+0D/M+KIt8r9rf3HlcjA51YoVDV+nZeK O8HbIpER48Cv5SV0xdybT26a68x+3cuQ7jR7tRlACGuQslaXSY5fvckXpwSDjpCRdm3c KOzGRGMyS2JJUXw2UbTaCulcPA187N6pU7j3w99RlTrT8it7PXmchvT4CMYpIgaL+3Sa bYNz7Ff0FDELiUBQjk9MQ+XV6AXpbk/gf5rhg5Oo8JBTiNz3gnKU89vcM9JYSmbR7pgH E3lvwySUtQSekVia8A+qEzhFonuGKd3pEs4Ajy18+U/xGm0wC0NAI0Zs+yRaKC7WOOxp GxXg== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=XJAVcdAoEO8bJ58f2+dzBgif5w4ukp3/5ipyF2pFi4o=; b=OqSO4/4Zeq85+qFMZ0XJt2AnThZjCOceN88Ek48OpbZVWzQX8lxuogf5TSFhNJYUlJ mQ325kE0nIUBBKE4ZhCiN4E52EtwIqghbP0cJx9FCctM+L5UFPhFWIuKBzIOLzpDA2hT H+6LduwtwvTZeWxWuG4cJ+rFbGEuD8IgKolEFNQsafL+lQJSxyDgJL8WSAPIoQYwnMBD krXRbEqQA8LnOzp88r8ayZakuqD7f0KGZaaITdV8UEubMFI2FdzoxS5mzndZnzHdkCjM AQQ9/gyxd0LI/Y/MNWM52T2U9k+6ouZAYvs0djOpC16zYhzlc5iCyTjoG5eD70Y0SthY r0cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JBrDlwr6; 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 s66si103324pfb.288.2021.10.08.12.18.10; Fri, 08 Oct 2021 12:18:27 -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=@kernel.org header.s=k20201202 header.b=JBrDlwr6; 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 S239577AbhJHTSv (ORCPT + 99 others); Fri, 8 Oct 2021 15:18:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:54340 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231433AbhJHTSt (ORCPT ); Fri, 8 Oct 2021 15:18:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 71F0661039; Fri, 8 Oct 2021 19:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633720613; bh=+RoGhvx5O/crHux5ekNh6pJxtPOkMUA+DRUv/unp3Rg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=JBrDlwr6e/AOSVAO0Ya2wbpw9UmGcF1vgoH7m4c1TBmNLX8bjwDd32XeJDnZgREIF iKOWKqGRBTwbkWtEHbYmexVQ6fXnfnzexoXnEhQ1M/Dhfs5qIpzjboELWoLlG2IOf1 muT4xPMWLi4hTNYvdk65V774NMnTbeHn2nLR/KiWceDOQpRbUeN2JUvdCI9tHNAU+y +mAPzKXQRb2KFhDL4iPP5FOpQ6T5fF4m0lpCxKOgQOoSK+X4khEKaaGxTSIDIPZC/4 DKgOt8vUXyT3rUNASpc/kt7vk5l+5hTZx9E0AGp96fEu4BTDN3l7clXEr1F5O3Xy5l ulg5jIZd9TYwQ== Date: Fri, 8 Oct 2021 14:16:52 -0500 From: Bjorn Helgaas To: Sunil Muthuswamy Cc: Marc Zyngier , Michael Kelley , Boqun Feng , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Dexuan Cui , Lorenzo Pieralisi , Rob Herring , =?utf-8?Q?=22Krzysztof_Wilczy=C5=84ski=22?= , Bjorn Helgaas , Wei Liu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "\"H. Peter Anvin\"" , Arnd Bergmann , "linux-hyperv@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 1/2] PCI: hv: Make the code arch neutral Message-ID: <20211008191652.GA1364497@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Can you put some specifics in the subject line, please? If this patch does several things, that might be an indication that it should be split into several patches. On Fri, Oct 08, 2021 at 05:20:35PM +0000, Sunil Muthuswamy wrote: > This patch makes the Hyper-V vPCI code architectural neutral by > introducing an irqchip that takes care of architectural > dependencies. This allows for the implementation of Hyper-V vPCI > for other architecture such as ARM64. No need to include "This patch"; we already know we're talking about this patch. Write in "imperative mood", e.g., "Encapsulate arch dependencies in X ..." instead of "This patch makes the code ...". See https://chris.beams.io/posts/git-commit/ Wrap the text to fill 75 columns. You said this "introduces an irqchip", but I don't see a new struct irq_chip or similar. The important part about making this arch-neutral seems to be adding these interfaces that will encapsulate arch dependencies: hv_pci_irqchip_init() hv_pci_irqchip_free() hv_msi_get_int_vector() hv_set_msi_entry_from_desc() hv_msi_prepare() I'm not sure wrapping them in "#ifdef CONFIG_X86_64" is the best approach, but the IRQ folks will know better. > +++ b/drivers/pci/controller/pci-hyperv-irqchip.c > @@ -0,0 +1,51 @@ > +// SPDX-License-Identifier: GPL-2.0 > + Spurious blank line (follow style of nearby files). > +/* > + * Hyper-V vPCI irqchip. > +++ b/drivers/pci/controller/pci-hyperv-irqchip.h > @@ -0,0 +1,21 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > + Spurious blank line (follow style of nearby files). > +/* > + * Architecture specific vector management for the Hyper-V vPCI.