Message ID | 20230404182037.863533-5-sunilvl@ventanamicro.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp85548vqo; Tue, 4 Apr 2023 11:38:19 -0700 (PDT) X-Google-Smtp-Source: AKy350aD+nWU2tgvAY1rxAJdn+itTud4zb/i6iToXLy6DGvcVn4VZNiI5apwBkSW+jqC1QRbthiv X-Received: by 2002:a62:1d01:0:b0:622:749a:b9de with SMTP id d1-20020a621d01000000b00622749ab9demr3116851pfd.27.1680633499477; Tue, 04 Apr 2023 11:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680633499; cv=none; d=google.com; s=arc-20160816; b=wWREt7eVBer1ZxNlmxmTIqkfeb7PZpZnXcbNSssbjLQsI2vBhlTzZ30tzLyfOZtdCB MJPuGf1qS/HD1BmxbnzeDhO8TZoAG/aAwcbySStViNEsvpigdL9XxTbOQVhaR7v9bq3Q ESegs7SxfJS89PU1CnFeLC06e793Qe704Abgx+IlOPJjqORQmFQwCmmrtpU3PVpQfRkD Df0voMHJcbhwuqLRFO/GO3eaTDQ83aDzzpBpioct3XdyENl1FCI4qhkKEScfbQDWz86C jTypbdt0iXzsIhgFWdodRZpz7ywwv9hXbIiLEM4YTk8sGHMrN1IG2MNcgWc5lf1qcbvI 5BSA== 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=YNwtjs1YBxUuG3u4E4ahwTCPKLIU8Sh2DD8l0nVGIJ+GyUmdKGe2ReHZZg2AGRyqcm I5Lu3ZjgduG3Plgg26QYhWrqwQm1M+i7AidY7TtwE81FGOtCgVWDmpwhqU2tBcOll/7b qeJvMi/QbGpor0XnoicyLCaH2I55QAj5vsAPoxE1squYehx5gDVVeQBKfEMUrm3CpJ89 KQ9/BO6nLDLFu6kZiYi+uqRnlmSlwf9O6xHz2g7zhAnZ3nq4hk5cE1X6j7nUdpfXef5U lnzqh1ZM1ZoEOmf67CLEKbNzPBMISmWdX120ju09TYNuDLPA0PGauSb50OuWPVHClSTJ 0qvQ== 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-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 d9-20020aa797a9000000b00627f807ef24si2888697pfq.31.2023.04.04.11.38.07; Tue, 04 Apr 2023 11:38:19 -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=aYnlk3Bg; 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 S230331AbjDDSVi (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Tue, 4 Apr 2023 14:21:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236061AbjDDSVW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 4 Apr 2023 14:21:22 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B606E4C15 for <linux-kernel@vger.kernel.org>; Tue, 4 Apr 2023 11:21:15 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id h31so20220095pgl.6 for <linux-kernel@vger.kernel.org>; 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=I0DXgzh+4sPErRSdePJLK5uDyY+ZnmQz5LaB6ER62E12ApMmoJfch6bLpaf3rIajF4 BRxDej+SofDTxJcvGJP7MKPJ6wXBuR4A4WrNtCasOKwcWWKR1za8Ab1DzPgrxWHHbxsV g/EigDgUP+3ryIRq4onRuf+vClwJs57GlbNnInd4A0AcJ1tT4g3lBVjO6LPfPV+cQioT TIPnk1Cz+ZmEQJFMhIix2oN9YxV/rr9EqR/7iUndTlg22XIAGZi28f8Hp9DRZkTNmT1y WDc53Bpbs6YtrCuJ/ThXub8iSZcAHhjEo1Gd9EKggF92rBpUEE5xToHEVtMr/7VEWoQ1 XPbA== X-Gm-Message-State: AAQBX9fxFGnyeAJThJmExoa1+aQ0fLWpAHS5p3HQoK5iZgle9xLnKCSt PE8pjERxggxILNyeeO98pweDlQ== 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 <sunilvl@ventanamicro.com> 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 <corbet@lwn.net>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Len Brown <lenb@kernel.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Thomas Gleixner <tglx@linutronix.de>, Weili Qian <qianweili@huawei.com>, Zhou Wang <wangzhou1@hisilicon.com>, Herbert Xu <herbert@gondor.apana.org.au>, Marc Zyngier <maz@kernel.org>, Maximilian Luz <luzmaximilian@gmail.com>, Hans de Goede <hdegoede@redhat.com>, Mark Gross <markgross@kernel.org>, Nathan Chancellor <nathan@kernel.org>, Nick Desaulniers <ndesaulniers@google.com>, Tom Rix <trix@redhat.com>, "Rafael J . Wysocki" <rafael@kernel.org>, "David S . Miller" <davem@davemloft.net>, Sunil V L <sunilvl@ventanamicro.com>, "Rafael J . Wysocki" <rafael.j.wysocki@intel.com>, Andrew Jones <ajones@ventanamicro.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762271952106016667?= X-GMAIL-MSGID: =?utf-8?q?1762271952106016667?= |
Series |
Add basic ACPI support for RISC-V
|
|
Commit Message
Sunil V L
April 4, 2023, 6:20 p.m. UTC
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 <sunilvl@ventanamicro.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> --- 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);