kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [kvm-unit-tests PULL 0/2] New s390x test for CPU model + CI fix for ARM
@ 2019-08-02  7:23 Thomas Huth
  2019-08-02  7:23 ` [kvm-unit-tests PULL 1/2] kvm-unit-tests: s390: add cpu model checks Thomas Huth
  2019-08-02  7:23 ` [kvm-unit-tests PULL 2/2] Force GCC version to 8.2 for compiling the ARM tests Thomas Huth
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Huth @ 2019-08-02  7:23 UTC (permalink / raw)
  To: kvm, Paolo Bonzini
  Cc: Radim Krčmář,
	David Hildenbrand, Janosch Frank, Christian Borntraeger

 Hi Paolo, hi Radim,

the following changes since commit 2130fd4154ad5cb2841d831c0c8b92d19b642fd5:

  tscdeadline_latency: Check condition first before loop (2019-07-11 14:26:53 +0200)

are available in the Git repository at:

  https://gitlab.com/huth/kvm-unit-tests.git tags/pull-request-2019-08-02

for you to fetch changes up to 0d72123587961d31897868b8bda820759cf1ef9d:

  Force GCC version to 8.2 for compiling the ARM tests (2019-08-02 09:14:15 +0200)

----------------------------------------------------------------
- New test for facility dependencies on s390x
- Work around problem with GCC 9 in the gitlab CI
----------------------------------------------------------------

Christian Borntraeger (1):
      kvm-unit-tests: s390: add cpu model checks

Thomas Huth (1):
      Force GCC version to 8.2 for compiling the ARM tests

 .gitlab-ci.yml      |  2 +-
 s390x/Makefile      |  1 +
 s390x/cpumodel.c    | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 s390x/unittests.cfg |  3 +++
 4 files changed, 65 insertions(+), 1 deletion(-)
 create mode 100644 s390x/cpumodel.c

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [kvm-unit-tests PULL 1/2] kvm-unit-tests: s390: add cpu model checks
  2019-08-02  7:23 [kvm-unit-tests PULL 0/2] New s390x test for CPU model + CI fix for ARM Thomas Huth
@ 2019-08-02  7:23 ` Thomas Huth
  2019-08-02  7:23 ` [kvm-unit-tests PULL 2/2] Force GCC version to 8.2 for compiling the ARM tests Thomas Huth
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2019-08-02  7:23 UTC (permalink / raw)
  To: kvm, Paolo Bonzini
  Cc: Radim Krčmář,
	David Hildenbrand, Janosch Frank, Christian Borntraeger

From: Christian Borntraeger <borntraeger@de.ibm.com>

This adds a check for documented stfle dependencies.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
[thuth: Added missing report_prefix_pop() at the end]
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 s390x/Makefile      |  1 +
 s390x/cpumodel.c    | 60 +++++++++++++++++++++++++++++++++++++++++++++
 s390x/unittests.cfg |  3 +++
 3 files changed, 64 insertions(+)
 create mode 100644 s390x/cpumodel.c

diff --git a/s390x/Makefile b/s390x/Makefile
index 1f21ddb..574a9a2 100644
--- a/s390x/Makefile
+++ b/s390x/Makefile
@@ -11,6 +11,7 @@ tests += $(TEST_DIR)/cmm.elf
 tests += $(TEST_DIR)/vector.elf
 tests += $(TEST_DIR)/gs.elf
 tests += $(TEST_DIR)/iep.elf
+tests += $(TEST_DIR)/cpumodel.elf
 tests_binary = $(patsubst %.elf,%.bin,$(tests))
 
 all: directories test_cases test_cases_binary
diff --git a/s390x/cpumodel.c b/s390x/cpumodel.c
new file mode 100644
index 0000000..3811ee1
--- /dev/null
+++ b/s390x/cpumodel.c
@@ -0,0 +1,60 @@
+/*
+ * Test the known dependencies for facilities
+ *
+ * Copyright 2019 IBM Corp.
+ *
+ * Authors:
+ *    Christian Borntraeger <borntraeger@de.ibm.com>
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Library General Public License version 2.
+ */
+
+#include <asm/facility.h>
+
+static int dep[][2] = {
+	/* from SA22-7832-11 4-98 facility indications */
+	{   4,   3 },
+	{   5,   3 },
+	{   5,   4 },
+	{  19,  18 },
+	{  37,  42 },
+	{  43,  42 },
+	{  73,  49 },
+	{ 134, 129 },
+	{ 135, 129 },
+	{ 139,  25 },
+	{ 139,  28 },
+	{ 146,  76 },
+	/* indirectly documented in description */
+	{  78,   8 },  /* EDAT */
+	/* new dependencies from gen15 */
+	{  61,  45 },
+	{ 148, 129 },
+	{ 148, 135 },
+	{ 152, 129 },
+	{ 152, 134 },
+	{ 155,  76 },
+	{ 155,  77 },
+};
+
+int main(void)
+{
+	int i;
+
+	report_prefix_push("cpumodel");
+
+	report_prefix_push("dependency");
+	for (i = 0; i < ARRAY_SIZE(dep); i++) {
+		if (test_facility(dep[i][0])) {
+			report("%d implies %d", test_facility(dep[i][1]),
+				dep[i][0], dep[i][1]);
+		} else {
+			report_skip("facility %d not present", dep[i][0]);
+		}
+	}
+	report_prefix_pop();
+
+	report_prefix_pop();
+	return report_summary();
+}
diff --git a/s390x/unittests.cfg b/s390x/unittests.cfg
index 546b1f2..db58bad 100644
--- a/s390x/unittests.cfg
+++ b/s390x/unittests.cfg
@@ -61,3 +61,6 @@ file = gs.elf
 
 [iep]
 file = iep.elf
+
+[cpumodel]
+file = cpumodel.elf
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [kvm-unit-tests PULL 2/2] Force GCC version to 8.2 for compiling the ARM tests
  2019-08-02  7:23 [kvm-unit-tests PULL 0/2] New s390x test for CPU model + CI fix for ARM Thomas Huth
  2019-08-02  7:23 ` [kvm-unit-tests PULL 1/2] kvm-unit-tests: s390: add cpu model checks Thomas Huth
@ 2019-08-02  7:23 ` Thomas Huth
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2019-08-02  7:23 UTC (permalink / raw)
  To: kvm, Paolo Bonzini
  Cc: Radim Krčmář,
	David Hildenbrand, Janosch Frank, Christian Borntraeger

The kvm-unit-tests are currently completely failing with GCC 9.1.
So let's use GCC 8.2 again for compiling the ARM tests to fix
the CI pipelines on gitlab.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a9dc16a..fbf3328 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,7 +17,7 @@ build-aarch64:
 
 build-arm:
  script:
- - dnf install -y qemu-system-arm gcc-arm-linux-gnu
+ - dnf install -y qemu-system-arm gcc-arm-linux-gnu-8.2.1-1.fc30.2
  - ./configure --arch=arm --cross-prefix=arm-linux-gnu-
  - make -j2
  - ACCEL=tcg ./run_tests.sh
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-02  7:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-02  7:23 [kvm-unit-tests PULL 0/2] New s390x test for CPU model + CI fix for ARM Thomas Huth
2019-08-02  7:23 ` [kvm-unit-tests PULL 1/2] kvm-unit-tests: s390: add cpu model checks Thomas Huth
2019-08-02  7:23 ` [kvm-unit-tests PULL 2/2] Force GCC version to 8.2 for compiling the ARM tests Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).