Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4236433rwr; Mon, 8 May 2023 05:09:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6W146o1VInzV6VwY9CMmlt8R8PoW3wPL8N1QmJ+IVTMTrpq2Obu+2bEIhEnuwGiqKkazGE X-Received: by 2002:a05:6a00:1305:b0:63d:641f:5048 with SMTP id j5-20020a056a00130500b0063d641f5048mr12026208pfu.16.1683547744296; Mon, 08 May 2023 05:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683547744; cv=none; d=google.com; s=arc-20160816; b=dkDZDGg5U/R8+Y96kO2QEGwF2mmtxHVJ3sQqhv2SBSIoxjYFrji/vy8+tQcx8xp2Hx M9Rov8vQddvzwhLLBbn1nCYZz7QJJJlHF4R9M6sEioHZWQ3tMRsRTtCDqoMTKX9AMUm9 0TW8iqnSLwqoOoH8Kb8JlUFJdU7TYgsUc4oFE2NXfQlHqq5B60JzRb8Ak3xpNkon3vJ9 2Dz0ZvSI/nYmycE/a8MfgrSrHatnO8PdYnRu/ndpXlhLsNjqPBTP84uQxIbfXIXPjAQ0 cmmfcY+wWY12wAsqQTGlNbmcruI949trYTa4ofYl4CnfqxkXfx/ZRrpmVv8/8ab4DyVR DP8Q== 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=ysCDestyilrjaUJ7ciUaU3k1vSYF3Ku1vlkKTTuFn0tB6VtjoPSWa3HyMvpMNJ0Gmv dTxCBV8YMy5PJgiGMZgkipTZQDGDZahIT/nza82bM1Rpzt6ZnV+s6eUdMcEVWdX9kkFs HGbVOr8/9SBFuAjM2/kclPiEiXnXdr+WVqWKbJbwcFRgDNAVY7UCDefl6Brya8zgz/0f 4lLcaEpBKPIM50qVW985KpwPwQYLTttW0Ydy0smCss/L74LqmWaEzIAVgiRABnJagbSQ MZv07rzoMwo3cvFRlr4ge3iXkXyuCO1JS9vV4bIFG2EhT9PQKceF2em/jRpQsn/2e0Lc aIiQ== 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-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e26-20020a056a0000da00b00643ba887601si5116652pfj.307.2023.05.08.05.08.37; Mon, 08 May 2023 05:09:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229464AbjEHLyF (ORCPT + 99 others); Mon, 8 May 2023 07:54:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234579AbjEHLxh (ORCPT ); Mon, 8 May 2023 07:53:37 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEE33272D for ; Mon, 8 May 2023 04:53:28 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1aaec6f189cso29517095ad.3 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=HMj/a8EWQ1JCOJWh9C0LqHh2zrZix+Ss5H2WXXILGvCxa0IyLCu80qpURdXHghJKVy ig9P6MLDeO3bdpB+N/3nvv+Nv5yE13M5ZjfNaWWcwdu2W2yYkek5dNqRQ+6ffZnmVRCo Cg2hcEBo/A1kuVTU8o69LcuNcnFsKIFvgM2igBAt+r+xWu95QPeUTl+6tXvcRto8fnRQ A0I9GX0zFuWu6UjLQOsmnhUuVRXfSTDOr3RrC0/7nZIY3fRm35xP4+ATU53x/cj7zDQA YHMXskg4Em1ZHAOqlCVkzFXXNFIh5maJ96PdHAQv/3oqkk/hKi/nOR1Bc0EwJAN2+Rmz Vtpg== X-Gm-Message-State: AC+VfDxol2zOvjfEsc+dTE+BHjx+mgPpjwfOrG4bsLlqqLU5PSXtNF4n e+8MAk64IewtDgoWHan1rNEglA== 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 Content-Transfer-Encoding: 8bit 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-crypto@vger.kernel.org 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); -- 2.34.1