Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Reset to Defaults' tries setting up too many variables #887

Closed
krystian-hebel opened this issue Jun 19, 2024 · 3 comments
Closed

'Reset to Defaults' tries setting up too many variables #887

krystian-hebel opened this issue Jun 19, 2024 · 3 comments
Assignees

Comments

@krystian-hebel
Copy link

Component

Dasharo firmware

Device

PC Engines APU2, PC Engines APU3, PC Engines APU4, PC Engines APU6, QEMU Q35 Emulator, other

Dasharo version

Noticed on Dasharo/edk2@f4b94d7, but probably applies to pre-rebased edk2 as well

Dasharo Tools Suite version

No response

Brief summary

Default values for variables that aren't used by given platform are restored, and may fail validity checks. An example of such setting is CPU Throttling Threshold on QEMU Q35 and probably PC Engines platforms as well.

How reproducible

100%

How to reproduce

  • build QEMU from Dasharo/coreboot@71450da (./build.sh q35)
  • boot and enter setup
  • restore defaults (F9) and try to save them (F10)

Expected behavior

Defaults restored and saved without errors

Actual behavior

Error saying that CPU throttling value is out of range

Screenshots

Zrzut ekranu z 2024-06-19 16-46-26
Zrzut ekranu z 2024-06-19 16-47-16
Zrzut ekranu z 2024-06-19 17-10-51

Additional context

List of variables introduced in Dasharo/DasharoModulePkg#45 and updated in Dasharo/DasharoModulePkg#48 may be extended to include PCD name (or bolean value based on it? This would allow for non-trivial requirements in the future) that controls whether the menu is shown (e.g. PcdShowCpuThrottlingThreshold for this case, similarly for others).

Solutions you've tried

Error can be discarded, which allows to reset other settings. Trying to get to higher menu level by pressing ESC when on Power Management Options page immediately exits setup app. That page isn't accessible by traversing the menu.

@pietrushnic
Copy link

@macpijan @BeataZdunczyk I guess this should go to v0.9.1, but is there no such milestone yet?

@krystian-hebel
Copy link
Author

This touches more platforms than anticipated: Dasharo/DasharoModulePkg#50 (comment)

@miczyg1
Copy link
Contributor

miczyg1 commented Jun 25, 2024

That is why Dasharo/DasharoModulePkg#50 must land to fix this (and possibly future occurrences)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants