From patchwork Thu Jul 24 13:00:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 4617961 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8DD0CC0514 for ; Thu, 24 Jul 2014 13:06:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6DFE8201DD for ; Thu, 24 Jul 2014 13:06:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5B8A3200E5 for ; Thu, 24 Jul 2014 13:06:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XAIgD-0001W1-OE; Thu, 24 Jul 2014 13:03:29 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XAIfR-000062-8A for linux-arm-kernel@lists.infradead.org; Thu, 24 Jul 2014 13:02:41 +0000 Received: by mail-pa0-f50.google.com with SMTP id et14so3851205pad.23 for ; Thu, 24 Jul 2014 06:02:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mn8Sv3qx/VYbIg3tb7+5v5+Rcy1eseCy2MB7FeqKf9k=; b=emtmZfiv3fQQWikNRIKRkY8CBOjgKWHsS49PPm4sqvYuWZuNVWqIiogwm/xi0LbeK1 ROfZjwCNjhW3ObGIYEhvS02fCBK/zlG0cs7i7mIdiN2iTPM5N0FV35T5eVfYdv1SO1mE kP/pQAsGJrKIhx0IcatRT0115ED+utlT576lCdHarojLwHy6MFqIjX4WKunNz+8M2xx3 aqerlGE0wHFdEVhnwhOLrgQUJI/MJBSch4i7uVwt6dop3pXPCn7MAabDMwlGsSAz/x2I Bff5ZGJdN52x0HlWgQc7IqrWsFAICTC7U5funvAJZugsQsE2Et4OWVF9ss34VoCEyfYi F/zA== X-Gm-Message-State: ALoCoQmeaBFNO88eUzwDfqdFQIjY4N2fmehLgu4hctQCjwXkjEQaqua9ZlfaHkkOcyz4WhxU+TDa X-Received: by 10.70.102.169 with SMTP id fp9mr10098193pdb.118.1406206940044; Thu, 24 Jul 2014 06:02:20 -0700 (PDT) Received: from localhost ([183.247.163.231]) by mx.google.com with ESMTPSA id cj17sm7356690pdb.75.2014.07.24.06.02.13 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 24 Jul 2014 06:02:19 -0700 (PDT) From: Hanjun Guo To: Catalin Marinas , "Rafael J. Wysocki" , Mark Rutland Subject: [PATCH 08/19] ACPI / table: Print GIC information when MADT is parsed Date: Thu, 24 Jul 2014 21:00:14 +0800 Message-Id: <1406206825-15590-9-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1406206825-15590-1-git-send-email-hanjun.guo@linaro.org> References: <1406206825-15590-1-git-send-email-hanjun.guo@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140724_060241_322891_51F8C17C X-CRM114-Status: GOOD ( 10.51 ) X-Spam-Score: -0.7 (/) Cc: Mark Brown , Liviu Dudau , Lv Zheng , Lorenzo Pieralisi , Daniel Lezcano , Robert Moore , linux-acpi@vger.kernel.org, Grant Likely , Charles.Garcia-Tobin@arm.com, Robert Richter , Jason Cooper , Arnd Bergmann , Marc Zyngier , Will Deacon , Tomasz Nowicki , linaro-acpi-private@linaro.org, Bjorn Helgaas , linux-arm-kernel@lists.infradead.org, Graeme Gregory , Randy Dunlap , linux-kernel@vger.kernel.org, Hanjun Guo , Sudeep Holla X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When MADT is parsed, print GIC information to make the boot log look pretty. Signed-off-by: Hanjun Guo Signed-off-by: Tomasz Nowicki --- drivers/acpi/tables.c | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index 6d5a6cd..8bb8159 100644 --- a/drivers/acpi/tables.c +++ b/drivers/acpi/tables.c @@ -183,6 +183,44 @@ 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] cpu_address[0x%08llx] MPDIR[0x%llx] %s)\n", + p->uid, p->base_address, p->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 (id[0x%04x] address[0x%08llx] gsi_base[%d])\n", + p->gic_id, p->base_address, p->global_irq_base); + } + break; + + case ACPI_MADT_TYPE_GIC_MSI_FRAME: + { + struct acpi_madt_gic_msi_frame *p = + (struct acpi_madt_gic_msi_frame *)header; + pr_info("GIC MSI Frame (address[0x%08llx] msi_fame_id[%d])\n", + p->base_address, p->gic_msi_frame_id); + } + break; + + case ACPI_MADT_TYPE_GIC_REDISTRIBUTOR: + { + struct acpi_madt_gic_redistributor *p = + (struct acpi_madt_gic_redistributor *)header; + pr_info("GIC Redistributor (address[0x%08llx] region_size[0x%x])\n", + p->base_address, p->region_size); + } + break; + default: pr_warn("Found unsupported MADT entry (type = 0x%x)\n", header->type); @@ -190,7 +228,6 @@ void acpi_table_print_madt_entry(struct acpi_subtable_header *header) } } - int __init acpi_table_parse_entries(char *id, unsigned long table_size,