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.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 D0C39C4338F for ; Wed, 11 Aug 2021 12:29:41 +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 F2F5B60FC4 for ; Wed, 11 Aug 2021 12:29:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F2F5B60FC4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com 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 140D082DD9; Wed, 11 Aug 2021 14:29:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com 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=xilinx.onmicrosoft.com header.i=@xilinx.onmicrosoft.com header.b="W5ZV/PT7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7CE4782DA3; Wed, 11 Aug 2021 14:29:10 +0200 (CEST) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam08on2060e.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8b::60e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0FE7B82D85 for ; Wed, 11 Aug 2021 14:29:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michals@xilinx.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jmM5yiXqL//xJ/R2Gzczg16zbua+/87NVsVVUCnETsPC7rANic4ycij3qLwhDdA6SOU3dW+jf0NI2t64Gb2nLf9+VzNsvIKkpmGu6/b+a2SwoVfT5nuyHSMfMTb/25pxI3IiLJdGHJSLQHLa0voti2N9SVoq2fBJ9lYUQGB3HGp02N9b8gik5Q/2N/sTTNaTYS1gjgSIpz612E4IvE5bPqbcaX3g/b1YlHMX/91r2GMicIsKQlj/dqtLTMlp6KckOelRRCko/gagKv/ydhvNM3gSDJWy0Y42/mucBHJ9hpI6VfMbT2o9YHnlxKf8mNoDvu18H67o28CdGFvyYeADKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3RB0/9+ZmdT231hmxTS+ej16rWD9pnWBYVC3+wa6Vc0=; b=GJ4vli4sZFwx+sLIjXUtkkpghp5uW4ZDqj0s1iABy7TOJOmwPAKWU36HjHAqX0u0JG5JnYEkUAdm0bR9eS8dTQ1mzVJO8HogwribTkH1+URyK8C/YoEqzKy7DCpJNfqGiH/iHc+fM1rFMe8Pe+mikRC/3yuk6Z8jMiH8YhvtYtl7w75gqQZUH/4g9uTN/mz0OBRq2YxGb51gOl1IX42cDOp79WuZRGFBLnUq2IMdO8h3pRfvnjnSWdZlULn2jwqsg5L5NFQQcIR3gekbEblRCZAw1uVRrfzUjARL6iI7UJC059lNrehTLbcWmj9xvIKKLHrMPomW72ZGTxEl26cumg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=arm.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3RB0/9+ZmdT231hmxTS+ej16rWD9pnWBYVC3+wa6Vc0=; b=W5ZV/PT7Xwfhyb2dkFjCFwJsvQxCSvD3P6jh7iXqruTSWDPyEUhlhurJ7ezkDuTAofn9O+xuimMJTAN8Y37HkQhbWYdc1ScW54tVux/0g8oqg6yjtSffFFNbJk5G1I3emlqgqPKyPUSsbgZJW9GXaXovRv6mR2/I0ADNfs6wl7o= Received: from BN0PR04CA0196.namprd04.prod.outlook.com (2603:10b6:408:e9::21) by SA1PR02MB8606.namprd02.prod.outlook.com (2603:10b6:806:1fd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.21; Wed, 11 Aug 2021 12:29:04 +0000 Received: from BN1NAM02FT060.eop-nam02.prod.protection.outlook.com (2603:10b6:408:e9:cafe::4e) by BN0PR04CA0196.outlook.office365.com (2603:10b6:408:e9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16 via Frontend Transport; Wed, 11 Aug 2021 12:29:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT060.mail.protection.outlook.com (10.13.3.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4415.16 via Frontend Transport; Wed, 11 Aug 2021 12:29:04 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 11 Aug 2021 05:29:02 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Wed, 11 Aug 2021 05:29:02 -0700 Envelope-to: Vincent.Stehle@arm.com, sjg@chromium.org, u-boot@lists.denx.de, sughosh.ganu@linaro.org, xypron.glpk@gmx.de, takahiro.akashi@linaro.org, ilias.apalodimas@linaro.org Received: from [172.30.17.109] (port=46532) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1mDnLy-0008Kn-Bn; Wed, 11 Aug 2021 05:29:02 -0700 Subject: Re: EFI from usb HDD To: Ilias Apalodimas , Michal Simek CC: AKASHI Takahiro , Heinrich Schuchardt , Sughosh Ganu , U-Boot Mailing List , Simon Glass , Vincent Stehle 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> From: Michal Simek Message-ID: <8b84c58d-fe02-05fb-5355-1abd784058cd@xilinx.com> Date: Wed, 11 Aug 2021 14:28:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2018ea68-9d95-45a2-e15b-08d95cc39b6c X-MS-TrafficTypeDiagnostic: SA1PR02MB8606: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a7SsdOOqdUahG1IuZfPwGvZBBczcaxpGrAdYBAd2FxHdKVK+RwQu6dszK2KxaoEH4mY4xelE2iFwvSAXm2Bb+20/oU//SMa0qttMm2kbFhq/mI3C2dbbcy3yZRV8+UMaXigSqULxCH4P2ILIvhP5GIwFQ/7nwnEOu1iqsyhjZNzgZ6eGtUM6tNnd996c64zespL6xolQojpnFAAQORJdAW21Ak4RmwRRIQRm2HYSQeLRt0m9zqNIrmtYuZx16D0kvN2zIWCptKHTzDj2N1coxDbUQnV56owhllG9wGpq+QVS+iWo7X2bmnKTK/vnbbOZHWsY9+vNeJf0iCbu6/HNh86XasqyszM9ZQFjlPWBZKrdYZCP35QrR3+0/espADG6PmOCVWYY4AbSqaIqTacY5KbkC26ZKtFaY2sGPvpiQe6ZCW/eMenMvUT2kpjs3n6jXEkUQy+lOnOMUzPeP4AGd8RWf/Z7Tv9mgm7cXULCsEf6mCvbFOtrAsY7YQjC6w36z9SxzBzD9D801GJUZj7dDvtiHJFF+CkaOxwcmvB77XVhrWEkmBytxP6DAJw2QA9zAl0J5lgo98QPPzLhFl9IN53Nh+otZqG9bJgqmQc1yrGWzWaZ5cyzIchy24+7mWHpAUJ7Sxvyn60/TJZMTK9p9gNrPyx69q066risz8hDOrEQjTQfu5ZU6LRAKXtMWBsNzhGy6aMSiA216nMfZjbN7tjWTZYObTcmbkziJAY4x9tmKu7HdqB1ySinbhPMT817 X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(9786002)(8676002)(3480700007)(36756003)(31686004)(8936002)(44832011)(2906002)(70586007)(356005)(31696002)(2616005)(54906003)(36860700001)(4326008)(110136005)(7636003)(6666004)(5660300002)(336012)(47076005)(508600001)(70206006)(36906005)(316002)(26005)(53546011)(186003)(82310400003)(426003)(83380400001)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2021 12:29:04.4298 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2018ea68-9d95-45a2-e15b-08d95cc39b6c X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT060.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR02MB8606 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 Ilias, On 8/4/21 12:50 PM, Ilias Apalodimas wrote: > Hi Michal > Apologies for my late reply, I was on vacation! no problem at all. > > [...] > >>>> >>>> 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 Did you have a time to look at it? Thanks, Michal