Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp227936rdb; Thu, 22 Feb 2024 01:35:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXtfTirDAe2XY7e7T0YCntIwGhvrr4qNxdPJLikz6Q+HZs61gNbeUykIzbPlN/S7fWeM2+ptPhNPM/syaqtZmqHn1tw8xYEZn4HlNbELQ== X-Google-Smtp-Source: AGHT+IHtQ4peaeNoTFULPpaqrAhSd4xoiSlQqt8LatE2jsqkKRBJJ3m0Hu1ay/ALAYTq5wpwpWBA X-Received: by 2002:a05:6830:11c4:b0:6e4:2584:25f2 with SMTP id v4-20020a05683011c400b006e4258425f2mr20993824otq.28.1708594550695; Thu, 22 Feb 2024 01:35:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708594550; cv=pass; d=google.com; s=arc-20160816; b=eeesON+xzDBUHcVV6UEG0S+asCqODrTPR6f+Lu3Iwi9DfQJvJlf6CnCNYxtywBFNwu agOHWoACLVW+uX+maLNJ0cW8sBfDRXk4t/c1S3g2jdJxT1n+pCYMGSpgXmgY5pK43C17 fgkaq5LzdfoFXUzknvBQOCxJyRApjhFUrXRjOGiNWjxNMedXnuigxm2BLrtJwVeIcXwX EG1sfVNPg72x/hif3bYOKKjES0KKzkjXiWmK8ImuMnr9vrZh0FcYLwPos5DE3NwYwyJ4 RBxtxCbVZ/mbEdfGW2yfSqtglOl0GJl/6IDKWdoKvF13mEJkdaycb3l6U7+qTgF+I5d4 0Nkg== 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=CXa26b/do4x6rjZVpwya8dphZV/GXKaMCMBGS7MKkmE=; fh=YHfwlxygETXx4W7Ywct28yC7DyK5wJ+PVMZugtUqMkc=; b=FAWN8ca3flD7vTyE+3GXml9btHAlRNHBkAw9PUo5Z87cxzJn6kUft4XIm8y9sc/4S4 zo/b6FYDUtZmV3VqribdS6TOCLnskiOJMJskCz7EqJ/D6BLU/gnie/Z75mv855hJfwpY ZG+HK+GHVTSHzl2veqLVlBeWqddC+y+9p28v87Hg6yvQl05xf5einL9xdMMWFaW1b8qM U0hSu6erPAudB+/8/OwdyjjReayPdc6F5789R0LQfrv7kGdc9jMyBNFBv8rrUnM8euyw vow1g3AaVXcnsk0jmugAOzoOxY8nnVMV0c2AfmL9WgGnqY0PFEcK0ZTKejD6O1jluQae xwpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="ELLxwsP/"; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-76215-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76215-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id cm13-20020a056a020a0d00b005be03f0da68si10394655pgb.13.2024.02.22.01.35.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 01:35:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76215-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="ELLxwsP/"; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-76215-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76215-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 78B11B23243 for ; Thu, 22 Feb 2024 09:26:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B357374F6; Thu, 22 Feb 2024 09:25:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="ELLxwsP/" Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 F127B3613A for ; Thu, 22 Feb 2024 09:25:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708593956; cv=none; b=P0z1ki1zNmy6DEPL6joDYzNbdI2xj39LyWA93IkHfQWsUOgvugAsOv0F7CDmVsXRUEEN0o+pJi4vmaNOofXSqWQIvbA4twF1Me43PzdYzSdivtr6x8RPo9nqrplvg0vVK/w7C4ECpfj7abV6S6tykS/OCUMqWErV/EARc8KXHdI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708593956; c=relaxed/simple; bh=bc42IU2aBhbKPyzJUIKJv5Nl5EvNwIhq3abioen6DWY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gGIrVa4SKPJBy98Rj0UEefZwsP3D8s+MFIJLw5svHbhTgGUjxnGT2adwqAsaBk0q8A5f8QQg884p7G2qvCurJDlXHn4ncapAUpv5HdEC3V8m6O44rU2DVeXaGBNCk1o2I7B1JvF6jFyeT3QdRQsbC1VsYncBokMKFxcyU3uKiGU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=ELLxwsP/; arc=none smtp.client-ip=209.85.208.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2d22b8801b9so22779841fa.0 for ; Thu, 22 Feb 2024 01:25:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1708593953; x=1709198753; 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=CXa26b/do4x6rjZVpwya8dphZV/GXKaMCMBGS7MKkmE=; b=ELLxwsP/ICiDr8kd3L0kGOCMI8u7/yTPNew38MBMbSbNJR06hMDOv/NkP+rg4TWc6+ OL2rWG0Ex+gnXTh8syaUeDoWC9MxwkvE1rcICe0JLvG0MMBd8CykBGTZjUBW5QMR8w6s OrouzLJQViWVSur/vwkFG6CW097K79nGSvSTvVs/7Y9ygvlH28iG7PTCupSsRB7R47x+ SSCojSGY0XaUlUi8Sf7ADGTTGl4dweHPYRz4Pe1QJZ9MxjqPc1Oeq5AQaa3hHLFUCnQH OE6iVqUwtiCgLc+9uhDyQKlPu4qh917aGNdeYDYdNdspU5UIUdg/BcWeP10Em+pDCvt7 FRCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708593953; x=1709198753; 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=CXa26b/do4x6rjZVpwya8dphZV/GXKaMCMBGS7MKkmE=; b=bSqBQ4zKGjfnAsfrLF6kZDrhlpqN29HLOHLwFx9acx2Q5Xf33+bju7FQTf0hIM4IUR lzfZ2VgD3TV16RAb9g+5UWkMSXxNkODLZ2jCHa8nxN33DZ8PjADzLyWTqTWtBwEeFSC7 WgMRBozx7l3m2w6A7xxN9Vrw9W4fodwBSvS4ebDDpCXg+ofKXntD8zyBejqPNyCvMxwM aESvMIryieFuDUHfvp1OXe7gyTQl6PIsIovKJ6q0ogJailC/H5WAEIuJxQyydTiG8GMV YAYWbW+G8IQGx6SMYYdQSGayuQ7EDZhJObK0a0ynxEJ2o8CQYItMkYR0v7652WlXJj1G v/ew== X-Forwarded-Encrypted: i=1; AJvYcCXqyqSJV1s95iHy6j+bjvT26LJQhWgWRObF1RNHOZMwbXwZ1Gd+GAqTi/aDQJn8bXeWsZPB9WtlWRKj5/pGSiWojf5utB/FhGisuOCr X-Gm-Message-State: AOJu0Yw1KYdeZDKjezXAOTaEUIWdyDhyH172hJt4IBxH9h7IcpKzMcPP di/1zFwo/l6p9mgxkK4BGGVPQaeZ9PfFwh15YlrTxMmxTDKVxAX9yFRYlUF04JnBEDt3eTCVM+I JXOBHsheiyFMi9FGC+pVT5R9abJW3MOZSkvHUig== X-Received: by 2002:a05:651c:1426:b0:2d2:2b84:763c with SMTP id u38-20020a05651c142600b002d22b84763cmr8288472lje.10.1708593952748; Thu, 22 Feb 2024 01:25:52 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240220060718.823229-1-apatel@ventanamicro.com> <20240220060718.823229-2-apatel@ventanamicro.com> <87il2jih04.ffs@tglx> In-Reply-To: <87il2jih04.ffs@tglx> From: Anup Patel Date: Thu, 22 Feb 2024 14:55:41 +0530 Message-ID: Subject: Re: [PATCH v13 01/13] irqchip/sifive-plic: Convert PLIC driver into a platform driver To: Thomas Gleixner Cc: Palmer Dabbelt , Paul Walmsley , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley , Marc Zyngier , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Atish Patra , Andrew Jones , Sunil V L , Saravana Kannan , Anup Patel , 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 Tue, Feb 20, 2024 at 3:39=E2=80=AFPM Thomas Gleixner wrote: > > On Tue, Feb 20 2024 at 11:37, Anup Patel wrote: > > The PLIC driver does not require very early initialization so let > > us convert it into a platform driver. > > s/let us convert/convert/ > > Please us passive voice and imperative mood all over the changelogs. No > we/us, let.... Okay, I will update. > > > 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 > > This patch is really doing too many things at once, which makes it hard > to review. Can you split this into digestable pieces please? Sure, I will split this into smaller granular patches. > > > if (unlikely(err)) > > - pr_warn_ratelimited("can't find mapping for hwirq= %lu\n", > > + dev_warn_ratelimited(handler->priv->dev, > > + "can't find mapping for hwirq %lu= \n", > > hwirq); > > Nit. Please use brackets around the condition. See: > > https://www.kernel.org/doc/html/latest/process/maintainer-tip.html#bracke= t-rules > > for reasoning. Okay, I will update. Regards, Anup