Accepting request 822503 from home:lyan:branches:Virtualization

Don't disable cap_cfpc on POWER8 by default

OBS-URL: https://build.opensuse.org/request/show/822503
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=554
This commit is contained in:
Bruce Rogers 2020-07-23 19:42:44 +00:00 committed by Git OBS Bridge
parent 1f88dea66c
commit 07f03d3dc9
4 changed files with 47 additions and 2 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a3100e9fea5e800afc25cff3f405b4645ba98f79cf6ff36e27f120a33c1e8ffc
size 58452
oid sha256:98bbc84339311458aaa7725097230b2d8b9ab7076f44d830bb2d31a4b277a63a
size 60868

View File

@ -0,0 +1,38 @@
From: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Date: Tue, 12 Jun 2018 15:16:30 +1000
Subject: ppc/spapr_caps: Don't disable cap_cfpc on POWER8 by default
Git-commit: b2540203bdf4a390c3489146eae82ce237303653
References: bsc#1174374
In default_caps_with_cpu() we set spapr_cap_cfpc to broken for POWER8
processors and before.
Since we no longer require private l1d cache on POWER8 for this cap to
be set to workaround change this to default to broken for POWER7
processors and before.
Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Liang Yan <lyan@suse.com>
---
hw/ppc/spapr_caps.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/hw/ppc/spapr_caps.c b/hw/ppc/spapr_caps.c
index eb54f9422722f8be922c275c4217..1134f7a1c7cd51be7d0111c6bf85 100644
--- a/hw/ppc/spapr_caps.c
+++ b/hw/ppc/spapr_caps.c
@@ -643,11 +643,6 @@ static SpaprCapabilities default_caps_with_cpu(SpaprMachineState *spapr,
caps = smc->default_caps;
- if (!ppc_type_check_compat(cputype, CPU_POWERPC_LOGICAL_3_00,
- 0, spapr->max_compat_pvr)) {
- caps.caps[SPAPR_CAP_LARGE_DECREMENTER] = SPAPR_CAP_OFF;
- }
-
if (!ppc_type_check_compat(cputype, CPU_POWERPC_LOGICAL_2_07,
0, spapr->max_compat_pvr)) {
caps.caps[SPAPR_CAP_HTM] = SPAPR_CAP_OFF;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jul 23 19:26:05 UTC 2020 - Liang Yan <lyan@suse.com>
- Don't disable cap_cfpc on POWER8 by default (bsc#1174374)
-------------------------------------------------------------------
Tue Jul 21 15:58:10 UTC 2020 - Bruce Rogers <brogers@suse.com>

View File

@ -196,6 +196,7 @@ Patch00065: configure-remove-pkgversion-from-CONFIG_.patch
Patch00066: gcc10-maybe-uninitialized.patch
Patch00067: docs-add-SUSE-support-statements-to-html.patch
Patch00068: docs-fix-trace-docs-build-with-sphinx-3..patch
Patch00069: ppc-spapr_caps-Don-t-disable-cap_cfpc-on.patch
# Patches applied in roms/seabios/:
Patch01000: seabios-use-python2-explicitly-as-needed.patch
Patch01001: seabios-switch-to-python3-as-needed.patch
@ -976,6 +977,7 @@ This package provides a service file for starting and stopping KSM.
%patch00067 -p1
%endif
%patch00068 -p1
%patch00069 -p1
%patch01000 -p1
%patch01001 -p1
%patch01002 -p1