Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp81405lqb; Tue, 4 Jun 2024 05:55:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmZC2oGYp2lUvdEjVVaVVLIlukDPvGrL5njRTuclQ9Obtq54jo1b6dmUpIIzPSqzAg+V+5TcD5djVTOyStCClPKAf4QTDPjBzvMvDWoA== X-Google-Smtp-Source: AGHT+IEflcAgvdDgevSfFTE7gaEARmKL1h9qwtupWE8zqbrUB3H8jBgTbHoAsdjbrRJZ+mr/OdQE X-Received: by 2002:ac8:5f46:0:b0:43a:cc86:569e with SMTP id d75a77b69052e-43ff52320b2mr170185771cf.9.1717505745893; Tue, 04 Jun 2024 05:55:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717505745; cv=pass; d=google.com; s=arc-20160816; b=QELdqjELxUeP30dvkeNCVYshXxfxU2GhMho2XqOD1Mljj4UsfeqDYvp3bNLRwA5pdr 4MOqYikUm33PIqEel6rqpc6WACUe5ijOM3zzYuZSVAIuB5FP40oHgH+lRS4N2LXw7tyw k4AKCwK+48u68lGsfdWMKASVg4NmWBWXEBg3O9/hhXhRMZoNWMgfhJK3Y4FPwPcOQDe8 z7lJWj+bFV3fPPU7EP+KlffJcSSQ7QPZ6dhZKVTUZG/ElN1KLGVVyHgUxeO5RzkL6vRU RRXPcFd8T5MMWhKGxGJUOAzDPL1LF4hS5GBhHnvBp5XZmmkU4F5vuZtArMPkX1BLTsbb OE/w== 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:subject:cc:to :from; bh=zwMXuDahnjCH68RPl9c78HyqZo/UCB4pXUkH1TVus24=; fh=A8VRZeqHYib3dAm16O7E8b+uBk14Vzcck7hNvtStvwg=; b=BcGmWGF4GpkPuVTBNvBn2NvWcIfiFPiTSGkdJZ+GfbMFFKI4qq75I1H37dkynTDLo8 jIiLThkc0PzXaMzwcxNi+dYTn177DZRrWYKrhLlN11Kt9OJICkV6Um3iI83p/9ppVWd5 Y4FMkC13FwzMWPD9id5nx+ZoZDk9Re5A02IfXvxltWQbJpDwe/mItOX36aHcfENECeAW bEHmb5dBvwSWfHjUgHGcZTrWWed+74VfYgwvTXt+1I3L1LhtqKvyzzqVTNcgYq0+B/kk 77t/tBMkf36/Gdm3Kcn3gGOkZIGhZuPPijE9UF2oc2xrLYQnOhxlODg82mrCvmt4lkcp jwWQ==; 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-200647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200647-linux.lists.archive=gmail.com@vger.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 d75a77b69052e-43ff23ac674si108094741cf.89.2024.06.04.05.55.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 05:55:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200647-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; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-200647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200647-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 091BA1C24B9A for ; Tue, 4 Jun 2024 12:54:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF7EC14882D; Tue, 4 Jun 2024 12:50:22 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46065146A70; Tue, 4 Jun 2024 12:50:18 +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=1717505422; cv=none; b=hZv3RE7a5FJaz32iTC4/WE3rSRqQ1do7oBeSrWr2bkpQ28Hd0ft37ObiMq3yM4DKbwYJNwmUuI3r+zrdjcXnhUWCqFCaI7EdwrfGJbwrB0takiTKO0R8vjBf30ES0krz+QdRlNI0OqguhmglvX5EasPpEg9HrAS10v3Zc9kcn+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717505422; c=relaxed/simple; bh=oTyWyoQ6DV2/i77kbwUYPK5JR9US69MX44FaIuO5w3o=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=Xwo+he2LE0nWGOLSA3nHgCoEtL4ZqB2kPWEdd0pDxxo6wYrA7CYYrBcWyo5oxGWD86GXpfl0gkerY49c3RVCqtmRoaiuElWvy1JkUl/3amXVJfpd/8wQvZ0uE6nlzUdkNNsZ49qsgX/dO9+KrHeqb5Dwi4907NDhMbUaWM/Jiu4= 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.2.10.34]) by gateway (Coremail) with SMTP id _____8DxP_CJDV9mo2MDAA--.14500S3; Tue, 04 Jun 2024 20:50:17 +0800 (CST) Received: from localhost.localdomain (unknown [10.2.10.34]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxssSIDV9mxEEUAA--.39592S2; Tue, 04 Jun 2024 20:50:16 +0800 (CST) From: Tianyang Zhang To: chenhuacai@kernel.org, kernel@xen0n.name, corbet@lwn.net, alexs@kernel.org, siyanteng@loongson.cn Cc: loongarch@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Tianyang Zhang Subject: [PATCH V1 1/2] docs: Add advanced extended IRQ model description Date: Tue, 4 Jun 2024 20:50:15 +0800 Message-Id: <20240604125015.18678-1-zhangtianyang@loongson.cn> X-Mailer: git-send-email 2.20.1 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=y Content-Transfer-Encoding: 8bit X-CM-TRANSID:AQAAf8DxssSIDV9mxEEUAA--.39592S2 X-CM-SenderInfo: x2kd0wxwld05hdqjqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29K BjDU0xBIdaVrnRJUUU9vb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26c xKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vE j48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxV AFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x02 67AKxVWxJr0_GcWle2I262IYc4CY6c8Ij28IcVAaY2xG8wASzI0E04IjxsIE14AKx2xKxw AqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8I cVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjc xG0xvY0x0EwIxGrwAKzVC20s0267AEwI8IwI0ExsIj0wCF04k20xvY0x0EwIxGrwCFx2Iq xVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r 1j6r18MI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AK xVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7 xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_ GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8zwZ7UUUUU== 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..4fb24077b23b 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..cadf38589059 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,而 +其他所有设备的中断则分别发送到所连接的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