mbox series

[0/3] cpuhp: ensure that cpu hotremove works the 1st time

Message ID 20241210163945.3422623-1-imammedo@redhat.com (mailing list archive)
Headers show
Series cpuhp: ensure that cpu hotremove works the 1st time | expand

Message

Igor Mammedov Dec. 10, 2024, 4:39 p.m. UTC
CPU hotremove event is not delivered to OSPM if the CPU
has been hotplugged before OS has booted.
For details see [2/3].

Igor Mammedov (3):
  tests: acpi: whitelist expected blobs
  cpuhp: make sure that remove events are handled within the same SCI
  tests: acpi: update expected blobs

 hw/acpi/cpu.c                                 |  43 ++++++++++++++----
 tests/data/acpi/x86/pc/DSDT                   | Bin 8526 -> 8593 bytes
 tests/data/acpi/x86/pc/DSDT.acpierst          | Bin 8437 -> 8504 bytes
 tests/data/acpi/x86/pc/DSDT.acpihmat          | Bin 9851 -> 9918 bytes
 tests/data/acpi/x86/pc/DSDT.bridge            | Bin 15397 -> 15464 bytes
 tests/data/acpi/x86/pc/DSDT.cphp              | Bin 8990 -> 9057 bytes
 tests/data/acpi/x86/pc/DSDT.dimmpxm           | Bin 10180 -> 10247 bytes
 tests/data/acpi/x86/pc/DSDT.hpbridge          | Bin 8477 -> 8544 bytes
 tests/data/acpi/x86/pc/DSDT.hpbrroot          | Bin 5033 -> 5100 bytes
 tests/data/acpi/x86/pc/DSDT.ipmikcs           | Bin 8598 -> 8665 bytes
 tests/data/acpi/x86/pc/DSDT.memhp             | Bin 9885 -> 9952 bytes
 tests/data/acpi/x86/pc/DSDT.nohpet            | Bin 8384 -> 8451 bytes
 tests/data/acpi/x86/pc/DSDT.numamem           | Bin 8532 -> 8599 bytes
 tests/data/acpi/x86/pc/DSDT.roothp            | Bin 12319 -> 12386 bytes
 tests/data/acpi/x86/q35/DSDT                  | Bin 8355 -> 8422 bytes
 tests/data/acpi/x86/q35/DSDT.acpierst         | Bin 8372 -> 8439 bytes
 tests/data/acpi/x86/q35/DSDT.acpihmat         | Bin 9680 -> 9747 bytes
 .../data/acpi/x86/q35/DSDT.acpihmat-generic-x | Bin 12565 -> 12632 bytes
 .../acpi/x86/q35/DSDT.acpihmat-noinitiator    | Bin 8634 -> 8701 bytes
 tests/data/acpi/x86/q35/DSDT.applesmc         | Bin 8401 -> 8468 bytes
 tests/data/acpi/x86/q35/DSDT.bridge           | Bin 11968 -> 12035 bytes
 tests/data/acpi/x86/q35/DSDT.core-count       | Bin 12913 -> 12980 bytes
 tests/data/acpi/x86/q35/DSDT.core-count2      | Bin 33770 -> 33837 bytes
 tests/data/acpi/x86/q35/DSDT.cphp             | Bin 8819 -> 8886 bytes
 tests/data/acpi/x86/q35/DSDT.cxl              | Bin 13146 -> 13213 bytes
 tests/data/acpi/x86/q35/DSDT.dimmpxm          | Bin 10009 -> 10076 bytes
 tests/data/acpi/x86/q35/DSDT.ipmibt           | Bin 8430 -> 8497 bytes
 tests/data/acpi/x86/q35/DSDT.ipmismbus        | Bin 8443 -> 8510 bytes
 tests/data/acpi/x86/q35/DSDT.ivrs             | Bin 8372 -> 8439 bytes
 tests/data/acpi/x86/q35/DSDT.memhp            | Bin 9714 -> 9781 bytes
 tests/data/acpi/x86/q35/DSDT.mmio64           | Bin 9485 -> 9552 bytes
 tests/data/acpi/x86/q35/DSDT.multi-bridge     | Bin 13208 -> 13275 bytes
 tests/data/acpi/x86/q35/DSDT.noacpihp         | Bin 8235 -> 8302 bytes
 tests/data/acpi/x86/q35/DSDT.nohpet           | Bin 8213 -> 8280 bytes
 tests/data/acpi/x86/q35/DSDT.numamem          | Bin 8361 -> 8428 bytes
 tests/data/acpi/x86/q35/DSDT.pvpanic-isa      | Bin 8456 -> 8523 bytes
 tests/data/acpi/x86/q35/DSDT.thread-count     | Bin 12913 -> 12980 bytes
 tests/data/acpi/x86/q35/DSDT.thread-count2    | Bin 33770 -> 33837 bytes
 tests/data/acpi/x86/q35/DSDT.tis.tpm12        | Bin 8961 -> 9028 bytes
 tests/data/acpi/x86/q35/DSDT.tis.tpm2         | Bin 8987 -> 9054 bytes
 tests/data/acpi/x86/q35/DSDT.type4-count      | Bin 18589 -> 18656 bytes
 tests/data/acpi/x86/q35/DSDT.viot             | Bin 14612 -> 14679 bytes
 tests/data/acpi/x86/q35/DSDT.xapic            | Bin 35718 -> 35785 bytes
 43 files changed, 34 insertions(+), 9 deletions(-)

Comments

Eric Mackay Dec. 10, 2024, 9:18 p.m. UTC | #1
I tested your patch series, and I can confirm it fixes our bug repro case (not involving the guest kernel).
Thank you

On Tue, 10 Dec 2024 17:39:42 +0100
Igor Mammedov <imammedo@redhat.com> wrote:

> CPU hotremove event is not delivered to OSPM if the CPU
> has been hotplugged before OS has booted.
> For details see [2/3].
> 
> Igor Mammedov (3):
>   tests: acpi: whitelist expected blobs
>   cpuhp: make sure that remove events are handled within the same SCI
>   tests: acpi: update expected blobs
> 
>  hw/acpi/cpu.c                                 |  43 ++++++++++++++----
>  tests/data/acpi/x86/pc/DSDT                   | Bin 8526 -> 8593 bytes
>  tests/data/acpi/x86/pc/DSDT.acpierst          | Bin 8437 -> 8504 bytes
>  tests/data/acpi/x86/pc/DSDT.acpihmat          | Bin 9851 -> 9918 bytes
>  tests/data/acpi/x86/pc/DSDT.bridge            | Bin 15397 -> 15464 bytes
>  tests/data/acpi/x86/pc/DSDT.cphp              | Bin 8990 -> 9057 bytes
>  tests/data/acpi/x86/pc/DSDT.dimmpxm           | Bin 10180 -> 10247 bytes
>  tests/data/acpi/x86/pc/DSDT.hpbridge          | Bin 8477 -> 8544 bytes
>  tests/data/acpi/x86/pc/DSDT.hpbrroot          | Bin 5033 -> 5100 bytes
>  tests/data/acpi/x86/pc/DSDT.ipmikcs           | Bin 8598 -> 8665 bytes
>  tests/data/acpi/x86/pc/DSDT.memhp             | Bin 9885 -> 9952 bytes
>  tests/data/acpi/x86/pc/DSDT.nohpet            | Bin 8384 -> 8451 bytes
>  tests/data/acpi/x86/pc/DSDT.numamem           | Bin 8532 -> 8599 bytes
>  tests/data/acpi/x86/pc/DSDT.roothp            | Bin 12319 -> 12386 bytes
>  tests/data/acpi/x86/q35/DSDT                  | Bin 8355 -> 8422 bytes
>  tests/data/acpi/x86/q35/DSDT.acpierst         | Bin 8372 -> 8439 bytes
>  tests/data/acpi/x86/q35/DSDT.acpihmat         | Bin 9680 -> 9747 bytes
>  .../data/acpi/x86/q35/DSDT.acpihmat-generic-x | Bin 12565 -> 12632 bytes
>  .../acpi/x86/q35/DSDT.acpihmat-noinitiator    | Bin 8634 -> 8701 bytes
>  tests/data/acpi/x86/q35/DSDT.applesmc         | Bin 8401 -> 8468 bytes
>  tests/data/acpi/x86/q35/DSDT.bridge           | Bin 11968 -> 12035 bytes
>  tests/data/acpi/x86/q35/DSDT.core-count       | Bin 12913 -> 12980 bytes
>  tests/data/acpi/x86/q35/DSDT.core-count2      | Bin 33770 -> 33837 bytes
>  tests/data/acpi/x86/q35/DSDT.cphp             | Bin 8819 -> 8886 bytes
>  tests/data/acpi/x86/q35/DSDT.cxl              | Bin 13146 -> 13213 bytes
>  tests/data/acpi/x86/q35/DSDT.dimmpxm          | Bin 10009 -> 10076 bytes
>  tests/data/acpi/x86/q35/DSDT.ipmibt           | Bin 8430 -> 8497 bytes
>  tests/data/acpi/x86/q35/DSDT.ipmismbus        | Bin 8443 -> 8510 bytes
>  tests/data/acpi/x86/q35/DSDT.ivrs             | Bin 8372 -> 8439 bytes
>  tests/data/acpi/x86/q35/DSDT.memhp            | Bin 9714 -> 9781 bytes
>  tests/data/acpi/x86/q35/DSDT.mmio64           | Bin 9485 -> 9552 bytes
>  tests/data/acpi/x86/q35/DSDT.multi-bridge     | Bin 13208 -> 13275 bytes
>  tests/data/acpi/x86/q35/DSDT.noacpihp         | Bin 8235 -> 8302 bytes
>  tests/data/acpi/x86/q35/DSDT.nohpet           | Bin 8213 -> 8280 bytes
>  tests/data/acpi/x86/q35/DSDT.numamem          | Bin 8361 -> 8428 bytes
>  tests/data/acpi/x86/q35/DSDT.pvpanic-isa      | Bin 8456 -> 8523 bytes
>  tests/data/acpi/x86/q35/DSDT.thread-count     | Bin 12913 -> 12980 bytes
>  tests/data/acpi/x86/q35/DSDT.thread-count2    | Bin 33770 -> 33837 bytes
>  tests/data/acpi/x86/q35/DSDT.tis.tpm12        | Bin 8961 -> 9028 bytes
>  tests/data/acpi/x86/q35/DSDT.tis.tpm2         | Bin 8987 -> 9054 bytes
>  tests/data/acpi/x86/q35/DSDT.type4-count      | Bin 18589 -> 18656 bytes
>  tests/data/acpi/x86/q35/DSDT.viot             | Bin 14612 -> 14679 bytes
>  tests/data/acpi/x86/q35/DSDT.xapic            | Bin 35718 -> 35785 bytes
>  43 files changed, 34 insertions(+), 9 deletions(-)
> 
> -- 
> 2.43.0
Eric Mackay Dec. 18, 2024, 5:10 p.m. UTC | #2
Tested-by: Eric Mackay <eric.mackay@oracle.com>