Skip to contentSkip to conversation

OvmfPkg: PlatformPei: reserve SEC/PEI temp RAM for S3 resume

PATCH Jordan Justen 2 participants 4 messages Jan 9, 2014 – Jan 13, 2014 8 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): CAFe8ug__qAuX_4+2inONeCeqY_fU6oAQxYF9h4QCaHNgEpzwFQ@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 18 lines · Laszlo Ersek
Quoted 8 lines · Jordan Justen
Quoted 7 lines · Laszlo Ersek
Quoted 5 lines · Jordan Justen

From: Laszlo Ersek <[email protected]>

Contributed-under: TianoCore Contribution Agreement 1.0

[[email protected]: move to MemDetect.c; use PCDs]
Quoted 8 lines
Quoted 2 lines

PCDs are fine of course, but MemDetect() is not called on Xen (unless that's the intent, but please explain then).

I don't think this series claims to enable S3 for Xen, right?

When someone looks at S3 for Xen, I might try to steer them towards having Xen call MemDetect again, and branch of for Xen specific things within MemDetect. I was not too excited about that aspect of r14946.

Quoted 5 lines

No, the series doesn't *claim* to do that :), and I didn't test it, but since I could not see any immediate blocker when running on Xen, I figured we should add the feature generally, and then Xen users could happily hunt bugs in the common code. By adding code that doesn't run specifically on Xen we're making that harder.

I'll try to update this to make a best effort of having S3 potentially work for Xen.

We should probably see if someone from xen-devel can verify that we haven't managed to break normal OVMF boots on Xen (aside from the S3 issue).

-Jordan

Quoted 12 lines

... I guess at least! :) I don't have proof either way.

Also (but I didn't investigate this in particular) it's not that all S3-related stuff were non-Xen only. Some of it seems to be Xen and KVM, and some non-Xen only. But again I could be wrong.

Anyway if we declare this, then I'll add my R-b to the patches where Xen was my only question.

Thanks!
Laszlo

A message that is not in the archive (sent off-list or not yet received): CAFe8ug9knSAUup2etM6PUbTNXMQKc9S6+b=J74=-CYGwbPyXaA@mail.gmail.com

#7 lore raw

Thanks for bringing this to Xen-devel!

Quoted 6 lines · Jordan Justen
Quoted 5 lines · Laszlo Ersek
Quoted 4 lines · Jordan Justen
Quoted 3 lines · Laszlo Ersek
Quoted 2 lines · Jordan Justen

From: Laszlo Ersek <[email protected]>

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 3 lines

Contributed-under: TianoCore Contribution Agreement 1.0

[[email protected]: move to MemDetect.c; use PCDs]

PCDs are fine of course, but MemDetect() is not called on Xen (unless that's the intent, but please explain then).

Yes, that was the intent IIRC. MemDetect looks at CMOS for memory size which potentially limits the amount of RAM represented.

Another aspect is that the location used in CMOS is not standardized location. It didn't cause strong objection though.

Quoted 12 lines
Quoted 11 lines
Quoted 5 lines

I don't think this series claims to enable S3 for Xen, right?

When someone looks at S3 for Xen, I might try to steer them towards having Xen call MemDetect again, and branch of for Xen specific things within MemDetect. I was not too excited about that aspect of r14946.

No, the series doesn't *claim* to do that :), and I didn't test it, but since I could not see any immediate blocker when running on Xen, I figured we should add the feature generally, and then Xen users could happily hunt bugs in the common code. By adding code that doesn't run specifically on Xen we're making that harder.

Quoted 7 lines

I'll try to update this to make a best effort of having S3 potentially work for Xen.

We should probably see if someone from xen-devel can verify that we haven't managed to break normal OVMF boots on Xen (aside from the S3 issue).

Do you have a git tree somewhere? And some critical steps to test this series?

Wei.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#9 lore raw
Quoted 21 lines · Wei Liu

Thanks for bringing this to Xen-devel!

Quoted 19 lines · Jordan Justen
Quoted 9 lines · Laszlo Ersek
Quoted 7 lines · Jordan Justen
Quoted 1 line · Laszlo Ersek

On 01/09/14 01:45, Jordan Justen wrote:

I don't think this series claims to enable S3 for Xen, right?

When someone looks at S3 for Xen, I might try to steer them towards having Xen call MemDetect again, and branch of for Xen specific things within MemDetect. I was not too excited about that aspect of r14946.

Quoted 5 lines

No, the series doesn't *claim* to do that :), and I didn't test it, but since I could not see any immediate blocker when running on Xen, I figured we should add the feature generally, and then Xen users could happily hunt bugs in the common code. By adding code that doesn't run specifically on Xen we're making that harder.

I'll try to update this to make a best effort of having S3 potentially work for Xen.

Quoted 7 lines
Quoted 4 lines

We should probably see if someone from xen-devel can verify that we haven't managed to break normal OVMF boots on Xen (aside from the S3 issue).

Do you have a git tree somewhere? And some critical steps to test this series?

git://github.com/jljusten/edk2.git ovmf-s3-v4

For testing S3, I've been doing this:
OvmfPkg/build.sh qemu -enable-kvm \
-debugcon file:debug.log -global isa-debugcon.iobase=0x402 \
-cdrom ~/ISO/archlinux-2013.12.01-dual.iso \
-m 512 -vga qxl

At the bash prompt I run:
echo -n mem > /sys/power/state

Laszlo already pointed out some key issues for Xen with S3, so you might want to wait until I try to fix those in v5.

-Jordan

A message that is not in the archive (sent off-list or not yet received): CAFe8ug9u3P8u2H46Ws=in0DH4G5hayuU2QFa=1NnbLTfGi5xKA@mail.gmail.com

#11 lore raw
Quoted 38 lines · Jordan Justen
Quoted 21 lines · Wei Liu

Thanks for bringing this to Xen-devel!

Quoted 19 lines · Jordan Justen
Quoted 9 lines · Laszlo Ersek
Quoted 7 lines · Jordan Justen
Quoted 1 line · Laszlo Ersek

On 01/09/14 01:45, Jordan Justen wrote:

I don't think this series claims to enable S3 for Xen, right?

When someone looks at S3 for Xen, I might try to steer them towards having Xen call MemDetect again, and branch of for Xen specific things within MemDetect. I was not too excited about that aspect of r14946.

Quoted 5 lines

No, the series doesn't *claim* to do that :), and I didn't test it, but since I could not see any immediate blocker when running on Xen, I figured we should add the feature generally, and then Xen users could happily hunt bugs in the common code. By adding code that doesn't run specifically on Xen we're making that harder.

I'll try to update this to make a best effort of having S3 potentially work for Xen.

Quoted 7 lines
Quoted 4 lines

We should probably see if someone from xen-devel can verify that we haven't managed to break normal OVMF boots on Xen (aside from the S3 issue).

Do you have a git tree somewhere? And some critical steps to test this series?

git://github.com/jljusten/edk2.git ovmf-s3-v4

For testing S3, I've been doing this:
OvmfPkg/build.sh qemu -enable-kvm \
-debugcon file:debug.log -global isa-debugcon.iobase=0x402 \
-cdrom ~/ISO/archlinux-2013.12.01-dual.iso \
-m 512 -vga qxl

Quoted 6 lines

At the bash prompt I run:
echo -n mem > /sys/power/state

Laszlo already pointed out some key issues for Xen with S3, so you might want to wait until I try to fix those in v5.

Thanks, I will wait.

Wei.

Quoted 1 line

-Jordan