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

GLAN blocks C-states deeper than C3 #483

Open
crawfxrd opened this issue Oct 11, 2023 · 1 comment
Open

GLAN blocks C-states deeper than C3 #483

crawfxrd opened this issue Oct 11, 2023 · 1 comment

Comments

@crawfxrd
Copy link
Member

crawfxrd commented Oct 11, 2023

  • Model: TGL+
  • BIOS version: b22e8dee415b
  • EC version:
  • OS: Pop!_OS 22.04
  • Kernel: 6.5.4-76060504-generic

The system will not go to C-states lower than C3 when idle.

Steps to reproduce

  • Lock the screen, allowing the display to turn off
  • Wait 1 minute
  • Unlock the system
  • sudo cat /sys/kernel/debug/pmc_core/package_cstate_show

Expected behavior

  • C6 and C8 (and potentially C10) should report non-zero

Actual behavior

  • All values below C3 are 0

Additional info

Power management for GLAN is disabled.

$ cat "/sys/bus/pci/devices/0000:2e:00.0/power/control"
on

Setting automatic power management will allow deeper C-states.

sudo sh -c "echo auto > '/sys/bus/pci/devices/0000:2e:00.0/power/control'"
@crawfxrd
Copy link
Member Author

crawfxrd commented Oct 12, 2023

I'm not convinced GLAN config for boards is configured correctly (should we be using drivers/net?), so I'll leave this open until the configs can be checked.

I don't know what is disabling power management in the kernel. May be the kernel itself with all the commits mentioning ASPM problems I see in drivers/net/ethernet/realtek.

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

1 participant