Skip to content

Fix a bunch of issues on desktop#343

Merged
JohnAZoidberg merged 4 commits into
mainfrom
test-desktop
May 31, 2026
Merged

Fix a bunch of issues on desktop#343
JohnAZoidberg merged 4 commits into
mainfrom
test-desktop

Conversation

@JohnAZoidberg
Copy link
Copy Markdown
Member

@JohnAZoidberg JohnAZoidberg commented May 31, 2026

See commit messages

Fixes: #253

Previously it didn't account for the PD differences. It only has a
single PD at a different address.

$ sudo framework_tool --test
Self-Test
  SMBIOS Platform:     FrameworkDesktopAmdAiMax300
  Dump EC memory region
00000000: 7877 7679 77ff ffff ffff ffff ffff ffff  xwvyw...........
00000010: 0000 0000 0000 ffff ffff ffff ffff ffff  ................
00000020: 4543 0102 0001 0103 0000 0000 0000 0000  EC..............
00000030: 0500 0000 0000 0000 0000 0000 0000 0000  ................
00000040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000050: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000060: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000070: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000080: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000090: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000a0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000b0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000c0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000d0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000e0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000f0: 0000 0000 0000 0000 0000 0000 0000       ..............
  Checking EC memory mapped magic bytes
  Verified that Framework EC is present!
  Reading EC Build Version
  Reading EC Flash by EC - OK
  Reading EC Flash directly - See below
    Read first row of flash (RO FW)
      [5E, 4D, 3B, 2A, E1, 54, 0C, 03]
    Read first row of RW FW
      [00, 58, 0C, 20, 45, 22, 09, 10]
    Read flash flags
      Valid flash flags
  Getting power info from EC - OK
  Getting AC info from EC
Reading PD Version from EC - OK
  Getting Back PD info through I2C tunnel - OK

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Desktop only has two PD ports, gracefully handle the EC telling us the
requested index does not exist.
This way we don't have to encode the PD number into the code here, we
can just let the EC tell us how many there are.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Useful for systems with more than one fan (Laptop 16, Desktop)

Signed-off-by: Daniel Schaefer <dhs@frame.work>
@JohnAZoidberg JohnAZoidberg merged commit 90e7d56 into main May 31, 2026
11 checks passed
@JohnAZoidberg JohnAZoidberg deleted the test-desktop branch May 31, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issues on Framework Desktop

1 participant