bios-tables-test: Update expected q35/SSDT.dimmpxm file and add BinDir

Signed-off-by: imxcc <xingchaochao@huawei.com>
This commit is contained in:
imxcc 2022-02-17 15:19:13 +08:00 committed by yezengruan
parent 346bfd1ff3
commit 65b515392c
3 changed files with 92 additions and 1 deletions

BIN
BinDir.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,79 @@
From 8940f11a055da0a744d10b53cf999dea7967be25 Mon Sep 17 00:00:00 2001
From: Yan Wang <wangyan122@huawei.com>
Date: Thu, 10 Feb 2022 17:12:35 +0800
Subject: [PATCH] bios-tables-test: Update expected q35/SSDT.dimmpxm file
Run ./tests/data/acpi/rebuild-expected-aml.sh from build directory
to update q35/SSDT.dimmpxm file. Also empty bios-tables-test-allowed-diff.h.
The disassembled differences between actual and expected SSDT.dimmpxm:
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20210604 (64-bit version)
* Copyright (c) 2000 - 2021 Intel Corporation
*
* Disassembling to symbolic ASL+ operators
*
- * Disassembly of tests/data/acpi/q35/SSDT.dimmpxm, Thu Feb 10 15:03:52 2022
+ * Disassembly of /tmp/aml-CK68G1, Thu Feb 10 15:03:52 2022
*
* Original Table Header:
* Signature "SSDT"
* Length 0x000002DE (734)
* Revision 0x01
- * Checksum 0x06
+ * Checksum 0x16
* OEM ID "BOCHS "
* OEM Table ID "NVDIMM "
* OEM Revision 0x00000001 (1)
* Compiler ID "BXPC"
* Compiler Version 0x00000001 (1)
*/
DefinitionBlock ("", "SSDT", 1, "BOCHS ", "NVDIMM ", 0x00000001)
{
Scope (\_SB)
{
Device (NVDR)
{
Name (_HID, "ACPI0012" /* NVDIMM Root Device */) // _HID: Hardware ID
Method (NCAL, 5, Serialized)
{
Local6 = MEMA /* \MEMA */
@@ -187,19 +187,19 @@
{
Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x02))
}
}
Device (NV02)
{
Name (_ADR, 0x03) // _ADR: Address
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x03))
}
}
}
}
- Name (MEMA, 0x07FFF000)
+ Name (MEMA, 0x07FFE000)
}
Signed-off-by: Yan Wang <wangyan122@huawei.com>
---
tests/data/acpi/q35/SSDT.dimmpxm | Bin 734 -> 734 bytes
tests/qtest/bios-tables-test-allowed-diff.h | 1 -
2 files changed, 1 deletion(-)
diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios-tables-test-allowed-diff.h
index 81148a604f..dfb8523c8b 100644
--- a/tests/qtest/bios-tables-test-allowed-diff.h
+++ b/tests/qtest/bios-tables-test-allowed-diff.h
@@ -1,2 +1 @@
/* List of comma-separated changed AML files to ignore */
-"tests/data/acpi/q35/SSDT.dimmpxm",
--
2.27.0

View File

@ -1,6 +1,6 @@
Name: qemu Name: qemu
Version: 6.2.0 Version: 6.2.0
Release: 17 Release: 18
Epoch: 2 Epoch: 2
Summary: QEMU is a generic and open source machine emulator and virtualizer Summary: QEMU is a generic and open source machine emulator and virtualizer
License: GPLv2 and BSD and MIT and CC-BY-SA-4.0 License: GPLv2 and BSD and MIT and CC-BY-SA-4.0
@ -9,6 +9,7 @@ Source0: https://www.qemu.org/download/%{name}-%{version}%{?rcstr}.tar.xz
Source1: 80-kvm.rules Source1: 80-kvm.rules
Source2: 99-qemu-guest-agent.rules Source2: 99-qemu-guest-agent.rules
Source3: bridge.conf Source3: bridge.conf
Source4: BinDir.tar.gz
Patch0001: net-dump.c-Suppress-spurious-compiler-warning.patch Patch0001: net-dump.c-Suppress-spurious-compiler-warning.patch
Patch0002: cpu-parse-feature-to-avoid-failure.patch Patch0002: cpu-parse-feature-to-avoid-failure.patch
@ -171,6 +172,7 @@ Patch0158: bugfix-irq-Avoid-covering-object-refcount-of-qemu_ir.patch
Patch0159: seabios-add-check-to-avoid-dereference-NULL-pointer.patch Patch0159: seabios-add-check-to-avoid-dereference-NULL-pointer.patch
Patch0160: qemu-img-add-qemu-img-direct-create.patch Patch0160: qemu-img-add-qemu-img-direct-create.patch
Patch0161: log-Delete-redudant-qemu_log.patch Patch0161: log-Delete-redudant-qemu_log.patch
Patch0162: bios-tables-test-Update-expected-q35-SSDT.dimmpxm-fi.patch
BuildRequires: flex BuildRequires: flex
BuildRequires: gcc BuildRequires: gcc
@ -311,6 +313,12 @@ buildarch="aarch64-softmmu"
buildldflags="VL_LDFLAGS=-Wl,--build-id" buildldflags="VL_LDFLAGS=-Wl,--build-id"
qemubuilddir="build" qemubuilddir="build"
tar xf %{SOURCE4}
cd BinDir/
\cp -r -a * ../
cd ../
./configure \ ./configure \
--prefix=%{_prefix} \ --prefix=%{_prefix} \
--target-list=${buildarch} \ --target-list=${buildarch} \
@ -612,6 +620,10 @@ getent passwd qemu >/dev/null || \
%endif %endif
%changelog %changelog
* Thu Feb 17 2022 imxcc <xingchaochao@huawei.com>
- bios-tables-test: Update expected q35/SSDT.dimmpxm file
- spec: add BinDir
* Tue Feb 15 2022 Liuxiangdong <liuxiangdong5@huawei.com> * Tue Feb 15 2022 Liuxiangdong <liuxiangdong5@huawei.com>
- feature: disable spice protocol - feature: disable spice protocol