Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp7713790ioo; Fri, 3 Jun 2022 11:51:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/Nl+BB5IWCfv3cqIuKskg4iV7IjtracazLnHvpGM4veM/z9TXrzmPn7+kpXw9HIq3e6JV X-Received: by 2002:a17:902:da87:b0:167:5517:e97e with SMTP id j7-20020a170902da8700b001675517e97emr2069455plx.91.1654282301955; Fri, 03 Jun 2022 11:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654282301; cv=none; d=google.com; s=arc-20160816; b=yfrz7Sh3t77KFT+3qyCOekJaNxBb2eU9nXFZRFUR0CYwgq0oQZIYG8lS7H0GTsrQvQ JS9ZO6tNjabyaW3U5w/8ow90z72wEhGaHCQ3ihlYIS/6M2VohoZaq4Y5qjNKD2Wl0srz vgFox51B/ilCPrSsD/6Iip9b9kPBcNfFyFPjhK6usAPgn2e0fIT2O7aVUg/JopegxZfC 3FiKk6MZnbxiW3PnSlnOd5e9bq1j8ZLcIAXMZqeO0PwO5Agt0Xy7uJx4oSX1RhD6Xv0W IXY3u63gXKtqww4Cobws6LlabpJPYQu/bmOdIehvDSNAGUZgl2zj1rjxkFmvKWPoovwt Wgcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ykexnotmnCEPoI5Oth3kNZn8Re9RXxRddiJBLrLWIBA=; b=sZ3dpGa7F+dC7RYB7Cn1j7FN2FV92GxNhmuw17rZr268RHAhZk7upVk80EWs+cBBLb aQ3ndCyUslKepHsXrsSkLhPLWJqc0ZZT3EC03uNcyYBG+LN5/Hy9PQeiLEzTT7mqxl6h SwFvrOb7MwV/uZGAhHes5XYyDAIn/cpQ3sUqCovd4dpwROE+ix7SGTMuU1TnWoQnQbl4 NqSFZEK0Fj4TRpRIZX1pcKbNILFUTJR2J9ZmiMWvmdkJrGtW1w6/HpooxFQFxrmmj5Kd EF1nu/GGWYlKPPJ/w2r3Cp8MXxtgRpyQqd7U1vGPSHR15htDbzxUHaVemhAyfaaxDunU kMxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=glhKnCIa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s64-20020a17090a2f4600b001e30a5c2fafsi18622153pjd.14.2022.06.03.11.51.28; Fri, 03 Jun 2022 11:51:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=glhKnCIa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240986AbiFCBp3 (ORCPT + 99 others); Thu, 2 Jun 2022 21:45:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240975AbiFCBp0 (ORCPT ); Thu, 2 Jun 2022 21:45:26 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 513CF24086; Thu, 2 Jun 2022 18:45:23 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id h1so5835077plf.11; Thu, 02 Jun 2022 18:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ykexnotmnCEPoI5Oth3kNZn8Re9RXxRddiJBLrLWIBA=; b=glhKnCIao23XEkXQATLZXMVvZO+5umzisEWt5K4eEWqTXZb+jZpia8bGHlKmiu44DU M0CRLXBiX+RmhTNjZ/tJfyGUya0aP6tYXif87iKHnto+wiquodWSVDLr76/3cbw9BVpZ YQbJjhulDJuBkphx80ANkgad209aaT2VvpzL8JuSIycIgh1jop3w7ivErMmMOG8VI7Le ygrddEQfGY5HbpVifa1RhFnF2qiwPlvfOGDKy1FiOrNdiXA5m6BLiDVOhVMoqkbUBLQW KzgK0Ke3fF2MkGyDyKWraHCg8bfBtUfBqABJSH/gOTaAzJ8ZBd8aYjGVMHQKXRs0rPg1 20Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ykexnotmnCEPoI5Oth3kNZn8Re9RXxRddiJBLrLWIBA=; b=QaokvplYBA+PTN905t92YPj9T6yEjWreOn91cGEYJWfy04M7h55xdUICm7JaBXzceT RHjCBbfIIOgDmuvMQqicHWhllGnlMyVNNzVEqu6u9PK75gVGDataF2HhBV0w+zErZlSz K7SZ3XJfe/Q6UMSa6D3sIU7+q/96Dfdyv2baw6GUoPHeG3RMy9RS77EnhTpEiQs/o7dn QY8yo+5iUz0N+nZ9loTJt47XffZfOjvpsFZw7aknCCC1HNTSl4j4qD5SBC1hVt5ju4dQ 3sHXkybAAOhJ3BI6GsFji+4e1c8GI7/OOsTzU/mnerDZjSCRIHkMoe4NVSyFlrA9lHIr yW0w== X-Gm-Message-State: AOAM533NRVPchBR985XsokTjU0QBXTq1K/dOSrOW6p+o/dpfJ2djT+g0 W9KmAmYsAqQ379UC38/LUME= X-Received: by 2002:a17:903:230e:b0:166:3781:1e50 with SMTP id d14-20020a170903230e00b0016637811e50mr7863272plh.20.1654220722734; Thu, 02 Jun 2022 18:45:22 -0700 (PDT) Received: from localhost (subs28-116-206-12-38.three.co.id. [116.206.12.38]) by smtp.gmail.com with ESMTPSA id r12-20020a17090b050c00b001e0c1044ceasm3937393pjz.43.2022.06.02.18.45.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jun 2022 18:45:21 -0700 (PDT) Date: Fri, 3 Jun 2022 08:45:18 +0700 From: Bagas Sanjaya To: Huacai Chen Cc: Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds , linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li , Yanteng Si , Huacai Chen , Guo Ren , Xuerui Wang , Jiaxun Yang , Stephen Rothwell , WANG Xuerui Subject: Re: [PATCH V14 03/24] Documentation: LoongArch: Add basic documentations Message-ID: References: <20220602115141.3962749-1-chenhuacai@loongson.cn> <20220602115141.3962749-4-chenhuacai@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220602115141.3962749-4-chenhuacai@loongson.cn> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 02, 2022 at 07:51:20PM +0800, Huacai Chen wrote: > +Legacy IRQ model > +================ > + > +In this model, IPI (Inter-Processor Interrupt) and CPU Local Timer interrupt go > +to CPUINTC directly, CPU UARTS interrupts go to LIOINTC, while all other devices > +interrupts go to PCH-PIC/PCH-LPC/PCH-MSI and gathered by HTVECINTC, and then go > +to LIOINTC, and then CPUINTC. > + > + +---------------------------------------------+ > + |:: | > + | | > + | +-----+ +---------+ +-------+ | > + | | IPI | --> | CPUINTC | <-- | Timer | | > + | +-----+ +---------+ +-------+ | > + | ^ | > + | | | > + | +---------+ +-------+ | > + | | LIOINTC | <-- | UARTs | | > + | +---------+ +-------+ | > + | ^ | > + | | | > + | +-----------+ | > + | | HTVECINTC | | > + | +-----------+ | > + | ^ ^ | > + | | | | > + | +---------+ +---------+ | > + | | PCH-PIC | | PCH-MSI | | > + | +---------+ +---------+ | > + | ^ ^ ^ | > + | | | | | > + | +---------+ +---------+ +---------+ | > + | | PCH-LPC | | Devices | | Devices | | > + | +---------+ +---------+ +---------+ | > + | ^ | > + | | | > + | +---------+ | > + | | Devices | | > + | +---------+ | > + | | > + | | > + +---------------------------------------------+ > + > +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, while all other devices > +interrupts go to PCH-PIC/PCH-LPC/PCH-MSI and gathered by EIOINTC, and then go to > +to CPUINTC directly. > + > + +--------------------------------------------------------+ > + |:: | > + | | > + | +-----+ +---------+ +-------+ | > + | | IPI | --> | CPUINTC | <-- | Timer | | > + | +-----+ +---------+ +-------+ | > + | ^ ^ | > + | | | | > + | +---------+ +---------+ +-------+ | > + | | EIOINTC | | LIOINTC | <-- | UARTs | | > + | +---------+ +---------+ +-------+ | > + | ^ ^ | > + | | | | > + | +---------+ +---------+ | > + | | PCH-PIC | | PCH-MSI | | > + | +---------+ +---------+ | > + | ^ ^ ^ | > + | | | | | > + | +---------+ +---------+ +---------+ | > + | | PCH-LPC | | Devices | | Devices | | > + | +---------+ +---------+ +---------+ | > + | ^ | > + | | | > + | +---------+ | > + | | Devices | | > + | +---------+ | > + | | > + | | > + +--------------------------------------------------------+ > + I think for consistency with other diagrams in Documentation/, just use literal code block, like: diff --git a/Documentation/loongarch/irq-chip-model.rst b/Documentation/loongarch/irq-chip-model.rst index 35c962991283ff..3cfd528021de05 100644 --- a/Documentation/loongarch/irq-chip-model.rst +++ b/Documentation/loongarch/irq-chip-model.rst @@ -24,40 +24,38 @@ to CPUINTC directly, CPU UARTS interrupts go to LIOINTC, while all other devices interrupts go to PCH-PIC/PCH-LPC/PCH-MSI and gathered by HTVECINTC, and then go to LIOINTC, and then CPUINTC. - +---------------------------------------------+ - |:: | - | | - | +-----+ +---------+ +-------+ | - | | IPI | --> | CPUINTC | <-- | Timer | | - | +-----+ +---------+ +-------+ | - | ^ | - | | | - | +---------+ +-------+ | - | | LIOINTC | <-- | UARTs | | - | +---------+ +-------+ | - | ^ | - | | | - | +-----------+ | - | | HTVECINTC | | - | +-----------+ | - | ^ ^ | - | | | | - | +---------+ +---------+ | - | | PCH-PIC | | PCH-MSI | | - | +---------+ +---------+ | - | ^ ^ ^ | - | | | | | - | +---------+ +---------+ +---------+ | - | | PCH-LPC | | Devices | | Devices | | - | +---------+ +---------+ +---------+ | - | ^ | - | | | - | +---------+ | - | | Devices | | - | +---------+ | - | | - | | - +---------------------------------------------+ + :: + + +-----+ +---------+ +-------+ + | IPI | --> | CPUINTC | <-- | Timer | + +-----+ +---------+ +-------+ + ^ + | + +---------+ +-------+ + | LIOINTC | <-- | UARTs | + +---------+ +-------+ + ^ + | + +-----------+ + | HTVECINTC | + +-----------+ + ^ ^ + | | + +---------+ +---------+ + | PCH-PIC | | PCH-MSI | + +---------+ +---------+ + ^ ^ ^ + | | | + +---------+ +---------+ +---------+ + | PCH-LPC | | Devices | | Devices | + +---------+ +---------+ +---------+ + ^ + | + +---------+ + | Devices | + +---------+ + + Extended IRQ model ================== @@ -67,35 +65,33 @@ to CPUINTC directly, CPU UARTS interrupts go to LIOINTC, while all other devices interrupts go to PCH-PIC/PCH-LPC/PCH-MSI and gathered by EIOINTC, and then go to to CPUINTC directly. - +--------------------------------------------------------+ - |:: | - | | - | +-----+ +---------+ +-------+ | - | | IPI | --> | CPUINTC | <-- | Timer | | - | +-----+ +---------+ +-------+ | - | ^ ^ | - | | | | - | +---------+ +---------+ +-------+ | - | | EIOINTC | | LIOINTC | <-- | UARTs | | - | +---------+ +---------+ +-------+ | - | ^ ^ | - | | | | - | +---------+ +---------+ | - | | PCH-PIC | | PCH-MSI | | - | +---------+ +---------+ | - | ^ ^ ^ | - | | | | | - | +---------+ +---------+ +---------+ | - | | PCH-LPC | | Devices | | Devices | | - | +---------+ +---------+ +---------+ | - | ^ | - | | | - | +---------+ | - | | Devices | | - | +---------+ | - | | - | | - +--------------------------------------------------------+ + :: + + +-----+ +---------+ +-------+ + | IPI | --> | CPUINTC | <-- | Timer | + +-----+ +---------+ +-------+ + ^ ^ + | | + +---------+ +---------+ +-------+ + | EIOINTC | | LIOINTC | <-- | UARTs | + +---------+ +---------+ +-------+ + ^ ^ + | | + +---------+ +---------+ + | PCH-PIC | | PCH-MSI | + +---------+ +---------+ + ^ ^ ^ + | | | + +---------+ +---------+ +---------+ + | PCH-LPC | | Devices | | Devices | + +---------+ +---------+ +---------+ + ^ + | + +---------+ + | Devices | + +---------+ + + ACPI-related definitions ======================== Otherwise, htmldocs builds successfully without any new warnings related to this patch series. Tested-by: Bagas Sanjaya -- An old man doll... just what I always wanted! - Clara