12 Commits

Author SHA1 Message Date
Michał Żygowski 1a488a4da5 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>
2024-06-20 14:38:26 +02:00
Michał Żygowski 56fdb7be4e DasharoSystemFeaturesUiLib: Add options for downcoring and HT
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
2024-06-18 14:07:00 +02:00
Sergii Dmytruk 6f3eb21c4c DasharoVariablesLib: add API for measuring Dasharo variables
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
2024-06-11 00:11:19 +03:00
Sergii Dmytruk 658985549b 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>
2024-06-11 00:11:19 +03:00
Sergii Dmytruk 84ee5859f9 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>
2024-06-11 00:11:19 +03:00
Sergii Dmytruk 8ecc6874ad 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>
2024-06-10 19:52:46 +03:00
Sergii Dmytruk 1acd95498b 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>
2024-06-10 19:44:25 +03:00
Sergii Dmytruk b646ad16e8 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>
2024-06-10 19:42:51 +03:00
Husni Faiz ad3c998b1c DasharoSytemFeatures: add PCI OptionROM execution option 2023-09-03 00:13:28 +03:00
Michał Kopeć a5a70b6a42 UserAuthenticationDxeSmm: rename to UserAuthenticationDxe
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2022-10-28 16:29:19 +02:00
Michał Kopeć 9a698420c3 UserAuthenticationDxeSmm: Convert to pure DXE driver
Remove SMM dependency as we can't use it with coreboot

Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2022-10-28 16:29:15 +02:00
Michał Kopeć ccb098329c setup password: initial code import from edk2-platforms
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2022-10-25 16:40:43 +02:00