Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1676638rdb; Tue, 20 Feb 2024 03:53:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVgxtStDVOKtrqBJx9YInMcZXO7YJ4YfFIJ+C9ULehSC7wgXJqH9OHwnJPsUjg/oGNRjnWrTqmee+AuVkWg6iNCEGe5Ua5K7aDHsk8ZFg== X-Google-Smtp-Source: AGHT+IEwrpXpKA3C1vllTYQNiWi2C6WLQsr3dJM96IsvsXLdBXZy7BSYVyoLaRWCx/ecCIghAak0 X-Received: by 2002:a17:90a:6c42:b0:299:4d76:be4f with SMTP id x60-20020a17090a6c4200b002994d76be4fmr6286274pjj.2.1708430028701; Tue, 20 Feb 2024 03:53:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708430028; cv=pass; d=google.com; s=arc-20160816; b=n446fjpfbqv3JGHe6ZXhqNlPm8l7yYdKY+UM7/aF6eDItWMrz+FsA3suBU/u3/U8sl wLgJrESfVgI382SInttk9ABYOOxAHWo7/QamZTUWeR0XEdSig7HcRCrrYjFNupE1htsV oKlRdjKa1YferFVKurt3IqUk+eduetg5T9Dk35pByIPaMroqm9vIZlLTQnysl9MpmJr1 GIW+b3IfZ1QoP9ho535DVZP5bjVwbSK5ffJAWyyjavXFJI9fjGAB8ltNYvdscv2U65Ji yoAV6G/lVaP4lDztzoQ88Dfu8lJRAPDCAIpHG717rTMNrsSsWg/k4K/oFgvcTdazOe1F SoBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=mDkSHpxdu2cA5WP+9/oozWeX576UlNHK6vE8pXxzyWc=; fh=JaQJYaCAJsVX9TkA4radO8KhddMM32Tk84nB9Z29qMg=; b=m36xa9C549Szq1U6RsphLAkFNyZ8qdW8t9tamJpSxYMFW2eQWhc6VvQnc4nL1d9jnW 5lrlZR0bvOX48uD+hjjyOwqF3b3wtgpqahhhOvaSiaXqB2uBKaelHVN3AG3yTTajiihD ucn91Q45IGXAv/r2F91ycmHPlyhWoqyi34jKIGifHsbs8LGJkKfOe59HDDp/cPjCy3gO ngIuKPA2ME03cAma1AtypZHWaysuo6KoDdCMvm60rIrExK3LFP8nadxMFQQ9OfTXhfoh 6ABALirCQWVr/1s7wEQt/QI5TnUu1GqcS7LFQzj1XfN1SANmVWTQxr9tPpxvar6d/QeU 6QoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eW/YQDDM"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id pw7-20020a17090b278700b00298fd9b5505si6311800pjb.114.2024.02.20.03.53.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 03:53:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eW/YQDDM"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 65FFD283DAD for ; Tue, 20 Feb 2024 11:53:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E59E67C51; Tue, 20 Feb 2024 11:53:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eW/YQDDM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76265679E4; Tue, 20 Feb 2024 11:53:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708429999; cv=none; b=r+ncbPlmwxy0zCmQP6N8vwhDtbEAX9PTaXUi4lFBCNi3t2GslOyXqq3UFli3/61rzyqWKhi6Ox/svzJSF74Uc6sGbKYjuzeEP5zPDc+c1cJ3DtJGhdZOjUokaKdr+dVMq1DyMH+V90e4/Ht5qec367mu1W5WteESJfKs4nNLUTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708429999; c=relaxed/simple; bh=mDkSHpxdu2cA5WP+9/oozWeX576UlNHK6vE8pXxzyWc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Eill+V48zmBWSu4vUsLH4VW+gCZEm1c+YBBbLl6zJBaRD+5tkZoDjHCwC1MOgoqFHTB+L5c1OQNXtFijYbWJLh/1lvj+CFmwLzrWosQQdZ5ivkiNqmrQPOYK4q+FQ+gUnRTjQ5r9jzSHfB4Atf+/OJP0o54l1oYvF9y8ZSRYhgM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eW/YQDDM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83DC2C433F1; Tue, 20 Feb 2024 11:53:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708429998; bh=mDkSHpxdu2cA5WP+9/oozWeX576UlNHK6vE8pXxzyWc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=eW/YQDDMY7IcgbQTXrZnI/rlEAieTspyc0S0pDPKjiIn2ZLmvjubztc+7ot/94/KT HXapqcAGQuakJ3AdQkMhdhNnnzYUBgE3pu75mXEHbgwVNbc6aVNBfPytHp1DYBMKqR uPa3F4M2+cbRGptaY+MUChgm4AUWQ67f9S+fkNLRgxyP3Qj9F3HPrNLHBGAU3YwjoK Vmn7wJKaUanuIBA4uwwx1S5NP2s/jFDTZBMVD3IuaKZMjzDypIK12zm/62uSPhfwtw p3Yj9wav9c8Glv8iIDusjL52dyDKS7rel4xurJO9gDrvqjQabBdlFdx1kzPnDGmEUc jgJo9m+VnlUsg== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Anup Patel , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley Cc: Anup Patel , devicetree@vger.kernel.org, Saravana Kannan , Marc Zyngier , Anup Patel , linux-kernel@vger.kernel.org, Atish Patra , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Andrew Jones Subject: Re: [PATCH v13 06/13] irqchip: Add RISC-V incoming MSI controller early driver In-Reply-To: <20240220060718.823229-7-apatel@ventanamicro.com> References: <20240220060718.823229-1-apatel@ventanamicro.com> <20240220060718.823229-7-apatel@ventanamicro.com> Date: Tue, 20 Feb 2024 12:53:15 +0100 Message-ID: <87a5nvfj2s.fsf@all.your.base.are.belong.to.us> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Anup Patel writes: > The RISC-V advanced interrupt architecture (AIA) specification > defines a new MSI controller called incoming message signalled > interrupt controller (IMSIC) which manages MSI on per-HART (or > per-CPU) basis. It also supports IPIs as software injected MSIs. > (For more details refer https://github.com/riscv/riscv-aia) > > Let us add an early irqchip driver for RISC-V IMSIC which sets > up the IMSIC state and provide IPIs. > > Signed-off-by: Anup Patel This patch has a couple of checkpatch issues: CHECK: Alignment should match open parenthesis CHECK: Please don't use multiple blank lines CHECK: Please use a blank line after function/struct/union/enum declarations CHECK: Unnecessary parentheses around 'global->nr_guest_ids < IMSIC_MIN_ID' CHECK: Unnecessary parentheses around 'global->nr_guest_ids >=3D IMSIC_MAX_= ID' CHECK: Unnecessary parentheses around 'global->nr_ids < IMSIC_MIN_ID' CHECK: Unnecessary parentheses around 'global->nr_ids >=3D IMSIC_MAX_ID' CHECK: Unnecessary parentheses around global->local CHECK: Unnecessary parentheses around imsic->lpriv CHECK: extern prototypes should be avoided in .h files Bj=C3=B6rn