Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp490103lqh; Tue, 7 May 2024 05:46:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUSKHK9K9txxsQpjpgYBcWSn7/ODCHuH2CcrH83Ryqzjs9twWesbl7L7KZhUbh01ZkHtP9LI74tDZ0ncPwDJu7ax3L3RV8BmcSlCUGvuA== X-Google-Smtp-Source: AGHT+IExoJSMJO/IzlfALxA1d6Vo1GKUBcdLHpC9lOwBDVHTtT6HelRFHL5BjemFHTbuJ4kX3JYu X-Received: by 2002:a17:902:a714:b0:1e2:be4b:dd9f with SMTP id w20-20020a170902a71400b001e2be4bdd9fmr11913303plq.15.1715086010781; Tue, 07 May 2024 05:46:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715086010; cv=pass; d=google.com; s=arc-20160816; b=Ux/ZGshi/+7j6OgSMckOw7TLuF6mfb8+AzTqrvr8r8T/F9HvTT1MayJGREO4A8MhZG l5e004P0213F2hzbTJ0ryjJR3oY6HCK+KPpPSrxL+52MkKQcYA04S/IJKxeCepVDS/I1 VL7pha/7tLtIC49nBFhWJzJxrgTzmzxzQiKkdNbgiGgl1HwTqaEctzmnnBBA/vXmHXkF Q1pc9V43L1pdZDvFt/YIz5popht4mCOaCX2RlQxBjVlSjWUX96qNkC5d3QqcUbgSU7eK nTV//oRYw2rgxXiiIS0q8HP/eRWz0BP3+3v3jmykMz/Xt+BzRMMWX91g4HMYGgB9FnKr NTLw== 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=0tQcmxbethv9lAqhFa1j/+Lcu2U6ll9dMekkdknybbw=; fh=A8VRZeqHYib3dAm16O7E8b+uBk14Vzcck7hNvtStvwg=; b=rWE/3FcFCG/9WLBHCst9ivoU1g7u/NA/cbVOEq4VSUJ2cD8ODG+KWIWuOugTBGqNDe hUEkZxpKAJxlgUzRJu57u2JvC8TASzwVdsPx7TYa13x4+NnBMpVu3dcAkaxwryjW/XAX VtlJfHaZB+cumrNieh+DwY9R+xoC7yzgwLFiizhCPvT68RTwDkzJry28TPlzhiWMJvIX XYFCihb+XCL0VVt2rFVUwog5tIB02Uwa/elp/LhVX+GpmM39gMbVuA42YS/vD6al4ugQ MeOMCACjbY5jrD+A5055sFSxUIob5+sCOnoUTFgkNWJDKBydgGiVH5pqWTBQTaR+MWL5 Rs0w==; 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-171263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171263-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h18-20020a170902f2d200b001e5893023c1si2981967plc.150.2024.05.07.05.46.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 05:46:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-171263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171263-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 737E6B26F0A for ; Tue, 7 May 2024 12:24:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2573115B11A; Tue, 7 May 2024 12:22:37 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 207ED15E1FF; Tue, 7 May 2024 12:22:32 +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=1715084556; cv=none; b=NlH7OazC2qijWVbbBXzbswwSoLObtsn47nnTKvbIutYIP9UQLG8iEv/EcoGCnyw/sj8WUXTQ+qMyN7wxQDlkqaP+4bIubh8VZCMSfScSA8GbJa1ue8StptqoHMvFUw1UrBlpe6HO5g1h3Pr+aXxtfLdD/BCAk2zDehuTYbODJxQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715084556; c=relaxed/simple; bh=P6OVKvpCCsdebuKqd+D/tHWKONqi84dZHxn/mU5HZQM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=hgY76/+/lZObaAfwgd6tonktWSc+RDWSvxtLY+ZD9MEI8+TntS9G7hHeotX7IRRpei0429tbMY/pNZDWb4rJ+aLDEtKiQ4LbhHW1pGAds3G8ljtdT0+48yMkguxWvDpa32W1KXFhuZthGCL1xXAaLd+maFVB4unFExYy+tgLnmc= 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 _____8Bx9eoHHTpm+9IIAA--.12116S3; Tue, 07 May 2024 20:22:31 +0800 (CST) Received: from localhost.localdomain (unknown [10.2.10.34]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx8VUGHTpm9QsUAA--.22782S2; Tue, 07 May 2024 20:22:31 +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 1/2] docs: Add advanced extended IRQ model description Date: Tue, 7 May 2024 20:22:28 +0800 Message-Id: <20240507122228.5288-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=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID:AQAAf8Dx8VUGHTpm9QsUAA--.22782S2 X-CM-SenderInfo: x2kd0wxwld05hdqjqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj93XoWxCFy8Gr17WryfWr47KF1fZrc_yoWrZr47pr ZxCryIqF48Gry5Xr17Jr18Wr13G3Z3Ja1DtF1xtry8Xr1kAr1Utr1UtrykJFy7G34rAF1j qFWrtw1UGw1UJwcCm3ZEXasCq-sJn29KB7ZKAUJUUUU8529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUkFb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87Iv 67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2 Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s02 6x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0x vE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE 42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6x kF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07URa0PUUUUU= 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,而 +其他所有设备的中断则分别发送到所连接的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