Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7338934ybh; Thu, 8 Aug 2019 14:05:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIyU1I4rXWvyMWUlUbCLYrm4NkdO5OAOQS/PxVuMNblmvqZ0B8QzPMkcIAcJV5jC5uP8wH X-Received: by 2002:a62:15c3:: with SMTP id 186mr18182165pfv.141.1565298359671; Thu, 08 Aug 2019 14:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565298359; cv=none; d=google.com; s=arc-20160816; b=uMCuvGQ/JOcDPKy8Q5BcJtPcAgkzJsxRe0fMbAyOyUiKfHbF79HgAn4pRiyhfD379c fJESBufR7yrMBhvQr3SGuOWv9GXmssUNt9FvIxTMZnoOiVMWpvyralATtcOSbSnrKNeh NAhv3iM+H7c0v+DMlq2du37JNzZWuSO7iM0uR5dOYndNc9zTi+RB89EA9OBYxlgrHiTU U73nXKNuXRcIu0HrOV9UW7YAlX+1DQw+KAR1b5jb7BiM2+ONo1+Zt3x9ltiKPsTvm+Am /PvqkF5oOp4+SL12fl4PEoHGgcRObnu7n3TBRAZxXilQyKovROcx75echq3hzjL/VgS1 nsuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=MYiXtYDqJwotW34VbL1gNPhcfMp5HVF3/UwPQRs2BZ8=; b=ZnQC1l0qhHoNNplICbRzGniiqi5l1emqEi432fQrRxTn+ZhLcZ8o2EXt1DjcFG+PVW ElS/gf9Zf3D9cVgCql8l3a+Rzd0xXDAfDYG4WzNq8iHQJQhSuVFqnjeyr9PyRxoL4QBb YQL5t2AzaQfQe8rBNhZWuYJm4LpCbKOSvKAWrZOiNmuFnjaPg+SdTB0+QDPvXUW1KRek OwIOEeGOiK4CkEFSPovmaw+IieVtbZDLdjMXNjXXVvzK1Kkgcx6XTtRImeHAC4HH6b9y Ldl2XqQpQdYdkU5ajOJLQu+hxfm0ZxRDqFQS1m0DxckMtuJZteMiQAPb6MikYkK0k8RV z+Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=E5VqcLm1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9si38324867pgf.198.2019.08.08.14.05.43; Thu, 08 Aug 2019 14:05:59 -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=@sifive.com header.s=google header.b=E5VqcLm1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390392AbfHHUvx (ORCPT + 99 others); Thu, 8 Aug 2019 16:51:53 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:33638 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730768AbfHHUvx (ORCPT ); Thu, 8 Aug 2019 16:51:53 -0400 Received: by mail-ot1-f66.google.com with SMTP id q20so124046045otl.0 for ; Thu, 08 Aug 2019 13:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=MYiXtYDqJwotW34VbL1gNPhcfMp5HVF3/UwPQRs2BZ8=; b=E5VqcLm1TM2dFLlFksMh4Glkk8vf9CShPiNi2v/7qR+H6sMT72hy6Eva/LC9w1fWsa IP8Ik8LeqyfEKoU08bpvPPfw/CmoGB9yfo1ck//6p2R5WTpHyfX/i4YKtiUWLvPCfdH9 bY72iFacAWC2XWP8SGouaRcA635yqcljhSUIeqGhfjGRb/Jm/jc3l066I1a05Bn0v6Ly SAHdAuDnOaQ0wi5bi+0bKNQ/DrWIHPiK5P5eWq+siSrx19YPb50D0AYTNndu2Ls/ceSt wGkXkLcUMMdL8K972+d740G62BVqLwkutB5qypnujz+TOZLxu6OIObPDmmU0+hI1FSDs 1cjQ== 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:in-reply-to:message-id :references:user-agent:mime-version; bh=MYiXtYDqJwotW34VbL1gNPhcfMp5HVF3/UwPQRs2BZ8=; b=YGLKd7jSqpgZC2cUli6w+iPYu2LRSgm8XV/8vLLTimfz66enT1g6jcrjh5dEKgk6XP 7kAIC84E/HsANrIaY61UfUqiLIkguVsHDsFSq2p7YAuUDkS8TnI5ZZuqyXAmpTfdMcgY EVqOyK2Gx+KR+ajkwNLahOMdtJ60zZ1nD5JiZKuhywLVFlsmpohRGiwk9LmK8XVcHV+G hFdHJq6shD+aFnIumIiCsYvihrSEA7RfiXbLQrBk9gYY+r8ib1NhwO4NkbOjcjnwwTvT C0Bb0h9vHjHggDLiLMDqCfYCe827eroEjqV4W6a5bFz1HSb9bzcfma9+Zy+zREIanNVN vBRA== X-Gm-Message-State: APjAAAVsDxhm7Um2FvejjWbljSzxKg3PuZYKQx57FDnH/tVA8l2fkkKI HaHc5avaZpswScRcgLQEhvpCBA== X-Received: by 2002:a6b:f906:: with SMTP id j6mr17177807iog.26.1565297512230; Thu, 08 Aug 2019 13:51:52 -0700 (PDT) Received: from localhost (c-73-95-159-87.hsd1.co.comcast.net. [73.95.159.87]) by smtp.gmail.com with ESMTPSA id h18sm73602337iob.80.2019.08.08.13.51.51 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 08 Aug 2019 13:51:51 -0700 (PDT) Date: Thu, 8 Aug 2019 13:51:50 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Bjorn Helgaas 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 In-Reply-To: <20190808195546.GA7302@google.com> Message-ID: References: <20190808195546.GA7302@google.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On Thu, 8 Aug 2019, Bjorn Helgaas wrote: > 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. Commit 251a44888183 ("riscv: include generic support for MSI irqdomains") has been merged upstream for this purpose: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=251a44888183003b0380df184835a2c00bfa39d7 The original patch was split into a RISC-V component and a generic PCI component to reduce the risk of merge conflicts. Does that work for you? - Paul