Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 66C76C001DF for ; Sun, 30 Jul 2023 17:16:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CE6F286989; Sun, 30 Jul 2023 19:15:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="l7T/ecaM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4648C86934; Sun, 30 Jul 2023 19:15:45 +0200 (CEST) Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8698F86607 for ; Sun, 30 Jul 2023 19:15:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd34.google.com with SMTP id ca18e2360f4ac-78358268d1bso191016739f.3 for ; Sun, 30 Jul 2023 10:15:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690737340; x=1691342140; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NWGpfuRicLo6dQd/Sxbqq57TOZwp+leVPnXD+X9IJ78=; b=l7T/ecaMgtTcGkNaOgfVAo1Zunx4OapT8PK9rPvfquh/stkBqDQV+Zas1eFxTfPu5Y xJnU6bJA7qywGh6Ewga9z4ntY7WUFZAnYh1I2wPIGnazCOjUcUr3/pOIx9QJ+Sec0vLL 3W6POh6NePjK+D4O/HBLxgsYFo+MUdzO+1MAA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690737340; x=1691342140; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NWGpfuRicLo6dQd/Sxbqq57TOZwp+leVPnXD+X9IJ78=; b=a3zuUi5zQjykK6sRw0aWpec3hS9ljVr9wtc9/dDAL2+LSmynsQ8UluqIg65IhMBwTX s3yBpZgVb2bap87QcZw4wuXwZplP6bqN2pGBWy8f/yuwY/hkOBJ5s7CQJ+Ee/t39IQyT sR2ZtjhwKfW94GcPUuOk8h/fgok/BtR//J1CJE2k01QmfMZ++Bg86YsMAbfQ2F23jYfP ozuJoMP56dIagGEhBPSF4Po0vmdVi1U5fWK82xU+r777nXkjp5RgqUFedJZi0NeCK17t qlF1K/CKf7Nise4y8PJMGdUC6P5MFU+IkWXgMKOVRgw7Q+Jo/muXxeYShp08pOHOJZot tTNA== X-Gm-Message-State: ABy/qLaZCeiyqUVVnwSCCY3FrNxeq5OQp0YmQ27ukP2qIaVcZK1TwRxJ m2YoV0jRP31/PlCV7bPVBuzK0RdNvM5PeCO0PcY= X-Google-Smtp-Source: APBJJlGwWCjhGeCUEjfXtvMEUX5/8nLWvjm7q8ZzRsJZCpYXYP+DVGFtRESz9JYlBWsdpTI+Knj/5A== X-Received: by 2002:a5d:874b:0:b0:787:167e:f796 with SMTP id k11-20020a5d874b000000b00787167ef796mr5744438iol.15.1690737340142; Sun, 30 Jul 2023 10:15:40 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id y11-20020a6bd80b000000b00786582eb9fbsm2657473iob.15.2023.07.30.10.15.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jul 2023 10:15:39 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mattijs Korpershoek , Bin Meng , Simon Glass Subject: [PATCH v2 6/9] bootstd: Add some more debugging in the bootdev uclass Date: Sun, 30 Jul 2023 11:15:16 -0600 Message-ID: <20230730171531.914677-6-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230730171531.914677-1-sjg@chromium.org> References: <20230730171531.914677-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add some more output to make it easier to see what is going wrong when a bootdev hunter fails. Signed-off-by: Simon Glass --- (no changes since v1) boot/bootdev-uclass.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/boot/bootdev-uclass.c b/boot/bootdev-uclass.c index 114853ffb72a..a3661b18e28d 100644 --- a/boot/bootdev-uclass.c +++ b/boot/bootdev-uclass.c @@ -537,6 +537,8 @@ static int default_get_bootflow(struct udevice *dev, struct bootflow_iter *iter, int ret; ret = bootdev_get_sibling_blk(dev, &blk); + log_debug("sibling_blk ret=%d, blk=%s\n", ret, + ret ? "(none)" : blk->name); /* * If there is no media, indicate that no more partitions should be * checked @@ -662,7 +664,8 @@ int bootdev_next_prio(struct bootflow_iter *iter, struct udevice **devp) ret = bootdev_hunt_prio(iter->cur_prio, iter->flags & BOOTFLOWIF_SHOW); - log_debug("- hunt ret %d\n", ret); + log_debug("- bootdev_hunt_prio() ret %d\n", + ret); if (ret) return log_msg_ret("hun", ret); } @@ -698,6 +701,7 @@ int bootdev_setup_iter(struct bootflow_iter *iter, const char *label, /* hunt for any pre-scan devices */ if (iter->flags & BOOTFLOWIF_HUNT) { ret = bootdev_hunt_prio(BOOTDEVP_1_PRE_SCAN, show); + log_debug("- bootdev_hunt_prio() ret %d\n", ret); if (ret) return log_msg_ret("pre", ret); } @@ -768,6 +772,7 @@ static int bootdev_hunt_drv(struct bootdev_hunter *info, uint seq, bool show) log_debug("Hunting with: %s\n", name); if (info->hunt) { ret = info->hunt(info, show); + log_debug(" - hunt result %d\n", ret); if (ret) return ret; } @@ -833,9 +838,11 @@ int bootdev_hunt_prio(enum bootdev_prio_t prio, bool show) if (prio != info->prio) continue; ret = bootdev_hunt_drv(info, i, show); + log_debug("bootdev_hunt_drv() return %d\n", ret); if (ret && ret != -ENOENT) result = ret; } + log_debug("exit %d\n", result); return result; } -- 2.41.0.487.g6d72f3e995-goog