From patchwork Mon May 15 05:49:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil V L X-Patchwork-Id: 93874 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6696080vqo; Sun, 14 May 2023 23:08:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5lAfJSqnt+W8CV/a4Ao9mA9tgDe1KOsIQ70UnuXlIIzLgp05FwNyuAIhGjHxmQNgNTYVxN X-Received: by 2002:a17:90b:1810:b0:250:981f:365a with SMTP id lw16-20020a17090b181000b00250981f365amr23272789pjb.23.1684130931226; Sun, 14 May 2023 23:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684130931; cv=none; d=google.com; s=arc-20160816; b=AoZUAA4ZViRw3Q432fyUKqPHKZ1XoiMFBYl0/k/GiAk9BMEcvCLHpGO2Mg82cga0v3 6Fg6duyUCT5HXKbcwec0MQGDdzkEXLdPWrwBhDqZemoltW5IP6+STrYNL1cGgmfs/D9W haku8+DgNtIpZ6urh+TIzfqMor8xfV4OqZK8VWv79cFT4vL8QhE4GDGWz0Rv1SsHTVI4 eFQduObLl6/C9Q0rApRC7pFNz0CCexT9+Xpl3pZ1E/uQ7/ichY96WFYDB1yEkcBiEfO+ Fgf6/xE/3pGYZqjLgiJWd4GyQzfvm3UEYdjOJDSJYPoPDuWq+MM6Qk7POACYRsdaEDaY sMPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1wcGbfhUP5NrwGCYl7Q1yL0FMzRdJBr1PIlnUSkktJs=; b=UGZQ9v9xg1LrSGPnWPucXI4XavRKWz8/qjrDISE0xRu0r8MR+BJUKGapx2a1oMkyMW +Yv0xCU18nkUqGn6I5NY8FlzkhfdULXr2TX8H7D3x7E0n47N4fIeYibXYj57JLAsIcwL NLcYXj+KGxCxKiNpI4KzW0XLcN2koNsYec9eHPU0NXIi2QiLpw+pmr91ZMWFD+/9M0DG BUtpToaa8dawXNmpxwMYJiDuM9/QnR71iuOqbQbsvJAUNet/EmswWNHrrqTaDVMzj77R luYoEX6qeqFrdpbcApAT9skPN8Azk86XMyZ6YzdxW465DX4KLweqM73+RG/Cnm3e/F8N IFnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="n/aiVJ2Z"; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020a638f51000000b005073e3342eesi3520061pgn.143.2023.05.14.23.08.21; Sun, 14 May 2023 23:08:51 -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=@ventanamicro.com header.s=google header.b="n/aiVJ2Z"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238650AbjEOFvG (ORCPT + 99 others); Mon, 15 May 2023 01:51:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238273AbjEOFuU (ORCPT ); Mon, 15 May 2023 01:50:20 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FAF82D58 for ; Sun, 14 May 2023 22:50:04 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-530638a60e1so4891894a12.2 for ; Sun, 14 May 2023 22:50:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1684129804; x=1686721804; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1wcGbfhUP5NrwGCYl7Q1yL0FMzRdJBr1PIlnUSkktJs=; b=n/aiVJ2ZI/20dmw/nnIas4SmVxjrQZ4QoNuC10rt/EBsMYeY3s9rOAtcRswQ/rS0gj +YF3uZ3+BrCTAsb8/zas05gp3eHMHogoCDyF5CgphQCtWV7jDS0w6dAIyI/LOHIuFUD/ 66tP/o1kfQ8lwgIgmMGChYLD4QdvhYXxlgITerrPqiWqRvbQqD1j+FMl1+Z+T/R1rPbg biqO2FNrYffCTix/m9i9JkHtz7X1ewyYTYJ/wpngbMBRGNjNr/kfcPGXoWWvX02AFi5Z JZRL5gwnt9JqBz9jMuE4h8qnmO/g76/vz4OrXrBsX3Ex3DVowPdQK8yPfYn/rHP5EbLV lenA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684129804; x=1686721804; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1wcGbfhUP5NrwGCYl7Q1yL0FMzRdJBr1PIlnUSkktJs=; b=W/mKqUetd+WNy/iHxsdOF9zRKUW1Bza6Z1Ed9ZdlgKpLtHkAA3TT4JwN/s/KDVpxO3 fvoWal0XlmG6+jiwaFCzjQceWoGX/4TdPW8WIdZZ8d+KdFGZYEl4jEMUlnG6p98gqqF3 /cazF+nMA3aL9tg4IkMukoX3N/ddJzyPZv4EZAMzh8dmf1CXMu3G5RGrooRiDwZxhxYu Eaf9NBnxrvc+in4tjVQlzaT7ohuJdsEaapJsRPOYJQ2lgkjvoPWm1NAtv9cm3QAm486L 3cLRtJRkvMINr/aDvDkxEh07J9lA80G31XHQVJpzuz5N9heRkmmBlkmmTZSkmscKEMRO BQhg== X-Gm-Message-State: AC+VfDyJ0rrROVSOxYPWpfKKeMhbbEFe/qSvkXpYoW1dZFeVtSiOYfp+ aQALFhSn6PU4beLwxobo35lbGQ== X-Received: by 2002:a17:902:c1cd:b0:1ab:18ea:f922 with SMTP id c13-20020a170902c1cd00b001ab18eaf922mr32696313plc.52.1684129804048; Sun, 14 May 2023 22:50:04 -0700 (PDT) Received: from localhost.localdomain ([106.51.191.118]) by smtp.gmail.com with ESMTPSA id f10-20020a17090274ca00b001ab28f620d0sm12423277plt.290.2023.05.14.22.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 May 2023 22:50:03 -0700 (PDT) From: Sunil V L To: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-crypto@vger.kernel.org, platform-driver-x86@vger.kernel.org, llvm@lists.linux.dev Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Sunil V L , Daniel Lezcano , Thomas Gleixner , Weili Qian , Zhou Wang , Herbert Xu , "David S . Miller" , Marc Zyngier , Maximilian Luz , Hans de Goede , Mark Gross , Nathan Chancellor , Nick Desaulniers , Tom Rix , "Rafael J . Wysocki" , Andrew Jones Subject: [PATCH V6 04/21] ACPI: tables: Print RINTC information when MADT is parsed Date: Mon, 15 May 2023 11:19:11 +0530 Message-Id: <20230515054928.2079268-5-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230515054928.2079268-1-sunilvl@ventanamicro.com> References: <20230515054928.2079268-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765939275750913093?= X-GMAIL-MSGID: =?utf-8?q?1765939275750913093?= When MADT is parsed, print RINTC information as below: ACPI: RISC-V INTC (acpi_uid[0x0000] hart_id[0x0] enabled) ACPI: RISC-V INTC (acpi_uid[0x0001] hart_id[0x1] enabled) ... ACPI: RISC-V INTC (acpi_uid[0x000f] hart_id[0xf] enabled) This debug information will be very helpful during bring up. Signed-off-by: Sunil V L Acked-by: Rafael J. Wysocki Reviewed-by: Andrew Jones --- drivers/acpi/tables.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index 7b4680da57d7..8ab0a82b4da4 100644 --- a/drivers/acpi/tables.c +++ b/drivers/acpi/tables.c @@ -220,6 +220,16 @@ void acpi_table_print_madt_entry(struct acpi_subtable_header *header) } break; + case ACPI_MADT_TYPE_RINTC: + { + struct acpi_madt_rintc *p = (struct acpi_madt_rintc *)header; + + pr_debug("RISC-V INTC (acpi_uid[0x%04x] hart_id[0x%llx] %s)\n", + p->uid, p->hart_id, + (p->flags & ACPI_MADT_ENABLED) ? "enabled" : "disabled"); + } + break; + default: pr_warn("Found unsupported MADT entry (type = 0x%x)\n", header->type);