From patchwork Wed Feb 25 08:39:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 45019 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6D3C820502 for ; Wed, 25 Feb 2015 08:43:03 +0000 (UTC) Received: by lbdu10 with SMTP id u10sf1689349lbd.3 for ; Wed, 25 Feb 2015 00:43:02 -0800 (PST) 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=QS8dpUMy/M3Z1fegvgH+bA0WrZZisNYxP1+WA1p4jr0=; b=OSutGiRtmU8/Hx6IYqUfWvPW4hhlgY0/Yzgib0L7+Jn/NFpR1TkXJ4ein/U52oNy0s tbVEc79FOkeMjwFDuguXyY//zsQJuYKfsKHT6wxGcAKPDwoc1ZEEU8X3XMg4+OS+Z2tg O6tr6fBNy3QtRS0iVqOK9v/OUIRp4dMwwgY+gGRKVfmgJhdJ1omwks4bq7Ng3RXj1AXU y7JCkA4JaHK0oi+rhytjlGdd8vNxuLwnEgF20OQK0lz+p/OKXjOI48hPofu3IFKm/CLJ EvcOR/nArmCKb6sPudT41Wku60gQWQUsotbiY4XAHESiZKQlhpxeYmrXt0BR0u4a5KQc S1wQ== X-Gm-Message-State: ALoCoQlBspWLUAoczh/eZa4tI1MDUQA6IKOxUKhEwCU70X+Qn64OzSSL10Q3cubytb/12m2ua8bO X-Received: by 10.152.6.41 with SMTP id x9mr280279lax.10.1424853782402; Wed, 25 Feb 2015 00:43:02 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.168 with SMTP id e8ls536742laf.72.gmail; Wed, 25 Feb 2015 00:43:02 -0800 (PST) X-Received: by 10.152.26.136 with SMTP id l8mr1698931lag.109.1424853781994; Wed, 25 Feb 2015 00:43:01 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id kb3si638461lbc.121.2015.02.25.00.43.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2015 00:43:01 -0800 (PST) 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 labgq15 with SMTP id gq15so2341360lab.6 for ; Wed, 25 Feb 2015 00:43:01 -0800 (PST) X-Received: by 10.152.22.67 with SMTP id b3mr1647026laf.117.1424853781715; Wed, 25 Feb 2015 00:43:01 -0800 (PST) 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 h5csp2475952lbj; Wed, 25 Feb 2015 00:43:00 -0800 (PST) X-Received: by 10.68.134.134 with SMTP id pk6mr3648382pbb.146.1424853779616; Wed, 25 Feb 2015 00:42:59 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si30791514pdf.154.2015.02.25.00.42.58; Wed, 25 Feb 2015 00:42:59 -0800 (PST) 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 S1753385AbbBYImy (ORCPT + 28 others); Wed, 25 Feb 2015 03:42:54 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:38946 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753340AbbBYImw (ORCPT ); Wed, 25 Feb 2015 03:42:52 -0500 Received: by pablf10 with SMTP id lf10so3635910pab.6 for ; Wed, 25 Feb 2015 00:42:51 -0800 (PST) X-Received: by 10.70.131.107 with SMTP id ol11mr3585956pdb.63.1424853771748; Wed, 25 Feb 2015 00:42:51 -0800 (PST) Received: from localhost ([167.160.116.82]) by mx.google.com with ESMTPSA id qm12sm41366086pdb.36.2015.02.25.00.42.47 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 25 Feb 2015 00:42:49 -0800 (PST) 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 v9 12/21] ACPI / table: Print GIC information when MADT is parsed Date: Wed, 25 Feb 2015 16:39:52 +0800 Message-Id: <1424853601-6675-13-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424853601-6675-1-git-send-email-hanjun.guo@linaro.org> References: <1424853601-6675-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.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) Those 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 Signed-off-by: Hanjun Guo Signed-off-by: Tomasz Nowicki Acked-by: Grant Likely --- 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);