From patchwork Mon Aug 4 15:28: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: 34865 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BCEA721F5F for ; Mon, 4 Aug 2014 15:30:36 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf46479402pdb.9 for ; Mon, 04 Aug 2014 08:30:36 -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=eRtrcnY4IKzxOTottPwJV8jNaHvVwwC99q6M+tG9q5k=; b=GCoUM4C3CYR0UC73hraaQKEq7GMvxDuwtkhYgLxL7bhX29v1nvaqZj8KLguyyvRmXD Eg0zZSRTo2gudxq1Tp7ditRl1D7luam3vs25J5QoBwzx1Hz5MjwkxD1GehWAMZYBOtec RVb1Rx2uyiDXrkGseZ2ileCdrW/brIde1XvkaFZ76aXOvIHnNfDoQsQfLfXpPuluA315 xd0Ew72tRlsUSZu3rb+UX8WnEpWMmxAxPVkncc3zgo6QZZgULEbpQfEjj4CUKdG1a/ea dhXcpBGHP9GWcdkCmJ8bdE3T67zpTHqJE3aA1K91LZ9NvjAKdMx0+GHTh80emNZg/cVi 8iSw== X-Gm-Message-State: ALoCoQlUBL5aapaW2kQXw262n972Q29qtaQaG2fpfAe6NY3ki4CHMYbSPqj+19oeupFvz6p4gvhI X-Received: by 10.68.69.98 with SMTP id d2mr7929883pbu.0.1407166236085; Mon, 04 Aug 2014 08:30:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.22.198 with SMTP id 64ls2211052qgn.8.gmail; Mon, 04 Aug 2014 08:30:35 -0700 (PDT) X-Received: by 10.52.69.172 with SMTP id f12mr20846845vdu.9.1407166235909; Mon, 04 Aug 2014 08:30:35 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id oh5si12201532vcb.6.2014.08.04.08.30.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Aug 2014 08:30:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id ik5so11401202vcb.34 for ; Mon, 04 Aug 2014 08:30:26 -0700 (PDT) X-Received: by 10.221.47.9 with SMTP id uq9mr7027974vcb.48.1407166226813; Mon, 04 Aug 2014 08:30:26 -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 tc5csp313316vcb; Mon, 4 Aug 2014 08:30:26 -0700 (PDT) X-Received: by 10.68.57.232 with SMTP id l8mr24898423pbq.79.1407166225692; Mon, 04 Aug 2014 08:30:25 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rl4si17989008pab.175.2014.08.04.08.30.24 for ; Mon, 04 Aug 2014 08:30:25 -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 S1753140AbaHDPaH (ORCPT + 21 others); Mon, 4 Aug 2014 11:30:07 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:62876 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751634AbaHDPaC (ORCPT ); Mon, 4 Aug 2014 11:30:02 -0400 Received: by mail-pa0-f43.google.com with SMTP id lf10so10176942pab.16 for ; Mon, 04 Aug 2014 08:30:02 -0700 (PDT) X-Received: by 10.68.213.74 with SMTP id nq10mr24814444pbc.4.1407166202116; Mon, 04 Aug 2014 08:30:02 -0700 (PDT) Received: from localhost ([39.182.20.233]) by mx.google.com with ESMTPSA id jb5sm17803849pbd.73.2014.08.04.08.29.54 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 04 Aug 2014 08:30:01 -0700 (PDT) From: Hanjun Guo To: Catalin Marinas , "Rafael J. Wysocki" , Mark Rutland Cc: Graeme Gregory , Arnd Bergmann , Olof Johansson , Grant Likely , 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 v2 07/18] ACPI / table: Print GIC information when MADT is parsed Date: Mon, 4 Aug 2014 23:28:14 +0800 Message-Id: <1407166105-17675-8-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1407166105-17675-1-git-send-email-hanjun.guo@linaro.org> References: <1407166105-17675-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.175 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..77f8bb1 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] address[0x%08llx] MPDIR[0x%llx] %s)\n", + p->uid, 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[0x%08llx] gsi_base[%d])\n", + p->gic_id, 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[0x%08llx])\n", + p->msi_frame_id, 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[0x%08llx] region_size[0x%x])\n", + p->base_address, p->length); + } + 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,