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: 34209 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F011920C7F for ; Thu, 24 Jul 2014 13:02:42 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id et14sf18539727pad.6 for ; Thu, 24 Jul 2014 06:02:42 -0700 (PDT) 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=HrkMMvRuPEep7lWGDqnt9Q2UsafsT1uXxWJKcdwzlrI=; b=LBEg+cgSWCzwS6+JASvn8BizToFh2YMwlEWOou8VcYL5+DoTBI5Br5vwlLe+EcSgvN nnxHk26tktOZ2fOgWl4wyy2pF3qjexN40pyla1dAjEVmefSE1bd86V2YR198wEI4YfjX BEn4xWUQDicjKIGVdrZWHLCd0B8EoQAnD4OWX6fhcfeROUsuRaiDpBc+McLuz3CahNiU BWf3FcX/ZpUxjAHmSvMXGxOswoLm46MEvWwF1xgzlVlQWzk9avOjzWh3p5U65aTriZDR xjNOuFS7ttBVLQl101HM5h1lhiLpKoLzaHgn8Bax6ukQu5qSoCxhDQG4GJiHNKraVSOw TTQw== X-Gm-Message-State: ALoCoQn5hZrJExyVt2XCVnMgTViEYVzmAR/paZXuHfK5Z+LpIxNttLCVZzx/FsE3Xc3oOGP4eDun X-Received: by 10.66.160.34 with SMTP id xh2mr4163941pab.6.1406206962291; Thu, 24 Jul 2014 06:02:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.109.245 with SMTP id l108ls799331qgf.83.gmail; Thu, 24 Jul 2014 06:02:42 -0700 (PDT) X-Received: by 10.53.1.231 with SMTP id bj7mr9857622vdd.49.1406206962138; Thu, 24 Jul 2014 06:02:42 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id ee6si4845149vdb.81.2014.07.24.06.02.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jul 2014 06:02:41 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id im17so4815412vcb.3 for ; Thu, 24 Jul 2014 06:02:41 -0700 (PDT) X-Received: by 10.221.34.13 with SMTP id sq13mr12175757vcb.16.1406206961110; Thu, 24 Jul 2014 06:02:41 -0700 (PDT) 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.221.37.5 with SMTP id tc5csp362940vcb; Thu, 24 Jul 2014 06:02:40 -0700 (PDT) X-Received: by 10.66.253.170 with SMTP id ab10mr10182495pad.53.1406206960260; Thu, 24 Jul 2014 06:02:40 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wt2si5940461pbc.82.2014.07.24.06.02.36 for ; Thu, 24 Jul 2014 06:02:37 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-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 S1759199AbaGXNCX (ORCPT + 13 others); Thu, 24 Jul 2014 09:02:23 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:65202 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759162AbaGXNCU (ORCPT ); Thu, 24 Jul 2014 09:02:20 -0400 Received: by mail-pd0-f176.google.com with SMTP id y10so3622130pdj.7 for ; Thu, 24 Jul 2014 06:02:20 -0700 (PDT) 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 Cc: Graeme Gregory , Arnd Bergmann , Grant Likely , Sudeep Holla , Will Deacon , Jason Cooper , Marc Zyngier , Bjorn Helgaas , Daniel Lezcano , Mark Brown , Robert Richter , Lv Zheng , Robert Moore , Lorenzo Pieralisi , Liviu Dudau , Randy Dunlap , Charles.Garcia-Tobin@arm.com, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linaro-acpi-private@linaro.org, Hanjun Guo , Tomasz Nowicki 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.220.172 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. 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,