Commit Graph
23 Commits
Author SHA1 Message Date
Michał Kopeć af85ff649a DasharoModulePkg: Add define for DescriptorWriteable EFI variable
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-09-02 11:30:19 +02:00
Michał ŻygowskiandMichał Kopeć 244b28fddf DasharoModulePkg: Add IBECC option support
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-06-13 16:39:41 +02:00
Filip LewińskiandMichał Kopeć dc355caf5f DasharoSystemFeaturesVfr.vfr: add dGPU only option
Signed-off-by: Filip Lewinski <filip.lewinski@3mdeb.com>
2025-04-01 12:40:30 +02:00
Filip LewińskiandMichał Kopeć 5c1929aa46 DasharoModulePkg: rename DGPUEnabled to more generic DGPUState
Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
2025-04-01 12:40:30 +02:00
kamayandSergii Dmytruk 2fc0e16a84 Added DGPUEnabled EFI variable
Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
2025-03-28 16:16:26 +02:00
Michał ŻygowskiandSergii Dmytruk bdd23a7d1d DasharoModulePkg: Add USB port power feature
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-03-10 20:16:34 +02:00
Michał ŻygowskiandSergii Dmytruk 28aef22366 DasharoModulePkg/DasharoVariablesLib: Add quiet and fast boot variables
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:32 +02:00
Sergii Dmytruk 96a094d553 MdeModulePkg/Universal/CapsuleRuntimeDxe: Reject capsules unless ME is HAP-disabled
HAP-disabled ME doesn't do anything, including writing to system flash,
which is what we need for a firmware update that relies on a warm reset.
coreboot assumes that HECI/soft-disabled state of ME isn't as good as
HMRFPO and switches to HMRFPO doing a global reset which loses in-RAM
capsules.

Checking variable's value should be enough, if somebody manually set it to
an invalid value, the update there will be a reboot without a capsule
update.  A more reliable solution would be to pass this information from
coreboot.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2025-03-10 20:16:31 +02:00
Sergii Dmytruk 62e05eec81 DasharoModulePkg: Extract DasharoEnableFUM()
It will be used elsewhere.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2025-03-10 20:16:30 +02:00
Michał ŻygowskiandSergii Dmytruk 3b5d27e9ae DasharoModulePkg: Add Fans Off feature
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:30 +02:00
Filip GołaśandSergii Dmytruk 18398ed9be UserAuthentication.h: Increase PASSWORD_MAX_SIZE
Signed-off-by: Filip Go¿a¿ <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
2025-03-10 20:16:29 +02:00
Michał ŻygowskiandSergii Dmytruk a5b3b31da5 Rework the CPU throttling variables and setup UI management
The CPU throttling used an excessive number of variables. The allowed
range of values should be fixed at build, saving it as a NV variable
makes no sense.

Simplify the logic of the CPU throttling range, gaining a better UX
than some error popups. Instead of setting the temperature, set the
offset which has a fixed allowed range. Display the current threshold
temperatue as grayed out fields instead.

Also add PCD to control the default value of the throttling offset.

Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:28 +02:00
Michał ŻygowskiandSergii Dmytruk 487cff4180 DasharoSystemFeaturesUiLib: Add options for downcoring and HT
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2025-03-10 20:16:28 +02:00
Sergii Dmytruk 0bceb4df2a SecurityPkg: measure Dasharo variables before boot
DasharoModulePkg/DasharoVariablesLib got an API for measuring Dasharo
variables which is invoked by Tcg[2]Dxe.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2025-03-10 20:16:27 +02:00
Sergii Dmytruk 255e4abe90 DasharoSystemFeaturesUiLib: reduce boilerplate in RouteConfig
The code is highly repetitive, use a macro to shorten it by a lot.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2025-03-10 20:16:27 +02:00
Sergii Dmytruk 27d5fd6e2b DasharoModulePkg: reset to defaults maintained by DasharoVariablesLib
From now on default values are maintained only in DasharoVariablesLib
and can be queried from it to avoid code duplication and bugs which
arise from it.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2025-03-10 20:16:27 +02:00
Sergii Dmytruk cd999595dc DasharoModulePkg: move variable creation to DasharoVariablesLib
Create a separate library for managing values of variables and create
them in the constructor of the new library.  This gets rid of the
defaults in Library/DasharoSystemFeaturesUiLib/DasharoSystemFeatures.c

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2025-03-10 20:16:27 +02:00
Sergii Dmytruk 09ce7fb898 DasharoModulePkg: move more declarations to DasharoOptions.h
To have all of them collected in one place and have no need to reach
into HII-related header from unrelated parts of the code.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2025-03-10 20:16:27 +02:00
Sergii Dmytruk 6c9caf57b6 DasharoModulePkg: #define variable names and use consistently
This is somewhat then using string literals as making a typo in a macro
name will cause a compilation error.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2025-03-10 20:16:27 +02:00
Husni FaizandSergii Dmytruk c5d113f557 DasharoModulePkg: DasharoSystemFeatures: add PCI OptionROM execution option 2025-03-10 20:16:18 +02:00
Michał KopećandSergii Dmytruk 22a939a96e DasharoModulePkg: UserAuthenticationDxeSmm: rename to UserAuthenticationDxe
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-03-10 19:43:47 +02:00
47d4272e69 DasharoModulePkg: UserAuthenticationDxeSmm: Convert to pure DXE driver
Remove SMM dependency as we can't use it with coreboot

Co-authored-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-03-10 19:43:47 +02:00
Michał KopećandSergii Dmytruk 19653dce76 DasharoModulePkg: setup password: initial code import from edk2-platforms
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-03-10 19:43:45 +02:00