Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1646728rdb; Tue, 20 Feb 2024 02:42:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVZzCVetvKKXKcGxfNUkyRp5zueFNcwjBH+IU9U7fNPo7Xn08PEYNYPerGPj6wTahGx2j7wqDZfusevRjDuU87ZfkWrooaSYr48aO71Zg== X-Google-Smtp-Source: AGHT+IFfXJic/4nGm3tbh4+fyNO+YXmcW1UMRP0EMYPvRLK/0RwKFBort4H4XcDPk6DvuG+buNK1 X-Received: by 2002:a9d:7985:0:b0:6e4:22b4:72ef with SMTP id h5-20020a9d7985000000b006e422b472efmr16531685otm.5.1708425731778; Tue, 20 Feb 2024 02:42:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708425731; cv=pass; d=google.com; s=arc-20160816; b=SKEkxDj1pWNKbgk+JkuNJ/rKi2sMY1J+hKAkFyMekq3sQvpVny2ZJo2bZ1VaxMRr5m 0i7xDMDYWeGiPZ8qo9vs/+9MhfD9AVC7nXvHsHxT8SjzUjVBj6pomywXqOdBZsVcOwdI GnAKDrLy2sxPbKj5VHv9q9fZ0qLli6dWFi7/KI5kI5cxlbcDVanDSrB5cDSe+vmGgT57 GtvgHiWiAJh+SSKAHmgSB7D9RFlA9iHlJ7QShklHbsp4KJndg9BEXTpFTdOKbJcy9XIr 5OuVjYWQguf6SgBHCCcCTbdYzqbDpL6rYvrsL2LoRLmRrW/MoteykbavIYg5TlGxzr6l FdWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=laFAJ1WS6uZx5Qx1npB6qVhditvot1Fb8n/CdM0NjF4=; fh=rCriQtwhQmVS08jLZJl9ivITmgScFIQvSeqDaPufk2o=; b=T1SKxWHQ/kk3wXKNS0O3lfu5g6m0Ysh+EJHDyiEfbR2xe0c+QOTYVSUgzDT2Wy19Ci RQB4Fd1msBygxLa0RRYHaahFtXl60IlYayU3QD9A4ydUpIkqaeFjLeLDy9nI/f0MNgUX HoOdgjdFph1Hr7rbjUC4W7l78zIJqMk0GD3ul+V0F6+fMK3QQP2wlIDmIazxB9DcGiIu iPOF17Ybg6+9HauV0X1jDKux8vJGQZxhTWOaZJGyPngcwPy5pGRDNbTjRlNflmRRCAim SWeU+IXL9LV03vpgdWG9uTUIn3+o+3yBhH+e8qcPS2c93p1Tj6/5oNf5NWTo0BZitpA0 hJNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=eAWJWjfK; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-72794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b24-20020a639318000000b005dc4a7c2325si5896542pge.824.2024.02.20.02.42.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 02:42:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72794-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=@linutronix.de header.s=2020 header.b=eAWJWjfK; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-72794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 2BB11B24C39 for ; Tue, 20 Feb 2024 10:14:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A8246166E; Tue, 20 Feb 2024 10:13:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="eAWJWjfK"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="XpElhKti" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 6B93F60ED1; Tue, 20 Feb 2024 10:13:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708423998; cv=none; b=JJCT2rWC7zs5xK/1d+Gth1lwZF4+M0lrQXmMEXu/o0LMqwC2dWvoNCeJML9/SopPBV8wY4B3VhX/I28Yqrx/NWg3+KFxjaj28W3la7hYQpSBCpPkgBK+3lTyyubynQOiWvsl0zBWJzewEaltYn6Bdgeqr74kcxo0VQFzRiAAfy4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708423998; c=relaxed/simple; bh=eFteOFDW9aBHiRsmlnd708pp8tDpwfmJX6DQQ/B5Rjw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=F3oAOLYssC0VELjbJT/9KuGxi6XMytDUeLF87ledlifAD/7bNIYzjgUrvFcRgLaz43QGG5GbjI1kCqjVw12y38Nc18QacUMFa2dp8+Ncx5/JEScmVs2dIAfKaiQiy8s0mc6AyBmgq5AMw/dL9UPn858NuEUMSB37imLfsgUjirM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=eAWJWjfK; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=XpElhKti; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708423995; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=laFAJ1WS6uZx5Qx1npB6qVhditvot1Fb8n/CdM0NjF4=; b=eAWJWjfKj4Exj6mD+gG2026KDyKmNgCS41grYSnkAmb/YGmADaQqe1sbZzj9EPkor5NABF 6MCSMSIHheBZ+KhYWYGxtmYpPKRp+N2TfzZPLbErwhLv6KOgA6HgJ/s6RwYLbjsKIi2/S5 KubpQ3XgYqGjz1UlNyfT+1fgppS39GjKWlVtCltywAjEVsHg6HTwmymO0ZuS/ObLld6+6y mqNnHZLFpBtmVkxz8FLhyIMrgJQqk2w48iq1AQRJDpO6xfy/+qoPwxZ/HEqZCPzY55rBtU zIF1k080ccayut4VH1p7dX8ozpYZb8MbGw2Yz5UA7we0K6os8uTEwcaEmXp4Sg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708423995; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=laFAJ1WS6uZx5Qx1npB6qVhditvot1Fb8n/CdM0NjF4=; b=XpElhKtiuPPyaiRk/K/PQKgz6xwbFQgSyRq4YzUC7dfsJ907Gb168BrwzkPW5XhDZeDvGe zQc4ZOGV40T8BXAg== To: Anup Patel , Palmer Dabbelt , Paul Walmsley , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley Cc: 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, Anup Patel Subject: Re: [PATCH v13 03/13] irqchip/riscv-intc: Add support for RISC-V AIA In-Reply-To: <20240220060718.823229-4-apatel@ventanamicro.com> References: <20240220060718.823229-1-apatel@ventanamicro.com> <20240220060718.823229-4-apatel@ventanamicro.com> Date: Tue, 20 Feb 2024 11:13:14 +0100 Message-ID: <87cysrigud.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Tue, Feb 20 2024 at 11:37, Anup Patel wrote: > The RISC-V advanced interrupt architecture (AIA) extends the per-HART > local interrupts in following ways: > 1. Minimum 64 local interrupts for both RV32 and RV64 > 2. Ability to process multiple pending local interrupts in same > interrupt handler > 3. Priority configuration for each local interrupts > 4. Special CSRs to configure/access the per-HART MSI controller > > We add support for #1 and #2 described above in the RISC-V intc > driver. S/We add/Add/ > +static asmlinkage void riscv_intc_aia_irq(struct pt_regs *regs) > +{ > + unsigned long topi; > + > + while ((topi = csr_read(CSR_TOPI))) > + generic_handle_domain_irq(intc_domain, > + topi >> TOPI_IID_SHIFT); Please let it stick out. You got 100 characters. All over the place. Thanks, tglx