Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7274886ybh; Thu, 8 Aug 2019 12:58:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaMcm7fJAts+nK8Gj2KV3nU298Sr/NgHz+Z3cyTntGvn8pa1uuT18KaxPae5uWfdtXo4MO X-Received: by 2002:a65:4546:: with SMTP id x6mr13983439pgr.266.1565294280923; Thu, 08 Aug 2019 12:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565294280; cv=none; d=google.com; s=arc-20160816; b=jhfbyWA5E48wTuVrawBBtmoH/e8cMcJScYxzX171WuVKDqxNgGznL4XOxbErR4tkHU tUD3LwtyjIrG6KMOPDaWhkKS5/+QCnlEa7nCz91RNym4523njEyB/2AuNsefDqPS8NGI /tnkaKbR7XTJTXlMAj0/aEhUwDQmSBi685EeFlXyvusPkcvAwqkpi1lHjaL7b5TsMaw3 nbkyRSZEikBJDYawRrLtCaazHHRO4X6LgKF16VKGE9LjlqMaHH8vq+gw3mMQpU7Jlc5V ndANDiHOLNoNTdknoBFk81iYV+x4r25bafWoiApH2AIpSxbE6+KiGHTKPDTKa+e48iV3 A4Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=X+HultY9YmUBJBf/u60P4TC/6Ne21lPH7x1zmMeThrI=; b=LGcv7z4NxQHP7r0J5AGqlyFJIqcuASTfyu2AF/P/Fb+YEubY+USEXdNCL6NN5/R25v VMzuApe4MhWTWiIvOTru/GFs15kCdqZmA+cuoPSShLRdrAgA3V98YiBYaznm41/9/++7 7xgGUrHISg8nyhYNtQ9YPFzI7cdAfW/GA+MhLbISLw0649hQXUl12dLp81FOgZdfZyFi mJIjVbwKzSfWK/2sSUAYc+cImlKddgd92Dll+8LOe4v+ETo6o3NHevjikofWBOpOY5Cu 7Y5+4HB1zdOu3UrpYvFP2cVjbh34ZKueGlQZUzCqANTjytjQUEhCOehzo7XciYQZh6lq KUCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bcSQCIe8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d6si2669220pjc.7.2019.08.08.12.57.45; Thu, 08 Aug 2019 12:58:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bcSQCIe8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2390265AbfHHTzt (ORCPT + 99 others); Thu, 8 Aug 2019 15:55:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:59186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403831AbfHHTzs (ORCPT ); Thu, 8 Aug 2019 15:55:48 -0400 Received: from localhost (unknown [150.199.191.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BFF27214C6; Thu, 8 Aug 2019 19:55:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565294148; bh=SOl9abd2o/Qj2dBjH8ebZDl44aPBVBw4i1AVCjPY/nM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bcSQCIe8/dBRIW/bkZwTbBcOfWJ4jURkIhZlfAMVQPFrM5ExqBnMoMiU+OZP22HmH qtNCe2+K6MFBvvpcNJEji2ZB4Sedflcze8rLCZwt8trL2tmqUQ7s/NOAENdW8FKmls tkkXDZVEmglLE30DV31AOWoNN5GLRLau9OtaXi+g= Date: Thu, 8 Aug 2019 14:55:46 -0500 From: Bjorn Helgaas To: Paul Walmsley Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Wesley Terpstra Subject: Re: [PATCH v2] pci: Kconfig: select PCI_MSI_IRQ_DOMAIN by default on RISC-V Message-ID: <20190808195546.GA7302@google.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, Wesley, On Thu, Jul 25, 2019 at 02:28:07PM -0700, Paul Walmsley wrote: > From: Wesley Terpstra > > This is part of adding support for RISC-V systems with PCIe host > controllers that support message-signaled interrupts. > > Signed-off-by: Wesley Terpstra > [paul.walmsley@sifive.com: wrote patch description; split this > patch from the arch/riscv patch] > Signed-off-by: Paul Walmsley > --- > drivers/pci/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig > index 2ab92409210a..beb3408a0272 100644 > --- a/drivers/pci/Kconfig > +++ b/drivers/pci/Kconfig > @@ -52,7 +52,7 @@ config PCI_MSI > If you don't know what to do here, say Y. > > config PCI_MSI_IRQ_DOMAIN > - def_bool ARC || ARM || ARM64 || X86 > + def_bool ARC || ARM || ARM64 || X86 || RISCV The other arches listed here either supply their own include/asm/msi.h or generate it: $ ls arch/*/include/asm/msi.h arch/x86/include/asm/msi.h $ grep msi.h arch/*/include/asm/Kbuild arch/arc/include/asm/Kbuild:generic-y += msi.h arch/arm64/include/asm/Kbuild:generic-y += msi.h arch/arm/include/asm/Kbuild:generic-y += msi.h arch/mips/include/asm/Kbuild:generic-y += msi.h arch/powerpc/include/asm/Kbuild:generic-y += msi.h arch/sparc/include/asm/Kbuild:generic-y += msi.h For example, see f8430eae9f1b ("PCI/MSI: Enable PCI_MSI_IRQ_DOMAIN support for ARC") be091d468a0a ("arm64: PCI/MSI: Use asm-generic/msi.h") 0ab089c2548c ("ARM: Add msi.h to Kbuild") I didn't look into the details of msi.h generation, but I assume RISC-V needs to do something similar? If so, I think that should be part of this patch to avoid issues. If CONFIG_GENERIC_MSI_IRQ_DOMAIN is defined, include/linux/msi.h #includes and I don't see where that would come from. > depends on PCI_MSI > select GENERIC_MSI_IRQ_DOMAIN Bjorn