Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp627880pxh; Tue, 9 Nov 2021 16:26:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuRQy1vqJmMrsnn9iP/3Yxht18j/QSo0ROosatCuzmMYSMWWkgbcRqoPQlAvx7HMobo1y4 X-Received: by 2002:a92:cda2:: with SMTP id g2mr8439377ild.46.1636504006389; Tue, 09 Nov 2021 16:26:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636504006; cv=none; d=google.com; s=arc-20160816; b=fe7cmlQU/lM5BUUynISshNkK5wQIkLzJn8JTG884F3LUqXNPjVuBQlKykIvjHdTstb pFD+HF3UY71gDfmFw/r3EjlM4qRUf0c1Hmc4C8pts162pM2V1SeV/rN6O4HHdJoITfQc MY0eNtWXP01jNabU9xHJXY2ZMgHH/IGfR8ynHG0iRuTHM4eoaKy8XoglN3bhTx4ewj6A vnL/tViiRADZrR0/PizXvBOQ9fsqVMbWm13gtRUG2t4R5cKwsuYnycFgqFaLMxf7tIMW 0dslx+BoTKbOSFVKmYhi9EnoJjRSMmodxjexUlLC4JaUDqbMd2rR9/Bk6PN18+hYv87J FGKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=kUbSAcaZjGCLPWrtd8WuOpqGJZJ8CjkpsS43d5e8SKE=; b=HB1ElZxqDJ6+UZ9SmNOWP/k/nKRY7kfhdO3kjSgyKARqFn0bB8rh38+5XN04epC3kD oFxn7ZDZTS4/A4mOE6S34wLnDkfScysg/lX43/LsU77L9XndA5jUS/brmzmB42VTDgCW V3nclUSedQvjLCSGsJ6OPv0M0tw9JSbHoYHedkFxX+zvcUTvsEy8/QI+l0+hoQEl1ovL QWaIgBGhe2N5uGUxz1SSoDdPKlr8ZKtv7XV/9va8joCEQypDgWgkaX6yRUND9RInSJpM RuUubjEi2wjg/JlQYLgPFzsw5byxdzgZ9nz7SMcQ4J4dTYsCn6z6ep9AEvNVNO3Boqol 82jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=kC4OaFa0; 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=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si43563461ilj.37.2021.11.09.16.26.34; Tue, 09 Nov 2021 16:26:46 -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=@linux.microsoft.com header.s=default header.b=kC4OaFa0; 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=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245270AbhKIWSZ (ORCPT + 97 others); Tue, 9 Nov 2021 17:18:25 -0500 Received: from linux.microsoft.com ([13.77.154.182]:44534 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237442AbhKIWSZ (ORCPT ); Tue, 9 Nov 2021 17:18:25 -0500 Received: by linux.microsoft.com (Postfix, from userid 1109) id 632F820C34C1; Tue, 9 Nov 2021 14:15:38 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 632F820C34C1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1636496138; bh=kUbSAcaZjGCLPWrtd8WuOpqGJZJ8CjkpsS43d5e8SKE=; h=From:To:Cc:Subject:Date:From; b=kC4OaFa0pc4AKFWRoM8le5L/H87XXKJHoeSi6ru6OdqQZZb1Wa0X8me1Ec5szQHS/ b2U+ZbLnIY+SlaPW8kzfVJmBmRMQ1jRmnQMuriucOrAUF5RAuMqDKn1nPVATNF+BQG KWzs64qeu1ygPPtPxhiA5MwjNpPHRLqvS4HdJl9o= From: Sunil Muthuswamy To: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, maz@kernel.org, decui@microsoft.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, lorenzo.pieralisi@arm.com, robh@kernel.org, kw@linux.com, bhelgaas@google.com, arnd@arndb.de, sunilmut@microsoft.com Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-pci@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH v4 0/2] PCI: hv: Hyper-V vPCI for arm64 Date: Tue, 9 Nov 2021 14:14:18 -0800 Message-Id: <1636496060-29424-1-git-send-email-sunilmut@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sunil Muthuswamy Current Hyper-V vPCI code only compiles and works for x86. There are some hardcoded assumptions about the architectural IRQ chip and other arch defines. Add support for Hyper-V vPCI for arm64 by first breaking the current hard coded dependency using a set of new interfaces and implementing those for x86 first. That is in the first patch. The second patch adds support for Hyper-V vPCI for arm64 by implementing the above mentioned interfaces. That is done by introducing a Hyper-V vPCI specific MSI IRQ domain & chip for allocating SPI vectors. changes in v1 -> v2: - Moved the irqchip implementation to drivers/pci as suggested by Marc Zyngier - Addressed Multi-MSI handling issues identified by Marc Zyngier - Addressed lock/synchronization primitive as suggested by Marc Zyngier - Addressed other code feedback from Marc Zyngier changes in v2 -> v3: - Addressed comments from Bjorn Helgaas about patch formatting and verbiage - Using 'git send-email' to ensure that the patch series is correctly threaded. Feedback by Bjorn Helgaas - Fixed Hyper-V vPCI build break for module build, reported by Boqun Feng changes in v3 -> v4: - Removed the separate file for IRQ chip that was there in previous iterations and moved the IRQ chip implementation to pci-hyperv.c. Feedback by Michael Kelley and Marc Zyngier. - Addressed various comments from Marc Zyngier about structuring and layout. - Addressed comment from Marc Zyngier about IRQ affinity and other miscellaneous comments. Sunil Muthuswamy (2): PCI: hv: Make the code arch neutral by adding arch specific interfaces arm64: PCI: hv: Add support for Hyper-V vPCI arch/arm64/include/asm/hyperv-tlfs.h | 9 + arch/x86/include/asm/hyperv-tlfs.h | 33 ++++ arch/x86/include/asm/mshyperv.h | 7 - drivers/pci/Kconfig | 2 +- drivers/pci/controller/Kconfig | 2 +- drivers/pci/controller/pci-hyperv.c | 284 ++++++++++++++++++++++++--- include/asm-generic/hyperv-tlfs.h | 33 ---- 7 files changed, 303 insertions(+), 67 deletions(-) base-commit: e4e737bb5c170df6135a127739a9e6148ee3da82 -- 2.25.1