Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3911139rdh; Fri, 29 Sep 2023 06:10:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3GZcqcWNUXsQLkMHSpKmMbAn25ScMsDUkPGfxM5S7dLZQ82eETMe+IyEgXBPPGKg/kjMo X-Received: by 2002:a17:902:dc86:b0:1c4:7c4:b2e9 with SMTP id n6-20020a170902dc8600b001c407c4b2e9mr3873386pld.43.1695993026176; Fri, 29 Sep 2023 06:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695993026; cv=none; d=google.com; s=arc-20160816; b=JzPY8AR5o0QyjOhwwvHxPTsNIQ6nY5e4OpX1lnwwqRSc+zBjCd2u/Tat0wrGLSFq3m VUjstQBgIPkgTLz86tNhLj+q+wxPEjc/HooUQboqRqe+U+AXHxY7VN9eg9sMrUDUJWBD +LaqtZGExqBrpoO+45XCf0nj4ib7w8sdNgb8jhiwZrQ8weNve7sKkihygIsOaud2ZgWJ 7wvp35SUA/DZDbOiAxyIIG2xI4Sx0vpHNHRnfUYtu2uwXP2fePGJWjL5T2paA1MQ66n2 odA7PfYlVZMMBL+Og6eZFl9hlxyxjl1dqVVvZykgpzYRlH6snI5RdhbfqaBkXqpj6Jd1 kPqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=7lPQUZi+CVoX63mGV7OcmiFgGj1a/YPnmO97m2V4edA=; fh=PNa2G/k+YDJVuQ09Af/qTy04IIenFV+OXrO1UfuCFSo=; b=DwvOIQX6PZgtclkpJIimzE9QELa5CW4ME+x0Ewg9apK+v978XVi41wtN81LgGf+1wt 6y9H3jsvW/ST7atZrnor0XIVa1fOrPt4Lr5vdaXFACkVoFzAw4r3/u4wXNQQ7mv8+kW0 zOWmbho1Vhr++AA0VSgv04RJFwb6GYqMbUrm0FM4aTFfPOVn3fcsm2+O1tkzxxN7jerV e9jRp9umFtTLe6qSQZGYqY6rhuh754JFmi76ACdCb02GjxqbPzkLhuhe6TY1mT/BNXkP dJp+oTUIpNiHVk4EzGWVF2UUuXOR0PUBLoYkeTFRtnvEytbiILjU+eMWErIC5MPhN4hj yy1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mp8Om77U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id lb14-20020a170902fa4e00b001b837f239c4si19097031plb.651.2023.09.29.06.10.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 06:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mp8Om77U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id B902580384C8; Fri, 29 Sep 2023 05:33:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233085AbjI2MdB (ORCPT + 99 others); Fri, 29 Sep 2023 08:33:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232977AbjI2MdA (ORCPT ); Fri, 29 Sep 2023 08:33:00 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B55C61A4 for ; Fri, 29 Sep 2023 05:32:57 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FFC7C433C8; Fri, 29 Sep 2023 12:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695990777; bh=1Bo4FZNzqybjVrw58i9A7aUqAJ5AK5epSxmtyX6LO3Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mp8Om77UtnPoeFBHs1iuvcmOn5u/zQUtgAuCvlYumujvVwP2RZcByMalV6vzeqcF2 sekzx0/SBomc+dE8UGDCskzK+T7mlg3E0ADdcesQ9614e+9E+3d3oLUfJrOvxXhHEW gFvnmmvXClzQachJhaTCix4fUI1M1IILaIIol6Vh27M4jPZelGWeXLOWelMhmZRLw4 K77zZQWETq88pE3D5oIyVAPlVHF8r2lErC4XVdw5QOHGtL3E92PcH0iSrn3eDGeWRQ WCJWDP5dLFDW9V5t6exraTcT6Oo6/do3Xob9Sl40rMe7eT2mRweWrmSRBIpL3+fUvc bDcIlOEiK8Vag== Received: from [85.255.233.37] (helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qmCfu-00HFD4-CN; Fri, 29 Sep 2023 13:32:54 +0100 Date: Fri, 29 Sep 2023 13:32:52 +0100 Message-ID: <87bkdlma6j.wl-maz@kernel.org> From: Marc Zyngier To: Anup Patel Cc: Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley , Atish Patra , Andrew Jones , Sunil V L , Saravana Kannan , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v9 05/15] irqchip/sifive-plic: Convert PLIC driver into a platform driver In-Reply-To: <20230928061207.1841513-6-apatel@ventanamicro.com> References: <20230928061207.1841513-1-apatel@ventanamicro.com> <20230928061207.1841513-6-apatel@ventanamicro.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 85.255.233.37 X-SA-Exim-Rcpt-To: apatel@ventanamicro.com, palmer@dabbelt.com, paul.walmsley@sifive.com, tglx@linutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, frowand.list@gmail.com, conor+dt@kernel.org, atishp@atishpatra.org, ajones@ventanamicro.com, sunilvl@ventanamicro.com, saravanak@google.com, anup@brainfault.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false 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 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 (howler.vger.email [0.0.0.0]); Fri, 29 Sep 2023 05:33:03 -0700 (PDT) On Thu, 28 Sep 2023 07:11:57 +0100, Anup Patel wrote: > > The PLIC driver does not require very early initialization so let > us convert it into a platform driver. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > As part of the conversion, the PLIC probing undergoes the following > changes: > 1. Use dev_info(), dev_err() and dev_warn() instead of pr_info(), > pr_err() and pr_warn() > 2. Use devm_xyz() APIs wherever applicable > 3. PLIC is now probed after CPUs are brought-up so we have to > setup cpuhp state after context handler of all online CPUs > are initialized otherwise we see crash on multi-socket systems > > Signed-off-by: Anup Patel > --- > drivers/irqchip/irq-sifive-plic.c | 242 +++++++++++++++++++----------- > 1 file changed, 154 insertions(+), 88 deletions(-) > [...] > +core_initcall(plic_init); Or not. There are only two choices: either you absolutely require early init, and you stick with the current situation, or you don't, and you can rely on dependencies. I'm not prepared to have a third option. M. -- Without deviation from the norm, progress is not possible.