Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp876299lqo; Wed, 8 May 2024 19:24:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWh/En/oN/vXsCNuCmQ6CFhS8rCZlJCrcHsuDvq7zIiqRgJnxCtEwhVoaUpAwS0qM4kw4LxwYm6p9HfU3EeiyiYm8U+t5EBi+o2hmKKiQ== X-Google-Smtp-Source: AGHT+IFuIP7McHfetYJqIcsUWXPdT/35unRPBOXH4nEv956CJphMdID1vjgrMZBBtX4ojITqd4h9 X-Received: by 2002:a5b:8c1:0:b0:dcd:a9ad:7d67 with SMTP id 3f1490d57ef6-debb9ce0c01mr5609028276.8.1715221492716; Wed, 08 May 2024 19:24:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715221492; cv=pass; d=google.com; s=arc-20160816; b=gdgDLn8q0IOk/fJIKSxbnPdXzwrK8B9BbxqYPysaR0CeXX5HZVCNqH3yqZSVfpCATz X3t6g0xOS+5yxTtiQWA57UCpkOAfH9b2He5PLHMdDz1OVbuWPBfEsG3hlEtj/1mCj4tW 13ozqLTeTUf2t8Kt8FIfzB5BGDaRe+Uv74d69aYR4c567fK/KWhMKSlF5VBUPNYPbiNU uL5BxSqgFdP2u7QA3HrPTpU+PAy869W9k0An1sxB+ssuiAH5FpUe7uOk+XXN9/20EgQ3 gLu/Z5t/HhaPv6HQt9yzDr6Ook2BXBe6LmoZXiUboMpW00P9UW2gXIAEFhjbAvqSNBUh nY+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=0ODud8ohb8vpikiOmz/uYlWu4zxPb834x4SbMz1JshM=; fh=QNtpp0/dOhEogqV0GfZ8v68kdbA510ZgfJK/XlIhAsk=; b=fa7egPvYWPpl11z7Z4u4EVl6l7a2fbBDTWZIpFDiecb2c2t14OPNagLY6QzYOE+zdC XExWC04MOLUmoPzx5rnQnjgQITZ3urU6ARNE175F0vCQKwUqrv7OVZz7HWlnTBFEUgGT j3D5V0FJ1yU7NEUXbNH4Z6lK1M/sgPOUGQLBkFFAE2w1KMk8H98lUE26qaMonnWaP0xL Yk3iBdPdgxwpc/cfpLmgttT9WmArAE+LyDMmydAkktsiOlnCCBxLr2g5kUqlcVUVrkNJ O9ngnRyW30cUHHizvCuyHrAqjH3tswVpOdkyI7M2txLUsICP2idVTe8Qrl6z3HvgEG9H 9ADA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jYiPHLg1; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-174058-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174058-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56dfe6asi4146911cf.750.2024.05.08.19.24.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 19:24:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174058-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=@gmail.com header.s=20230601 header.b=jYiPHLg1; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-174058-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174058-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 627CB1C21119 for ; Thu, 9 May 2024 02:24:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1DD5C13CAB9; Thu, 9 May 2024 02:24:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jYiPHLg1" Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E216E3FBB2; Thu, 9 May 2024 02:24:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715221486; cv=none; b=P1bhKR7sRU+nL6eeUUBPvMiKuoN1rMkqOesSS8n0PtlZP/2lPRcZakjbIqJ304+rYXazTLqxbtdG/YG9j+dC5UPqA98A88Rqvtie+K61GoXAC+DzrPz1pjSr+eU4SISkf61IFQlFipxdnenFbqcDEcgLay+0agv9gmI2L+41FvE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715221486; c=relaxed/simple; bh=9rSPZR5cYVC/s/XK6Sl9HqlPQQom/UHopyaHLvwlDt8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ElEI/t6fkk2K7wRKuC2EppULc6WguJ/XyPfdTXthH+YyS/bPMWV65HnQ/wD+eVXB/IJouuco7oAJAX/fVWhaeAIGhnDElsJN5POkx/h2d0KrwpqPfUT9m7/7XGiiNYZ3u6Cv/CRV0pxUzr6eG3sFTSYsBV4vK3+aOWc1LwL7cKw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jYiPHLg1; arc=none smtp.client-ip=209.85.161.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-5b273b9f1deso50747eaf.3; Wed, 08 May 2024 19:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715221483; x=1715826283; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0ODud8ohb8vpikiOmz/uYlWu4zxPb834x4SbMz1JshM=; b=jYiPHLg1YX8UP/SAGueUOZsyylX5KIurNv9MkV8VAidoXqEjTsbZ5yicIreH5jqahz 1+dLO40b6zczk4NoetAD9UqrBb8Bn58nKR1uwp+mS3rySt2C5Nnr8N6uemCWGEft/+T6 cF6LGtUQ/SnLx34L6UT3/M3DfbC8zpi/cU+J0XriqClq3RvVr88Vj40YF/mJSj0KehLD S4BO/WkX5insDCXGDaDk7BShHXEVywJQFJHb4EuukQk8O5vINNiNHJ+D8xZx7ENBOPjw r9bXI/REJB/z7STlmksknrhEYlRV2Fuf7Gr+O4GTNrgzqo/Oodbnh0Xd/jP69oY3nP5V 62Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715221483; x=1715826283; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0ODud8ohb8vpikiOmz/uYlWu4zxPb834x4SbMz1JshM=; b=azkhzI1R49FZU4W5p/6gCBY01CYegSjbuZbok20mZJ9HiGbld3N+MGqF3xnHWUBqct VXGChjc47OzRjXftetLUuFBLHpZnjL9NqfW2o6YDCdtmYKn7TwNsyNK0nabGu3brIdWr VzPhCQZ8qDwPsY2m4ywkAg5qPdVS/rNaOSs6DBiPSW3VUWDMZh1HeVZlhGlUV0iwsoUu MCgDYPmhRvX3XxXPAFlCQPjE0SwjtUkRbU1wAp/ZguEbXCrY1CRZyaCYdqzzvRNLgyQM q2Y/smPfZZFpBnYoJiIU+H0qn9/pM/tOs801dy6VEZfn3p+rBu+RMDy+Vu2CFjMdxhMI xYrw== X-Forwarded-Encrypted: i=1; AJvYcCX4tdYra4bT6xGc4roKhoV8XEBc25QxmCD9nufPhateNllFlS+PTfJnsQXq3AjtgIuRbIAtcXU4mMl7ad7wAFxrXoi48r6v50R7wmMDs7TLm97XjNobhfJDYqYb5RRAbLv25Hki5i7b X-Gm-Message-State: AOJu0Yw2lPdW7ieMDT0avm9mSWJHTmL3QNeiKkiJ7QJblO1RDaBrZEdI r/kplpn9Q4MMxsvw2HArku6mLrB47nAcH1CXalFRG27UgjV1W+isWxA3KYCSDdVhG1nsYZ0XyzJ 50MRz9ETr+IUeBORXA3OJ1GqVxKE= X-Received: by 2002:a4a:98a8:0:b0:5b2:bc0:f38b with SMTP id 006d021491bc7-5b24d5c905amr4961812eaf.5.1715221482912; Wed, 08 May 2024 19:24:42 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240507122228.5288-1-zhangtianyang@loongson.cn> In-Reply-To: <20240507122228.5288-1-zhangtianyang@loongson.cn> From: Dongliang Mu Date: Thu, 9 May 2024 10:24:16 +0800 Message-ID: Subject: Re: [PATCH 1/2] docs: Add advanced extended IRQ model description To: Tianyang Zhang 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 7, 2024 at 8:24=E2=80=AFPM 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/Documentat= ion/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 > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +In this model, IPI (Inter-Processor Interrupt) and CPU Local Timer inter= rupt 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 a= nd 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 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > diff --git a/Documentation/translations/zh_CN/arch/loongarch/irq-chip-mod= el.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=E7=9A=84IRQ=E8=8A=AF=E7=89=87=E6=A8=A1=E5=9E=8B=EF=BC=88=E5=B1= =82=E7=BA=A7=E5=85=B3=E7=B3=BB=EF=BC=89 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > -=E7=9B=AE=E5=89=8D=EF=BC=8C=E5=9F=BA=E4=BA=8ELoongArch=E7=9A=84=E5=A4=84= =E7=90=86=E5=99=A8=EF=BC=88=E5=A6=82=E9=BE=99=E8=8A=AF3A5000=EF=BC=89=E5=8F= =AA=E8=83=BD=E4=B8=8ELS7A=E8=8A=AF=E7=89=87=E7=BB=84=E9=85=8D=E5=90=88=E5= =B7=A5=E4=BD=9C=E3=80=82LoongArch=E8=AE=A1=E7=AE=97=E6=9C=BA > -=E4=B8=AD=E7=9A=84=E4=B8=AD=E6=96=AD=E6=8E=A7=E5=88=B6=E5=99=A8=EF=BC=88= =E5=8D=B3IRQ=E8=8A=AF=E7=89=87=EF=BC=89=E5=8C=85=E6=8B=ACCPUINTC=EF=BC=88CP= U Core Interrupt Controller=EF=BC=89=E3=80=81LIOINTC=EF=BC=88 > -Legacy I/O Interrupt Controller=EF=BC=89=E3=80=81EIOINTC=EF=BC=88Extende= d I/O Interrupt Controller=EF=BC=89=E3=80=81 > +LoongArch=E8=AE=A1=E7=AE=97=E6=9C=BA=E4=B8=AD=E7=9A=84=E4=B8=AD=E6=96=AD= =E6=8E=A7=E5=88=B6=E5=99=A8=EF=BC=88=E5=8D=B3IRQ=E8=8A=AF=E7=89=87=EF=BC=89= =E5=8C=85=E6=8B=ACCPUINTC=EF=BC=88CPU Core Interrupt Controller=EF=BC=89=E3= =80=81 > +LIOINTC=EF=BC=88Legacy I/O Interrupt Controller=EF=BC=89=E3=80=81EIOINTC= =EF=BC=88Extended I/O Interrupt Controller=EF=BC=89=E3=80=81 > HTVECINTC=EF=BC=88Hyper-Transport Vector Interrupt Controller=EF=BC=89= =E3=80=81PCH-PIC=EF=BC=88LS7A=E8=8A=AF=E7=89=87=E7=BB=84=E7=9A=84=E4=B8=BB= =E4=B8=AD > =E6=96=AD=E6=8E=A7=E5=88=B6=E5=99=A8=EF=BC=89=E3=80=81PCH-LPC=EF=BC=88LS= 7A=E8=8A=AF=E7=89=87=E7=BB=84=E7=9A=84LPC=E4=B8=AD=E6=96=AD=E6=8E=A7=E5=88= =B6=E5=99=A8=EF=BC=89=E5=92=8CPCH-MSI=EF=BC=88MSI=E4=B8=AD=E6=96=AD=E6=8E= =A7=E5=88=B6=E5=99=A8=EF=BC=89=E3=80=82 > > @@ -87,6 +86,38 @@ PCH-LPC/PCH-MSI=EF=BC=8C=E7=84=B6=E5=90=8E=E8=A2=ABEIO= INTC=E7=BB=9F=E4=B8=80=E6=94=B6=E9=9B=86=EF=BC=8C=E5=86=8D=E7=9B=B4=E6=8E= =A5=E5=88=B0=E8=BE=BECPUINTC:: > | Devices | > +---------+ > > +=E9=AB=98=E7=BA=A7=E6=89=A9=E5=B1=95IRQ=E6=A8=A1=E5=9E=8B > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +=E5=9C=A8=E8=BF=99=E7=A7=8D=E6=A8=A1=E5=9E=8B=E9=87=8C=E9=9D=A2=EF=BC=8C= IPI=EF=BC=88Inter-Processor Interrupt=EF=BC=89=E5=92=8CCPU=E6=9C=AC=E5=9C= =B0=E6=97=B6=E9=92=9F=E4=B8=AD=E6=96=AD=E7=9B=B4=E6=8E=A5=E5=8F=91=E9=80=81= =E5=88=B0CPUINTC=EF=BC=8C > +CPU=E4=B8=B2=E5=8F=A3=EF=BC=88UARTs=EF=BC=89=E4=B8=AD=E6=96=AD=E5=8F=91= =E9=80=81=E5=88=B0LIOINTC=EF=BC=8CMSI=E4=B8=AD=E6=96=AD=E5=8F=91=E9=80=81= =E5=88=B0AVEC,=E8=80=8C=E5=90=8E=E9=80=9A=E8=BF=87AVEC=E9=80=81=E8=BE=BECPU= INTC=EF=BC=8C=E8=80=8C AVEC is followed by an English comma (Translation: AVEC =E5=90=8E=E9=9D=A2= =E4=B8=80=E4=B8=AA=E8=8B=B1=E6=96=87=E9=80=97=E5=8F=B7) Dongliang Mu > +=E5=85=B6=E4=BB=96=E6=89=80=E6=9C=89=E8=AE=BE=E5=A4=87=E7=9A=84=E4=B8=AD= =E6=96=AD=E5=88=99=E5=88=86=E5=88=AB=E5=8F=91=E9=80=81=E5=88=B0=E6=89=80=E8= =BF=9E=E6=8E=A5=E7=9A=84PCH-PIC/PCH-LPC=EF=BC=8C=E7=84=B6=E5=90=8E=E7=94=B1= EIOINTC=E7=BB=9F=E4=B8=80=E6=94=B6=E9=9B=86=EF=BC=8C=E5=86=8D=E7=9B=B4 > +=E6=8E=A5=E5=88=B0=E8=BE=BECPUINTC:: > + > + +-----+ +--------------------------+ +-------+ > + | IPI | --> | CPUINTC | <-- | Timer | > + +-----+ +--------------------------+ +-------+ > + ^ ^ ^ > + | | | > + +--------+ +---------+ +---------+ +-------+ > + | AVEC | | EIOINTC | | LIOINTC | <-- | UARTs | > + +--------+ +---------+ +---------+ +-------+ > + ^ ^ > + | | > + +---------+ +-------------+ > + | MSI | | PCH-PIC | > + +---------+ +-------------+ > + ^ ^ ^ > + | | | > + +---------+ +---------+ +---------+ > + | Devices | | PCH-LPC | | Devices | > + +---------+ +---------+ +---------+ > + ^ > + | > + +---------+ > + | Devices | > + +---------+ > + > ACPI=E7=9B=B8=E5=85=B3=E7=9A=84=E5=AE=9A=E4=B9=89 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > -- > 2.20.1 > >