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: 7634801 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D8F0FC05CA for ; Tue, 17 Nov 2015 09:57:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0386120483 for ; Tue, 17 Nov 2015 09:57:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 33ED320499 for ; Tue, 17 Nov 2015 09:57:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZycyR-0001nj-AN; Tue, 17 Nov 2015 09:54:51 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zycnx-0006lQ-Lg for linux-arm-kernel@bombadil.infradead.org; Tue, 17 Nov 2015 09:44:01 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by merlin.infradead.org with esmtps (Exim 4.85 #2 (Red Hat Linux)) id 1Zycnv-0006oV-Vk for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2015 09:44:00 +0000 Received: by wmec201 with SMTP id c201so217925499wme.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=hHo8RfVu0t54Zr1hKUWsae1S55J33f/dI0Nre2/avod+SRM2qASYnfHwEz7RT7Cqhi cK407UU6oWXlRevdJ/P2+gEK/hlzYRGwnBOD6DdiYmVuwwEO6PrYWNipx9bcWt4z4+Tc 1egcq8hv0j+00cBNjpNuJ+w8wvDNOmT7IvaexfWntzcMW+Y+FptqstiCqs1qsE3dGIcm KtEHa535oLBbeihbSr0vr9zYSBw6dTloaBxxAMKYJ3yRVwzu6zmHh0Jy1F/7pZjBG5Yi M2sAHrxtowlmkre0ZpGZz2egDjSU0bAx4SO0uDwFwqZBUM2YRgNk9YvXgUz+i3DYXfQL PvXg== X-Gm-Message-State: ALoCoQkcULJAYwjPsnQUOq+7gepLciCf2NmkrWieUyMhXkd4KZDDTjONUaA+hmNLUjZP3F0DPy8Z 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 Subject: [PATCH v3 17/62] arm/acpi: Print GIC information when MADT is parsed 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151117_044400_271767_F102FDE6 X-CRM114-Status: UNSURE ( 9.80 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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",