Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp588362rdh; Thu, 26 Oct 2023 10:05:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHx49OGcKqMrdv2KBluFaApzbqRRq1wy+mubYX2YsYdhHS8lYDRxiXEG8SjQvJwWOj82Z+u X-Received: by 2002:a25:2486:0:b0:d86:9fd5:9350 with SMTP id k128-20020a252486000000b00d869fd59350mr17983660ybk.59.1698339902913; Thu, 26 Oct 2023 10:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698339902; cv=none; d=google.com; s=arc-20160816; b=I/nqfJH8seHIVUpiYgGcQbaB2E1tpuLEDUGmwLB33XAt0uSl6h2xwVtqiKE/nCaeNt sJGO/0ZnZYi6Z2N8h3SaKIjLsTisTdynfk/xSKusJgwcxb/gEWIBLyTcyoXj9ZuOygmg q1JdeQgs8l1Yp6YZ/Sdzl99ZAf1g00HmifWvss+Dln6Kf07S8qJ2OdS3rOgDNDKkHkyF ky9P7H0oMfVOF+XgLYek5GtwvNE26wiMdFmFn/1+dkNwk13APmZfyw26LhL9f3SRcHb+ ha5OaSSR55X6cI7t3DMqBfHxGMyBzh2xXUiGi9O6jhXtGnYCbSljscTlpdO+E1BsAN9k PEUg== 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=N/ZqaNbH689sSBRYwJMc3Csal0wOliW9wfXz2XI0BYU=; fh=oGbcHWip3ewq22yDkfqPd95i/9BJgzasI30AR0K4HUk=; b=uXgcXD2LqeSVmU00u9vWn6ucuYoXNB0zYv9ZfoXEwzh3iMhmMGjRI08WlDqPBUMC03 r/vhPfvalCcMz7xC8mzbDUjvLQVkl1VHnrf2aj0KgOrpjADGkgB90YSBVu4eAvZQHvGc 7ikIURO55/GxO0RZBmEGyF9+JpQLx/ab9ZdWxbqSw/iyVS3JOPL2yf4M8peyCWCWqpCe YZgdKmQCs+e+s4axGII6Jth33g4YVH+EjQHaxfEWLP8dTnWVbquZAhRucKGd2/xT57a8 WzCnfrc5Rj65KjzvauRyPNyCLXHB3qw6rGJ3HuB8pdpc7ApIedNzVfBslyPdP4AWWtOy nz9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Escr5IAb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id v134-20020a25c58c000000b00da059f54e62si7668403ybe.22.2023.10.26.10.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 10:05:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Escr5IAb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 2D0CE822D08D; Thu, 26 Oct 2023 10:04:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345294AbjJZREW (ORCPT + 99 others); Thu, 26 Oct 2023 13:04:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231774AbjJZREQ (ORCPT ); Thu, 26 Oct 2023 13:04:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ADE51B8; Thu, 26 Oct 2023 10:04:11 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6849CC433C8; Thu, 26 Oct 2023 17:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698339850; bh=lohn07v+85pAnB2Smu7iOTuTgIcJkgpWbWvasyT0Fgw=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Escr5IAbmRkywpD2oy80GZ3HPbUNYPxv48Yrj/nfqrSprJK3BJmybCJQwbFisJOjy NrPuQWhwMOQvib+LwQXPASzj+Jyg12NTH2EGevoiJ4zXjWl5BDARgpagN13VoFZwcY 6xdVtztFRh3d3ukt8I/e+qpzBO8CYpcnaWAMpqGwO5WbEORXXThtSLF2G6haunf86F pL3KUoqYEvk9PvF99SIzEEDiSDrmZQwjPFjbwUIaw9JU0WlXEj1qIRchKwFdWqPrw6 MPQdaZZrSB/9NQZ1Zoinq/WAh5vDMUB9YW+eyh9N2zc7VRPkH5LMo4lBpOiORHFGRw Ife18O45et1cw== Date: Thu, 26 Oct 2023 12:04:08 -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 06/21] RISC-V: Kconfig: Select deferred GSI probe for ACPI systems Message-ID: <20231026170408.GA1825378@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231025202344.581132-7-sunilvl@ventanamicro.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 26 Oct 2023 10:04:27 -0700 (PDT) On Thu, Oct 26, 2023 at 01:53:29AM +0530, Sunil V L wrote: > On RISC-V platforms, apart from root interrupt controllers (which > provide local interrupts and IPI), other interrupt controllers in the > hierarchy are probed late. Enable this select this CONFIG option for > RISC-V platforms so that device drivers which connect to deferred > interrupt controllers can take appropriate action. Quite a bit of this series seems related to the question of interrupt controllers being probed "late". I don't see anything specific about *how* late this might be, but from the use of -EPROBE_DEFER in individual drivers (8250_pnp explicitly, and acpi_register_gsi() and pnp_irq() and acpi_pci_irq_enable(), which are called from driver .probe() paths) it seems like interrupt controllers might be detected even after devices that use them. That seems like a fairly invasive change to the driver probe flow. If we really need to do that, I think it might merit a little more background as justification since we haven't had to do it for any other arch yet. Bjorn > Signed-off-by: Sunil V L > --- > arch/riscv/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index 8c105a151e12..b62441aefa6a 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -12,6 +12,7 @@ config 32BIT > > config RISCV > def_bool y > + select ARCH_ACPI_DEFERRED_GSI if ACPI > select ACPI_GENERIC_GSI if ACPI > select ACPI_MCFG if (ACPI && PCI) > select ACPI_REDUCED_HARDWARE_ONLY if ACPI > -- > 2.39.2 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel