From patchwork Mon May 8 11:52:20 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: 91085 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2103496vqo; Mon, 8 May 2023 05:09:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6G+0FUyPfu/tgs1jPzy1/mpW4wzyndY4XDGpJK7Kr9NK38cJJU7/WYzjQTg+Thf92SKk0w X-Received: by 2002:a17:902:e802:b0:19d:297:f30b with SMTP id u2-20020a170902e80200b0019d0297f30bmr12999041plg.19.1683547756777; Mon, 08 May 2023 05:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683547756; cv=none; d=google.com; s=arc-20160816; b=ukqMqJMr1jRugjmxIS6wMGGJiQr/rmlFFQg6k/vEQoRtVPTCcE3oyHXLfFdmSICeXW eaHLt3pELTPHPL8NedVppBQmzaCF224XIBVs4a3D1Sm9icZrs67OyuMNGyhf9CTQUhWw rEoM5GIYtjEz3zJMSAjld99eft/1rp3hKdv0lr+kMq4k9yJEHCd5etYtCMLNvbp4SyQB +FPfup6zyo8cWmHUp/cB+x6irmbeWjD+Aq6AFBg/2m7vUlIiZAJyPxH9uEVPBKuLfLL3 FdI87PLp6WRJpDAP6a4sqTiaTC6VkwZOyf/T67klc1F2Rqe37FWNU0bG3SqgIt5kh7SH KCcw== 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=hN+3kRv11y6u+T161TnVcO8Ncvp+ms1OkU+FWiiV6oKlpww6qzJ8f6D2WMPAeOBQJH RFrsHf2fqSYSgaOOdLchFFf/kHiztNCfviZrQgAmML+rKUZePOn3thL8b9eqjuZZ1RoT gt5fn469zhQESt4xMRsaaUvwmkizxxsaf9UalH7SRBUzzuMOLd2RnbsVP6LTUnTMFVg4 cSanDwKe3IK3Gts6Bj6EDZtvVhpGRuh1rgCuHYq6ATN6qHl0BqtJH+JEJj0iDD17L6VU pZ/mwQDPmlt6R8aQViopmV49P8HFrIFtDfVAQL3IcLbMFMZEgehY/4b5TCv844Bz+212 zOEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=fBHUfS8f; 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 h15-20020a17090a604f00b0024e01bbc607si17729978pjm.50.2023.05.08.05.09.01; Mon, 08 May 2023 05:09:16 -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=fBHUfS8f; 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 S236349AbjEHLyR (ORCPT + 99 others); Mon, 8 May 2023 07:54:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233588AbjEHLxh (ORCPT ); Mon, 8 May 2023 07:53:37 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEDA010C6 for ; Mon, 8 May 2023 04:53:28 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1aafa41116fso29538425ad.1 for ; Mon, 08 May 2023 04:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1683546808; x=1686138808; 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=fBHUfS8fWSAOqlwT6Q08NJnR0u3M9PyiSxhBSIcvPa/yshAYWNpI0o9m3i1+avJke7 UpdOLZb8RloM1SZR7kh5kmhzwoaBrLsvxZoeqYVZqqF396fb/4BhWwd23qb9VCpaKumw +uzkOQJbxs7oZeo9NsWhaHt5YsTFd1D2MQy8quk+pYQZ9V1E+g372HhAHRdQNMKrPpL/ Y2eneBn1k8hN2tTm1lHK/RgQHMRZvomTuBl9iOkHafRg69ncMDwy+Yu/SoJirdME89sk +YabmC7IczGRfgKnOXQXtodoUNlYgFuPjduPauQRgsg6YGZbopdDa3L+DuoJF7LnTN5O CPQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683546808; x=1686138808; 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=IxFuZRrvwmoUFpWRtd2qn4vCIqxVB9/oM2TsRhS6NdkWuHAX0A2b4tMjZW8vebzPtS HGWTaCzQuLO5jne076xDmvvdSC9WYNdaEBAzHdq9eXKmTWsY4zAFPSGgnuWL1TDD2LHe grMaDep5D3WZU8hr/VWrzJq0+BYwYBk89C2NpGXE3CgGH3wGtf/MFWfQ4QllvJtcJlI9 8TwHWG9YNbMsgkuBVs1ekqnoMUsOjfcEXNnUcfeM8rcIBRTGtIdmcrZGESRuNiR4RIpt aMFR/EOfXhJAl54LngqjbZhIA76kRXDbmIzD5vPWY0TH0RT+6MXowe21K3i4pXBfOBDd Hb0Q== X-Gm-Message-State: AC+VfDywt+AA125+1vTeFYm8d/o3dOZQQDg3Adu+ws9fSACZAFDpxcn5 JdJVHKJn04LRvmeMNL/gOkgpKw== X-Received: by 2002:a17:902:b405:b0:1a5:a1b:bbd8 with SMTP id x5-20020a170902b40500b001a50a1bbbd8mr9546124plr.45.1683546808426; Mon, 08 May 2023 04:53:28 -0700 (PDT) Received: from sunil-laptop.. ([106.51.189.144]) by smtp.gmail.com with ESMTPSA id w9-20020a170902904900b001aaed524541sm7015149plz.227.2023.05.08.04.53.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 04:53:28 -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 , 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 , Sunil V L , "Rafael J . Wysocki" , Andrew Jones Subject: [PATCH V5 04/21] ACPI: tables: Print RINTC information when MADT is parsed Date: Mon, 8 May 2023 17:22:20 +0530 Message-Id: <20230508115237.216337-5-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230508115237.216337-1-sunilvl@ventanamicro.com> References: <20230508115237.216337-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=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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765327772804598956?= X-GMAIL-MSGID: =?utf-8?q?1765327772804598956?= 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);