Skip to content

Setting storage password requires iommu=pt to wake from suspend #54

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

Open
deepcube opened this issue Mar 17, 2025 · 3 comments
Open

Setting storage password requires iommu=pt to wake from suspend #54

deepcube opened this issue Mar 17, 2025 · 3 comments
Assignees
Labels
3.05 Laptop 13 - AMD Ryzen 7040 Framework Laptop 13 (AMD Ryzen™ 7040 Series) Linux

Comments

@deepcube
Copy link

Device Information

System Model or SKU

Framework Laptop 13 (AMD Ryzen™ 7040 Series)

BIOS VERSION

3.05

DIY Edition information

Memory: Crucial 2x16GB DDR5 5600MHz CT2K16G56C46S5
Storage: Samsung 990 PRO 2 TB MZ-V9P2T0B/AM

Describe the bug

When using storage password in the BIOS the system fails to resume from suspend to RAM (s2idle) correctly. Adding iommu=pt works around the issue.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Enable storage password for NVMe drive in BIOS.
  2. Boot into Linux (confirm CONFIG_BLK_SED_OPAL is enabled in kernel).
  3. Suspend to RAM echo mem > /sys/power/state.
  4. Wake laptop with keypress.
  5. Note laptop does not wake correctly (hangs or resumes but disk is unavailable).
  6. Add iommu=pt to kernel cmdline, repeat, note resume works.

Expected behavior

Can resume from suspend to RAM successfully without addition of iommu=pt to kernel cmdline.

Operating System (please complete the following information):

  • OS/Distribution: Void Linux
  • Linux Kernel Version: 6.13.7

Additional context

Forum thread: https://community.frame.work/t/responded-amd-7040-setting-storage-password-breaks-resume-from-suspend/42554/24

@Eloston
Copy link

Eloston commented Mar 17, 2025

For those reproducing, I would like to note that the Storage password might be disabled in the BIOS settings unless a Master password is set first

I am able to reproduce this issue with the following setup:

  • AMD Ryzen 5 7640U
  • Storage: WD_BLACK SN850X 1TB
  • OS: Debian 12 (bookworm)
  • Linux Kernel Version: 6.12.12 (from Debian backports)
  • Secure Boot enabled (I believe OP's system has it disabled)

@deepcube
Copy link
Author

Secure Boot enabled (I believe OP's system has it disabled)

I have reproduced both with secure boot enabled and disabled.

@deepcube deepcube changed the title Laptop Issue Setting storage password requires iommu=pt to wake from suspend Mar 17, 2025
@quinchou77 quinchou77 self-assigned this Mar 19, 2025
@quinchou77 quinchou77 added 3.05 Laptop 13 - AMD Ryzen 7040 Framework Laptop 13 (AMD Ryzen™ 7040 Series) labels Mar 19, 2025
@kiram9 kiram9 added the Linux label Mar 28, 2025
@superm1
Copy link

superm1 commented Apr 22, 2025

Can you guys please try this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.05 Laptop 13 - AMD Ryzen 7040 Framework Laptop 13 (AMD Ryzen™ 7040 Series) Linux
Projects
None yet
Development

No branches or pull requests

5 participants