Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4936963rwe; Mon, 17 Apr 2023 22:45:08 -0700 (PDT) X-Google-Smtp-Source: AKy350agGS2bzFJx5moTiAbiKta9OzK0REtlINYAyobEPa9JrKMkfJaH1hWP6+7wTmHkNpkb+22D X-Received: by 2002:a17:902:cec8:b0:1a6:dba5:2e60 with SMTP id d8-20020a170902cec800b001a6dba52e60mr1384987plg.25.1681796708708; Mon, 17 Apr 2023 22:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681796708; cv=none; d=google.com; s=arc-20160816; b=GT+0dK5wrnKyE977LuArbcuc4Az74rLJXRmlTfI45ZnUFx7TFfbVcfyALl0ZlRixV7 eVC8tpTRPQ3WM9oxtkVJzCZzhugolhUhxNcQhz1mrMIQgHLB0KdzhP6E30DUEt/vgUPv qJ9CATczpQNmRku/aCV6FO1isYXrRCeIB6NHnBLwQeyQsV9UTYk3iTzP7kuEM3+mk09d PYPfbvchKqrpRZ2rAGjWk+UFCqegZqEW5XrZNCqGOJy+bmamgdmfCOFUGuu7oa9q1e9R rhL0lGvByh80LLAL7qvwY9sWu1AlDV8H9V2X9OBO34mPtE5uaPS9eBrfuQNafw/j9NuM qfJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yn8DJr6GcvbNzCSsJAayTneoxBSrRmv84MbMN1uOnBg=; b=dZ+kXJgp8YwE0rGA2TkIO/lLOwua2JqGyIlbosHX7jMiTD2Hs41bcWxrI0hVWJOYz9 PUoC334BuXIX7GiC1CHI7yir7uGiUMSciTIaG5zrZPb447jXz3E2DG4jxOWpTZfs0BUg HfLQdeBbd2r50EwYcXB76SOdofvNblt/JjQrYlbJIZIpxPOEvGlFs+s7s+sv9N9K0Tdq jIi/Rzn9QtZo6j7FQog6flVSQ1ukFNIMLaSwcq4IeKZTN4uv0RrheNWeuMgcnqDAYbeh ohMxXwSIueNbzsWnp+CiiY1lg9rMPNO0OH1Z8LrdZ+6mgGDp6jSrm2o105RQBHsaHnUv 2onQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=TrIy4Qa1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a1709026b8600b001a24efa45bfsi12504402plk.81.2023.04.17.22.44.54; Mon, 17 Apr 2023 22:45:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=TrIy4Qa1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229518AbjDRFm6 (ORCPT + 99 others); Tue, 18 Apr 2023 01:42:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjDRFm5 (ORCPT ); Tue, 18 Apr 2023 01:42:57 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C569D449B for ; Mon, 17 Apr 2023 22:42:55 -0700 (PDT) Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id CA4243F429 for ; Tue, 18 Apr 2023 05:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1681796572; bh=yn8DJr6GcvbNzCSsJAayTneoxBSrRmv84MbMN1uOnBg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=TrIy4Qa1EFFXjbztHaT1XoJthkUyUpHk8jeA+m7ql39IRCyTtXPtePdiZ4qLgZ5Xt cHZ5+vzHQxw3thtDPo4RXk8gOgw0iEZIKkckGxE1UidgLznw0dShiqdjPcCe1CgK8G lPSZuRMHMw0dp1RKjuNQRd188mVSVna7br2MhZU3DkZNhpwr4KuvaQdGWu2eggDdxR XTa7Ppmosk4klQgycm9uqDObnB+0L9rochD4pu677RuIkitmvxnQTXbs43TIzOOldw XlQYa3jtxXFYBIKuElO23romSF6/RKCXu9706Kz7/H+lDHBkeaBzt4DMLRHZhumsPr Azm+w7y4udOSw== Received: by mail-oi1-f200.google.com with SMTP id v9-20020acade09000000b0038b3b839a9fso27052oig.14 for ; Mon, 17 Apr 2023 22:42:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681796571; x=1684388571; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=yn8DJr6GcvbNzCSsJAayTneoxBSrRmv84MbMN1uOnBg=; b=h558kzpFaqFtJ6c17B+zHrowZ3lrXZopa4WKFPyolijatA+bcM7zMJRt1qEQcP9qNx NjVP0r4X6UpWhEmGg7kMWexDpk6Y1v0j8l8v8Dk7AYkOCI9W5AFFqoZRCGapy/tDp7gx dybVazuNfDnRUfy4XQ8FEd+pnbgmLGaSSJVV/ZRUoUBuVBfccY/tYYTxWu9G8xSB4VId 0vWh/P0eR1xS3wdB17aKhTgLuGwoAaoivlRIFM/K8eQwMHJ1axVOfRHJkHkwAW+4EXX+ DhPYr8PBSoMkB0Ff3UyVUbydoZ4ao7WiK0z2FksVnOYtXoCL5Bj53egDjnEkf799FqfA Un0Q== X-Gm-Message-State: AAQBX9cf/7vk6PbFZsVNXFguk/DcVGqLP89rfBig5dipDrduoi0oKSw8 V0h4Kfx752J8EJ3cccbG79tVpAkxCNQgI114Ig3i1dpTRqR0B+0Hx1g1Ul2QbM4a0ruwkjj9Q0N adTR4YZlhgZg1Xmj6zSVX07Ywp6cOT3Eb/zeNSEbe9A== X-Received: by 2002:a4a:2c10:0:b0:545:dd1a:11f6 with SMTP id o16-20020a4a2c10000000b00545dd1a11f6mr2782265ooo.5.1681796571517; Mon, 17 Apr 2023 22:42:51 -0700 (PDT) X-Received: by 2002:a4a:2c10:0:b0:545:dd1a:11f6 with SMTP id o16-20020a4a2c10000000b00545dd1a11f6mr2782257ooo.5.1681796571252; Mon, 17 Apr 2023 22:42:51 -0700 (PDT) Received: from localhost (uk.sesame.canonical.com. [185.125.190.60]) by smtp.gmail.com with ESMTPSA id f4-20020a4a5804000000b00541f66fdac8sm2695094oob.17.2023.04.17.22.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 22:42:50 -0700 (PDT) Date: Tue, 18 Apr 2023 07:42:47 +0200 From: Andrea Righi To: Darren Hart Cc: Ard Biesheuvel , "Jason A. Donenfeld" , Paolo Pisati , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: kernel 6.2 stuck at boot (efi_call_rts) on arm64 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 17, 2023 at 03:05:18PM -0700, Darren Hart wrote: > On Thu, Apr 13, 2023 at 10:24:38PM +0200, Andrea Righi wrote: > > > > Not sure if it's a similar issue, but I have found another Ampere box > > that is booting fine with your fixes, but the eifvars.sh kselftest is > > failing with some I/O errors, specifically: > > Thanks for reporting. Can you confirm this worked reliably for you prior > to v6.1? > > -- > Darren I tested again and I confirm that after a reboot everything looks fine. Maybe EFI was messed up with a previous test and the latest kernel fixes everything. Anyway this issue seems resolved for me. Thanks, -Andrea > > > > > $ sudo ./efivarfs.sh > > -------------------- > > running test_create > > -------------------- > > ./efivarfs.sh: line 58: printf: write error: Input/output error > > /sys/firmware/efi/efivars/test_create-210be57c-9849-4fc7-a635-e6382d1aec27 has invalid size > > [FAIL] > > -------------------- > > running test_create_empty > > -------------------- > > [PASS] > > -------------------- > > running test_create_read > > -------------------- > > [PASS] > > -------------------- > > running test_delete > > -------------------- > > ./efivarfs.sh: line 103: printf: write error: Input/output error > > [PASS] > > -------------------- > > running test_zero_size_delete > > -------------------- > > ./efivarfs.sh: line 126: printf: write error: Input/output error > > ./efivarfs.sh: line 134: printf: write error: Input/output error > > /sys/firmware/efi/efivars/test_zero_size_delete-210be57c-9849-4fc7-a635-e6382d1aec27 should have been deleted > > [FAIL] > > -------------------- > > running test_open_unlink > > -------------------- > > open(O_WRONLY): Operation not permitted > > [FAIL] > > -------------------- > > running test_valid_filenames > > -------------------- > > ./efivarfs.sh: line 158: printf: write error: Input/output error > > ./efivarfs.sh: line 158: printf: write error: Input/output error > > ./efivarfs.sh: line 158: printf: write error: Input/output error > > ./efivarfs.sh: line 158: printf: write error: Input/output error > > [PASS] > > -------------------- > > running test_invalid_filenames > > -------------------- > > [PASS] > > > > If it helps: > > > > $ sudo hexdump -C /sys/firmware/dmi/entries/4-0/raw > > 00000000 04 30 04 00 01 03 fe 02 c1 d0 3f 41 00 00 00 00 |.0........?A....| > > 00000010 03 8a 72 06 b8 0b f0 0a 41 06 05 00 06 00 07 00 |..r.....A.......| > > 00000020 04 05 06 50 50 50 04 00 01 01 01 00 01 00 01 00 |...PPP..........| > > 00000030 43 50 55 20 31 00 41 6d 70 65 72 65 28 52 29 00 |CPU 1.Ampere(R).| > > 00000040 41 6d 70 65 72 65 28 52 29 20 41 6c 74 72 61 28 |Ampere(R) Altra(| > > 00000050 52 29 20 50 72 6f 63 65 73 73 6f 72 00 30 30 30 |R) Processor.000| > > 00000060 30 30 30 30 30 30 30 30 30 30 30 30 30 30 32 35 |0000000000000025| > > 00000070 35 30 32 30 39 30 33 33 38 36 35 42 34 00 30 30 |50209033865B4.00| > > 00000080 30 30 30 30 30 31 00 51 38 30 2d 33 30 00 00 |000001.Q80-30..| > > 0000008f > > > > I guess EFI is not very reliable here... > > > > -Andrea > > -- > Darren Hart > Ampere Computing / OS and Kernel