From nobody Mon May 6 05:44:11 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1559209581; cv=none; d=zoho.com; s=zohoarc; b=keuCr7Ly0Bjg19Lbd9ZUtcNhuUxBiV6ZCyRpm4D9Yn/H3Vgkhn3AIV3gqZvQTo0wHWSL0o9l6Hq+rNUbXXTz6MKuVRGAP8yiFUyFf7BFFgSozEdKF4VjBOb1cLbvuEHsw3dNxOpK9XIqCeOEKLzrXoPwpCfHlc3rPgdgNyMjqAA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559209581; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=5lr378Ecia7KDruXxhuXIfuTFELPaO6mXve8HDVDcJw=; b=Jx79vr79V8slRHp0tiHCUiTwx+dNAhvJDQ5nO1oE6JAJF/jH0kGe5Oxw9IFNKl3uM4zepigrAtSwfGXO7DOVadmz74aU1MGerrqjOK/vr6iMSQifn8HWi3jii8xxRwudZ+RMPAkkd2zp5a987MbegIRqwZnpblRl51+WF9yOYWc= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1559209581916108.30194349482599; Thu, 30 May 2019 02:46:21 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 65A8981E04; Thu, 30 May 2019 09:46:13 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2AAAE7D536; Thu, 30 May 2019 09:46:05 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 4078C1806B11; Thu, 30 May 2019 09:45:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4U9jpV8029274 for ; Thu, 30 May 2019 05:45:51 -0400 Received: by smtp.corp.redhat.com (Postfix) id C54413AC8; Thu, 30 May 2019 09:45:51 +0000 (UTC) Received: from kinshicho.brq.redhat.com (unknown [10.43.2.73]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4FB4E5D704 for ; Thu, 30 May 2019 09:45:51 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Thu, 30 May 2019 11:45:45 +0200 Message-Id: <20190530094546.14846-2-abologna@redhat.com> In-Reply-To: <20190530094546.14846-1-abologna@redhat.com> References: <20190530094546.14846-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/2] tests: Tweak x86 sysinfo test case X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 30 May 2019 09:46:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" We have a single mock dmidecode script right now, but we're going to add another one soon, so we need to make sure its name contains the test case name as a prefix, just like we already do with all data files. Signed-off-by: Andrea Bolognani --- tests/sysinfodata/{dmidecode.sh =3D> x86dmidecode.sh} | 0 tests/sysinfotest.c | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename tests/sysinfodata/{dmidecode.sh =3D> x86dmidecode.sh} (100%) diff --git a/tests/sysinfodata/dmidecode.sh b/tests/sysinfodata/x86dmidecod= e.sh similarity index 100% rename from tests/sysinfodata/dmidecode.sh rename to tests/sysinfodata/x86dmidecode.sh diff --git a/tests/sysinfotest.c b/tests/sysinfotest.c index 7fa9a2dfd6..ef8ed1e31e 100644 --- a/tests/sysinfotest.c +++ b/tests/sysinfotest.c @@ -133,7 +133,7 @@ mymain(void) TEST("s390", virSysinfoReadS390); TEST("s390-freq", virSysinfoReadS390); TEST("ppc", virSysinfoReadPPC); - TEST_FULL("x86", virSysinfoReadX86, "/sysinfodata/dmidecode.sh"); + TEST_FULL("x86", virSysinfoReadX86, "/sysinfodata/x86dmidecode.sh"); TEST("arm", virSysinfoReadARM); TEST("arm-rpi2", virSysinfoReadARM); TEST("aarch64", virSysinfoReadARM); --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon May 6 05:44:11 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1559209602; cv=none; d=zoho.com; s=zohoarc; b=gpUz1lvRIfxTf/Z9N6zfOlWLP+uftGfZcW9+VlWgsFX2gTzx3+luCUHraGihVdpg+QYb/Sn91ecP0MhgoGo0QtptyQRoAeUVmIADvkBfbawy+ELfkSPIl/LwXjGfdgmQL/1E+F7anUyWjNr+SlCAcjFUjcHCSA7JyKlULTFc82k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559209602; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=jXA7d7AaT5AMjZn5u9v4vPZGEwy/EU0KemD7QSeg6Rg=; b=EBYTrOURL5jMt/+uyo9nxawM4uAd08gZ3uOOTx0TlRwgb2ftsHUNgEjXopo0O1U3om8GOA+if5ohtACVLBWrfZiY5LMy9TZjhEmjJcevP8JqrNR06W7XDtrF8Sh65XK3khNwVvMoY1cdK/R64m/r0ya1O7MwBnU/GDof/qM1Sns= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1559209602457623.764829693799; Thu, 30 May 2019 02:46:42 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 06AE2B2DDE; Thu, 30 May 2019 09:46:35 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D542879451; Thu, 30 May 2019 09:46:34 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 91A483D87; Thu, 30 May 2019 09:46:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4U9jqNX029282 for ; Thu, 30 May 2019 05:45:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id DFB105D704; Thu, 30 May 2019 09:45:52 +0000 (UTC) Received: from kinshicho.brq.redhat.com (unknown [10.43.2.73]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1E79A3AC8 for ; Thu, 30 May 2019 09:45:51 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Thu, 30 May 2019 11:45:46 +0200 Message-Id: <20190530094546.14846-3-abologna@redhat.com> In-Reply-To: <20190530094546.14846-1-abologna@redhat.com> References: <20190530094546.14846-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 2/2] tests: Add aarch64-gigabyte sysinfo test case X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 30 May 2019 09:46:40 +0000 (UTC) Content-Type: text/plain; charset="utf-8" This test case uses (anonimized) data pulled from a GIGABYTE R120-T34 server. Signed-off-by: Andrea Bolognani --- .../sysinfodata/aarch64-gigabytecpuinfo.data | 288 ++++++++ .../sysinfodata/aarch64-gigabytedmidecode.sh | 3 + .../sysinfodata/aarch64-gigabytesysinfo.data | 619 ++++++++++++++++++ .../aarch64-gigabytesysinfo.expect | 1 + tests/sysinfotest.c | 2 + 5 files changed, 913 insertions(+) create mode 100644 tests/sysinfodata/aarch64-gigabytecpuinfo.data create mode 100755 tests/sysinfodata/aarch64-gigabytedmidecode.sh create mode 100644 tests/sysinfodata/aarch64-gigabytesysinfo.data create mode 100644 tests/sysinfodata/aarch64-gigabytesysinfo.expect diff --git a/tests/sysinfodata/aarch64-gigabytecpuinfo.data b/tests/sysinfo= data/aarch64-gigabytecpuinfo.data new file mode 100644 index 0000000000..77470c5fa4 --- /dev/null +++ b/tests/sysinfodata/aarch64-gigabytecpuinfo.data @@ -0,0 +1,288 @@ +processor : 0 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 1 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 2 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 3 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 4 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 5 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 6 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 7 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 8 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 9 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 10 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 11 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 12 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 13 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 14 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 15 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 16 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 17 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 18 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 19 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 20 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 21 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 22 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 23 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 24 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 25 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 26 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 27 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 28 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 29 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 30 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + +processor : 31 +BogoMIPS : 200.00 +Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid +CPU implementer : 0x43 +CPU architecture: 8 +CPU variant : 0x1 +CPU part : 0x0a1 +CPU revision : 1 + diff --git a/tests/sysinfodata/aarch64-gigabytedmidecode.sh b/tests/sysinfo= data/aarch64-gigabytedmidecode.sh new file mode 100755 index 0000000000..202918103c --- /dev/null +++ b/tests/sysinfodata/aarch64-gigabytedmidecode.sh @@ -0,0 +1,3 @@ +#!/bin/sh +DATAFILE=3D`dirname $0`/aarch64-gigabytesysinfo.data +cat $DATAFILE diff --git a/tests/sysinfodata/aarch64-gigabytesysinfo.data b/tests/sysinfo= data/aarch64-gigabytesysinfo.data new file mode 100644 index 0000000000..0939b9a54a --- /dev/null +++ b/tests/sysinfodata/aarch64-gigabytesysinfo.data @@ -0,0 +1,619 @@ +# dmidecode 3.2 +Getting SMBIOS data from sysfs. +SMBIOS 3.0.0 present. +Table at 0xFFFA0000. + +Handle 0x0000, DMI type 0, 24 bytes +BIOS Information + Vendor: GIGABYTE + Version: T49 + Release Date: 02/02/2018 + Address: 0xF0000 + Runtime Size: 64 kB + ROM Size: 9216 kB + Characteristics: + PCI is supported + BIOS is upgradeable + BIOS shadowing is allowed + Boot from CD is supported + Selectable boot is supported + BIOS ROM is socketed + EDD is supported + 5.25"/1.2 MB floppy services are supported (int 13h) + 3.5"/720 kB floppy services are supported (int 13h) + 3.5"/2.88 MB floppy services are supported (int 13h) + Print screen service is supported (int 5h) + Serial services are supported (int 14h) + Printer services are supported (int 17h) + ACPI is supported + USB legacy is supported + BIOS boot specification is supported + Targeted content distribution is supported + UEFI is supported + BIOS Revision: 5.11 + +Handle 0x0001, DMI type 1, 27 bytes +System Information + Manufacturer: GIGABYTE + Product Name: R120-T34-00 + Version: 0100 + Serial Number: 01234567890ABC + UUID: 01234567-89AB-CDEF-0123-4567890ABCDE + Wake-up Type: Power Switch + SKU Number: 01234567890123456789AB + Family: Server + +Handle 0x0002, DMI type 2, 15 bytes +Base Board Information + Manufacturer: GIGABYTE + Product Name: MT30-GS2-00 + Version: 01234567 + Serial Number: 01234567890 + Asset Tag: 01234567890123456789AB + Features: + Board is a hosting board + Board is replaceable + Location In Chassis: Default string + Chassis Handle: 0x0003 + Type: Motherboard + Contained Object Handles: 0 + +Handle 0x0003, DMI type 3, 22 bytes +Chassis Information + Manufacturer: GIGABYTE + Type: Main Server Chassis + Lock: Not Present + Version: 01234567 + Serial Number: 01234567890123456789AB + Asset Tag: 01234567890123456789AB + Boot-up State: Safe + Power Supply State: Safe + Thermal State: Safe + Security Status: None + OEM Information: 0x00000000 + Height: Unspecified + Number Of Power Cords: 1 + Contained Elements: 0 + SKU Number: SYS_CHASSIS_SKU_NUMBER_1 + +Handle 0x0004, DMI type 10, 6 bytes +On Board Device Information + Type: Unknown + Status: Enabled + Description: Device 1 + +Handle 0x0005, DMI type 13, 22 bytes +BIOS Language Information + Language Description Format: Long + Installable Languages: 1 + en|US|iso8859-1 + Currently Installed Language: en|US|iso8859-1 + +Handle 0x0006, DMI type 31, 28 bytes +Boot Integrity Services Entry Point + Checksum: Invalid + 16-bit Entry Point Address: FFFF:FFFF + 32-bit Entry Point Address: 0xFFFFFFFF + +Handle 0x0007, DMI type 39, 22 bytes +System Power Supply + Power Unit Group: 1 + Location: Default string + Name: DPS-400AB-12 A + Manufacturer: DELTA + Serial Number: Default string + Asset Tag: Default string + Model Part Number: DPS-400AB-12 A + Revision: Default string + Max Power Capacity: 0 W + Status: Present, OK + Type: Switching + Input Voltage Range Switching: Wide Range + Plugged: Yes + Hot Replaceable: Yes + +Handle 0x0008, DMI type 39, 22 bytes +System Power Supply + Power Unit Group: 1 + Location: Default string + Name: Default string + Manufacturer: Default string + Serial Number: Default string + Asset Tag: Default string + Model Part Number: Default string + Revision: Default string + Max Power Capacity: 0 W + Status: Present, OK + Type: Switching + Input Voltage Range Switching: Auto-switch + Plugged: No + Hot Replaceable: No + +Handle 0x0009, DMI type 41, 11 bytes +Onboard Device + Reference Designation: Device 1 + Type: Unknown + Status: Enabled + Type Instance: 1 + Bus Address: 0000:00:00.0 + +Handle 0x0010, DMI type 41, 11 bytes +Onboard Device + Reference Designation: Device 2 + Type: Unknown + Status: Enabled + Type Instance: 1 + Bus Address: 0000:00:00.0 + +Handle 0x0011, DMI type 41, 11 bytes +Onboard Device + Reference Designation: Device 3 + Type: Unknown + Status: Enabled + Type Instance: 1 + Bus Address: 0000:00:00.0 + +Handle 0x0012, DMI type 38, 18 bytes +IPMI Device Information + Interface Type: SSIF (SMBus System Interface) + Specification Version: 2.0 + I2C Slave Address: 0x10 + NV Storage Device: Not Present + Base Address: 0x10 (SMBus) + +Handle 0x0020, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: Not Specified + Internal Connector Type: None + External Reference Designator: DB-9 Male + External Connector Type: DB-9 male + Port Type: Serial Port 16550A Compatible + +Handle 0x0021, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: Not Specified + Internal Connector Type: None + External Reference Designator: VGA Port + External Connector Type: DB-15 female + Port Type: Video Port + +Handle 0x0022, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: Not Specified + Internal Connector Type: None + External Reference Designator: BMC Ethernet + External Connector Type: RJ-45 + Port Type: Network Port + +Handle 0x0023, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: Not Specified + Internal Connector Type: None + External Reference Designator: USB0 + External Connector Type: Access Bus (USB) + Port Type: USB + +Handle 0x0024, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: Not Specified + Internal Connector Type: None + External Reference Designator: USB1 + External Connector Type: Access Bus (USB) + Port Type: USB + +Handle 0x0025, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: Not Specified + Internal Connector Type: None + External Reference Designator: USB2 + External Connector Type: Access Bus (USB) + Port Type: USB + +Handle 0x0026, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: Not Specified + Internal Connector Type: None + External Reference Designator: USB3 + External Connector Type: Access Bus (USB) + Port Type: USB + +Handle 0x0027, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: Not Specified + Internal Connector Type: None + External Reference Designator: 10Gbps Eth + External Connector Type: Other + Port Type: Network Port + +Handle 0x0028, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: Not Specified + Internal Connector Type: None + External Reference Designator: 10Gbps Eth + External Connector Type: Other + Port Type: Network Port + +Handle 0x0029, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: Not Specified + Internal Connector Type: None + External Reference Designator: 40Gbps Eth + External Connector Type: Other + Port Type: Network Port + +Handle 0x002A, DMI type 9, 17 bytes +System Slot Information + Designation: PCIe 3.0 x8 + Type: x8 PCI Express 3 x8 + Current Usage: Unknown + Length: Other + ID: 0 + Characteristics: Unknown + Bus Address: 0000:00:00.0 + +Handle 0x002B, DMI type 9, 17 bytes +System Slot Information + Designation: PCIe 3.0 x8 + Type: x8 PCI Express 3 x8 + Current Usage: Unknown + Length: Other + ID: 0 + Characteristics: Unknown + Bus Address: 0000:00:00.0 + +Handle 0x002C, DMI type 9, 17 bytes +System Slot Information + Designation: PCIe 3.0 x4 + Type: x4 PCI Express 3 x4 + Current Usage: Unknown + Length: Other + ID: 0 + Characteristics: Unknown + Bus Address: 0000:00:00.0 + +Handle 0x002D, DMI type 23, 13 bytes +System Reset + Status: Enabled + Watchdog Timer: Present + Boot Option: Operating System + Boot Option On Limit: Do Not Reboot + Reset Count: Unknown + Reset Limit: Unknown + Timer Interval: Unknown + Timeout: Unknown + +Handle 0x002E, DMI type 4, 48 bytes +Processor Information + Socket Designation: Socket + Type: Central Processor + Family: ARM + Manufacturer: CN8880-1800BG2601-CP-Y-G + ID: 11 0A 1F 43 01 00 00 00 + Signature: Implementor 0x43, Variant 0x1, Architecture 15, Part 0x0a1, Re= vision 1 + Version: 2.1 + Voltage: 1.2 V + External Clock: 156 MHz + Max Speed: 1800 MHz + Current Speed: 1800 MHz + Status: Populated, Enabled + Upgrade: Other + L1 Cache Handle: 0x002F + L2 Cache Handle: 0x0031 + L3 Cache Handle: 0x0000 + Serial Number: CPU Serial# + Asset Tag: CPU Asset Tag# + Part Number: CN88xx + Core Count: 32 + Core Enabled: 32 + Thread Count: 32 + Characteristics: + 64-bit capable + Multi-Core + Execute Protection + Enhanced Virtualization + Power/Performance Control + +Handle 0x002F, DMI type 7, 19 bytes +Cache Information + Socket Designation: Internal L1D Cache + Configuration: Enabled, Not Socketed, Level 1 + Operational Mode: Write Back + Location: Internal + Installed Size: 1536 kB + Maximum Size: 1536 kB + Supported SRAM Types: + Other + Installed SRAM Type: Other + Speed: Unknown + Error Correction Type: Single-bit ECC + System Type: Data + Associativity: 32-way Set-associative + +Handle 0x0030, DMI type 7, 19 bytes +Cache Information + Socket Designation: Internal L1I Cache + Configuration: Enabled, Not Socketed, Level 1 + Operational Mode: Write Back + Location: Internal + Installed Size: 3744 kB + Maximum Size: 3744 kB + Supported SRAM Types: + Other + Installed SRAM Type: Other + Speed: Unknown + Error Correction Type: Single-bit ECC + System Type: Instruction + Associativity: Other + +Handle 0x0031, DMI type 7, 19 bytes +Cache Information + Socket Designation: Internal L2 Cache + Configuration: Enabled, Not Socketed, Level 2 + Operational Mode: Write Back + Location: Internal + Installed Size: 16 MB + Maximum Size: 16 MB + Supported SRAM Types: + Other + Installed SRAM Type: Other + Speed: Unknown + Error Correction Type: Single-bit ECC + System Type: Unified + Associativity: 16-way Set-associative + +Handle 0x0032, DMI type 16, 23 bytes +Physical Memory Array + Location: System Board Or Motherboard + Use: System Memory + Error Correction Type: None + Maximum Capacity: 1 TB + Error Information Handle: Not Provided + Number Of Devices: 8 + +Handle 0x0033, DMI type 19, 31 bytes +Memory Array Mapped Address + Starting Address: 0x0000000000000000k + Ending Address: 0x0000000FFFFFFFFFk + Range Size: 64 GB + Physical Array Handle: 0x0032 + Partition Width: 1 + +Handle 0x0034, DMI type 17, 40 bytes +Memory Device + Array Handle: 0x0032 + Error Information Handle: Not Provided + Total Width: 72 bits + Data Width: 64 bits + Size: 16384 MB + Form Factor: DIMM + Set: Unknown + Locator: DIMM_P0_A0 + Bank Locator: P0_Node0_Channel0_Dimm0 + Type: DDR4 + Type Detail: Registered (Buffered) + Speed: 2400 MT/s + Manufacturer: Samsung + Serial Number: 01234567 + Asset Tag: DIMM_P0_A0_AssetTag + Part Number: M393A2K40BB1-CRC =20 + Rank: 1 + Configured Memory Speed: 2100 MT/s + Minimum Voltage: Unknown + Maximum Voltage: Unknown + Configured Voltage: Unknown + +Handle 0x0035, DMI type 20, 35 bytes +Memory Device Mapped Address + Starting Address: 0x0000000000000000k + Ending Address: 0x00000003FFFFFFFFk + Range Size: 16 GB + Physical Device Handle: 0x0034 + Memory Array Mapped Address Handle: 0x0033 + Partition Row Position: Unknown + Interleave Position: Unknown + Interleaved Data Depth: Unknown + +Handle 0x0036, DMI type 17, 40 bytes +Memory Device + Array Handle: 0x0032 + Error Information Handle: Not Provided + Total Width: 72 bits + Data Width: 64 bits + Size: No Module Installed + Form Factor: Unknown + Set: Unknown + Locator: DIMM_P0_A1 + Bank Locator: P0_Node0_Channel0_Dimm1 + Type: DDR4 + Type Detail: Unknown + Speed: Unknown + Manufacturer: NO DIMM + Serial Number: NO DIMM + Asset Tag: NO DIMM + Part Number: NO DIMM + Rank: Unknown + Configured Memory Speed: Unknown + Minimum Voltage: Unknown + Maximum Voltage: Unknown + Configured Voltage: Unknown + +Handle 0x0037, DMI type 17, 40 bytes +Memory Device + Array Handle: 0x0032 + Error Information Handle: Not Provided + Total Width: 72 bits + Data Width: 64 bits + Size: 16384 MB + Form Factor: DIMM + Set: Unknown + Locator: DIMM_P0_B0 + Bank Locator: P0_Node0_Channel1_Dimm0 + Type: DDR4 + Type Detail: Registered (Buffered) + Speed: 2400 MT/s + Manufacturer: Samsung + Serial Number: 3405E86E + Asset Tag: DIMM_P0_B0_AssetTag + Part Number: M393A2K40BB1-CRC =20 + Rank: 1 + Configured Memory Speed: 2100 MT/s + Minimum Voltage: Unknown + Maximum Voltage: Unknown + Configured Voltage: Unknown + +Handle 0x0038, DMI type 20, 35 bytes +Memory Device Mapped Address + Starting Address: 0x0000000400000000k + Ending Address: 0x00000007FFFFFFFFk + Range Size: 16 GB + Physical Device Handle: 0x0037 + Memory Array Mapped Address Handle: 0x0033 + Partition Row Position: Unknown + Interleave Position: Unknown + Interleaved Data Depth: Unknown + +Handle 0x0039, DMI type 17, 40 bytes +Memory Device + Array Handle: 0x0032 + Error Information Handle: Not Provided + Total Width: 72 bits + Data Width: 64 bits + Size: No Module Installed + Form Factor: Unknown + Set: Unknown + Locator: DIMM_P0_B1 + Bank Locator: P0_Node0_Channel1_Dimm1 + Type: DDR4 + Type Detail: Unknown + Speed: Unknown + Manufacturer: NO DIMM + Serial Number: NO DIMM + Asset Tag: NO DIMM + Part Number: NO DIMM + Rank: Unknown + Configured Memory Speed: Unknown + Minimum Voltage: Unknown + Maximum Voltage: Unknown + Configured Voltage: Unknown + +Handle 0x003A, DMI type 17, 40 bytes +Memory Device + Array Handle: 0x0032 + Error Information Handle: Not Provided + Total Width: 72 bits + Data Width: 64 bits + Size: 16384 MB + Form Factor: DIMM + Set: Unknown + Locator: DIMM_P0_C0 + Bank Locator: P0_Node0_Channel2_Dimm0 + Type: DDR4 + Type Detail: Registered (Buffered) + Speed: 2400 MT/s + Manufacturer: Samsung + Serial Number: 01234567 + Asset Tag: DIMM_P0_C0_AssetTag + Part Number: M393A2K40BB1-CRC =20 + Rank: 1 + Configured Memory Speed: 2100 MT/s + Minimum Voltage: Unknown + Maximum Voltage: Unknown + Configured Voltage: Unknown + +Handle 0x003B, DMI type 20, 35 bytes +Memory Device Mapped Address + Starting Address: 0x0000000800000000k + Ending Address: 0x0000000BFFFFFFFFk + Range Size: 16 GB + Physical Device Handle: 0x003A + Memory Array Mapped Address Handle: 0x0033 + Partition Row Position: Unknown + Interleave Position: Unknown + Interleaved Data Depth: Unknown + +Handle 0x003C, DMI type 17, 40 bytes +Memory Device + Array Handle: 0x0032 + Error Information Handle: Not Provided + Total Width: 72 bits + Data Width: 64 bits + Size: No Module Installed + Form Factor: Unknown + Set: Unknown + Locator: DIMM_P0_C1 + Bank Locator: P0_Node0_Channel2_Dimm1 + Type: DDR4 + Type Detail: Unknown + Speed: Unknown + Manufacturer: NO DIMM + Serial Number: NO DIMM + Asset Tag: NO DIMM + Part Number: NO DIMM + Rank: Unknown + Configured Memory Speed: Unknown + Minimum Voltage: Unknown + Maximum Voltage: Unknown + Configured Voltage: Unknown + +Handle 0x003D, DMI type 17, 40 bytes +Memory Device + Array Handle: 0x0032 + Error Information Handle: Not Provided + Total Width: 72 bits + Data Width: 64 bits + Size: 16384 MB + Form Factor: DIMM + Set: Unknown + Locator: DIMM_P0_D0 + Bank Locator: P0_Node0_Channel3_Dimm0 + Type: DDR4 + Type Detail: Registered (Buffered) + Speed: 2400 MT/s + Manufacturer: Samsung + Serial Number: 01234567 + Asset Tag: DIMM_P0_D0_AssetTag + Part Number: M393A2K40BB1-CRC =20 + Rank: 1 + Configured Memory Speed: 2100 MT/s + Minimum Voltage: Unknown + Maximum Voltage: Unknown + Configured Voltage: Unknown + +Handle 0x003E, DMI type 20, 35 bytes +Memory Device Mapped Address + Starting Address: 0x0000000C00000000k + Ending Address: 0x0000000FFFFFFFFFk + Range Size: 16 GB + Physical Device Handle: 0x003D + Memory Array Mapped Address Handle: 0x0033 + Partition Row Position: Unknown + Interleave Position: Unknown + Interleaved Data Depth: Unknown + +Handle 0x003F, DMI type 17, 40 bytes +Memory Device + Array Handle: 0x0032 + Error Information Handle: Not Provided + Total Width: 72 bits + Data Width: 64 bits + Size: No Module Installed + Form Factor: Unknown + Set: Unknown + Locator: DIMM_P0_D1 + Bank Locator: P0_Node0_Channel3_Dimm1 + Type: DDR4 + Type Detail: Unknown + Speed: Unknown + Manufacturer: NO DIMM + Serial Number: NO DIMM + Asset Tag: NO DIMM + Part Number: NO DIMM + Rank: Unknown + Configured Memory Speed: Unknown + Minimum Voltage: Unknown + Maximum Voltage: Unknown + Configured Voltage: Unknown + +Handle 0x0043, DMI type 127, 4 bytes +End Of Table + diff --git a/tests/sysinfodata/aarch64-gigabytesysinfo.expect b/tests/sysin= fodata/aarch64-gigabytesysinfo.expect new file mode 100644 index 0000000000..73ea466bc3 --- /dev/null +++ b/tests/sysinfodata/aarch64-gigabytesysinfo.expect @@ -0,0 +1 @@ + diff --git a/tests/sysinfotest.c b/tests/sysinfotest.c index ef8ed1e31e..c7561492e3 100644 --- a/tests/sysinfotest.c +++ b/tests/sysinfotest.c @@ -138,6 +138,8 @@ mymain(void) TEST("arm-rpi2", virSysinfoReadARM); TEST("aarch64", virSysinfoReadARM); TEST("aarch64-moonshot", virSysinfoReadARM); + TEST_FULL("aarch64-gigabyte", virSysinfoReadARM, + "/sysinfodata/aarch64-gigabytedmidecode.sh"); =20 return ret; } --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list