@olivierlambert bit of a lazarus moment on this thread, but was there any progress on this?
We're seeing the same thing on Ryzen 9 7950X hosts (ASRock Rack AM5 boards), and we have a like-for-like comparison that might help narrow it down.
On XCP-ng 8.3 (Xen 4.17.6-9), xenpm get-cpuidle-states shows only C0/C1 ("All C-states allowed", total C-states : 2) on all three of our 7950X hosts. That includes one on a different board and one that's completely idle, so it isn't load- or board-specific.
The same CPU on the same board family, running plain Debian 12 with Xen 4.17.5 (dom0 kernel 6.1), shows C0–C3 (total C-states : 4). So the firmware is exposing the deeper states, and Xen can use them. They just never reach Xen on XCP-ng.
On the XCP-ng hosts, dom0 does log xen_acpi_processor: Uploading Xen processor PM info at boot, so the upload happens, but Xen only ends up with C1. Our guess is the 4.19 dom0 kernel's _CST handling: AMD's FFH-style C-state entries were only supported in later kernels. We haven't verified that, though.
Is this known on your side, and is a fix or backport planned? Happy to collect more data: xenpm output, ACPI table dumps, or a test kernel.