Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp854824rdb; Mon, 29 Jan 2024 23:52:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkkmcQxKaT5yp052BFu7fhfC7O49WFUTfoH9y+QAsV9xoydzjIqJnToBVTl1XQM1v46ark X-Received: by 2002:a05:6214:5096:b0:68c:61a6:1026 with SMTP id kk22-20020a056214509600b0068c61a61026mr680596qvb.95.1706601137762; Mon, 29 Jan 2024 23:52:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706601137; cv=pass; d=google.com; s=arc-20160816; b=Y3kepuqz7uM3TesMgDXcQ14PltcqsiDTKy8bXY44Tlg+TPZord2YI1A1x029AaMfF7 UmCy47OW43agBKn4nStrKRr204eE6+hykXwLiEFKDMKt6FU2bO0JPMvbIC90lWJrsILT KULLUF7tOyUt8OsxIxb8mwlBSiZmk9tY7GFoUXHrT7McKme53LcHVI9Fzf7HfKElUov8 3fx6tiHXIZMZ49AgnkZLMH25sLfbf8QTjjvdOHhL2G9th8Q5zJFLsOhqjuJVaJE2+wSH mbmXfboic1H46ok6pdGuVOq0Fb3o3fDaw74naaNerXx9lYDSgHD3FmgNMnL10cqgGjmp NpfA== 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=z0V69mjD3VUV5oO8cFq3KcA1RazetP1Yxp6twpmsPDA=; fh=JaQJYaCAJsVX9TkA4radO8KhddMM32Tk84nB9Z29qMg=; b=HrROifblUjsOsWFhe3br6qxjXuAwNREfZGgT8P2n9sJBAv1jnzYUdmQSUWR8Kq7vdH a7y1cc6hYbYPNykVg/Bsg7J6kqEqzwTMfbkAo4ZJGNgNN9QQELr/B0buDzv1abbju96F M1OHrhy7c8/BcZAZGLukjyQPQP5+fYYmOyhasQq3yo4mMOHU6PBNZ9nD5PZN4e9OVyOB zr3jMPUf5nhR/Bgap5AkFY90qUEQahdkGmQy2nLptV+fa5rAWiTQgkCLbI+eElBLF8AF ntVjkELLbFeMjQcC7KLKauUtWhH5Idjq75OeXXvqKC9t0GdR3LI9HRLKzRz5DpkBveZo aQHg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FWMHD4uk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44073-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e6-20020a0562141d0600b0068c36c87e73si8989188qvd.460.2024.01.29.23.52.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 23:52:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FWMHD4uk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44073-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44073-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 8041D1C23DEF for ; Tue, 30 Jan 2024 07:52:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A34E654675; Tue, 30 Jan 2024 07:52:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FWMHD4uk" 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 C41EA55E43; Tue, 30 Jan 2024 07:52:03 +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=1706601123; cv=none; b=d5kx+ElwGHBJo2Yjgeiv3263gGVLGoOzyizUzJEbtVFwTsn42vXK3fk9RPxaQrk4VBvfe4fuDqklWIYh8dzxErAOG4EyJttSV0FpxBXJbha6oiMZ0BQ/763kQ3KM47uRNshiu47oA22VxXEHY/ocDD4935tiA9QOmFo6lBSSgG4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706601123; c=relaxed/simple; bh=GLh8dsTxNo9L/3+mC7DJTQzGc6JkyJok3IVl4QHNXYU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=RngDFqS0x4Toe4i2/3+MwiNo9+MeGR7TinF+RDmEWjBzQBiahBCR6EtpqkmI3xk6RwCDCUzJnEqKAV1jI7Ir8HMtWeBXaktPCeuPqRqrfrSIbG/9ulqio3pF4/5jDcHEXceaHFlOAzWNeN3zE3zQre3i1WfnVbKW9GLFjXxXf3w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FWMHD4uk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B316EC43390; Tue, 30 Jan 2024 07:52:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706601123; bh=GLh8dsTxNo9L/3+mC7DJTQzGc6JkyJok3IVl4QHNXYU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=FWMHD4ukg84VQQPcUzdvYkTpZEolvS89PLEDeqEObNoHN6dL7wtbGcKftgA5f0MnW uck/JCMbyizznWP9cehzht1F7w3uyMnGd59ivYIhMQrNY/kdrHevXcgDae+uAzjbfV SHzW91Hnj4ixeD1cFhI7ivDYTkGxdJypmFkNCjRz8Mce3Ax6SIygyjfzJ7KuzAMGU1 xBy+9KZ7NQ7/rlbKIViFDqfVMM16BBLd5XgHkRlDOaJ2WKUnVJYI35CKEaJ/5YDnWT HKh5jfb388949enb8epNogYKvqi7b9ve3VWDIkKwMV/fZIs9oySE6JSqz69xM2MRJK vjE8q+tzh/h9A== 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 v12 00/25] Linux RISC-V AIA Support In-Reply-To: <87r0hzuw87.fsf@all.your.base.are.belong.to.us> References: <20240127161753.114685-1-apatel@ventanamicro.com> <87r0hzuw87.fsf@all.your.base.are.belong.to.us> Date: Tue, 30 Jan 2024 08:52:00 +0100 Message-ID: <87le87uulb.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 Bj=C3=B6rn T=C3=B6pel writes: > 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-interrupt= s-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 high= er). >> >> 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, PATCH19, >> PATCH20, PATCH21, PATCH22, PATCH23, and PATCH32 of >> https://lore.kernel.org/linux-arm-kernel/20221121135653.208611233@li= nutronix.de/) >> - Updated APLIC MSI-mode driver to use the new WIRED_TO_MSI mechanism. >> - 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...