Re: [PATCH] x86: Avoid divide by 0 in amd_smn_init()
From: Borislav Petkov
Date: Wed Jun 24 2026 - 11:59:51 EST
+ Andy
On Wed, Jun 24, 2026 at 11:41:16AM -0400, Jason Andryuk wrote:
> I have wip s0ix support with Xen where dom0 issues the amd-pmc calls to
> enter s0ix. I'm not sure of all the uses of SMN, but with Xen dom0/hardware
> domain running most drivers, I think it should be available.
Well, how should we make it available if dom0 doesn't really allow us to
enumerate PCI roots and thus count AMD nodes?
Andy, see upthread.
What would you suggest we do here on dom0? We're trying to enumerate AMD
nodes but dom0 is doing something special wrt topology and PCI roots - see
get_next_root() in amd_node.c.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette