From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.120]) by mx.groups.io with SMTP id smtpd.web09.13789.1573070288316904536 for ; Wed, 06 Nov 2019 11:58:08 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LCiJBNnl; spf=pass (domain: redhat.com, ip: 207.211.31.120, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573070287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sIzsQT8e+AIJ3wjCTzSVTT9d95aHS6IRthNsBP6v/Ls=; b=LCiJBNnlBQITXuoBVTtQIz6JOKknuvOnU5fGjfAKEWUSgxxAuPFXrh1aQZR8kmfsFcTiRu CAL1jmqJewViXg5QO/p7lOt4ySFuPKk9EjPdpYJmUxmm6L6JyYT0cFT4zodIweQMdVCqaP ExzKgk5kz15bfSoZm7lZB+3y2f7VWcw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-69-LBHhiestPJyt00voSbtv1A-1; Wed, 06 Nov 2019 14:58:05 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A76172A3; Wed, 6 Nov 2019 19:58:04 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-88.ams2.redhat.com [10.36.116.88]) by smtp.corp.redhat.com (Postfix) with ESMTP id D5BFA5D6A7; Wed, 6 Nov 2019 19:58:03 +0000 (UTC) Subject: Re: [edk2-devel] [PATCH] Support skipping automatic BM enumeration To: Andrew Fish , devel@edk2.groups.io Cc: Jeff Brasen References: <72ce1d71-2a65-a6c0-1dd8-7628429c5a3c@redhat.com> <27337.1572995980617823578@groups.io> <378ECC00-3E4F-459E-86B8-5888B2D079E3@apple.com> From: "Laszlo Ersek" Message-ID: <6bc5cce8-7e45-9079-d8d4-9f15bdee9f1d@redhat.com> Date: Wed, 6 Nov 2019 20:58:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <378ECC00-3E4F-459E-86B8-5888B2D079E3@apple.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: LBHhiestPJyt00voSbtv1A-1 X-Mimecast-Spam-Score: 0 Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 11/06/19 17:15, Andrew Fish wrote: >=20 >=20 >> On Nov 6, 2019, at 3:56 AM, Laszlo Ersek wrote: >> >> On 11/06/19 00:19, Jeff Brasen wrote: >>> Wouldn't having a variable that we create and delete on every boot put = unnecessary stress on the SPI-NOR that the variable store lives on? >> >> Yes, it most likely would. >=20 > Should we write a BZ for the variable stack not to update a variable if = the data is not changing? I'm not certain that, in this case, the write action would re-populate exactly the same Boot#### variable with exactly the same data. It seems like in the above, UefiBootManagerLib would create a new variable, and then the PlatformBootManagerLib instance would make it disappear. I don't think we should push down the recognition of the above pattern to the variable driver -- the connection should be made at a higher logical level. Ultimately, both UefiBootManagerLib and PlatformBootManagerLib get linked into BdsDxe, so the current limitation is due to API boundaries that we've created ourselves. Thanks Laszlo