Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2821824lqz; Wed, 3 Apr 2024 09:28:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZYp4PSZHrDDTrUbjDxXB1b3aqzNlUmPyNdmsLg0sBNPTB3H9Gy5n5tXaMwiY9wA1JqZ5dmE/o3c1MZadfc7xnGLB4fThat/YoaF8XYw== X-Google-Smtp-Source: AGHT+IFcuy6RCMna3VLCQGY9HtvDfxKttv+eUaybxuLCEM0XxbG0HHTMaVyCYYdwkqHkbg58yAei X-Received: by 2002:a05:622a:1904:b0:42f:200b:450c with SMTP id w4-20020a05622a190400b0042f200b450cmr19171996qtc.64.1712161734493; Wed, 03 Apr 2024 09:28:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712161734; cv=pass; d=google.com; s=arc-20160816; b=y4q0jbfn5qRYkEb810Y2j3D6opGaj4pMC9sEItpsblLTqyVghUDcMHQ2WQz9H9uemw Dg8JTtJfnLCuUqwmvtza/VQzR9DiHa1er/EMdXG/02dKmSbGTvpsZD28TgGdLpFyzkLR E3wLB0HTYMEcRCn2oaN1bhNAKdqyXlxK3zjYZmenxZgMkjs26M7QAX1WsXyl21EwjjgX D+mCfCouj9QThZ55o3TfaIWXXqD2x0TQc+pja21O0ZyImrP53U0JRKywmzxuiCiQg0lK 0ILjaLHijlzEhBlGItSDLFjOIF4mFlGE5Y/J0yfoKvwFJmQDXIo7FsSHaoWStjIVcoQe TkGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ZD7uwIcLRwgER+t9bCi/p5bpIhFWWkg08DE3SUOO/2Q=; fh=llMg4h87UVawFP+MG3JRsoFdSt22OBA4RMN1h+2oQPE=; b=N9L3XgesRtoYzB5OZtfzqWiL3e/F+30AaslasN6j90A59JC7zPg3gd1/EUQRJcoM4H mRtOXmZSGAYugsimbTw1pto1NM0uD6GZsq948qpZhluVTDpxk2jEQbA/wX7aVR55tTyO GFLba5CHZkSuZCp1qFNi1S3YSCUlo1htrA83NQ2JRNSWnNzeDq/cizZIXeWwtVzFLwrs Z0QNbMQRW0W7VwDPiBCs3qWO2j3qvSOfoIRuDqjeqJhLWrMzhP0vGfz8x+XFwQIpPRZv vF6K6jgGyUWPCOJnts0eDJ8GBJ5uxnU2KQyLgjGoeoscI92LRPantTGklyd2KDFqbI8x FyfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=fBT7oh8p; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-130194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g10-20020a05620a218a00b0078a4541c2c4si13971806qka.487.2024.04.03.09.28.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 09:28:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130194-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=@sifive.com header.s=google header.b=fBT7oh8p; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: domain of linux-kernel+bounces-130194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com 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 1881D1C22904 for ; Wed, 3 Apr 2024 16:28:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 86F71150990; Wed, 3 Apr 2024 16:28:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="fBT7oh8p" Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (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 121B814A4C7 for ; Wed, 3 Apr 2024 16:28:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712161728; cv=none; b=WDOop8xhTazOCG00so8TRdHD24T3s0Y5IE9zk2g8W50tZORIYaYAJ23Ym1+4Isn4HfFQKpeEaR7kdm7JxCustnzEuAGotHzMMvR+xJQTCSmr59lDahdpK72487iUtF69+8QAM0ohJ3DVHHx0cx+Cdc1IuMcJPhqebv0omP5OTBg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712161728; c=relaxed/simple; bh=qW56aL09M2zIkiB5HrujqStsX2baKAU3GviHGfjPjX4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=agqK1OF2X2I1PT6vvusTs+liWTALRAe8UK4X51q+vXIriryjO2cTZFp8d9zj2CcrqaZa8EpDtE2PeWcdPIInz3fg7s99xpT/qpf6VmqaG+mDhnAUhEmO+OT8esMxPUr5rSFfEaiN6MOb1DJLI75OQOnbA/4bnRbzOr+30FSbeNc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=fBT7oh8p; arc=none smtp.client-ip=209.85.166.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-io1-f49.google.com with SMTP id ca18e2360f4ac-7d0262036afso725039f.3 for ; Wed, 03 Apr 2024 09:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1712161726; x=1712766526; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ZD7uwIcLRwgER+t9bCi/p5bpIhFWWkg08DE3SUOO/2Q=; b=fBT7oh8pd3iiZLHGGTmZJgkCEIZF7/0PlDBieUF9zA1/rT9+8RJcZTS+YnZxefQO5d cOFVi0q0elX8/ZmWT5U/3LU1cl9ickgEdA5jYBKxdoc44vc6xnCar8Osktzg/DfNkP0S UYnP6+uXaCyutAA8bO8bc0BFZzVghj+LVuedKFppidW5txexrdDE9c/GrLt9aEqhRch9 knH42DgGOvGHKzyxMy466BQyGNUEwbB20pataJyKpFjum5p73oiayxdkbO2+UEjXa6cO VUr3BolqOjlsOh3bSlEsPGfxb+daZH9LY3T+4q/1kunAtZIFZxLx0tj1aUyxq9BR5DJw Et4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712161726; x=1712766526; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZD7uwIcLRwgER+t9bCi/p5bpIhFWWkg08DE3SUOO/2Q=; b=ioXjOo0xr9Q8U+zEyC72xjmOOQ3kC0yM63LvJ+H7KU4PypOJMuzFOCFaiEtjB5GWxy LXp96Ow8oa63PfNR+RWpfzaAzQLJdAXvh7IgaX9VrEccEUDhszaNY4F5x/XYpweTvNbl 3ZmRrB4NaoCACTDN3S2HwoDu/GwLgDKqn98gTJeSAd6VRy/PPAOB/xtZHgPyDuo1BKaF y5iIRPvDrXwDejMQVZr05zJIsl7CR2+OgoUjR3gSWY7FWHGZ0VbvpchTEuDd/oQHqhVA /5rtyP/aUJK8RPsWlpMD4q1tOw4O6ZAJ69141UQqcF5uwli2sKex8gVWMKgXBVTRQYPz uyFw== X-Forwarded-Encrypted: i=1; AJvYcCUjVlg9DL3MfWdQTt1fwm6WCd2c/MNinwb2QBk+s9BWlEua4DuMoopX2GrF4q4gl51qXpYREfmTkyVBbtRGT1UvDoSekvvqNdJTm4wP X-Gm-Message-State: AOJu0YxlLEgmdAAkcPZfL/XqkK0wBYyrTiWcnojQnHHG9S8zDQ2OyBdn 5nusvYKlnWV17fV9WpBg068dE2V11cz7q1JpqZtWpCKxvkLqFq3qX7iId6BEWOM= X-Received: by 2002:a05:6602:1d93:b0:7d0:8cff:cff3 with SMTP id hj19-20020a0566021d9300b007d08cffcff3mr154596iob.8.1712161726133; Wed, 03 Apr 2024 09:28:46 -0700 (PDT) Received: from [100.64.0.1] ([170.85.6.190]) by smtp.gmail.com with ESMTPSA id f21-20020a056638169500b0047c451a313asm3895973jat.100.2024.04.03.09.28.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Apr 2024 09:28:45 -0700 (PDT) Message-ID: <4dbd5daf-d100-4ae2-8bda-c657e23a809e@sifive.com> Date: Wed, 3 Apr 2024 11:28:43 -0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v14 01/18] irqchip/sifive-plic: Convert PLIC driver into a platform driver To: "Lad, Prabhakar" , Anup Patel Cc: devicetree@vger.kernel.org, Conor Dooley , Geert Uytterhoeven , Marc Zyngier , Anup Patel , Atish Patra , linux-kernel@vger.kernel.org, Saravana Kannan , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Rob Herring , Palmer Dabbelt , Krzysztof Kozlowski , Paul Walmsley , Thomas Gleixner , Frank Rowand , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Andrew Jones References: <20240222094006.1030709-1-apatel@ventanamicro.com> <20240222094006.1030709-2-apatel@ventanamicro.com> From: Samuel Holland Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Prabhakar, On 2024-04-03 10:49 AM, Lad, Prabhakar wrote: > On Wed, Apr 3, 2024 at 3:17 PM Anup Patel wrote: >> >> On Wed, Apr 3, 2024 at 2:01 PM Lad, Prabhakar >> wrote: >>> >>> Hi Anup, >>> >>> On Thu, Feb 22, 2024 at 9:41 AM Anup Patel wrote: >>>> >>>> The PLIC driver does not require very early initialization so convert >>>> 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 multiple >>>> 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 reverting >>> 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/ Looks like you need to add "keep_bootcon" to your kernel command line to get a full log here. > after reverting, https://paste.debian.net/1312948/ > (attached is the DTB) I don't see anything suspicious between the "riscv-intc" lines and the "Fixed dependency cycle(s)" lines that looks like it would depend on the PLIC IRQ domain. Maybe there is some driver that does not handle -EPROBE_DEFER? It's hard to tell without the full log from the failure case. Regards, Samuel