How to enable (lock ?) System Management Mode

Hello,

I’m on a Thinkpad t495s with Fedora 42 beta, and while looking at device security tests I saw that HSI-1 was failing because of System Management Mode (Fail - Unlocked).

I wanted to ask you if you have any idea how to activate/lock it. It seems like a basic security feature from what I saw on the internet, but all guides to activate it are for Windows.

I should also note that I’m currently dual booting with Win11 on another partition, so maybe this is the problem ?
My SOC is AMD, using 2.x fwupd (got no updates to install) and latest kernel
The tests started failing since updating to F42, but I think fwupd just became less easy on security reports

Thank you very much for any help you can give :slight_smile:

Luca

1 Like

Are you sure this is about fwupd?

Can you give us the exact error message?

Never said it’s about fwupd, fwupd gives the HSI report, but I’d like to know if someone knows how to lock the SMM (System Management Mode). Fwupd wiki was no use unfortunately :confused:

This is the security report:

Device Security Report
======================

Report details
  Date generated:                                  2025-03-29 17:51:27
  fwupd version:                                   2.0.7

System details
  Hardware model:                                  LENOVO 20QKS0LG00
  Processor:                                       AMD Ryzen 5 PRO 3500U w/ Radeon Vega Mobile Gfx
  OS:                                              Fedora Linux 42 (Workstation Edition Prerelease)
  Security level:                                  HSI:0 (v2.0.7)

HSI-1 Tests
  UEFI Bootservice Variables:                      Pass (Verrouillé)
  UEFI Platform Key:                               Pass (Valide)
  TPM v2.0:                                        Pass (Trouvé)
  System Management Mode:                        ! Fail (Non verrouillé)
  UEFI Secure Boot:                                Pass (Activé)
  BIOS Firmware Updates:                           Pass (Activé)
  Fused Platform:                                  Pass (Verrouillé)
  TPM Platform Configuration:                      Pass (Valide)

HSI-2 Tests
  AMD Firmware Write Protection:                 ! Fail (Non activé)
  TPM Reconstruction:                              Pass (Valide)
  IOMMU Protection:                                Pass (Activé)
  BIOS Rollback Protection:                        Pass (Activé)
  Platform Debugging:                              Pass (Verrouillé)

I cut the last two levels

I think that is done with a karg, no idea how to set them on regular Fedora

amd_iommu=force_isolation
iommu=force
iommu.passthrough=0

These should be firmware related

Is IOMMU related to SMM ?
Would enabling that karg change the SMM state ?

I dont know