From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) by mx.groups.io with SMTP id smtpd.web10.4917.1626939877044041894 for ; Thu, 22 Jul 2021 00:44:37 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=VoIsruSq; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.208.171, mailfrom: gjb@semihalf.com) Received: by mail-lj1-f171.google.com with SMTP id e14so6194948ljo.7 for ; Thu, 22 Jul 2021 00:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7XgZlS69jxwelPICKh4uK7itecu3pAmP2LFIYFaJbHo=; b=VoIsruSqsneVgONMOW4r8q8c0PHCIVhnFCIjKT85X1PXIfvo/BO6UJCJbnETqjP9KD GSaBhuskdN0lEHHqnrsXSKJzSCf09cDWR8M92XbDhKcGFckKhwjQUdwcTC33PuXx3VaG szAVV48Yh64PPF8U2t1NC3L0cjwitEE9pUxiuCiPNZeO/tEGgvgG2pbcC2G/+Vy91YRj OzQN1IOn8Ii4OB7FcwVqsyh7uMTN6mWjuiVYGbBdW6g5BMIiybi/rwFnYhB0m3I4Dap1 U/VO11+huGUkClxA7zAnY+AJOpMK8nb0jmrHMMclfi2TLqfr5r4Xtq1mA5ILXbwBQodg k7Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7XgZlS69jxwelPICKh4uK7itecu3pAmP2LFIYFaJbHo=; b=MMD3Q1yiTJHQB5i2920bggfVfnBj2ZHDS+0zluXwtuVvY0iIuBOQiHcYohAnL8SLNz sssfNHSO/50hDRrWv+Szb3zWbWBund5o2YERuh4XzdVpA5ICOPn2srTSJzMWbjgJduSe HLDfHVvKqeIqTN0sSW6Hx+diI2638sAP2n5wlwJMDwGuKoeFm2QVnlyWWQ9huZ58Dumi UBCh6sHYj/n4keVbQpSxHf2wCmNsL60ANK5ldfK1+EwbSHDnKpDv86m83pp91ijiyRA3 PyyCSwGe0tqELqoJRT2fF9H7C1e6ut3idnX8QKpfO9MrGtLta7WPVXDH535TgFytOpsz 1qUQ== X-Gm-Message-State: AOAM5334GtIalCU6Ui8b71GE2Vg5Es7yzUP5dU/P3Cq9HR/ooCKZ/S4W zgjJBiUquv7O5h24IkYa8MV4Z/tO01dF3eQK X-Google-Smtp-Source: ABdhPJxyexlBF4w7QFzX1SkhteFAHJYtcRS6iK+ZS0psOpYYZB8O5I9HQ0G+r1627ImRVdPx2uhXtw== X-Received: by 2002:a05:651c:245:: with SMTP id x5mr23092085ljn.92.1626939875143; Thu, 22 Jul 2021 00:44:35 -0700 (PDT) Return-Path: Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id t72sm1917946lff.172.2021.07.22.00.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 00:44:34 -0700 (PDT) From: "Grzegorz Bernacki" To: devel@edk2.groups.io Cc: leif@nuviainc.com, ardb+tianocore@kernel.org, Samer.El-Haj-Mahmoud@arm.com, sunny.Wang@arm.com, mw@semihalf.com, upstream@semihalf.com, pete@akeo.ie, jian.j.wang@intel.com, hao.a.wu@intel.com, dandan.bi@intel.com, eric.dong@intel.com, Grzegorz Bernacki Subject: [edk2-platforms PATCH v4 0/2]Add BootDiscoveryPolicyUiLib Date: Thu, 22 Jul 2021 09:44:22 +0200 Message-Id: <20210722074425.2274716-1-gjb@semihalf.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patchset extends Boot Maintenance Menu and allows to select Boot Discovery Policy. Raspberry Pi platforms uses the variable to connect specified class of devices on boot. This patchset also removes efdc159e which has similar functionality. Discussion on design can be found at: https://edk2.groups.io/g/rfc/topic/rfc_boot_discovery_policy/82450628 Changes since v1: - make 'Connect All' (0x2) default value for PcdBootDiscoveryPolicy - initialize BootDiscoveryPolicy variable in platform code, if not found Changes since v2: - add missing local variable initialization Changes since v3: - add description to PcdBootDiscoveryPolicy Grzegorz Bernacki (3): edk2: MdeModulePkg: Add BootDiscoveryPolicyUiLib. edk2-platform: Platform/RaspberryPi: Enable Boot Discovery Policy. Revert "Platform/RaspberryPi: Setup option for disabling Fast Boot" Platform/RaspberryPi/RaspberryPi.dec | 2 - Platform/RaspberryPi/RPi3/RPi3.dsc | 9 +- Platform/RaspberryPi/RPi4/RPi4.dsc | 12 +-- Platform/RaspberryPi/RPi4/RPi4.fdf | 1 + Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.inf | 3 +- Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 6 +- Platform/RaspberryPi/Include/ConfigVars.h | 12 +-- Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxeHii.vfr | 16 +-- Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c | 11 +-- Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBm.c | 102 +++++++++++++++++--- Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxeHii.uni | 10 +- MdeModulePkg/MdeModulePkg.dec | 9 ++ MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.inf | 52 +++++++ MdeModulePkg/Include/Guid/BootDiscoveryPolicy.h | 22 +++ MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.c | 160 ++++++++++++++++++++ MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.uni | 18 +++ MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLibStrings.uni | 29 ++++ MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLibVfr.Vfr | 44 ++++++ 18 files changed, 443 insertions(+), 77 deletions(-) create mode 100644 MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.inf create mode 100644 MdeModulePkg/Include/Guid/BootDiscoveryPolicy.h create mode 100644 MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.c create mode 100644 MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.uni create mode 100644 MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLibStrings.uni create mode 100644 MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLibVfr.Vfr -- 2.25.1