Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp931511rdb; Tue, 30 Jan 2024 03:06:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEAeKQt4ncn9VbmMgoZs1NMTX8VSfZC7bMRAE4A0Twv8rlLDYqXsYU6JGcEywLBBuVdBqgD X-Received: by 2002:ac8:7fcd:0:b0:42a:b347:be79 with SMTP id b13-20020ac87fcd000000b0042ab347be79mr1903081qtk.9.1706612773880; Tue, 30 Jan 2024 03:06:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706612773; cv=pass; d=google.com; s=arc-20160816; b=zendxcLz/DBNkDv2H7zpqM2sPanM16gSm4ofS9D60oMKmVM5MO/EiYCAcsc/ZpCyhN X8YzxeOo1DwRILSGQS24b8/1kdZ6dUe99UuIUPxA3nOFtzItuHlOnBl3iexTshCfyMhr VI+aySQfYyR0GENKsG9H9iyJ0K3ppgqvPhbh62FfIreY2roIbxGS+alu+iziKC12XXzH ylF0Lp+IpJ/hchyYFa4pt9erHNxxGIaRJHOVz8pZ1UhOWNEXGDzTO2yi/R97MNf6cSRr wo59GohYqzGFztraSmUit9k+bOdBJWi8anhwGmzB0HOt7ttH6a3PhwDOdjc29ewIl3HI l97A== 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=Bif1fOUfTTeeYCug1epr6ANg1NvlLgiAVEGaybW1L6E=; fh=HnfsOTxl37B17MrABL8pqAX6uHYSqDh2XRcNOgN5Exw=; b=Y6a2F49XM3eSc0X72r03KH6/elb9KbVQTu4Dpqd4b5ue362VTMTcrmMmsdQtKUfqoK oXhp1uJF2/YnNnwQPLHuNwrIqiymf6JeD84RG6k6pJtY86SKMTW+EqmgatC/+eXjXH+I EsP8Vt3VLPyPJsAzebzprAmaPAe2M+EmnJ/c2baxb/USedcH4s4MbcI0hOL83f0pQdG6 NaCJgP2tOOlVqIY1euIjFx76aAhl4HVnmHa4RJao+8Zygkq/AWkjYCLLLctHU659lDAk SCeLJnAVD5+pjgRRiLwNM4iniBZtTI7ul3kPGXxUGxShyHKKGeonU6klu/lAltnx0pHl clZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KxOJjVm6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44456-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44456-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d20-20020a05622a05d400b0042a17bf5a11si9814515qtb.736.2024.01.30.03.06.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 03:06:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44456-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KxOJjVm6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44456-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44456-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5B1D91C24B11 for ; Tue, 30 Jan 2024 11:05:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A406A6774A; Tue, 30 Jan 2024 11:05:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KxOJjVm6" 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 C554967744; Tue, 30 Jan 2024 11:05:06 +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=1706612706; cv=none; b=Ybsn7zVgGSQ0EU4ned0wPMGXvI3A7fyMJt26W3JACXXB990FEEebCjrUy0si1l9dukEMz+0kfcoGB1xuNJbXPLi7EGsphfWuQt3zx8mfy3HRa6uu0JIiomshEWb4JsWKZMsLUqRxw4h98NYtDZ1LDRo3H6rcmvvNI7XZgMvHOSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706612706; c=relaxed/simple; bh=FPjSOL02faexuB1BXgC53k3A0QdD2xtS7r/hZoVFvuc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=iIkNsLkOa5IUa4dsLHBitktWXRobRDX3LLOd7adTjrKucBQEvZidRVbIQXxRIzblE3jcQO55vQ0klUlZe0H0jF6SJaSxMBWy990hxzyyQUHXUn+y4AVdIX7d93z0PTvbim/uI89yd8+iRA9ME/DtsTxAjmestdlERrI7clSuswM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KxOJjVm6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BADE6C43390; Tue, 30 Jan 2024 11:05:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706612706; bh=FPjSOL02faexuB1BXgC53k3A0QdD2xtS7r/hZoVFvuc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KxOJjVm6NHVWWyv4OU761WsEmvvTaK6AOVZGXGhBf9XEa1cDPvJyCzSF9QIN48pTV aLj2ji8j9E/eLnA/qq2NSzICbbhzCx+ODRyqZeuDTzL8ccCSqldHmOL/Q15HHJmEPB 3mrR4IrUI9LC9loqptLEpno3boG4XmZgTabp+w5k//pwoSjP1Z0hCW0SrXjsbg1upV bkDtprS0umWUo2av/zR8GIqlruORVPB/KwALEup+/cdEWpoFinhVOnFLcmmq5q7c4C 6PaMOashVJ4kIUTYzBZgsNoTvhz3YDfKF4dqXSpF1RyxX9dMVYeutQp5m0z7jg4Keu H6Piw0AEBelAg== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Anup Patel Cc: Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley , 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 v12 00/25] Linux RISC-V AIA Support In-Reply-To: References: <20240127161753.114685-1-apatel@ventanamicro.com> <87r0hzuw87.fsf@all.your.base.are.belong.to.us> <87le87uulb.fsf@all.your.base.are.belong.to.us> Date: Tue, 30 Jan 2024 12:05:03 +0100 Message-ID: <87le87w080.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: > On Tue, Jan 30, 2024 at 1:22=E2=80=AFPM Bj=C3=B6rn T=C3=B6pel wrote: >> >> Bj=C3=B6rn T=C3=B6pel writes: >> >> > Anup Patel writes: >> > >> >> The RISC-V AIA specification is ratified as-per the RISC-V internatio= nal >> >> process. The latest ratified AIA specifcation can be found at: >> >> https://github.com/riscv/riscv-aia/releases/download/1.0/riscv-interr= upts-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 genera= tor) >> >> - 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_Virtualizat= ion_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 h= igher). >> >> >> >> These patches can also be found in the riscv_aia_v12 branch at: >> >> https://github.com/avpatel/linux.git >> >> >> >> Changes since v11: >> >> - Rebased on Linux-6.8-rc1 >> >> - Included kernel/irq related patches from "genirq, irqchip: Convert= ARM >> >> MSI handling to per device MSI domains" series by Thomas. >> >> (PATCH7, PATCH8, PATCH9, PATCH14, PATCH16, PATCH17, PATCH18, PATCH= 19, >> >> PATCH20, PATCH21, PATCH22, PATCH23, and PATCH32 of >> >> https://lore.kernel.org/linux-arm-kernel/20221121135653.208611233= @linutronix.de/) >> >> - Updated APLIC MSI-mode driver to use the new WIRED_TO_MSI mechanis= m. >> >> - Updated IMSIC driver to support per-device MSI domains for PCI and >> >> platform devices. >> > >> > Thanks for working on this, Anup! I'm still reviewing the patches. >> > >> > I'm hitting a boot hang in text patching, with this series applied on >> > 6.8-rc2. IPI issues? >> >> Not text patching! One cpu spinning in smp_call_function_many_cond() and >> the others are in cpu_relax(). Smells like IPI... > > Can you share the complete bootlog ? Here: https://gist.github.com/bjoto/04a580568378f3b5483af07cd9d22501