From patchwork Wed Mar 11 12:39:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 45651 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CB847214C6 for ; Wed, 11 Mar 2015 12:47:40 +0000 (UTC) Received: by lbvn10 with SMTP id n10sf6519457lbv.1 for ; Wed, 11 Mar 2015 05:47:39 -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=fDyAdV063TcYx4DF2S4nUxi4ZjvXBRFlALPuSrf9ZSU=; b=UkNTMQsmkHL2L3Iekns599xFaALyQHzyCIcHEkyPFz1nyY076KCCuH+oNsbB5my6eT iCMHG/EdpcVTvLGDBouHYht5l94GEGdssiAQ/Fr4JNkKgJ6bjeM5R+5nRGi/OMniIRIs nuStiNkQPIqCYHWl3Z59NQU/zOyokY1SSoIJo0xQIAS8G1gwxAyazhtnPgkzoEVFWaCZ FyoOxn3ErvO2RkQT5U6sumsox+4NPQN6lju9MWFigHfXkBwsT4zyMkVqgL4SXd8RXBLK 1SpumwuU3uNLRVmlyrqOsYFKE2v85i5lAPW4JpzCH2oxTmrMKy5EyORlkWxa9Ds/lEDE jrNA== X-Gm-Message-State: ALoCoQmboN7XjRnnbzjJ3DTnkpoR9X6RyI4t1I7skmglTBd6sC4/oRNl4lXSH5AwQzetDQo76tF0 X-Received: by 10.112.224.12 with SMTP id qy12mr5361517lbc.10.1426078059591; Wed, 11 Mar 2015 05:47:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.234.236 with SMTP id uh12ls117405lac.54.gmail; Wed, 11 Mar 2015 05:47:39 -0700 (PDT) X-Received: by 10.152.183.165 with SMTP id en5mr35467391lac.0.1426078059434; Wed, 11 Mar 2015 05:47:39 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id x7si2330404laa.33.2015.03.11.05.47.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Mar 2015 05:47:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by labgm9 with SMTP id gm9so8435931lab.13 for ; Wed, 11 Mar 2015 05:47:39 -0700 (PDT) X-Received: by 10.152.8.15 with SMTP id n15mr7769801laa.41.1426078059181; Wed, 11 Mar 2015 05:47:39 -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.35.133 with SMTP id h5csp2754925lbj; Wed, 11 Mar 2015 05:47:38 -0700 (PDT) X-Received: by 10.66.164.66 with SMTP id yo2mr77587556pab.59.1426078041772; Wed, 11 Mar 2015 05:47:21 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6si2163403pds.22.2015.03.11.05.47.19; Wed, 11 Mar 2015 05:47:21 -0700 (PDT) Received-SPF: none (google.com: linux-acpi-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 S1753713AbbCKMrP (ORCPT + 7 others); Wed, 11 Mar 2015 08:47:15 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:35011 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753153AbbCKMlr (ORCPT ); Wed, 11 Mar 2015 08:41:47 -0400 Received: by pdbfp1 with SMTP id fp1so11020986pdb.2 for ; Wed, 11 Mar 2015 05:41:47 -0700 (PDT) X-Received: by 10.70.91.227 with SMTP id ch3mr77947209pdb.111.1426077706872; Wed, 11 Mar 2015 05:41:46 -0700 (PDT) Received: from localhost ([180.150.153.56]) by mx.google.com with ESMTPSA id z4sm5843669pdi.90.2015.03.11.05.41.45 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 11 Mar 2015 05:41:45 -0700 (PDT) From: Hanjun Guo To: Catalin Marinas , "Rafael J. Wysocki" , Will Deacon , Olof Johansson , Grant Likely Cc: Lorenzo Pieralisi , Arnd Bergmann , Mark Rutland , Graeme Gregory , Sudeep Holla , Jon Masters , Marc Zyngier , Mark Brown , Robert Richter , Timur Tabi , Ashwin Chaugule , suravee.suthikulpanit@amd.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 v10 11/21] ACPI / table: Print GIC information when MADT is parsed Date: Wed, 11 Mar 2015 20:39:37 +0800 Message-Id: <1426077587-1561-12-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1426077587-1561-1-git-send-email-hanjun.guo@linaro.org> References: <1426077587-1561-1-git-send-email-hanjun.guo@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-acpi@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.215.51 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 as debug message: ACPI: GICC (acpi_id[0x0000] address[00000000e112f000] MPIDR[0x0] enabled) ACPI: GICC (acpi_id[0x0001] address[00000000e112f000] MPIDR[0x1] enabled) ... ACPI: GICC (acpi_id[0x0201] address[00000000e112f000] MPIDR[0x201] enabled) This debug information will be very helpful to bring up early systems to see if acpi_id and MPIDR are matched or not as spec defined. CC: Rafael J. Wysocki Tested-by: Suravee Suthikulpanit Tested-by: Yijing Wang Tested-by: Mark Langsdorf Tested-by: Jon Masters Tested-by: Timur Tabi Tested-by: Robert Richter Acked-by: Robert Richter Acked-by: Sudeep Holla Acked-by: Rafael J. Wysocki Acked-by: Lorenzo Pieralisi Acked-by: Grant Likely Signed-off-by: Hanjun Guo Signed-off-by: Tomasz Nowicki --- drivers/acpi/tables.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index f4e5b88..2e19189 100644 --- a/drivers/acpi/tables.c +++ b/drivers/acpi/tables.c @@ -185,6 +185,28 @@ 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_debug("GICC (acpi_id[0x%04x] address[%llx] MPIDR[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_debug("GIC Distributor (gic_id[0x%04x] address[%llx] gsi_base[%d])\n", + p->gic_id, p->base_address, + p->global_irq_base); + } + break; + default: pr_warn("Found unsupported MADT entry (type = 0x%x)\n", header->type);