From patchwork Wed Sep 25 14:56:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1167423 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="MQJMWTyl"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46dhzs6wgdz9sPL for ; Thu, 26 Sep 2019 01:38:49 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 49205C2218C; Wed, 25 Sep 2019 15:17:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 60DCBC22039; Wed, 25 Sep 2019 15:01:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2439DC2204D; Wed, 25 Sep 2019 15:01:44 +0000 (UTC) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by lists.denx.de (Postfix) with ESMTPS id 5B2A3C21FA5 for ; Wed, 25 Sep 2019 14:58:31 +0000 (UTC) Received: by mail-io1-f66.google.com with SMTP id v2so14590874iob.10 for ; Wed, 25 Sep 2019 07:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Z0dDPpiJm4GH3znrO6ABSKJmT05vd2In2nwNfx0SYRI=; b=MQJMWTyl3KNF2EXjyTXx24DNsfF10L7UgktulJs1fub2/ctKJv/uPvpe4xfzVjeep/ UoNkIP2HIRIpIx8ySf06ilBHDwa6sqmdBvD6eAg32fQeY00aW0qW8NjPdqoNYgFukq2I DY8G4KXhC8smyIoKjOzzcDHe7wobKIHcH1I08= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Z0dDPpiJm4GH3znrO6ABSKJmT05vd2In2nwNfx0SYRI=; b=pY/wweYsJ2OJl4LqeUNhdCzTS8KX7MH30gxa4DdXao3/pZqJ3lzP6qQLI2rJB041gb MTVXcLwXny9UnKYbLE6pxpGruxXR/l+VpOTwaiHyhs7vN7rt6XhGBEJIP91c/do4k7xR 9w+bpV96y7/ZHYg/9AeYdwMMuaTun4Bd4bKEO27bW3840MTFIWyjTxaKh+rQGzN7a0G2 +j55NP91Yw04giCDn3CNYGNd5DrXQPXDMpoCvUIyqB8C9qXP2XEbfuecIQdY3Rsc3gjf 59wmzCHN7hcaushKdhdnc1VQ9b05rwGXvtMVNqh9O3a928apoLKTAlIspICpb/dXQpIX NvmQ== X-Gm-Message-State: APjAAAXSI8woDklf1PpkurnYyqCF3/liBaz/Gz+KdevBTzWoTiPmXC1s tss/7heBK1i81CG6zmlDFK8VL96npR8= X-Google-Smtp-Source: APXvYqzw0VLISuqWGeqAPu9b239GKAkhYKCDT0Lfm0zKR55sHfN5jKTD6XvxxCe/nBG/4t5qzzbAdQ== X-Received: by 2002:a02:7044:: with SMTP id f65mr5757877jac.37.1569423509991; Wed, 25 Sep 2019 07:58:29 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id d9sm4254964ioq.9.2019.09.25.07.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 07:58:29 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Wed, 25 Sep 2019 08:56:15 -0600 Message-Id: <20190925145750.200592-32-sjg@chromium.org> X-Mailer: git-send-email 2.23.0.444.g18eeb5a265-goog In-Reply-To: <20190925145750.200592-1-sjg@chromium.org> References: <20190925145750.200592-1-sjg@chromium.org> MIME-Version: 1.0 Subject: [U-Boot] [PATCH 031/126] pci: Add more debug detail when resources are exhausted X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" If PCI auto-config runs out of memory, show a few more details to help diagnose the problem. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- drivers/pci/pci_auto_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pci_auto_common.c b/drivers/pci/pci_auto_common.c index 84908e6154c..bb56a3d3fea 100644 --- a/drivers/pci/pci_auto_common.c +++ b/drivers/pci/pci_auto_common.c @@ -45,7 +45,8 @@ int pciauto_region_allocate(struct pci_region *res, pci_size_t size, addr = ((res->bus_lower - 1) | (size - 1)) + 1; if (addr - res->bus_start + size > res->size) { - debug("No room in resource"); + debug("No room in resource, avail start=%x / size=%x, need=%x\n", + res->bus_lower, res->size, size); goto error; }