Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2831083lqz; Wed, 3 Apr 2024 09:43:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUGLMEZyw9O61Hjbt8OTqC5zQMJnQjVyzHtYnIX6j8w/fQ6omyle5D0ndtpinv3ODTGaNaMnKz3xL6OBEP+UxZ3Qi/xXzh/zrt1uOiDqQ== X-Google-Smtp-Source: AGHT+IHP8yZ9xBEtoeNG+WKqac0ztcrFzYNKHIVpXPY3QSiVvYMNUUz9SWqliat89lMO71BdBwIH X-Received: by 2002:a05:6830:161a:b0:6e7:2966:c142 with SMTP id g26-20020a056830161a00b006e72966c142mr18100977otr.7.1712162595509; Wed, 03 Apr 2024 09:43:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712162595; cv=pass; d=google.com; s=arc-20160816; b=oFKXAFvbZQtSQtwiMwnbSGdnTIZTds7fI+KfEzcNz90rB7DXJV3iaB6Kpq+mAY4GZy TC1tX5eZSp2Bhn09buNZBGqCYexfHYQiGF6Kmo8Oqidt9DmmsbQQpfD/kJuDYG+bUf8s BJ7Qo+qzTuxSb61fgRxkkLyb5cLU2xvpTOH+guB1cj0L4soxPuWtcu3/u1Om8apzJBOu BgnE1tcIfYe8amRpIXENq4JfMgF94/j+qC2hs8T/a1/LkjHz0NlzsUO98CyMA6PczkbA ncKWB+Y1sbLqMceJpkH5MxY95AYA/Wg8U/lJYC9chF26S5zOp876m9vLWyppDZ/LoWur tlOw== 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=+ldYJZM3ZNQODceb54+safcmgQ5V5QG7ihgBUD2TQZ0=; fh=F3iEwZOjUclEVBWLWzALh0FFXjBtK5tejUNxWv9QsJU=; b=1Lq5uD3lXyATkO6oXudIU4YNg5WRcdIhAKM4AL522zwCiDbW5jTMinpFLyflMc+AYl dfu+2LVE6fYF9lUU/dkwetSjKHxUcdinVgyxonKgEPn2hy5SFFxU4XSezbMN9YYd/TsR CLZm/zEARmAEA1Qih/qS68+rod+88tS6/WJnzrjCpNOsPxuD0mWU2okEAVojsjYfZkgQ zN0iU+X88YYVyCb91eZ/Apl/Uc9+Ra/RbR9aXYNIBvIiUD9KQU2SWra+Eg4FArdisDkH lVNsBxG4+XxS96KWFqH2J7UoM6nJ6JrzhWpTwWi8hu6rtrTWppOBO6boGzF7K35CPNcT Psbg==; 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=naXJo8yB; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-130212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130212-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f21-20020ac859d5000000b0043122ffb279si14648611qtf.571.2024.04.03.09.43.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 09:43:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20230601.gappssmtp.com header.s=20230601 header.b=naXJo8yB; arc=pass (i=1 dkim=pass dkdomain=brainfault-org.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-130212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130212-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3C7A21C25FBF for ; Wed, 3 Apr 2024 16:43:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 352391514FA; Wed, 3 Apr 2024 16:43:05 +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="naXJo8yB" Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) (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 1288718E20 for ; Wed, 3 Apr 2024 16:43:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712162584; cv=none; b=AE1peQipCEsA7PSR8HF3w2qHgUR9NL7rPYUv9cUvU3AN/g1Fkn6SWFPeNafKKCu9W7OIJ4ss5yzHxk4lQ3/BIvLvcdGqOlwF5T6jWhGKoW3VLRkyYGLZn6afTuevIzrThiT/Wr1G4feL2U+WHOn4ACNayXS+GxajzrcZhGWvwz8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712162584; c=relaxed/simple; bh=Gco9AHEogz8wRiHKn22/x6SZepvKYQXuhwQs8RmLgEQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=GpskvcYOUKKpD7ydo7TXEhCQKQg3pbaSjHVYYPnpIfIJahQQr1qVEeXnfBrOlF2B6Q2Ye2vKN7Bfix8dEG5jwfqP3Ggkz4Kgg7QKGIhQcKkcrs27SEvAcI/5An5OO0DSNzbc1Y7a8vxLKx0m1IVu4sVH/Fv/r01S18snpkoytko= 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=naXJo8yB; arc=none smtp.client-ip=209.85.166.45 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-io1-f45.google.com with SMTP id ca18e2360f4ac-7c8ad87b2acso961739f.3 for ; Wed, 03 Apr 2024 09:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20230601.gappssmtp.com; s=20230601; t=1712162581; x=1712767381; 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=+ldYJZM3ZNQODceb54+safcmgQ5V5QG7ihgBUD2TQZ0=; b=naXJo8yBnpQx1lvWqEEZ9NCTDv/sXdIsn0ffwDK6R3PTFdN3s2wF3q51pY3dJ5Lf8r RVLeWeiKTR9NJKY+D4HoPW14kMkRCYI6T9Ob7Gx4XFMaR2p8geeDEZWzOaUpQ8PviyYO P1f4gxAfZDkTcO1psJIwrdh6ODFlQoJcs0Rzq8Po7iUJx4+aJDGEMiJYsQfvoyYRiilE uGb5A6vILz9VZJUONVjb2btLz/oUQKtzm4KVuuh0ZizeE5AAt2m81+5OK5qxjVHDmiU4 Mtd32CA/U81rJt/savLKI0jnc5zq7TosaH4sOZKiadFBNSTW+6e2xasfGsiX/o1ZYydL E3hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712162581; x=1712767381; 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=+ldYJZM3ZNQODceb54+safcmgQ5V5QG7ihgBUD2TQZ0=; b=kqLE/BVKckgTRY3Pbpvuf8kgWfzoIcVwMjSfbfzck+lbphgEt0KNtO+LvQhQDgnSOD BpSDRqelOAgxZmV7KYd0UNHRo/0Uo1x6BCxweEfWHkRGEwBCZ8wXKkn3uG8myUxHXtMb g3WK0DzJ1nUZoelBcCKXdWiUVlS+81S5rT9vXl4F86US0vRIWnX4xc2Wo3eoUjLbYKAd MkXWnCrTLBmAYtjVLQMwvMYyyUnC4XNbOW3ceAcKJNUEErjxecufmmqhqBRkwO9j9fuu qNTlVOWA2MKmx6czA7HILmIKaaQy8fHJRQxKKgYvmGJIYtcJ1hj8n1BadwoP41Zkok1E cWFQ== X-Forwarded-Encrypted: i=1; AJvYcCVmIyZiZDNrcAFMHSnIUtMa33ld3dHMbzrq+4CJHaBus7o9nPVxACZAbnNTsZEpNxamonEiqrjlyjeEn3f0sq5vTBvPC3BaibHn+VmB X-Gm-Message-State: AOJu0YxVfgpsJBvN5bUS6bBqZDve4B7PHjPpFrD6sR1aD4uiXpXSUXmn pb2wsiK/ZsyaQ+4ez8VDJdciYo9x0RondiG65w1Es4PlI4tlFBTN6VemMibu5OQw2DS0uW/fsoh epBxnrCZKFelYs/GPKXsNGFzkJGsviIhFh4K3Ig== X-Received: by 2002:a05:6e02:1caf:b0:369:95dc:e4ed with SMTP id x15-20020a056e021caf00b0036995dce4edmr136568ill.15.1712162581079; Wed, 03 Apr 2024 09:43:01 -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:12:49 +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) Can you add "console=3DttySC0,115200" to kernel parameters and share updated boot logs ? Regards, Anup