From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) by mx.groups.io with SMTP id smtpd.web12.8689.1594473158503605637 for ; Sat, 11 Jul 2020 06:12:38 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RSVhhDyN; spf=pass (domain: gmail.com, ip: 209.85.208.170, mailfrom: arvidjaar@gmail.com) Received: by mail-lj1-f170.google.com with SMTP id q7so9537275ljm.1 for ; Sat, 11 Jul 2020 06:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:autocrypt:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=dr+ltsX04y/EWU5OvzRuj2v49LCJgwez5LNYp+k1QhA=; b=RSVhhDyN00en2brnbAT/JGMqj9bRhXeiOzSvzh3Dzi3TrMJeEWR/48xvGoFFl9ogH0 L6kWLAATpGr14R8wV0dReQ9kygPkHwgg7rnTyDRQ9P/6xCTadTKgINfzA9u86t3tr3ko C6tM/RbLlbncb/ZCzzVMtEe2ZGnJyiF6BsWOWYTVucOizBwFo1Yi4GZV4MNehBUUt9Le eNPLUXyrvtqvINiN4D6GWT4u8HwdrdFozwFjMPOC1JvqliP31w5wvYkW1vYkLdgzHnEr KrjC3LMrkkAT/65OodQnwEYdOvIBq0HXVi8D6c14r1q2K0KELJKz9ejWE8unVpzXyagz 0igA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:autocrypt:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=dr+ltsX04y/EWU5OvzRuj2v49LCJgwez5LNYp+k1QhA=; b=B+E1l7Wlm3vlPRokdqHUnXEoKpWqHO74Xj/yqsTKS0Qk4YgHQRDFCZOObxzBi+hDWr fs2glT4BwSZEaKqpwIqhnQuQBIejZkh5XX1JmjyEhQ2ttPBGqUwPzwqfL3WI4MjCr4GN DiCQLTr1krUt4voRbwZzoNJO1sxMFOxxk9N6nQ10uSwKwSRDDW1+a8Moexb9wn3BGLuf hMvBF3Dow7RgL0IaXwC0QsZ0eUomEm+xqPYY5BRBuMEEfwDk2TMvI/1XtIOt0RySVtUn bwG2w/T471T4wlGJ+nyN/pLGZNfZqHEF8jz1X0qyBNp/dMhwk2PLp78wFktKngcCZSmZ TZkQ== X-Gm-Message-State: AOAM533Xo3VWDjY2XNrCxDNdktce38nVzkLf1/DiyBap8efF5VCLcr7j Wr0gBcPwJmOwRl2t6oyIau8Q+JE6 X-Google-Smtp-Source: ABdhPJw89OvZxVp2FPo2DN3rmxRBra+S4AF/bJoOhA6DC++qJKqpubG9wEukneMDsH8f3CDYGbOO+Q== X-Received: by 2002:a2e:5d8:: with SMTP id 207mr41356734ljf.257.1594473156483; Sat, 11 Jul 2020 06:12:36 -0700 (PDT) Return-Path: Received: from ?IPv6:2a00:1370:812d:9bf7:50a4:1b78:5915:6126? ([2a00:1370:812d:9bf7:50a4:1b78:5915:6126]) by smtp.gmail.com with ESMTPSA id x17sm3150226lfe.44.2020.07.11.06.12.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Jul 2020 06:12:35 -0700 (PDT) To: devel@edk2.groups.io From: Andrei Borzenkov Subject: EFI Timeout variable is ignored (initialized to default on every boot) Autocrypt: addr=arvidjaar@gmail.com; prefer-encrypt=mutual; keydata= LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptUUdpQkR4aVJ3d1JCQUMz Q045d2R3cFZFcVVHbVNvcUY4dFdWSVQ0UC9iTENTWkxraW5TWjJkcnNibEtwZEc3CngrZ3V4 d3RzK0xnSThxamYvcTVMYWgxVHdPcXpEdmpIWUoxd2JCYXV4WjAzbkR6U0xVaEQ0TXMxSXNx bEl3eVQKTHVtUXM0dmNRZHZMeGpGc0c3MGFEZ2xnVVNCb2d0Y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Rtb1o3RjZ3cC9yTDNUa1E1VUVs UFJnc0cxMitEawo5R2dSaG5ueFRIQ0ZnTjFxVGlaTlg0WUlGcE5yZDBhdTNXL1hrbzc5TDBj NC80OXRlbjVPckZJL3BzeDUzZmhZCnZMWWZrSm5jNjJoOGhpTmVNNmtxWWEveDBCRWRkdTky Wkc2SVJnUVlFUUlBQmdVQ1BHSkhKQUFLQ1JCSG9zeTYKMmwzM2pNaGRBSjQ4UDdXRHZLTFFR NU1Lbm4yRC9USTMzN3VBL2dDZ241bW52bTRTQmN0YmhhU0JnY2tSbWdTeApmd1E9Cj1nWDEr Ci0tLS0tRU5EIFBHUCBQVUJMSUMgS0VZIEJMT0NLLS0tLS0K Message-ID: <824523a7-4c5e-5fae-66b5-2cc4bd4beb26@gmail.com> Date: Sat, 11 Jul 2020 16:12:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Using 202005 version I am not able to change "Boot Maintenance Manager" - "Auto Boot Time-out" or set Timeout variable from within Linux with efibootmgr - value is overwritten with default (normally 0) on every boot. The only possibility is to use -boot menu=on QEMU option. Looking at code, PlatformBootManagerBeforeConsole() unconditionally sets Timeout to value obtained from GetFrontPageTimeoutFromQemu() which in turn returns PcdPlatformBootTimeOut (default 0) if nothing was present on command line (or in general passed via fw_cfg). I'd expect that default should be current value of Timeout unless overridden by command line/fw_cfg. It is OK to initialize it for the first time to PcdPlatformBootTimeOut if Timeout was not defined, but certainly not every time on every boot.