From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F017DC433FF for ; Thu, 8 Aug 2019 20:51:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C19BA204EC for ; Thu, 8 Aug 2019 20:51:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="E5VqcLm1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390401AbfHHUvx (ORCPT ); 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-Google-Smtp-Source: APXvYqwg5Pl4senspTBLLXh2DoiIY98sJyIj+ipD/rz0g87+UZib96GWjWiieV8LkxipSEZor5ZyVQ== 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