From patchwork Tue Nov 17 09:40:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 56727 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1825628lbb; Tue, 17 Nov 2015 01:44:43 -0800 (PST) X-Received: by 10.55.21.65 with SMTP id f62mr41374079qkh.46.1447753483621; Tue, 17 Nov 2015 01:44:43 -0800 (PST) Return-Path: Received: from lists.xen.org (lists.xenproject.org. [50.57.142.19]) by mx.google.com with ESMTPS id q189si29122790qhq.47.2015.11.17.01.44.43 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:44:43 -0800 (PST) Received-SPF: neutral (google.com: 50.57.142.19 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=50.57.142.19; Authentication-Results: mx.google.com; spf=neutral (google.com: 50.57.142.19 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zycnb-0003Nd-8c; Tue, 17 Nov 2015 09:43:39 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZycnZ-0003MK-Op for xen-devel@lists.xen.org; Tue, 17 Nov 2015 09:43:37 +0000 Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id B6/80-28791-9C6FA465; Tue, 17 Nov 2015 09:43:37 +0000 X-Env-Sender: shannon.zhao@linaro.org X-Msg-Ref: server-8.tower-27.messagelabs.com!1447753415!923842!1 X-Originating-IP: [74.125.82.53] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 7.19.2; banners=-,-,- X-VirusChecked: Checked Received: (qmail 52418 invoked from network); 17 Nov 2015 09:43:36 -0000 Received: from mail-wm0-f53.google.com (HELO mail-wm0-f53.google.com) (74.125.82.53) by server-8.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 17 Nov 2015 09:43:36 -0000 Received: by wmww144 with SMTP id w144so17203143wmw.0 for ; Tue, 17 Nov 2015 01:43:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kvbDIeRRFT2aWtP9KJ4SQ+UP/NeB4ZavVaNDel9gAfk=; b=B9QDbI27lYMIIDafW4aftXW7ooeSpXPTEqvJFOTt5ub1WrZzdZLi3VaUVKki5uUeoQ y1MXXvsYTZPuv2Qn1daFGP/Z90gnSOWhan20IYSqbCL67zfT8lM8XPyGUMfYVzLYTv3O uMOrVdiFAirJd5QgGti0Rm0dhKjevuFUB6ypvf+Dt8a6ILQhsz8N3ysXaKjn4a+ija62 /ZMMmC/vsk61YhOkTY1TsyZltLrKhL4PG0GWNIbBnBhpwjKBYO4xFZmqehp76jp19tV0 XyegpEu40w+9kIARrVijMhigQle+3qGt0omekMJxMr50K785LT7020WvvQgcJ4cHmYkg 5XhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kvbDIeRRFT2aWtP9KJ4SQ+UP/NeB4ZavVaNDel9gAfk=; b=eP2O/RpnrhQFbv0gKjX2zEUIbD9qntsKzgpgW8PYMIHi9UvNabvfAFSGBEiq+JIjKf wMeZeMbMayvB/w3p8Bg6ALW/3NAvpO5MZGKQXdtn68+lE55F05X9EEDDs0e1n2RdlDO1 LgBiV9s259HH/pVF+NXmZte4AEDIW55/tCSfyfKwhNVP9Bl5VgorJKwBi84E6nR25jT8 8dEE+/k6v312Y8RSco4Jg4Yfislo2QF8VxX/INSYb5teZGD8/k6rlrms9ZkfWU1y8hi2 cf+lVrjPry7aKl3E5mviE1DTPAoZdgioZ6Ib4kHMs5ydaD4CfXVc1SuQV7K7MaNnxa81 G+7Q== X-Gm-Message-State: ALoCoQloyIzuf11hqfJKhKC38uSkuheEPDTt5wDr+CZZIrVn7Q/PtpuZTTizfMRn8p8HBJdqba9G X-Received: by 10.194.179.162 with SMTP id dh2mr40569571wjc.17.1447753415848; Tue, 17 Nov 2015 01:43:35 -0800 (PST) Received: from localhost ([78.129.251.54]) by smtp.gmail.com with ESMTPSA id e79sm23040259wmd.16.2015.11.17.01.43.33 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Nov 2015 01:43:35 -0800 (PST) From: shannon.zhao@linaro.org To: ian.campbell@citrix.com, stefano.stabellini@citrix.com, keir@xen.org, jbeulich@suse.com, andrew.cooper3@citrix.com, julien.grall@citrix.com, xen-devel@lists.xen.org Date: Tue, 17 Nov 2015 17:40:16 +0800 Message-Id: <1447753261-7552-18-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1447753261-7552-1-git-send-email-shannon.zhao@linaro.org> References: <1447753261-7552-1-git-send-email-shannon.zhao@linaro.org> Cc: mark.rutland@arm.com, hangaohuai@huawei.com, ard.biesheuvel@linaro.org, shannon.zhao@linaro.org, christoffer.dall@linaro.org, peter.huangpeng@huawei.com, david.vrabel@citrix.com, zhaoshenglong@huawei.com, linux-arm-kernel@lists.infradead.org, roger.pau@citrix.com Subject: [Xen-devel] [PATCH v3 17/62] 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: Xen developer discussion 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 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 Signed-off-by: Shannon Zhao --- xen/drivers/acpi/tables.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) -- 2.1.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel diff --git a/xen/drivers/acpi/tables.c b/xen/drivers/acpi/tables.c index 60c4ab1..6573175 100644 --- a/xen/drivers/acpi/tables.c +++ b/xen/drivers/acpi/tables.c @@ -189,6 +189,30 @@ 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 + "GICC (acpi_id[0x%04x] address[%llx] MPIDR[0x%llx] %s)\n", + p->uid, (long long unsigned int)p->base_address, + (long long unsigned int)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; + printk(KERN_INFO PREFIX + "GIC Distributor (gic_id[0x%04x] address[%llx] gsi_base[%d])\n", + p->gic_id, (long long unsigned int)p->base_address, + p->global_irq_base); + } + break; + default: printk(KERN_WARNING PREFIX "Found unsupported MADT entry (type = %#x)\n",