From patchwork Sun May 17 20:03:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parth Dixit X-Patchwork-Id: 48629 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AA88321411 for ; Sun, 17 May 2015 20:05:48 +0000 (UTC) Received: by wgyu3 with SMTP id u3sf23640508wgy.3 for ; Sun, 17 May 2015 13:05:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=ROwmeajiiDNXygP3VxDZPHYqebIU7gkhw44BIZBp9JM=; b=QjZTYMQSFQH/sTLCcJ5xHMqNyB4KLdcjCOmwoZ87QEDLmZAxiaBBLvXIvP/ytCDqIi 68vIYlA1TcwSg9YdSGJSs2DMM2MLHdjfcDagxhKwuWeLD2G7ajWTRQtd8azhPgitRUU9 PODlU1T50E1xAp3WtTDrjJ04p6pxwN8Ghh2v0XP6E528deiltWUdv+6daOehmykll+bX 1QqGu5EXbVlJB8KPxZ7YhfDSmrDssYkC4s4QjIhf7hFKYUBx+bXlGLK5kFYQx/lGyYfr VBv6qdbSfEoFmEhLMj6jMcCkjZEqG1I82rUf2mPP6sC8DB8qhuMbCaRI5I/KkZcXVsDl 9ikg== X-Gm-Message-State: ALoCoQnn4vTppF0YpwexbQwoO6mhfgDcocPNg76+lfPwJEn6OKrn/ZjHGzOphJL1DJ2ZJfkD/IS1 X-Received: by 10.112.53.102 with SMTP id a6mr15218105lbp.16.1431893147799; Sun, 17 May 2015 13:05:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.163.65 with SMTP id yg1ls617139lab.26.gmail; Sun, 17 May 2015 13:05:47 -0700 (PDT) X-Received: by 10.112.155.105 with SMTP id vv9mr2031743lbb.94.1431893147660; Sun, 17 May 2015 13:05:47 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id h8si5336173lbc.56.2015.05.17.13.05.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 May 2015 13:05:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by laat2 with SMTP id t2so191045608laa.1 for ; Sun, 17 May 2015 13:05:47 -0700 (PDT) X-Received: by 10.152.37.228 with SMTP id b4mr14522749lak.117.1431893147564; Sun, 17 May 2015 13:05:47 -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.108.230 with SMTP id hn6csp3507633lbb; Sun, 17 May 2015 13:05:46 -0700 (PDT) X-Received: by 10.52.143.202 with SMTP id sg10mr17798725vdb.8.1431893141470; Sun, 17 May 2015 13:05:41 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id yp4si4350417vdb.20.2015.05.17.13.05.40 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 17 May 2015 13:05:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yu4o6-0001bX-OS; Sun, 17 May 2015 20:05:06 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yu4o5-0001aG-Hp for xen-devel@lists.xen.org; Sun, 17 May 2015 20:05:05 +0000 Received: from [193.109.254.147] by server-11.bemta-14.messagelabs.com id 92/2E-02795-074F8555; Sun, 17 May 2015 20:05:04 +0000 X-Env-Sender: parth.dixit@linaro.org X-Msg-Ref: server-8.tower-27.messagelabs.com!1431893102!18266604!1 X-Originating-IP: [209.85.192.169] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.13.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 17504 invoked from network); 17 May 2015 20:05:03 -0000 Received: from mail-pd0-f169.google.com (HELO mail-pd0-f169.google.com) (209.85.192.169) by server-8.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 17 May 2015 20:05:03 -0000 Received: by pdfh10 with SMTP id h10so117334103pdf.3 for ; Sun, 17 May 2015 13:05:02 -0700 (PDT) X-Received: by 10.70.54.164 with SMTP id k4mr38393130pdp.61.1431893102106; Sun, 17 May 2015 13:05:02 -0700 (PDT) Received: from localhost.localdomain ([117.247.24.139]) by mx.google.com with ESMTPSA id j9sm7838401pdm.53.2015.05.17.13.04.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 May 2015 13:05:01 -0700 (PDT) From: Parth Dixit To: xen-devel@lists.xen.org Date: Mon, 18 May 2015 01:33:37 +0530 Message-Id: <1431893048-5214-11-git-send-email-parth.dixit@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> References: <1431893048-5214-1-git-send-email-parth.dixit@linaro.org> Cc: keir@xen.org, ian.campbell@citrix.com, andrew.cooper3@citrix.com, tim@xen.org, julien.grall@citrix.com, stefano.stabellini@citrix.com, jbeulich@suse.com, parth.dixit@linaro.org, christoffer.dall@linaro.org Subject: [Xen-devel] [PATCH v2 10/41] arm/acpi : Print GIC information when MADT is parsed X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: parth.dixit@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.49 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-Archive: From: Naresh Bhat When MADT is parsed, print GIC information to make the boot log look pretty. Signed-off-by: Hanjun Guo Signed-off-by: Tomasz Nowicki Signed-off-by: Naresh Bhat --- xen/drivers/acpi/tables.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/xen/drivers/acpi/tables.c b/xen/drivers/acpi/tables.c index 1beca79..684d8c9 100644 --- a/xen/drivers/acpi/tables.c +++ b/xen/drivers/acpi/tables.c @@ -190,6 +190,45 @@ void __init 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; + printk(KERN_INFO PREFIX + "GIC (acpi_id[0x%04x] gic_id[0x%04x] %s)\n", + p->uid, p->gic_id, + (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; + printk(KERN_INFO PREFIX + "GIC Distributor (id[0x%04x] address[0x%08llx] gsi_base[%d])\n", + p->gic_id, (long long unsigned int)p->base_address, p->global_irq_base); + } + break; + + case ACPI_MADT_TYPE_GIC_MSI_FRAME: + { + struct acpi_madt_gic_msi_frame *p = + (struct acpi_madt_gic_msi_frame *)header; + printk("GIC MSI Frame (address[0x%08llx] msi_fame_id[%d])\n", + (long long unsigned int)p->base_address, p->gic_msi_frame_id); + } + break; + + case ACPI_MADT_TYPE_GIC_REDISTRIBUTOR: + { + struct acpi_madt_gic_redistributor *p = + (struct acpi_madt_gic_redistributor *)header; + printk("GIC Redistributor (address[0x%08llx] region_size[0x%x])\n", + (long long unsigned int)p->base_address, p->region_size); + } + break; + default: printk(KERN_WARNING PREFIX "Found unsupported MADT entry (type = %#x)\n",