From patchwork Fri Sep 12 14:00:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 37329 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 66027203EE for ; Fri, 12 Sep 2014 14:02:17 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id gi9sf517512lab.11 for ; Fri, 12 Sep 2014 07:02:16 -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=0BcLRFdng4MY1EljaNlDbuyIS+gUJGWYjYjbc8xavPg=; b=CfhcUN36wW+v6WCOg89LCZoOQzngfwm0TPLC519RnspHjb41KmoENaQp84HcSj3Jit kyTGedIbz0nZsKGqiEpYwMoqe3DwMn1+vxn/CmLGhOt5j3AECkghmcCAv7Hh0s7mB1Hm DdgQeexIqF1iv8jbXZydyGtbXUCvXVT98yOeLOJEHAo2zUYa2hN0CVcKyJbT24y4H+Rw HkQ/w8oMmWEpkxjEcMq+XMQCHZ8SX209scoralbLGCQSs8Kl2TBGTo0RWEoK/svKoWvv A5/6uSbv4m5On3bBUxEvnhIzO1r/mn0T/QeAdlL5WcWFWbLoAgYrIRbCRUpR0yxkLqom u/LQ== X-Gm-Message-State: ALoCoQmCAjL2gLbrtQ9vw/RYiJBcrM/1sOXHPFh1LwD5SiX74ZJczl7I0iebx8f6MRzBAHr82Aza X-Received: by 10.152.3.134 with SMTP id c6mr2327974lac.5.1410530536017; Fri, 12 Sep 2014 07:02:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.204.99 with SMTP id kx3ls177829lac.7.gmail; Fri, 12 Sep 2014 07:02:15 -0700 (PDT) X-Received: by 10.152.21.42 with SMTP id s10mr9262605lae.61.1410530535721; Fri, 12 Sep 2014 07:02:15 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by mx.google.com with ESMTPS id rr2si6737560lbb.31.2014.09.12.07.02.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 12 Sep 2014 07:02:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by mail-lb0-f177.google.com with SMTP id l4so943813lbv.36 for ; Fri, 12 Sep 2014 07:02:15 -0700 (PDT) X-Received: by 10.152.5.168 with SMTP id t8mr9002289lat.67.1410530535507; Fri, 12 Sep 2014 07:02:15 -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.112.141.42 with SMTP id rl10csp737735lbb; Fri, 12 Sep 2014 07:02:14 -0700 (PDT) X-Received: by 10.68.244.2 with SMTP id xc2mr12497232pbc.51.1410530532957; Fri, 12 Sep 2014 07:02:12 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3si8191344pdh.66.2014.09.12.07.02.12 for ; Fri, 12 Sep 2014 07:02:12 -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 S1755172AbaILOBk (ORCPT + 27 others); Fri, 12 Sep 2014 10:01:40 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:48324 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754876AbaILOBh (ORCPT ); Fri, 12 Sep 2014 10:01:37 -0400 Received: by mail-pa0-f48.google.com with SMTP id hz1so1332205pad.21 for ; Fri, 12 Sep 2014 07:01:36 -0700 (PDT) X-Received: by 10.66.227.225 with SMTP id sd1mr5338929pac.106.1410530496505; Fri, 12 Sep 2014 07:01:36 -0700 (PDT) Received: from localhost ([111.140.73.43]) by mx.google.com with ESMTPSA id bq17sm4163488pac.47.2014.09.12.07.01.35 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 12 Sep 2014 07:01:35 -0700 (PDT) From: Hanjun Guo To: Catalin Marinas , "Rafael J. Wysocki" , Mark Rutland , Olof Johansson , Grant Likely , Will Deacon Cc: Graeme Gregory , Arnd Bergmann , Sudeep Holla , Jon Masters , Jason Cooper , Marc Zyngier , Bjorn Helgaas , Daniel Lezcano , Mark Brown , Rob Herring , 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@lists.linaro.org, Hanjun Guo , Tomasz Nowicki Subject: [PATCH v4 10/18] ACPI / table: Print GIC information when MADT is parsed Date: Fri, 12 Sep 2014 22:00:08 +0800 Message-Id: <1410530416-30200-11-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1410530416-30200-1-git-send-email-hanjun.guo@linaro.org> References: <1410530416-30200-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.217.177 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 | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index b18e45e..47f36d4 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] MPDIR[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);