Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp579514rdh; Thu, 26 Oct 2023 09:52:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEkAfOk/SVprSjNxaylUqLjtQSVVVWkoLcK0UkDbXn56wCTXTgdA46wPTC/U0gQoKaVtW/a X-Received: by 2002:a25:2302:0:b0:da0:50a9:a748 with SMTP id j2-20020a252302000000b00da050a9a748mr8501181ybj.11.1698339157252; Thu, 26 Oct 2023 09:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698339157; cv=none; d=google.com; s=arc-20160816; b=a5r5A4Txc5KrCFbNrxQfE9YMhIiUsIr9n0T9inNMeNwbtdL/HjOpXPCtXSBl200FZd asaMUcaun4lhKq5TRlE9xYoCePojOCQvENzlTNAZnq/4zi9LhCsB1RxPr67/RGIQe/TZ 7Nzp6qVId2K2zBDlL321VUeuslDzGrcUmnnSG77HEIHPh+FwM078CuHHQjn9vVE0op7p bbgL5MgH3D3IMJpHb1dmZ6Nsufh53rxLMo6oU/IcDR7+tYA7okSZ0D7LvrP9bvLPswT7 bgwPeRsDRhEv3mU7EnNgGWu/jXZ8BnufOjmMn6hBVcZHco4/gySJRFcFrXyXpHbyXMAA 9/WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=jhHfLGW9/kGp3WIf/baxgVgQJ3uRG9wsppgJJO0lczs=; fh=oGbcHWip3ewq22yDkfqPd95i/9BJgzasI30AR0K4HUk=; b=hCaSHcl7Tp4Ow1tYtJAXRI5e8DKjaZ6rZhulU63iB8G/64g7fqqbMPzigjdlYG9C6W W5CuQX76QBX/gzAWNeJqZRxVFVNT2NNW1gYwt2zNwicy97T5JyjwG1jB6KKSec7LUeOi aHBttd2QGrVcV/njgKC5JqXx3FRacPhzhY/G73FB2jRhzLQvi5WqVDm3Y1YDyi9OCp9/ kC5pVbRlj0mjIcQHc80igeO9nMgQWajkq+DoahH0wh1ZWrL82eVh9VP5+WmgfNRFglia PuAiFOLcE98HCDbF5NjW0lHvNnV1IqfWExk3PpdcSs15ctNWmM1gd3RDhT9pcK4C1fP4 CdQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BlavQRLW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id m4-20020a252604000000b00da066edea0asi6459031ybm.106.2023.10.26.09.52.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 09:52:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BlavQRLW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 756A1838F078; Thu, 26 Oct 2023 09:52:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231200AbjJZQv4 (ORCPT + 99 others); Thu, 26 Oct 2023 12:51:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbjJZQvz (ORCPT ); Thu, 26 Oct 2023 12:51:55 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5B59187; Thu, 26 Oct 2023 09:51:52 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 283EDC433C7; Thu, 26 Oct 2023 16:51:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698339112; bh=V8qM86kYWnahH8L8to5RnmhawuvXMtXfMH61MytOS1c=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=BlavQRLWWVuUARbinIctcKA8CrUyeRJJCzAYRa0Fnlh/gujQqIpQDkbPZLXuTsxB2 anoCTsLnIYAxfr4tz2637av8xqeK14rbMoxBmRXEei5mUPe81JdX75sAvTlkKPRNqV aynexxIOqntWEOLzZPUH5nNkvFYeW0ENy6fgdQP35bLmHR0J1eUHWj6v7oBJfkeF9r QCu85klS6/56jeSeth5ZOSf58mkffvvnAjmJn+9muzJEhOFbbnf3HVpv6YH7BlEevY /nN6PwqU4zJ5iUO6kAuM0XyjWTf/804GKb8OJVf4hoVSFGWdZyt/87Y+yIhWIg3Hfp kQuiBNn/fG3wA== Date: Thu, 26 Oct 2023 11:51:50 -0500 From: Bjorn Helgaas To: 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 , Thomas Gleixner , Greg Kroah-Hartman , Jiri Slaby , Conor Dooley , Andrew Jones , Atish Kumar Patra , Haibo Xu Subject: Re: [RFC PATCH v2 13/21] irqchip: riscv-intc: Add ACPI support for AIA Message-ID: <20231026165150.GA1825130@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231025202344.581132-14-sunilvl@ventanamicro.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 26 Oct 2023 09:52:11 -0700 (PDT) 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. Bjorn