From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eW/YQDDM" 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