From patchwork Sun Jan 4 10:55:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 42717 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f72.google.com (mail-ee0-f72.google.com [74.125.83.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5BB4720A5F for ; Sun, 4 Jan 2015 10:56:43 +0000 (UTC) Received: by mail-ee0-f72.google.com with SMTP id e53sf11410225eek.7 for ; Sun, 04 Jan 2015 02:56:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=82nZePIPG0LuBDmJTPREEG76L1fzMzr/Ev4K1laS9Bs=; b=ceBkMYbSAAo2OvDMtFFpi6LNVZXeK+bLV4Pzbpgxeshh0U0IiofP6x0bYNaZXDkQAf sDG1LEV1/ff/Ni5EyFQ0jnS+gWEO1KPfUh6YBH/tzHBQuQBhWijb2gPG3M07eUAe1Hkw LVH8A+bHnWZLJlBHwAN1jIuXSlYIe4LrSYhwzAuzNE6gFML/JKX853b3eaHOwWeoGYQy xBDnAeBU0eptz7zeremxEKXmB0o4KCp9qmiWJEuYRLYrYC+3FbTF/u6ZpT78HZO1lndJ aHdNmXF3rSJphb+2p/QvFwkrQbu2FgJ8B2HvRvgwJ0Z03+oB69CyHuaqbWk/7Rewwty7 BUow== X-Gm-Message-State: ALoCoQn/hZe4tSEPUiIT5l9gz4ImDmqg9XS541y6Pmjvc3GqQqk0BIkAGHcmQPxNtTZIvRPwbujV X-Received: by 10.112.118.18 with SMTP id ki18mr572lbb.15.1420369002585; Sun, 04 Jan 2015 02:56:42 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.225 with SMTP id i1ls1199006lae.19.gmail; Sun, 04 Jan 2015 02:56:42 -0800 (PST) X-Received: by 10.112.167.68 with SMTP id zm4mr30763981lbb.93.1420369002438; Sun, 04 Jan 2015 02:56:42 -0800 (PST) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id m4si57947439laa.107.2015.01.04.02.56.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 04 Jan 2015 02:56:42 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gm9so16847958lab.26 for ; Sun, 04 Jan 2015 02:56:42 -0800 (PST) X-Received: by 10.152.234.35 with SMTP id ub3mr86640759lac.70.1420369002316; Sun, 04 Jan 2015 02:56:42 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp619115lbb; Sun, 4 Jan 2015 02:56:41 -0800 (PST) X-Received: by 10.68.109.162 with SMTP id ht2mr80181390pbb.169.1420368998686; Sun, 04 Jan 2015 02:56:38 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zs6si78347598pac.109.2015.01.04.02.56.37; Sun, 04 Jan 2015 02:56:38 -0800 (PST) Received-SPF: none (google.com: linux-acpi-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752923AbbADK42 (ORCPT + 6 others); Sun, 4 Jan 2015 05:56:28 -0500 Received: from mail-pd0-f177.google.com ([209.85.192.177]:46503 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752855AbbADK41 (ORCPT ); Sun, 4 Jan 2015 05:56:27 -0500 Received: by mail-pd0-f177.google.com with SMTP id ft15so26138110pdb.22 for ; Sun, 04 Jan 2015 02:56:26 -0800 (PST) X-Received: by 10.70.33.71 with SMTP id p7mr136737937pdi.111.1420368986720; Sun, 04 Jan 2015 02:56:26 -0800 (PST) Received: from localhost ([180.150.148.224]) by mx.google.com with ESMTPSA id j9sm51346088pdl.72.2015.01.04.02.56.25 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 04 Jan 2015 02:56:25 -0800 (PST) From: Hanjun Guo To: Catalin Marinas , "Rafael J. Wysocki" , Olof Johansson , Arnd Bergmann , Mark Rutland , Grant Likely , Will Deacon Cc: Lorenzo Pieralisi , Graeme Gregory , Sudeep Holla , Jon Masters , Jason Cooper , Marc Zyngier , Bjorn Helgaas , Mark Brown , Rob Herring , Robert Richter , Randy Dunlap , Charles.Garcia-Tobin@arm.com, phoenix.liyi@huawei.com, Timur Tabi , suravee.suthikulpanit@amd.com, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org, Hanjun Guo , Tomasz Nowicki Subject: [PATCH v6 09/17] ACPI / table: Print GIC information when MADT is parsed Date: Sun, 4 Jan 2015 18:55:10 +0800 Message-Id: <1420368918-5086-10-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1420368918-5086-1-git-send-email-hanjun.guo@linaro.org> References: <1420368918-5086-1-git-send-email-hanjun.guo@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: hanjun.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , When MADT is parsed, print GIC information to make the boot log look pretty: ACPI: GICC (acpi_id[0x0000] address[00000000e112f000] MPIDR[0x0] enabled) ACPI: GICC (acpi_id[0x0001] address[00000000e112f000] MPIDR[0x1] enabled) ... ACPI: GICC (acpi_id[0x0201] address[00000000e112f000] MPIDR[0x201] enabled) These information will be very helpful to bring up early systems to see if acpi_id and MPIDR are matched or not as spec defined. Tested-by: Suravee Suthikulpanit Signed-off-by: Hanjun Guo Signed-off-by: Tomasz Nowicki --- drivers/acpi/tables.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index 93b8152..42d314f 100644 --- a/drivers/acpi/tables.c +++ b/drivers/acpi/tables.c @@ -183,6 +183,49 @@ void acpi_table_print_madt_entry(struct acpi_subtable_header *header) } break; + case ACPI_MADT_TYPE_GENERIC_INTERRUPT: + { + struct acpi_madt_generic_interrupt *p = + (struct acpi_madt_generic_interrupt *)header; + pr_info("GICC (acpi_id[0x%04x] address[%p] MPIDR[0x%llx] %s)\n", + p->uid, (void *)(unsigned long)p->base_address, + p->arm_mpidr, + (p->flags & ACPI_MADT_ENABLED) ? "enabled" : "disabled"); + + } + break; + + case ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR: + { + struct acpi_madt_generic_distributor *p = + (struct acpi_madt_generic_distributor *)header; + pr_info("GIC Distributor (gic_id[0x%04x] address[%p] gsi_base[%d])\n", + p->gic_id, + (void *)(unsigned long)p->base_address, + p->global_irq_base); + } + break; + + case ACPI_MADT_TYPE_GENERIC_MSI_FRAME: + { + struct acpi_madt_generic_msi_frame *p = + (struct acpi_madt_generic_msi_frame *)header; + pr_info("GIC MSI Frame (msi_fame_id[%d] address[%p])\n", + p->msi_frame_id, + (void *)(unsigned long)p->base_address); + } + break; + + case ACPI_MADT_TYPE_GENERIC_REDISTRIBUTOR: + { + struct acpi_madt_generic_redistributor *p = + (struct acpi_madt_generic_redistributor *)header; + pr_info("GIC Redistributor (address[%p] region_size[0x%x])\n", + (void *)(unsigned long)p->base_address, + p->length); + } + break; + default: pr_warn("Found unsupported MADT entry (type = 0x%x)\n", header->type);