Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2971163lqz; Wed, 3 Apr 2024 14:06:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU89rzsPYV6/JGhNqo2nZLaEOIGiXY3Z3pf/skAC26+PUqSDdqFu+J2Ky5PDoDcOnn7Dyo96zHZ8i4jUD4jX/AlwTQwG82DlZB5STIqOA== X-Google-Smtp-Source: AGHT+IHSW1L+bTAyYX0LrJCsbu+qLEnzsI555Esx/lxicSJWGHVyAR+HyOuvJsOcRZcoku6T0f8N X-Received: by 2002:a17:902:bb0f:b0:1e2:6191:f6ae with SMTP id im15-20020a170902bb0f00b001e26191f6aemr456478plb.0.1712178387005; Wed, 03 Apr 2024 14:06:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712178386; cv=pass; d=google.com; s=arc-20160816; b=iZGPucx/I7OP24rUBGGcVejjV0BztHJoYYLfvSOEUQd++FrIvuRoD3js8aKTudw8Ow lm++LUsvipypA5jZfkKnIW3qu+f5a+cX1aKChrhRzDLcKvWzTxENl3rdTJDi8WNxnY51 JM4ZUi8XsD3N+7iNImDJPQqyuN4LSldyrjMdejKDnw9EqKoA6BMYCZxivH1IB1n82bcF zSS1PiviyxI3JKTnWtLtYnVwME32EJhpY1XAg2r2zFJTxRY8L3pdhXHHbssiC3bXvMIK 7xmyhLiLu1miQQTyvt7jZEGhUf2BSn2oXtiI3h3A8Nix4fDBP/U2YRTpxszRnMYOyDdD JeoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=4Z7t0uImy7n5WDw0eNkAk8ksvRGRviUSYCwUauyh+YE=; fh=8t/RTH0ug2Zi7M1yR58hf1EjzOu5uXvQ9PfpK4ITlik=; b=Asiw8ZnZsZJ1H4Y91PzcaLH4TFQOO31ZPBobwLq/7uH3HAjkH8OFggY0n/BykkDR5a xE3Clrei0ymOlh+kKDmjd8H/HAFqRKqYxc24wdSA7YM0r91Lz///qrx8eyOQazr7qneg yOxXn5rR8lhwb+k7lhJ9eU8l36dGkr8RBf9UOkGVblANA3M7AwVGTOUN0RydnbqMr/15 kxVE56td887kffL7cJ4zoH8UXH0Gf8BkM43tsvvwMh/d2XztsN9czAc8ij10sKAjcgAc 7lpQc8IAH8hYlqekCGANvU+GuVOmblnsJzs607YtcWRHz77GHisadS3/C+kb+q+bqYeN kGUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b=qzOhqNad; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-130329-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130329-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u16-20020a170903125000b001e23a4e7540si10864192plh.181.2024.04.03.14.06.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 14:06:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130329-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b=qzOhqNad; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-130329-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130329-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 05C1028AB73 for ; Wed, 3 Apr 2024 17:34:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA9D415FA85; Wed, 3 Apr 2024 17:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=brainfault-org.20230601.gappssmtp.com header.i=@brainfault-org.20230601.gappssmtp.com header.b="qzOhqNad" Received: from mail-il1-f178.google.com (mail-il1-f178.google.com [209.85.166.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7319715F411 for ; Wed, 3 Apr 2024 17:19:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712164758; cv=none; b=UyHbd+xyN4LAa1rwJMeykFsQkkgEicnzHzw+Qvqgcl0lTyDACZQQHWKNh+AjPH5gmR85589GppRgdmieVccOVUh2EP8MNhUDpPPt1C1DNNcEXt1Lvt56eJmQUBvpF+f/JkP/uwtiWxQN6uG3qgUND5EXMjoq63nS8U2tSJG3fm8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712164758; c=relaxed/simple; bh=7WCygVy7w74ejcPOlh+nPVv7g5gmJJBdDz9sW2iRKLU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=eOQJKBz+cr8Gak5iaBEVG4qJ1eBusOlkx6stlgWO7zv2Fu1oKlxOxf68oVSWVFMsxGXnkPAO5kqqNpRA2gsIHkMg4S4tNMSB2rPaQEadhB1v/nJHZBhFucAuYvP4AjB/bK1+CHI+kzlYSHLTxyOnb6GTTdE0yldMxcGkb4KawYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=brainfault.org; spf=none smtp.mailfrom=brainfault.org; dkim=pass (2048-bit key) header.d=brainfault-org.20230601.gappssmtp.com header.i=@brainfault-org.20230601.gappssmtp.com header.b=qzOhqNad; arc=none smtp.client-ip=209.85.166.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=brainfault.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=brainfault.org Received: by mail-il1-f178.google.com with SMTP id e9e14a558f8ab-369fe4e650aso83005ab.2 for ; Wed, 03 Apr 2024 10:19:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20230601.gappssmtp.com; s=20230601; t=1712164756; x=1712769556; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4Z7t0uImy7n5WDw0eNkAk8ksvRGRviUSYCwUauyh+YE=; b=qzOhqNadpwW+2ttN0BLBUPYhZddfZHmbEX2zUPRzcd1wNslvUmCWuqELD9V6UeaNP9 TlOQyop41+IaMKJisBabTGL2re3rFG2YavekoOylWDw7EJJGSCF83jI0Kr8TroFeh/8N 8cpUsTZ4Y72Ybt51FEu0+kZn7CS8Wc2u8464GjogmcYDnpGHZxZDI8OJVloYiV9iYKou diwf+t9u3B4jPZ8i0qQPDu3oSZ7ZCNBPz1XUYHcMN0U89RctPqIXRI9GwaMWJcKvQk3G gAyAmyenovUGRQu4wrX97Q1uWKwCirsZVd3ed/AfdhQbwk3HicXNUr1rohkPtHssbrW2 p6CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712164756; x=1712769556; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4Z7t0uImy7n5WDw0eNkAk8ksvRGRviUSYCwUauyh+YE=; b=Oayb8IyVJ/uvHxIzfyG98CbiBwqqZa/q+nk1zD1RH6ND1Vxi27ojLueNj674il1YUR WyIaTIeTGCPsE/lZE3jpe7hEZotY7USypnDybIzVbBs92lbvZ3ZvaorJROMOUYc8Izrx oNKLqZoA9FW7c9ngZQZiUSuiidM0d7+4rSMpB9d9mf9fv3ftNZpbgIKMmoO/9T26IhzD CTW7RnhlXoBNkCAEunFajrYO/VjaHD3bdJ7igsi1V9FNFFED7LTXAtrJx34JcMaou2U/ 9J3zdZVegPGqJmyp9ccAxlXjY1P5rWrVmL/meX8gFZ5lrNqAzT/ZW4unMa+5oei/idq6 QDtg== X-Forwarded-Encrypted: i=1; AJvYcCVOjFPsnORzx5ljf6tQ5yBPDOZ0kyu3pTCkxKCbqzfILZNOQS9j9A5sa0gXhhZUThnkPXslko+ORq3Lb9DKy0eksseGAxMpp7AY+9Hn X-Gm-Message-State: AOJu0YzSsfyxaDiq5Zd8gL6nGnMAWJa+J4zWooaTQ4UeepYnr1BAN1/v upTzmoc/Zmrwekja+zMxl/OscD+0YHChiOYzfVjrDpD4a8wYECPAbMzo577HMt3MMW0VHQSbGNL mu0wBYdZ2E9psN3h2NkeDWjA8ri9SCRAkjVKcNg== X-Received: by 2002:a05:6e02:12eb:b0:368:96d2:7cdc with SMTP id l11-20020a056e0212eb00b0036896d27cdcmr440484iln.10.1712164756522; Wed, 03 Apr 2024 10:19:16 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240222094006.1030709-1-apatel@ventanamicro.com> <20240222094006.1030709-2-apatel@ventanamicro.com> In-Reply-To: From: Anup Patel Date: Wed, 3 Apr 2024 22:49:04 +0530 Message-ID: Subject: Re: [PATCH v14 01/18] irqchip/sifive-plic: Convert PLIC driver into a platform driver To: "Lad, Prabhakar" Cc: Anup Patel , Geert Uytterhoeven , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley , Marc Zyngier , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Atish Patra , Andrew Jones , Sunil V L , Saravana Kannan , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 3, 2024 at 9:19=E2=80=AFPM Lad, Prabhakar wrote: > > On Wed, Apr 3, 2024 at 3:17=E2=80=AFPM Anup Patel wrote: > > > > On Wed, Apr 3, 2024 at 2:01=E2=80=AFPM Lad, Prabhakar > > wrote: > > > > > > Hi Anup, > > > > > > On Thu, Feb 22, 2024 at 9:41=E2=80=AFAM Anup Patel wrote: > > > > > > > > The PLIC driver does not require very early initialization so conve= rt > > > > it into a platform driver. > > > > > > > > After conversion, the PLIC driver is probed after CPUs are brought-= up > > > > so setup cpuhp state after context handler of all online CPUs are > > > > initialized otherwise PLIC driver crashes for platforms with multip= le > > > > PLIC instances. > > > > > > > > Signed-off-by: Anup Patel > > > > --- > > > > drivers/irqchip/irq-sifive-plic.c | 101 ++++++++++++++++++--------= ---- > > > > 1 file changed, 61 insertions(+), 40 deletions(-) > > > > > > > This patch seems to have broken things on RZ/Five SoC, after revertin= g > > > this patch I get to boot it back again on v6.9-rc2. Looks like there > > > is some probe order issue after switching to platform driver? > > > > Yes, this is most likely related to probe ordering based on your DT. > > > > Can you share the failing boot log and DT ? > > non working case, https://paste.debian.net/1312947/ > after reverting, https://paste.debian.net/1312948/ > (attached is the DTB) One potential problem is that drivers/clocksource/renesas-ostm.c is probed early using TIMER_OF_DECLARE() but the timer interrupt is connected to PLIC which is probed late hence the timer probe will fail. We have two possible options: 1) Disable OSTM nodes 2) Improve the OSTM driver to probe like a regular platform device on RISC-V Regards, Anup