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=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 ACF7BC433F5 for ; Fri, 3 Sep 2021 17:02:32 +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 8802461058 for ; Fri, 3 Sep 2021 17:02:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8802461058 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=rtp-net.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 CF43D8348D; Fri, 3 Sep 2021 19:02:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=rtp-net.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (4096-bit key; unprotected) header.d=rtp-net.org header.i=@rtp-net.org header.b="QEYXBAcE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3853D8331D; Fri, 3 Sep 2021 19:02:27 +0200 (CEST) Received: from lechat.rtp-net.org (lechat.rtp-net.org [51.15.165.164]) (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 0BABE834F6 for ; Fri, 3 Sep 2021 19:02:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rtp-net.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=arnaud.patard@rtp-net.org Received: by lechat.rtp-net.org (Postfix, from userid 115) id 73A7B180A70; Fri, 3 Sep 2021 19:02:23 +0200 (CEST) Received: from lechat.rtp-net.org (localhost [IPv6:::1]) by lechat.rtp-net.org (Postfix) with ESMTPS id 91B90180480; Fri, 3 Sep 2021 19:02:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=rtp-net.org; s=email; t=1630688533; bh=CxVQs/WTsTnZEVRZjVWqnSlZbGVa9nLhH4tdTr/faiE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=QEYXBAcE8G9d6iStbLrA2FE0Y0RAe6d7AtSRvcvKSvFWOCBvKWTrZel981fDTDKC9 AVeMntrO69JlGVD+ZOBfUFlrh4Z3+a/t+eIECog425Pc4/ADLIjHymVnaMG1Sn12bb LOauWFlhJCOD8Hq8nlYCc1xkgEKw9FHLaNLhK4e80+uNGdqbueKL/XOns5zzx38Dlj 6joVjWEXsOfEm10SRqDLaam38kEhJ9dD/Ov5mKUUXYNk8E5Dq8wh7QlTAxhmPTGqxa 0L+nvpjWCpXHpImlTK//dwoyQH8JCv2Ck34u6AwHzr+jLxHmT7hqxaI6cToUUK0f7F V3hfEO/DvJfdngc7qMyd2AEVFwA2r8YIezCRn/k4TWr+SAcLXelrBMYxAf36zmhMeB D/ZU7reyaB/+KR5gzGwjZtCjMN/eiYLKFIG6dliGT2ce9+gK/SOjJ7G/TOnF8ydcWJ 3LAX2e/jEA5jEfpV5dzh/BhI+0OxgwU84YkW/Az7xn9uwDSXeXaCNjDBh432/fejnF fmFTgAqSX49+Jp0oBa65Vj0ylrGgvjXGcDYn27kJyRUlPR1OzYRDv98TwzPF1E3bje jTJMfbk+/ajUz8h0GxYk/Bo83RdIfTs/o8ESSue1nFVzPU+s1Oc7rYbFm6fZR6RV+J wySYHbk2TNPIJ7tAGgG5hSQI= From: Arnaud Patard (Rtp) To: Vincent =?utf-8?Q?Stehl=C3=A9?= Cc: u-boot@lists.denx.de, Simon Glass , Philipp Tomsich , Kever Yang , Lukasz Majewski Subject: Re: [BUG] USB boot issue on ROCKPro64 with UEFI Organization: RtpNet References: <20210903152439.5778-1-vincent.stehle@arm.com> Date: Fri, 03 Sep 2021 19:02:13 +0200 In-Reply-To: <20210903152439.5778-1-vincent.stehle@arm.com> ("Vincent \=\?utf-8\?Q\?Stehl\=C3\=A9\=22's\?\= message of "Fri, 3 Sep 2021 17:24:38 +0200") Message-ID: <87h7f14mp6.fsf@lechat.rtp-net.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 Vincent Stehlé writes: Hi, > Hi U-Boot folks, > > Hopefully this is the right way to report bugs. If not, please do not hesitate > to let me know. > > I am hitting an issue with U-Boot v2021.07 on the ROCKPro64, when booting Linux > with UEFI from USB. The kernel EFI stub will hang: > > EFI stub: Booting Linux Kernel... > EFI stub: Using DTB from configuration table > EFI stub: Exiting boot services and installing virtual address map... > > After tracking it down, it appears efi_exit_boot_services() is ultimately > calling OHCI hc_reset(), which hangs at this line: > > 1804 if (ohci_readl(&ohci->regs->control) & OHCI_CTRL_IR) { > > This seems to indicate reading the OHCI hardware control register cannot > complete, which hints at a clocking issue. > > Looking in more details at the clocks changes performed on the > efi_exit_boot_services() path, a workaround is indeed to prevent the USB2PHY > clocks from being disabled (see the patch following this e-mail). > > I don't know enough about the RK3399 clock tree to fully understand what is > going on here, and what would be a proper fix. Hopefully others will be able to > continue from there. I may be wrong but seems like the issue solved by https://patchwork.ozlabs.org/project/uboot/patch/20210406151059.1187379-1-icenowy@aosc.io/ Unfortunately, I think that there has been no progress since the submission of this patch. Arnaud