Discussion:
[coreboot] Asus KGPE-D16 non-working S3 suspend with Qubes 4
Timothy Pearson
2018-12-10 22:49:09 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hello,
S3 - it does work but you just have to wait a long time I would guess
that maybe there is some ram re-training going on and that is why
resuming from S3 takes over a minute.
AFAIK, retraining the RAM destroys its contents (and that is why timings
must be cached to flash for S3 to work). Does AMD have anything special
to retrain memory yet still preserve RAM data to allow suspend, or am I
missing something here?
Best regards,
Angel Pons
You are correct. The memory is not (and cannot be) retrained, the
previous settings are loaded from the s3nv region of Flash (this is also
why the settings change on each boot -- the last known good training
data is loaded into Flash to support resume from suspend).

My understanding is that because the current coreboot native AMD
codebase doesn't support relocatable ramstage (yet?) we're hitting a
slow path somewhere in resume. I think there was some work being put
into adding the relocateable ramstage support but I don't know current
status.

- --
Timothy Pearson
Raptor Engineering
+1 (415) 727-8645 (direct line)
+1 (512) 690-0200 (switchboard)
https://www.raptorengineering.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJcDu1jAAoJEK+E3vEXDOFbGXUIAIPqreXXf253LywSE+rer+OT
pPGwBDGGPAiVzlxZGISEvLTnit+fdL2vOEnRyit8HE0X3XesFxLUzm+QrCpYPT3O
jn5GeiECF57jzKUbbbEWj1Zfs1DXJpxgoFOgJGR1+obcgMUTx++SGtahZPHIiYN8
YXqpHob+7noVtsr03dES4u5do2QVz0jDhvmATwotCdr+oBqasEWXBZfqUPXWWYCp
CKfsMCTvjqQ1qyzD+TaA5ZCEwCGcnLRkkZbFM1NPRJI6oIdm9xMjdxobXWp0nuHR
tdHkpptA4HQrx2/Qn3OI62JoRRaVJVqN0y+C+6PMGioXhGHxtpWsGeVMpkefWS8=
=VP8L
-----END PGP SIGNATURE-----
--
coreboot mailing list: ***@coreboot.org
https://mail.coreboot.org/mailman/listinfo/coreboot
Thierry Laurion
2018-12-10 19:50:38 UTC
Permalink
Hi all,

Jumping to the discussion since i've done some tests myself on coreboot
4.8.1 for the Heads project on that board in the past few days.
https://github.com/tlaurion/heads/blob/kgpe-d16-merging_good_order/config/coreboot-kgpe-d16.config
.

The kgpe-d16 refuses to train memory correctly when
"CONFIG_RELOCATABLE_RAMSTAGE=y" is configured in.
This option would be interesting to have, since the s3nv cbfs file in rom
changes at each bootup for some reason that escape my comprehension.

IOMMU is not setuped correctly when "CONFIG_USE_OPTION_TABLE=y" is not
configured in.
Hi,
as I currently have a D16 right next to me, I thought I'd just test it,
too. This is with coreboot-4.8-660-gb1d26f0e92. S3 seems to be working
somehow, but I have to press the power button to make it resume - it
doesn't react on (USB keyboard) key presses. Also it takes about one
minute to resume, with 8x 8GB RAM, single CPU.
Just in case it helps somehow...
See the attached coreboot log.
And BTW, yes, the D16 has a serial port exposed at the rear panel.
Kind Regards,
Merlin
CONFIG_USE_OPTION_TABLE=y
CONFIG_VENDOR_ASUS=y
CONFIG_BOARD_ASUS_KGPE_D16=y
CONFIG_COREBOOT_ROMSIZE_KB_16384=y
CONFIG_PAYLOAD_GRUB2=y
CONFIG_GRUB2_EXTRA_MODULES="cat"
CONFIG_GRUB2_INCLUDE_RUNTIME_CONFIG_FILE=y
CONFIG_COREINFO_SECONDARY_PAYLOAD=y
CONFIG_MEMTEST_SECONDARY_PAYLOAD=y
CONFIG_NVRAMCUI_SECONDARY_PAYLOAD=y
On Mon, 10 Dec 2018 13:32:04 +0000
Hi,
I have not been able to get S3 suspend to work with this board when
using Qubes 4. It's running coreboot v4.6 with the default CMOS
options. It appears to go into suspend ok but when I try to resume
the system does not respond to keyboard or mouse input and pressing
the powerbutton results in what appears to be a fresh cold-boot.
Does anyone know whether there is a specific coreboot/cmos option I
could be missing or if it is a Qubes configuration issue?
Kind regards,
Pete
--
Merlin BÃŒge
--
https://mail.coreboot.org/mailman/listinfo/coreboot
--
Thierry Laurion
Loading...