From patchwork Mon Sep 1 14:57:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 36374 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 459BE2032B for ; Mon, 1 Sep 2014 15:01:04 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id tr6sf31946675ieb.6 for ; Mon, 01 Sep 2014 08:01:03 -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=waomZL53udO43r4IXCwRtD7A9WY7WjEbWCtWU1xu+6g=; b=UWqN7i11Y7zMeCCmGIIVncc4rbsXMuZxcV2/U5Rt69FXakTPAFwtNqs8VXTsiF0cY4 p1eukrphSZFMyU37RP9iStDY2N28fPBolvICFTE0n3nlLdNKMyT13rGfCQPTSeP0v2Qz JU0GJqrSSlAO217a1vnpReuk5u8wh1/86edGUR1SwoRRW8liqEiXw2PWlo8Ubb1IGiGm 2db8HYCEYB/7oFlzSCENu6MPUlM92dtsmMMM37RHcrrhQBiO0gSILZj+qypon9/1r1zQ QMQlaGj+RN8QRFcmg3O/0khHlY6A9WDQtr7fzhU87dw21U5yAJr0EB4XGzqug+1TTguN BrHg== X-Gm-Message-State: ALoCoQlQXH4dbUQFctLUNsr2Y57TIcmTDh/v9vKlHwSpI19xrI1Gb3RJjykBtakPTfo2Zu9r25+b X-Received: by 10.182.111.170 with SMTP id ij10mr15167438obb.6.1409583663699; Mon, 01 Sep 2014 08:01:03 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.50.107 with SMTP id r98ls2001809qga.71.gmail; Mon, 01 Sep 2014 08:01:03 -0700 (PDT) X-Received: by 10.221.44.69 with SMTP id uf5mr25735729vcb.4.1409583663611; Mon, 01 Sep 2014 08:01:03 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id yu20si564421vcb.38.2014.09.01.08.01.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Sep 2014 08:01:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id im17so5586730vcb.18 for ; Mon, 01 Sep 2014 08:01:03 -0700 (PDT) X-Received: by 10.220.187.134 with SMTP id cw6mr307667vcb.71.1409583663187; Mon, 01 Sep 2014 08:01:03 -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.45.67 with SMTP id uj3csp399692vcb; Mon, 1 Sep 2014 08:01:02 -0700 (PDT) X-Received: by 10.66.141.229 with SMTP id rr5mr39694138pab.24.1409583661126; Mon, 01 Sep 2014 08:01:01 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id re3si1571783pab.153.2014.09.01.08.01.00 for ; Mon, 01 Sep 2014 08:01:01 -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 S1754542AbaIAPAp (ORCPT + 25 others); Mon, 1 Sep 2014 11:00:45 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:57502 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754525AbaIAPAm (ORCPT ); Mon, 1 Sep 2014 11:00:42 -0400 Received: by mail-pa0-f42.google.com with SMTP id lf10so12493375pab.1 for ; Mon, 01 Sep 2014 08:00:41 -0700 (PDT) X-Received: by 10.68.65.69 with SMTP id v5mr4879502pbs.156.1409583641691; Mon, 01 Sep 2014 08:00:41 -0700 (PDT) Received: from localhost ([202.104.114.248]) by mx.google.com with ESMTPSA id na4sm1525566pdb.96.2014.09.01.08.00.37 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 01 Sep 2014 08:00:40 -0700 (PDT) From: Hanjun Guo To: Catalin Marinas , "Rafael J. Wysocki" , Mark Rutland , Olof Johansson , Grant Likely Cc: Graeme Gregory , Arnd Bergmann , Sudeep Holla , Will Deacon , 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 v3 08/17] ACPI / table: Print GIC information when MADT is parsed Date: Mon, 1 Sep 2014 22:57:46 +0800 Message-Id: <1409583475-6978-9-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409583475-6978-1-git-send-email-hanjun.guo@linaro.org> References: <1409583475-6978-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.173 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 6d5a6cd..a97d2aa 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);