Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6361553rwl; Tue, 4 Apr 2023 11:24:13 -0700 (PDT) X-Google-Smtp-Source: AKy350YRn/Wh08l91etelOIvU0cUySOf/GBtYD4r6lnrQbL+wIyjyCbwCUJ0qpirxOviUac8wfzi X-Received: by 2002:a05:6a20:2591:b0:e4:173c:cdec with SMTP id k17-20020a056a20259100b000e4173ccdecmr705388pzd.0.1680632652876; Tue, 04 Apr 2023 11:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680632652; cv=none; d=google.com; s=arc-20160816; b=HiUffxTUbx0qEeGNyhEUpNZtjFj8bueF0YhcZZ7BZ95W9nhAPNusPQjX30t19BKz6d HJN5jAERS9rSTGpCseoijMyfpxMrjn4lQQAbDFW/KwAV7qPtpbnbRmQrEZdcuFf6jB8x 51V+bcyf3xzPlLxCvtlsALcjvbdJqYpLF2QPtMiJjzaRW1z2KpeT7hVfkeGc1g2fFTtq hSp2lcPFe59FWmqX8gMEqd3xQnKEyDvyKZur9QGEpXMeWiZ9nJ3KHzXfX6aRI+06319X RbexGooWZTo8c9Or5VdA+T2E2T2mlQrQQ7Imdsh0mOIvdFw3ybaR9hO9qAyYF8/3St4T q0IA== 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=LS+QMIvQx04xcBfQTlKR1hw9eiSyzq33H5BSNnrB9f1YTUQJ0hBc05Me6cVY57RSji C2IOA7UyVptYXR+RCWoI2g7dEBx4npE3tfGQ0eTObJoVpAySp+ZHlTsp5sZUrwmuuoAB GFu91WiAxCT+uWNJ0Z2fO+5+rXdLGuT0YWRETkyD8g4Ujz65kX2OAgHjoGmcqq/OuRLe BzQZMAyyx8Og+jmYmjbwCcoACpums/j7OWy/vG3XnhyZB/+X76G8moQq/D+jT8L23b+Z o1FSCvOaU4swcA+/Obki01+ltrDOJbW8Z0yGFbW1IBaXDmwFCqNipX2deBIJbB7VwOxe 2TBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=aYnlk3Bg; 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 jb14-20020a170903258e00b001a1dc2b1e34si10388645plb.246.2023.04.04.11.23.59; Tue, 04 Apr 2023 11:24:12 -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=aYnlk3Bg; 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 S236197AbjDDSV2 (ORCPT + 99 others); Tue, 4 Apr 2023 14:21:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236407AbjDDSVV (ORCPT ); Tue, 4 Apr 2023 14:21:21 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 339D346A8 for ; Tue, 4 Apr 2023 11:21:15 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id d8so20215051pgm.3 for ; Tue, 04 Apr 2023 11:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1680632475; 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=aYnlk3BgOfMNMmnnhaJrZqutCOgYZzErmuUTfDAmJFbvnkoL40ha8ijOrqYPZBnsvX ycgrTCK+kybVGhevfZFf/SGdnPx4JTrEY/3nEoA07S7d5HXOb2elq4hnDxEyN6ynebyX pxRENZLVc0MVnk0sqIXk0LiheSEXSJfSZYELyQaaaESNbrIvTGzzFGa80tp0dixJwm26 MFd72Gyap2rcWTEzOB7E2LJyMrSviE1LMGX1n+TmEeB9vhYzg8cDk7jRSGhYZbMxL/6K AK4NCOD4Jkn6qi9PR3YhUp4EKjjdlwzOK8m4HBMWjFa/5J0IG6nZymCMMx2rvgDS4P3m 8OdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680632475; 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=TvZ2u4usJaa2uUJyCdD2rQa2PQv+OM+L4BEdTLbhuUukmsVop7937Ejj5MVa8o1MZs uAhECRTUmeSQ1A2lu4v7lXDknw9wnzjvTbh7Bby80uEdAOk7Z7BdGjP/h/G58JCaSj1v OcgYDvdBWCqU4HNO7pUHSJREr1XJEHbur4v+PHsJResi3U+rixGscirlBmfYjzj+BRGR ko2wO9QjJUTa8J8SXPMZN3t6XH62E62xJuKFMZbmmHgpvJWk9KRZQPCJntQQi4ytUWFJ /QBtgXPrK5y4dGfCBUQwjprjg7HxY8dWaMuabDNEuUzydV0HOAyTsEsl/4fkYxtAtyiV fgZA== X-Gm-Message-State: AAQBX9dXixwp2WDa6+R/6TPPNFkYq1G+i45id9BmO/KamASqpyvOVAja Dsi+Lwr0jbtK2BBDa3N+X7YWoQ== X-Received: by 2002:a62:7bc7:0:b0:625:c048:2f81 with SMTP id w190-20020a627bc7000000b00625c0482f81mr3438951pfc.32.1680632474822; Tue, 04 Apr 2023 11:21:14 -0700 (PDT) Received: from localhost.localdomain ([106.51.184.50]) by smtp.gmail.com with ESMTPSA id o12-20020a056a001bcc00b0062dcf5c01f9sm9018524pfw.36.2023.04.04.11.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 11:21:14 -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 , Len Brown , Daniel Lezcano , Thomas Gleixner , Weili Qian , Zhou Wang , Herbert Xu , Marc Zyngier , Maximilian Luz , Hans de Goede , Mark Gross , Nathan Chancellor , Nick Desaulniers , Tom Rix , "Rafael J . Wysocki" , "David S . Miller" , Sunil V L , "Rafael J . Wysocki" , Andrew Jones Subject: [PATCH V4 04/23] ACPI: tables: Print RINTC information when MADT is parsed Date: Tue, 4 Apr 2023 23:50:18 +0530 Message-Id: <20230404182037.863533-5-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230404182037.863533-1-sunilvl@ventanamicro.com> References: <20230404182037.863533-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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