From patchwork Mon Mar 2 09:51:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Liu X-Patchwork-Id: 5911021 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 620F89F318 for ; Mon, 2 Mar 2015 09:49:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8FFD120219 for ; Mon, 2 Mar 2015 09:49:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AB7CA20212 for ; Mon, 2 Mar 2015 09:49:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753764AbbCBJtL (ORCPT ); Mon, 2 Mar 2015 04:49:11 -0500 Received: from mga03.intel.com ([134.134.136.65]:1613 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753785AbbCBJtG (ORCPT ); Mon, 2 Mar 2015 04:49:06 -0500 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 02 Mar 2015 01:46:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,674,1418112000"; d="scan'208";a="659109492" Received: from gerry-dev.bj.intel.com ([10.238.158.72]) by orsmga001.jf.intel.com with ESMTP; 02 Mar 2015 01:49:02 -0800 From: Jiang Liu To: Thomas Voegtle , "Rafael J. Wysocki" , Len Brown Cc: Jiang Liu , Bjorn Helgaas , Dave Airlie , LKML , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, Thomas Gleixner , Lv Zheng Subject: [Debug 2/2] x86/PCI/ACPI: Gather debug info Date: Mon, 2 Mar 2015 17:51:38 +0800 Message-Id: <1425289898-22377-3-git-send-email-jiang.liu@linux.intel.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1425289898-22377-1-git-send-email-jiang.liu@linux.intel.com> References: <1425289898-22377-1-git-send-email-jiang.liu@linux.intel.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 Signed-off-by: Jiang Liu --- drivers/acpi/resource.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index 4752b9939987..43de252a75b4 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c @@ -46,10 +46,10 @@ static bool acpi_dev_resource_len_valid(u64 start, u64 end, u64 len, bool io) if (len && reslen && reslen == len && start <= end) return true; - pr_info("ACPI: invalid or unassigned resource %s [%016llx - %016llx] length [%016llx]\n", + pr_warn("ACPI: invalid or unassigned resource %s [%016llx - %016llx] length [%016llx]\n", io ? "io" : "mem", start, end, len); - return false; + return reslen != 0; } static void acpi_dev_memresource_flags(struct resource *res, u64 len, @@ -193,13 +193,14 @@ static bool acpi_decode_space(struct resource_win *win, u64 len = attr->address_length; struct resource *res = &win->res; + pr_warn("acpi: address space [%llx-%llx] len %llx\n", attr->minimum, attr->maximum, attr->address_length); /* * Filter out invalid descriptor according to ACPI Spec 5.0, section * 6.4.3.5 Address Space Resource Descriptors. */ if ((addr->min_address_fixed != addr->max_address_fixed && len) || (addr->min_address_fixed && addr->max_address_fixed && !len)) - pr_debug("ACPI: Invalid address space min_addr_fix %d, max_addr_fix %d, len %llx\n", + pr_warn("ACPI: Invalid address space min_addr_fix %d, max_addr_fix %d, len %llx\n", addr->min_address_fixed, addr->max_address_fixed, len); res->start = attr->minimum;