Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1328357rdh; Fri, 27 Oct 2023 10:46:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENy+UI9huAgmK1Cyo1mTTyBUPtKhDP4tafHThX28F6n3aOs6Po0fSeCoYo6rHWA5gczorC X-Received: by 2002:a81:9ac6:0:b0:589:f9f0:2e8c with SMTP id r189-20020a819ac6000000b00589f9f02e8cmr3159942ywg.48.1698428776607; Fri, 27 Oct 2023 10:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698428776; cv=none; d=google.com; s=arc-20160816; b=Kh6hw9NjOSJ3QCqr+c+pB/rCX2gLEJTCfYUE/v4t0uHHBCkNd6K5DqZfrJNnIZsuej 88qVqQVo7Wwh5hq+xrAvm1bRSzZJzTPVC3iBIKAm4syheM5EAICOituyrlPaUqy5Lmsd fZn53MB8fwvVti3YlQNqzZ+sTvHnHrSeVrwGNd1KfxMsrOKFzjF/fYV23hQerXSh0DtH jMCCMMaYM1v4FXce7aK3u0jLTmPr07FWxSxK6l2Y7Da3rjHX0jdvaZwXXRWwFhSXgQaV jCgKcseRwQsk202R4EAQ0sbCwp1Fl9kj3Fk+k0j2W5fyZ5J3rOLWCe7BA9dUZVJR5D/k TTRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=vCF2sTMjoJARe87DP7lAD8rcZvlM4BFzZKH7cV3QuU8=; fh=c1LGWpfh41EFzWlCT5RGAu2E5YHzYop1whfhI08ccLo=; b=Qfsoie9vD40iBf8UU34snqdKLfVm7tPGgLjqWXoGWxpEHl04UhgXbm71BH1HeXEr2s 5iZFpf7P4OS6wzQ5Ij6iPG2vT4Cw/GL8hyliRvcNqR5TdxL/q7w8oRXxAQdQlBfX/Pwx hMCRqGOknpXOfbFZ9XlbvhVnvl8SXMRj15u56P85lzBgsKdonWVivIR7AZcEwhvv5VsM bK6AK9A1LEYPvy0At88oTioJfTXHXBkzjTqjuRR2xclQeyVVvSrx0xFqF9bIg6FlpPh0 r2jjitoy8vX7R2wnpRQqLZBvr//W6Nacb4Hq9/BmdH52goFYqA6/3kkOv62EnWXuXwoo KJRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xXX2ovs1; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x22-20020a0dd516000000b0059f4fa06dd0si3635424ywd.241.2023.10.27.10.46.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 10:46:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xXX2ovs1; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id BCAD5804C236; Fri, 27 Oct 2023 10:45:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232233AbjJ0Rpr (ORCPT + 99 others); Fri, 27 Oct 2023 13:45:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231464AbjJ0Rpq (ORCPT ); Fri, 27 Oct 2023 13:45:46 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 988ABF3; Fri, 27 Oct 2023 10:45:40 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1698428739; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vCF2sTMjoJARe87DP7lAD8rcZvlM4BFzZKH7cV3QuU8=; b=xXX2ovs1OHhXbwDuZac6CP8IsOrVj54bZeD5nyxWlPUBOXUniX1BJWPV+PcVr7obtLN3eF I6uPBnLwqsSeXJfTpISEjW/ksbeWDMkDlGhuSLkQd0gwCvAm+Ogc1qakMhd99FaKFmFOz6 1GIjy1E+N/YDe03TxrnRIU53J4jidS28NuERCZkDyMkX8X5wFJu/OtV20oF773goJYLcMm /ktLuCbvSshkq1Zxca8OxoWF8VJ4zqw5Ohr8CYTRGpLm9x96JuE60jmezp5gm6X3Yn94AK 7ns6idG1lqprpc0Y27+8vH0y0yrCC8o1DwW3zTycAy/bFh5YoXh4wv0+CbwiwA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1698428739; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vCF2sTMjoJARe87DP7lAD8rcZvlM4BFzZKH7cV3QuU8=; b=WWHizKPPbjghvXPvf1/QyrM9sNTsNYrmVq6GoM+JMN89I9M6CgHAYJRHoOSGLIiqmVpfsl B+qpDGnW7YiT4hDg== To: Bjorn Helgaas , Sunil V L Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-serial@vger.kernel.org, Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Bjorn Helgaas , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Conor Dooley , Andrew Jones , Atish Kumar Patra , Haibo Xu , Marc Zyngier Subject: Re: [RFC PATCH v2 13/21] irqchip: riscv-intc: Add ACPI support for AIA In-Reply-To: <20231026165150.GA1825130@bhelgaas> References: <20231026165150.GA1825130@bhelgaas> Date: Fri, 27 Oct 2023 19:45:38 +0200 Message-ID: <87jzr82c3h.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 27 Oct 2023 10:45:57 -0700 (PDT) On Thu, Oct 26 2023 at 11:51, Bjorn Helgaas wrote: > On Thu, Oct 26, 2023 at 01:53:36AM +0530, Sunil V L wrote: >> The RINTC subtype structure in MADT also has information about other >> interrupt controllers like MMIO. So, save those information and provide >> interfaces to retrieve them when required by corresponding drivers. > >> @@ -218,7 +306,19 @@ static int __init riscv_intc_acpi_init(union acpi_subtable_headers *header, > >> + * MSI controller (IMSIC) in RISC-V is optional. So, unless >> + * IMSIC is discovered, set system wide MSI support as >> + * unsupported. Once IMSIC is probed, MSI support will be set. >> + */ >> + pci_no_msi(); > > It doesn't seem like we should have to tell the PCI core about > functionality we *don't* have. > > I would think IMSIC would be detected before enumerating PCI devices > that might use it, and if we *haven't* found an IMSIC by the time we > get to pci_register_host_bridge(), would/should we set > PCI_BUS_FLAGS_NO_MSI there? > > I see Thomas is cc'd; he'd have better insight. I was not really involved with this bus and MSI domain logic. Marc should know. CC'ed. Thanks, tglx