Lenovo Legion 5 15ARH05H Bios mod problem

Bios dump (ver. 13ww) (site don’t allow me to post links)
upload.ee/files/13023176/Legion_5-15ARH05H_Laptop__Lenovo__FSCN13WW_AMD.zip.html

Extracted

1
 
File_DXE_driver_F27F4D0C-70E4-413B-A537-FF39A2199AA5_CbsSetupDxeRN_IFR.txt
 
upload.ee/files/13023211/File_DXE_driver_F27F4D0C-70E4-413B-A537-FF39A2199AA5_CbsSetupDxeRN_IFR.txt.html

In VarStore: 0x5000 (AmdSetup) I changed next offsets:

0x53 (Overclock) from 0xFF (Auto) to 0x1 (Enabled)
0x54 (Memory Clock Speed) from 0xFF (Auto) to 0x30 (1600MHz)
0x55 (Tcl) from 0xFF (Auto) to 0x12 (18T)

Vars changed with RU.efi and I see them in the dump from H2OUVE:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
[041] "AmdSetup"
GUID: 3A997502-647A-4C82-998E-52EF9486A247
Attributes: 0x7
DataSize: 0x55B
Data:
00000000: 00 04 00 00 5B 01 00 00 00 00 00 00 00 00 00 00
00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000020: FE FF 03 01 03 00 FF 03 00 01 00 00 00 FF FF 03
00000030: 01 F5 0F 03 FF 05 00 00 02 00 00 00 00 FF 03 03
00000040: 03 FF FF FF 03 03 FF 03 03 FF FF 03 03 FF 07 07
00000050: 03 00 00 01 30 12 FF FF FF FF 00 39 FF FF 00 1A
00000060: FF FF 00 12 00 00 00 00 03 00 03 00 38 01 00 C0
00000070: 00 00 84 00 FF FF FF FF FF FF FF FF FF FF FF FF
00000080: FF FF 00 FF FF 00 00 00 FF FF FF FF FF FF FF FF
00000090: FF FF 00 00 00 08 00 00 08 01 FF FF 00 FF FF FF
000000A0: FF FF FF FF 01 FF FF 00 FF FF FF 00 03 01 00 00
000000B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000000C0: 00 00 00 00 03 00 00 01 00 01 0F 0F 0F 0F 0F 0F
000000D0: FF FF FF FF FF 0F 00 0F 0F 00 00 FF 00 FF 0F 00
000000E0: 00 00 00 00 00 00 00 00 00 00 00 0F C8 00 00 00
000000F0: 0F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0F
00000100: 0F 00 00 0F 00 00 00 00 00 00 00 00 00 00 00 00
00000110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000120: 00 0F 00 00 00 00 0F 0F 00 00 00 00 00 00 00 00
00000130: 00 00 00 00 00 00 00 00 0F FF 00 FF 00 0F 0F 0F
00000140: 0F 0F 0F 0F 0F 0F 00 0F 0F 0F 01 0F 0F 0F 0F 0F
00000150: 0F 0F 0F 0F 0F 0F 0F 0F 02 FF FF 00 00 00 00 00
 


But memory speed and Tcl are not changed in real:
i.imgur.com/VNJcz1q.png

Where I go wrong?

EDIT by Fernando: Thread title shortened

maybe you need to accept the “Licence” First, but I’m not sure

1
2
3
4
 
0xAD5F 		Text: Statement.Prompt: WARNING - DAMAGE CAUSED BY USE OF YOUR AMD PROCESSOR OUTSIDE OF SPECIFICATION OR IN EXCESS OF FACTORY SETTINGS ARE NOT COVERED UNDER YOUR AMD PRODUCT WARRANTY AND MAY NOT BE COVERED BY YOUR SYSTEM MANUFACTURER'S WARRANTY., TextTwo:  {03 08 76 02 77 02 00 00}
0xAD67 Text: Statement.Prompt: Operating your AMD processor outside of specification or in excess of factory settings, including but not limited to overclocking, may damage or shorten the life of your processor or other system components, create system instabilities (e.g., data loss and corrupted images) and in extreme cases may result in total system failure. AMD does not provide support or service for issues or damages related to use of an AMD processor outside of processor specifications or in excess of factory settings., TextTwo: {03 08 78 02 79 02 00 00}
0xAD6F Ref: Declined, VarStoreInfo (VarOffset/VarName): 0xFFFF, VarStore: 0x0, QuestionId: 0xB5, FormId: 0x7004 {0F 0F 7A 02 7A 02 B5 00 00 00 FF FF 00 04 70}
0xAD7E Ref: Accepted, VarStoreInfo (VarOffset/VarName): 0xFFFF, VarStore: 0x0, QuestionId: 0xB6, FormId: 0x702E {0F 0F 7B 02 7B 02 B6 00 00 00 FF FF 00 2E 70}
 


I checked it. There is no variable for save accepted state. But when I was searching it I found that memory settings are not saving to the VarStore: 0x5000 - they are saved to default variables, so if I write wrong timings or speed laptop will not be able to restore them to defaults after fail.
Here is VarStore: 0x5000 after saving 3 vars in emulator - they are not changed:

i.imgur.com/IZvDdvn.png

And here is array for default values (as I think) and they are changed after saving 3 vars in emulator:

i.imgur.com/4Miq447.png

So, without programmer it’s too dangerous to change them.

Or may be it’s some kind of protection from editing?