Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1676512rdb; Tue, 20 Feb 2024 03:53:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWQtnNilgjrAlij3M3USSsn528q0bjpxY9LLQBzs6I4z/87qhHhU6+1VeRCdLZ5t98hBeBIoKnSZnQfwZPg2/CezNjlzyfq1mMGqQ5u5g== X-Google-Smtp-Source: AGHT+IHIHlx17WjWUYpl4UBT8u4QNg5FRIDvZT8QZexfH5vAYnJShLERbvKi/NY8EFiCDRuUzt54 X-Received: by 2002:aa7:dcd7:0:b0:564:d37b:e37f with SMTP id w23-20020aa7dcd7000000b00564d37be37fmr822429edu.23.1708430002544; Tue, 20 Feb 2024 03:53:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708430002; cv=pass; d=google.com; s=arc-20160816; b=S/MF6K+3ra45rl6txJnpb26VHfsIv/OZWrtzk1YUESic+pYrd0dApyEGDrXwAV+cU4 Vl1eS/C5t+gkPxD21AZ2WloOCYIFijOPCs27qBbt77Y0HftBNDiK7QzubLdW1ByfakZi 1b9x5lbRhFvOEVGKlhVWVlXHu7kh60JWkDMB3zK8rl9js0LTTB0/dcuoVlWWNrffStnT lkCx2TuyInkwprQ5k+ZCrP0ZNxVmXBGFwaSXopNPU1JNaxyVmycZR+x9Y5ktPhw/CYHl o9KWBNFogDHK8dsmLMqQtLT1sBwUGAUeTvKnrREVbLB3f05lYB/GWBzlDxxcTmxUu9Ch Dh8Q== 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=5ioQ81sJi/L1BuYDeNfqs1bNGDEXV7r1S2G1/R3Gxf0=; fh=JaQJYaCAJsVX9TkA4radO8KhddMM32Tk84nB9Z29qMg=; b=ugjSh8f4J2EFNg24rjpJfUILWzN8eIT5XkX4JxlNPUG8CUDALdhqzAso2psyqex69T 9CW6dCLBNYzMxK2yKouigUTGJ7zRbSLL0ol/gc5fEkOiRV/M10MF/nu+iJF9sEgT0BQ7 NcnD1+PANbgbNKzAkPdS9SVGf4x7Tzaj1+BupbZ4FTTnF89DQb0NAh6OQhCflI1XRiPH VXxzwFS5kRo+NtJawoI9nqUnb7YthwHRjM6IIqqbNLpJTPGsZikgeoklO6aPbKVVQelP yXoRhs1Yu/e8XOJiY4yccDXGUhZKuPJq2KijRhUyNBUBSlVRifzxAgUmqGaPsWprV7cP ZvbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a5MYsN1v; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72950-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72950-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r14-20020a05640251ce00b005648ccbe94fsi1502217edd.489.2024.02.20.03.53.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 03:53:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72950-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a5MYsN1v; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72950-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72950-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4D1141F26D70 for ; Tue, 20 Feb 2024 11:53:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 515E967C7B; Tue, 20 Feb 2024 11:52:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="a5MYsN1v" 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 70FF167C50; Tue, 20 Feb 2024 11:52:58 +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=1708429978; cv=none; b=Zl2Ga8AIDww05vf5jpSDEibi48PAqyCTkk+fm5chsJNNOx1mnoceU9Hda7IfK6EM21mfUMxCi6A+251A34s9ImHaEZ8PV9NtTrAQ3Cdpd+RHOYNG7gZe+Pg/2oz2pGxpt2tSuwvvf8SN+B1x7aBewo7vQJPimDLaR8HaVK7xeEk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708429978; c=relaxed/simple; bh=Y2qkFn4bmXwXYca1c369pPVRRLBO5myyrH01GFN0MQE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=fR7N1h6BhnZbFKzU0TT2kIz0fCj/leQJsX3X8GN1Z5fUCAU80HJOyAcMQYiK9Q+9v/xZKxdvoHVvlh5kjIm8WLLVvY2kdx2/TlYAw/4yVda4EtchXiQgxlJZzZk24I7+OCQwHYkCeji1qZgUfcLC2HouVWJNXj4cRzR+VHDV/6g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=a5MYsN1v; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53B23C433F1; Tue, 20 Feb 2024 11:52:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708429978; bh=Y2qkFn4bmXwXYca1c369pPVRRLBO5myyrH01GFN0MQE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=a5MYsN1vtLZTOY5660h0Xo0rFMc3tCbDWIt+5wHztoZ4og8nhpngw6bDAa20TckhI EWKSotFxQ9zYrmPACHTJ/RwEuIzxknCSAW8M6rPX086hTTJrIvwk+tMOelrQs79f8p 2rPAq1ProW7T4M5egPPsDCM2o4a9yLPyAu0Ov/vGgKmW1p4dkr6lMmgYcExIQlZCLm 90iIVEd8Ouvsrn17NyhabgE3FGaYIOo31mEvCJeBSNIE88U2qSeJaSzZMtwEwyRlf8 eLAmm6COiGVSfADwiTubn1ho8NxuBXyVVLhnnmm8nXtNkKO3Z6pfkCFaKGtEp/bpF8 HcRd9MKWfQyTA== 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 00/13] Linux RISC-V AIA Support In-Reply-To: <20240220060718.823229-1-apatel@ventanamicro.com> References: <20240220060718.823229-1-apatel@ventanamicro.com> Date: Tue, 20 Feb 2024 12:52:54 +0100 Message-ID: <87edd7fj3d.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 AIA specification is ratified as-per the RISC-V international > process. The latest ratified AIA specifcation can be found at: > https://github.com/riscv/riscv-aia/releases/download/1.0/riscv-interrupts= -1.0.pdf > > At a high-level, the AIA specification adds three things: > 1) AIA CSRs > - Improved local interrupt support > 2) Incoming Message Signaled Interrupt Controller (IMSIC) > - Per-HART MSI controller > - Support MSI virtualization > - Support IPI along with virtualization > 3) Advanced Platform-Level Interrupt Controller (APLIC) > - Wired interrupt controller > - In MSI-mode, converts wired interrupt into MSIs (i.e. MSI generator) > - In Direct-mode, injects external interrupts directly into HARTs > > For an overview of the AIA specification, refer the AIA virtualization > talk at KVM Forum 2022: > https://static.sched.com/hosted_files/kvmforum2022/a1/AIA_Virtualization_= in_KVM_RISCV_final.pdf > https://www.youtube.com/watch?v=3Dr071dL8Z0yo > > To test this series, use QEMU v7.2 (or higher) and OpenSBI v1.2 (or highe= r). > > This series depends upon per-device MSI domain patches merged by Thomas (= tglx) > which are available in irq/msi branch at: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > > These patches can also be found in the riscv_aia_v13 branch at: > https://github.com/avpatel/linux.git > > Changes since v12: > - Rebased on Linux-6.8-rc5 > - Dropped per-device MSI domain patches which are already merged by Thom= as (tglx) > - Addressed nit comments from Thomas and Clement > - Added a new patch2 to fix lock dependency warning > - Replaced local sync IPI in the IMSIC driver with per-CPU timer > - Simplified locking in the IMSIC driver to avoid lock dependency issues > - Added a dirty bitmap in the IMSIC driver to optimize per-CPU local syn= c loop Thanks, Anup. I will take it for a spin, with Alex' v1 of the stop_machine()/ftrace IPI fix. The defconfig change (12/13)breaks a bunch a builds: https://patchwork.kernel.org/project/linux-riscv/list/?series=3D827706 Download the logs here: https://github.com/linux-riscv/linux-riscv/suites/20917102160/logs?attempt= =3D1 and grep for '##[error]' Bj=C3=B6rn