From patchwork Wed Feb 4 14:01:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parth Dixit X-Patchwork-Id: 44340 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 134AB2029F for ; Wed, 4 Feb 2015 14:04:50 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id hs14sf1487219lab.2 for ; Wed, 04 Feb 2015 06:04:49 -0800 (PST) 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=6d4d6kyjkGzEGuL/VZOAHJQKapf7jtgW2M9vehUFaic=; b=b/IyhikYoWBhAkJ7v1B03yrlrpOQcoD91BaREQtrOkQYbkHq/a2sD4i7AJB3weeTAP IXCM8usLbh/ocWflC5G3ThoGBW8gU50YlME9fJ+Ec3ZNV6k4pId2QuA3OvWWDeIX0lzv TJg7XJj3I6NMzE4G515ls276DK78wfkyOzu/o2N2Mq1MKx5SCqTRh1xT7Cax3sO23m4Y ML0zKhBocSD3khRoZzRPflFTbD5YtqA58ehOwpCif+gYvfU2Li1HKYVPpgmiprWbRGQE lG11E+QoopE7nn2GehnTSKtiF/kz8CW4PD2zgMO2Pcw0nKeAjMazUDm8uk4Kt8FBNYUT Uk1Q== X-Gm-Message-State: ALoCoQn2gfjcPpaiSZQisw85L1Tkb8ktZ8g8G+0nqmp5X0gc5HC16jZggZyMzKL3lyvxFVCz6F6A X-Received: by 10.112.51.100 with SMTP id j4mr3807598lbo.24.1423058689056; Wed, 04 Feb 2015 06:04:49 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.98 with SMTP id l2ls35374laf.73.gmail; Wed, 04 Feb 2015 06:04:48 -0800 (PST) X-Received: by 10.152.203.137 with SMTP id kq9mr30515357lac.51.1423058688764; Wed, 04 Feb 2015 06:04:48 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id o9si1456745lbp.17.2015.02.04.06.04.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 06:04:48 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id pv20so1694794lab.7 for ; Wed, 04 Feb 2015 06:04:48 -0800 (PST) X-Received: by 10.112.176.236 with SMTP id cl12mr11314995lbc.3.1423058688618; Wed, 04 Feb 2015 06:04:48 -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 h5csp506505lbj; Wed, 4 Feb 2015 06:04:47 -0800 (PST) X-Received: by 10.170.191.211 with SMTP id i202mr14367249yke.32.1423058687129; Wed, 04 Feb 2015 06:04:47 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id z204si515115ykc.96.2015.02.04.06.04.46 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Feb 2015 06:04:47 -0800 (PST) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) 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 1YJ0Yc-0006kV-Tp; Wed, 04 Feb 2015 14:03:54 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YJ0Yb-0006jG-4L for xen-devel@lists.xen.org; Wed, 04 Feb 2015 14:03:53 +0000 Received: from [193.109.254.147] by server-2.bemta-14.messagelabs.com id 52/CD-31919-8C622D45; Wed, 04 Feb 2015 14:03:52 +0000 X-Env-Sender: parth.dixit@linaro.org X-Msg-Ref: server-9.tower-27.messagelabs.com!1423058630!12770445!1 X-Originating-IP: [209.85.220.54] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.13.4; banners=-,-,- X-VirusChecked: Checked Received: (qmail 4616 invoked from network); 4 Feb 2015 14:03:51 -0000 Received: from mail-pa0-f54.google.com (HELO mail-pa0-f54.google.com) (209.85.220.54) by server-9.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 4 Feb 2015 14:03:51 -0000 Received: by mail-pa0-f54.google.com with SMTP id eu11so2836424pac.13 for ; Wed, 04 Feb 2015 06:03:49 -0800 (PST) X-Received: by 10.68.239.4 with SMTP id vo4mr47016011pbc.14.1423058629838; Wed, 04 Feb 2015 06:03:49 -0800 (PST) Received: from parthd-ubunutu.qualcomm.com ([202.46.23.62]) by mx.google.com with ESMTPSA id kg12sm2161881pbb.44.2015.02.04.06.03.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 06:03:48 -0800 (PST) From: parth.dixit@linaro.org To: xen-devel@lists.xen.org Date: Wed, 4 Feb 2015 19:31:52 +0530 Message-Id: <1423058539-26403-9-git-send-email-parth.dixit@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423058539-26403-1-git-send-email-parth.dixit@linaro.org> References: <1423058539-26403-1-git-send-email-parth.dixit@linaro.org> Cc: ian.campbell@citrix.com, Naresh Bhat , julien.grall@linaro.org, tim@xen.org, Tomasz Nowicki , stefano.stabellini@citrix.com, Hanjun Guo , jbeulich@suse.com, christoffer.dall@linaro.org Subject: [Xen-devel] [PATCH RFC 08/35] ACPI / table: 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.48 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..6754933 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",