From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E3BEC4338F for ; Wed, 4 Aug 2021 10:51:17 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B681860EE5 for ; Wed, 4 Aug 2021 10:51:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B681860EE5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1441282E0D; Wed, 4 Aug 2021 12:51:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="zeTBxKaE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DD7DA82E1E; Wed, 4 Aug 2021 12:51:12 +0200 (CEST) Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) (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 B812182E04 for ; Wed, 4 Aug 2021 12:51:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-yb1-xb31.google.com with SMTP id z128so3305138ybc.10 for ; Wed, 04 Aug 2021 03:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gsL4gJhwUszIqzNwuYBsr+FFRb9x3GTaBmcoeGL5kCE=; b=zeTBxKaEpbkjbSXSXHA1k1MIiArkMTgExmhHyp2CcMM9WrHlz5qhpyTvCk/glVaZ0N zOx0SpcGf3xV/49WlMOyVoxM5KFxEY3Av9dy7yQBqEiyYLP+aNsE8EsTYgXNPn0ITR0f cyuruneUv8OKvfiuQpaGEpNC4kut7tfPMG8xJ9V0z+8QS/W8u88+5AgEc0u8mcnaH9v/ 7tfMIf8r6EqXLhVghsULkfBHmpvfJfrx22m9ATbv1rbCV5CiMvqR/nOqRsmfXiMSwEXJ bB2zz5/84MTsaMZQqa4Xujip4tbiUXRtbHdg4T/L0AbXm5ckJuEG3sjYPx+GukzKJCtr JKFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gsL4gJhwUszIqzNwuYBsr+FFRb9x3GTaBmcoeGL5kCE=; b=t1jzrol3n6w7egQxwyXzjHVIDGYaDeqfoOrzHi4iEXV7pJQ/Qb6IVwK3IKY1aW/pI3 rBySWLZPiBnSu2hIXtLegNHQR52tZ0SwUat5wHELmD9duLBhwViUk1U/uvwT7OVVOLev NtVLYG2udpcNzQ28I2nyHatZMJZdXHD39AfWRgFh2EdioRCtLO5Gv2t8F3zz7TR6dzMg PAAwBf8fGcdVJI5ysiECqnUpBZkxlek1jGCudSfMStUGQoTli33a4Z7JqQEqhpbmmp0m Xkvq2qtGtEyLG90MBzPa3j/7HYeIPRIx4IuW2HsBIFW4ynbEUaQC9xF+2rjmfbbzOEwR OQIw== X-Gm-Message-State: AOAM532Y/2VARxWhCyxdoyvq+b0YyNmb7lrRKQ4W6JzRw6Y5mKzumdBl IU4MaNzk9A7WHtEHU+wTIyS9j4sCOQT+ztMfe3/L5w== X-Google-Smtp-Source: ABdhPJx7MWt+/NF1L1h6YGKUZdFXNKeiPDmzfwDxgMOSwsVetOhAOk5lcnly1rlrjag5VCaQaJIenVPCr//wG5ssgPk= X-Received: by 2002:a25:8b91:: with SMTP id j17mr32217171ybl.228.1628074268511; Wed, 04 Aug 2021 03:51:08 -0700 (PDT) MIME-Version: 1.0 References: <9c57a3c7-e609-91e8-cf33-5637ce4f9340@xilinx.com> <20210610125915.GA96492@laputa> <6d4a2a7e-a295-f3e1-1ad8-445f40df334e@xilinx.com> <20210730023507.GA150924@laputa> <20210730053344.GB150924@laputa> <65818adc-728c-8a84-973d-0333e3c6e8b2@xilinx.com> In-Reply-To: <65818adc-728c-8a84-973d-0333e3c6e8b2@xilinx.com> From: Ilias Apalodimas Date: Wed, 4 Aug 2021 13:50:32 +0300 Message-ID: Subject: Re: EFI from usb HDD To: Michal Simek Cc: AKASHI Takahiro , Heinrich Schuchardt , Sughosh Ganu , U-Boot Mailing List , Simon Glass , Vincent Stehle Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Hi Michal Apologies for my late reply, I was on vacation! [...] > >> > >> When Abort happened I connected Xilinx debugger via jtag and look at cpu > >> backtrace. > > > > OK, but we are already in grub here and such a trace (in U-Boot) > > doesn't make sense. Right? > > Correct grub already started. But I expect it is still using U-Boot > drivers and all exception handlers are still in place from u-boot. Yes, U-Boot is still alive and GRUB is accessing some of the functionality via Boottime services. > > Maybe it is just sata/scsi related issue in EFI but weird is that when > disks are scan just before command everything is working fine. > > Should I try to initialize and populate EFI object list all the time? > (Remove this code for testing) > /* Initialize once only */ > if (efi_obj_list_initialized != OBJ_LIST_NOT_INITIALIZED) > return efi_obj_list_initialized; > > Or based on this thread to try your series pointed above? This smells like a different init sequence when a command is issued first. I'll try having a closer look. Let me know if you find anything else Cheers /Ilias > > Thanks, > Michal >