From patchwork Tue Mar 24 14:02:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 46245 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E0938214B0 for ; Tue, 24 Mar 2015 14:05:37 +0000 (UTC) Received: by wggy19 with SMTP id y19sf32383641wgg.2 for ; Tue, 24 Mar 2015 07:05:37 -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=7yd2s3dh3LP3BQy2w2+oJFF4nQkV7LqXgBZE4hDBTSY=; b=WKqn47c5tens8FEnn0a1AjPrt6r53VA6+y4cJgupgQFfN3kMz0xPhpvHRpYeSyeC/2 wbI8Q8nHAgVbfu2b+aIsh8OfkHEBASEGRNjZ72WU5/lmuHMSxwiHcWOAtgAfwo+u3KbR D2IUntK7hUjV4Hwgc1vRA0E9kovjapBRBH+FCgu9WYRqJl5Ud6xSUCGcFaekVvcJnJfT ykOUbt7mq0g9IXDpAm1xpc1fgtDrvVr9VFeaACDZEjAO7tNn4yJpoprnTu8/BT8ZfDDk zeurIydjEQdj5Oa4fIWKBfkzrEPsy9VcGIruqbmdXynPiOTFltkhWtrq1Lq5x/8a1XYc YuYg== X-Gm-Message-State: ALoCoQmopqOF/+/c7b3QqqpzW3dy1YlyxmvoewW15dX+XlE7BH913wo6pJKEAUNI11c4Y8VIMRwg X-Received: by 10.112.162.135 with SMTP id ya7mr905250lbb.14.1427205936912; Tue, 24 Mar 2015 07:05:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.180.75 with SMTP id dm11ls827450lac.70.gmail; Tue, 24 Mar 2015 07:05:36 -0700 (PDT) X-Received: by 10.152.170.199 with SMTP id ao7mr3833485lac.27.1427205936738; Tue, 24 Mar 2015 07:05:36 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id ur8si3019533lbb.162.2015.03.24.07.05.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Mar 2015 07:05:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbcmq2 with SMTP id mq2so31447267lbc.0 for ; Tue, 24 Mar 2015 07:05:36 -0700 (PDT) X-Received: by 10.112.160.227 with SMTP id xn3mr2012080lbb.112.1427205936612; Tue, 24 Mar 2015 07:05:36 -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.57.201 with SMTP id k9csp1474324lbq; Tue, 24 Mar 2015 07:05:35 -0700 (PDT) X-Received: by 10.70.53.170 with SMTP id c10mr8078647pdp.148.1427205932583; Tue, 24 Mar 2015 07:05:32 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si5874087pdb.45.2015.03.24.07.05.31; Tue, 24 Mar 2015 07:05:32 -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 S1753215AbbCXOE7 (ORCPT + 27 others); Tue, 24 Mar 2015 10:04:59 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:33222 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752559AbbCXOEw (ORCPT ); Tue, 24 Mar 2015 10:04:52 -0400 Received: by pdnc3 with SMTP id c3so222536344pdn.0 for ; Tue, 24 Mar 2015 07:04:52 -0700 (PDT) X-Received: by 10.67.7.195 with SMTP id de3mr7732590pad.79.1427205892326; Tue, 24 Mar 2015 07:04:52 -0700 (PDT) Received: from localhost ([180.150.148.224]) by mx.google.com with ESMTPSA id uf4sm4390498pac.9.2015.03.24.07.04.49 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 24 Mar 2015 07:04:50 -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 , Mark Salter , 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 v11 11/23] ACPI / table: Print GIC information when MADT is parsed Date: Tue, 24 Mar 2015 22:02:44 +0800 Message-Id: <1427205776-5060-12-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427205776-5060-1-git-send-email-hanjun.guo@linaro.org> References: <1427205776-5060-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.181 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);