Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1857285lqo; Sun, 12 May 2024 23:38:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2oR+qQJQKULNM48oSaRNoBoEgtpLvtxliPt6CNALd6tpjMcY6rTHMTsMu3DcIZVbtVRV5qOla0wNRPDLjggZoyWkoTJYCRFwSa6KQxQ== X-Google-Smtp-Source: AGHT+IEM7bz/w2gaYbTsXi0UbDwvXKTRXq4YOzfkld+/TriwCB4SOFlyJs5lVUvLfuSQy5bO49rB X-Received: by 2002:a05:6122:209f:b0:4cb:fc25:7caa with SMTP id 71dfb90a1353d-4df8836744amr6680984e0c.14.1715582332884; Sun, 12 May 2024 23:38:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715582332; cv=pass; d=google.com; s=arc-20160816; b=jFbcJJoVs1P/e3F1Sjphq8OvsmiFApmR33Jk1k2tJc6oGxrUl82+eS8xTyQE7gb3Xi ARZW5y2/iufnbCYRYKXHqZdqLtASjvv0CElwJWMR5MiZFgNktkrK3ZD19Cd406oWCRf7 1IuxkCzZlTckhtWNBS+aTQiPPJ2pKBNWfaruiUAGVRYPjw13XwFSUrQbioov5MWNuFZZ StUZ51dLvLxU224FiVxgBltbMCfTwDIFehPEPFw2iEK7EGUp+OuvbwigzzF6oBXPhLqB JuM3cFoo8d3EUi+7yLR/YuwIHFgC1Fwy5GgXBN3le+IwmDWKcctSmibXcNJWsmjFE7ZD woDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=kI/h3xl5qxrlPonYPoYz8UyrD3575sjeunvMNi53lRg=; fh=9MCKhYuKgQmAi8k4gWmfQJc2XBb0RxoY9jGFz6NyjEY=; b=JVk0d81DKTuncZ5a+3I8SuNtelGE6gMcwENuY82Dqp802H2sy119e34BYBdm7h3lNE J8gXkmd7ijWs24+Ugn2zYtU8CUobtrKdqqKyJWT0+NSUdxluKYH4HycljkJ1Dia0gNGh 9QVix5WWqQGYRDojyVec3vJreuxzebTKXLhfg//53qOVrAddSc7vIy8/EbPKDLgJoE0/ KBiXqX5CgdOM9P9Q5MWyDqv7ZHWQFDjUQImYSOSMJNhWCYQwUwuOYcZ7JkbY8Lb8avmU VLyV6JWpbsKOtuXavXKzZC0X8NmnZFPm8XLf9ndtuPgmwA0n7+l85Kv0hH3nQVB+HmQY +zNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-177208-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177208-linux.lists.archive=gmail.com@vger.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 af79cd13be357-792bf277b1bsi877734185a.45.2024.05.12.23.38.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 23:38:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177208-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; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-177208-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177208-linux.lists.archive=gmail.com@vger.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 8961B1C2095C for ; Mon, 13 May 2024 06:38:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDDFD145FEF; Mon, 13 May 2024 06:38:45 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71D6F2E827; Mon, 13 May 2024 06:38:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.242.206.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715582325; cv=none; b=LzFi7yqlZdugj2tF5igRydODu6se3fAvECWdOTpM8kjPup+OJqGzU/M8ZvUUpLIE7BSpWyMWPnOujaf562xS9vAd4Lw3KUVsbcEHsggR5+vmWcZb6ZV0TkRR4eL0TFmzQaRpu8lcHejlznb+FDFQKPPI8NWkoYP10Lahc3atDfo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715582325; c=relaxed/simple; bh=TOKtOi8SMh5KrsAoqKzTKP4dRMSjSWxiBPerZzBEDYQ=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=lq5ahyMB6/gDOWVN5rFJut6YbqRCxMr1NLrzcCCEDC3Hw890Y0H/UTdCvPbNSw99FnHPDN699tE5y3bBjvRQNdnad4I3N0cdenTZzmDsd7P09HDyoYb0r6l35pFbenStlYm4XEkpFUmnPZvK8truaFPyXBaC1kK0lIyoSSeGaV8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn; spf=pass smtp.mailfrom=loongson.cn; arc=none smtp.client-ip=114.242.206.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.20.42.24]) by gateway (Coremail) with SMTP id _____8CxyelvtUFmlRIMAA--.17498S3; Mon, 13 May 2024 14:38:39 +0800 (CST) Received: from [10.20.42.24] (unknown [10.20.42.24]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cx4VVstUFmqqIcAA--.34663S3; Mon, 13 May 2024 14:38:39 +0800 (CST) Subject: Re: [PATCH 1/2] docs: Add advanced extended IRQ model description To: Dongliang Mu Cc: chenhuacai@kernel.org, kernel@xen0n.name, corbet@lwn.net, alexs@kernel.org, siyanteng@loongson.cn, loongarch@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240507122228.5288-1-zhangtianyang@loongson.cn> From: Tianyang Zhang Message-ID: <5648b40a-51fa-612d-d102-e2948866174f@loongson.cn> Date: Mon, 13 May 2024 14:38:36 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CM-TRANSID:AQAAf8Cx4VVstUFmqqIcAA--.34663S3 X-CM-SenderInfo: x2kd0wxwld05hdqjqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj93XoWxXw15Aw4UAr1UXryrAr1fGrX_yoW7JFy7pr 9xGF9avF48G345Wr17Jr48Wr13Jw1fK3WDtF1xKry8Xr1qyr1DJr1Utr1kXFW7G348Ar1j qFW5Kw1DAw1UA3gCm3ZEXasCq-sJn29KB7ZKAUJUUUU5529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUvFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27w Aqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE 14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCYjI0SjxkI62AI1c AE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8C rVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8Zw CIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x02 67AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr 0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxU7XTm DUUUU 在 2024/5/9 上午10:24, Dongliang Mu 写道: > On Tue, May 7, 2024 at 8:24 PM Tianyang Zhang wrote: >> From 3C6000, Loongarch began to support advanced extended >> interrupt mode, in which each CPU has an independent interrupt >> vector number.This will enhance the architecture's ability >> to support modern devices >> >> Signed-off-by: Tianyang Zhang >> --- >> .../arch/loongarch/irq-chip-model.rst | 33 +++++++++++++++++ >> .../zh_CN/arch/loongarch/irq-chip-model.rst | 37 +++++++++++++++++-- >> 2 files changed, 67 insertions(+), 3 deletions(-) >> >> diff --git a/Documentation/arch/loongarch/irq-chip-model.rst b/Documentation/arch/loongarch/irq-chip-model.rst >> index 7988f4192363..79228741d1b9 100644 >> --- a/Documentation/arch/loongarch/irq-chip-model.rst >> +++ b/Documentation/arch/loongarch/irq-chip-model.rst >> @@ -85,6 +85,39 @@ to CPUINTC directly:: >> | Devices | >> +---------+ >> >> +Advanced Extended IRQ model >> +======================= >> + >> +In this model, IPI (Inter-Processor Interrupt) and CPU Local Timer interrupt go >> +to CPUINTC directly, CPU UARTS interrupts go to LIOINTC, MSI interrupts go to AVEC, >> +and then go to CPUINTC, Other devices interrupts go to PCH-PIC/PCH-LPC and gathered >> +by EIOINTC, and then go to CPUINTC directly:: >> + >> + +-----+ +--------------------------+ +-------+ >> + | IPI | --> | CPUINTC | <-- | Timer | >> + +-----+ +--------------------------+ +-------+ >> + ^ ^ ^ >> + | | | >> + +--------+ +---------+ +---------+ +-------+ >> + | AVEC | | EIOINTC | | LIOINTC | <-- | UARTs | >> + +--------+ +---------+ +---------+ +-------+ >> + ^ ^ >> + | | >> + +---------+ +---------+ >> + | MSI | | PCH-PIC | >> + +---------+ +---------+ >> + ^ ^ ^ >> + | | | >> + +---------+ +---------+ +---------+ >> + | Devices | | PCH-LPC | | Devices | >> + +---------+ +---------+ +---------+ >> + ^ >> + | >> + +---------+ >> + | Devices | >> + +---------+ >> + >> + >> ACPI-related definitions >> ======================== >> >> diff --git a/Documentation/translations/zh_CN/arch/loongarch/irq-chip-model.rst b/Documentation/translations/zh_CN/arch/loongarch/irq-chip-model.rst >> index f1e9ab18206c..7ccde82dd666 100644 >> --- a/Documentation/translations/zh_CN/arch/loongarch/irq-chip-model.rst >> +++ b/Documentation/translations/zh_CN/arch/loongarch/irq-chip-model.rst >> @@ -9,9 +9,8 @@ >> LoongArch的IRQ芯片模型(层级关系) >> ================================== >> >> -目前,基于LoongArch的处理器(如龙芯3A5000)只能与LS7A芯片组配合工作。LoongArch计算机 >> -中的中断控制器(即IRQ芯片)包括CPUINTC(CPU Core Interrupt Controller)、LIOINTC( >> -Legacy I/O Interrupt Controller)、EIOINTC(Extended I/O Interrupt Controller)、 >> +LoongArch计算机中的中断控制器(即IRQ芯片)包括CPUINTC(CPU Core Interrupt Controller)、 >> +LIOINTC(Legacy I/O Interrupt Controller)、EIOINTC(Extended I/O Interrupt Controller)、 >> HTVECINTC(Hyper-Transport Vector Interrupt Controller)、PCH-PIC(LS7A芯片组的主中 >> 断控制器)、PCH-LPC(LS7A芯片组的LPC中断控制器)和PCH-MSI(MSI中断控制器)。 >> >> @@ -87,6 +86,38 @@ PCH-LPC/PCH-MSI,然后被EIOINTC统一收集,再直接到达CPUINTC:: >> | Devices | >> +---------+ >> >> +高级扩展IRQ模型 >> +======================= >> + >> +在这种模型里面,IPI(Inter-Processor Interrupt)和CPU本地时钟中断直接发送到CPUINTC, >> +CPU串口(UARTs)中断发送到LIOINTC,MSI中断发送到AVEC,而后通过AVEC送达CPUINTC,而 > AVEC is followed by an English comma (Translation: AVEC 后面一个英文逗号) > Dongliang Mu Ok, I will follow the advice >> +其他所有设备的中断则分别发送到所连接的PCH-PIC/PCH-LPC,然后由EIOINTC统一收集,再直 >> +接到达CPUINTC:: >> + >> + +-----+ +--------------------------+ +-------+ >> + | IPI | --> | CPUINTC | <-- | Timer | >> + +-----+ +--------------------------+ +-------+ >> + ^ ^ ^ >> + | | | >> + +--------+ +---------+ +---------+ +-------+ >> + | AVEC | | EIOINTC | | LIOINTC | <-- | UARTs | >> + +--------+ +---------+ +---------+ +-------+ >> + ^ ^ >> + | | >> + +---------+ +-------------+ >> + | MSI | | PCH-PIC | >> + +---------+ +-------------+ >> + ^ ^ ^ >> + | | | >> + +---------+ +---------+ +---------+ >> + | Devices | | PCH-LPC | | Devices | >> + +---------+ +---------+ +---------+ >> + ^ >> + | >> + +---------+ >> + | Devices | >> + +---------+ >> + >> ACPI相关的定义 >> ============== >> >> -- >> 2.20.1 >> >>