Message ID | 20230303133647.845095-5-sunilvl@ventanamicro.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp412038wrd; Fri, 3 Mar 2023 05:38:26 -0800 (PST) X-Google-Smtp-Source: AK7set/ZWvuy2FMf4EQKbVTfvw65SwN7IwGGinyohvHTkMp7NZfRFcuwihsPLmBsvvtHArKJiwLY X-Received: by 2002:a17:903:32cb:b0:19e:7f89:b3a7 with SMTP id i11-20020a17090332cb00b0019e7f89b3a7mr2161402plr.31.1677850706036; Fri, 03 Mar 2023 05:38:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677850706; cv=none; d=google.com; s=arc-20160816; b=jD9M7Bn9bQDU7CPex7zwmckIGnuCebMVkbVodPXaclWuXGURu2GH5ULaXgfYowbfSX /U+Dr2JS3Jp2YL1aH+DxN5tmcEK2K7LfWXSTjB8T9Zs1z7p/4Qoxhr1KF3NAYs5YM66f Go1t8INhvWzUiPcMyu++LEy9pPikFWuIjf0vpNj/0X88Qod+laGuS4UCzzNkpivNWTyP C7AcEapOUxA3Q+wKEgRKgKMk6MmoRPGMXLN8TI6+0bMBErXAnW4U28fJlTc+0x2nqQEb oDESYmkNuOxxg6MPDeG/p+LIYlQrKbM5c+6Ue5RslsJ1VhJZtOzbtZivkMV2zfPhirI/ XPAw== 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=OjsYubhOT8xU6uZ8EboYvG8E1YP64zOg4cL5+jWYP1s=; b=q7NGVIOTn2IzXLSRyAWYpmrpowKTCKRK54oylV2Mu5kyAZwxid3dlcEj2ipoNfX6vi 3wRjb7AI/GBIqwurYVVv80PWsbfCfhLt7QLQryabK/QvNcQgPNjD3atrwauNtLBsFTln wD1AidCS7KudRKIol6GnzJTu1qq8fnCxtZ2XHsNdKl1xdwir3odUz88S04HoMtmjFiU9 LQ24O7bgbqUfRZTpJDkLgKQOnC874yRaauZWhG5KUGm4NyrOROQGFDr7bLLk5xudM8k8 95XbwJZZ1opQKkO3aWtnjthkcFmxtvZbvk60wGKLHQsy6SHaGa53QMQJ0hsAUUxF0BPk ckEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=Hvr+Hc1X; 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 s11-20020a170902ea0b00b0019909c2569dsi2483766plg.528.2023.03.03.05.38.13; Fri, 03 Mar 2023 05:38:26 -0800 (PST) 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=Hvr+Hc1X; 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 S231181AbjCCNhn (ORCPT <rfc822;davidbtadokoro@gmail.com> + 99 others); Fri, 3 Mar 2023 08:37:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbjCCNhX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 3 Mar 2023 08:37:23 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A237A6232A for <linux-kernel@vger.kernel.org>; Fri, 3 Mar 2023 05:37:15 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id x20-20020a17090a8a9400b00233ba727724so5647238pjn.1 for <linux-kernel@vger.kernel.org>; Fri, 03 Mar 2023 05:37:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1677850635; 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=OjsYubhOT8xU6uZ8EboYvG8E1YP64zOg4cL5+jWYP1s=; b=Hvr+Hc1XRLAdZgNfNuAzW7tZ3Jst7xXrcAt+TnMcYTTLwc5wp6kNAfA9iV7bpheE3w 30D3Sg3uLvZGge9n1VW/QotxJRsCwg3F2z2NiTXSKyFzmZ1MsPzHGNTxO8gwOWrENOa0 uxGLTMfQ262BzvGKDN2vFo2zi0vTJBZLz3k+a2g+bSD1qqIsQw4D7BbqLxent7xZS5Wf ucDJiD+//aTmk/zeGZ7RB28XJ08Bd/dM/1RIsL6Frh6+DPZgmmbCpSngQ5E3P3+sdRC5 phAfg8rheC2NR51rKDCzXdTuWl++IO7mR63qciSfymfVVq52oFHrnWBukhznu4haQi/W hwXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677850635; 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=OjsYubhOT8xU6uZ8EboYvG8E1YP64zOg4cL5+jWYP1s=; b=xP3kVOD6Cd9Xfrk6MCfIhuzhEGG0gN6Urmp/ODPjPEmBCh5t/a1/LJyDkYvge/ptw0 Ir8hCYVSpVgej/HsTr6aGyfRUUaE2UY9q5xEoNUrhurkIXsD0j0hGALUj5omEMfhUUmu PrDKlBZpSV9nUOPMVqvomJKBUIw7e2v3bkTLkeutVZDNp4Q9/mRnAd7fwZO2+uz10cr6 +zfhcwdQhie/aVsOkjSQ9KPIxfx0kvgTgys9oPLw27L8i1NF1/lyw8jSYgKaa/BU+PiI b1+HP4SqzmCVYofE9G7CpwPoJtxdKL4srFXE9m0WWJ5oJg51zDPXXH5w+HOxa9EZ+fzv +vlA== X-Gm-Message-State: AO0yUKWt5JExFth75MKR4NaW9ARaOC/A4xcO3DjDYi34AS56X04iudli DmnMaCB1E3cb9+lPjcou3YrFeg== X-Received: by 2002:a17:902:ab8a:b0:19c:d559:8661 with SMTP id f10-20020a170902ab8a00b0019cd5598661mr1709826plr.38.1677850635141; Fri, 03 Mar 2023 05:37:15 -0800 (PST) Received: from localhost.localdomain ([49.206.14.226]) by smtp.gmail.com with ESMTPSA id m9-20020a170902768900b0019ac5d3ee9dsm1533125pll.157.2023.03.03.05.37.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 05:37:14 -0800 (PST) From: Sunil V L <sunilvl@ventanamicro.com> To: linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Cc: Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, "Rafael J . Wysocki" <rafael@kernel.org>, Len Brown <lenb@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <maz@kernel.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Jonathan Corbet <corbet@lwn.net>, Anup Patel <apatel@ventanamicro.com>, Andrew Jones <ajones@ventanamicro.com>, Atish Patra <atishp@rivosinc.com>, 'Conor Dooley ' <conor.dooley@microchip.com>, Sunil V L <sunilvl@ventanamicro.com>, "Rafael J . Wysocki" <rafael.j.wysocki@intel.com> Subject: [PATCH V3 04/20] ACPI: tables: Print RINTC information when MADT is parsed Date: Fri, 3 Mar 2023 19:06:31 +0530 Message-Id: <20230303133647.845095-5-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230303133647.845095-1-sunilvl@ventanamicro.com> References: <20230303133647.845095-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 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: <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?1759353981834830816?= X-GMAIL-MSGID: =?utf-8?q?1759353981834830816?= |
Series |
Add basic ACPI support for RISC-V
|
|
Commit Message
Sunil V L
March 3, 2023, 1:36 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> --- drivers/acpi/tables.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
Comments
On Fri, Mar 03, 2023 at 07:06:31PM +0530, Sunil V L wrote: > 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> > --- > 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 > Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
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);