Blame SOURCES/kvm-ppc-spapr_caps-Don-t-disable-cap_cfpc-on-POWER8-by-d.patch

357786
From 003ad494e12c03291a61039302eb766372929130 Mon Sep 17 00:00:00 2001
357786
From: Suraj Jitindar Singh <sursingh@redhat.com>
357786
Date: Thu, 21 Jun 2018 06:56:49 +0200
357786
Subject: [PATCH 54/54] ppc/spapr_caps: Don't disable cap_cfpc on POWER8 by
357786
 default
357786
357786
RH-Author: Suraj Jitindar Singh <sursingh@redhat.com>
357786
Message-id: <1529564209-30369-4-git-send-email-sursingh@redhat.com>
357786
Patchwork-id: 80929
357786
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 3/3] ppc/spapr_caps: Don't disable cap_cfpc on POWER8 by default
357786
Bugzilla: 1560847
357786
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
357786
RH-Acked-by: David Gibson <dgibson@redhat.com>
357786
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
357786
357786
From: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
357786
357786
In default_caps_with_cpu() we set spapr_cap_cfpc to broken for POWER8
357786
processors and before.
357786
357786
Since we no longer require private l1d cache on POWER8 for this cap to
357786
be set to workaround change this to default to broken for POWER7
357786
processors and before.
357786
357786
Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
357786
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
357786
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
357786
(cherry picked from commit b2540203bdf4a390c3489146eae82ce237303653)
357786
357786
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1560847
357786
357786
Signed-off-by: Suraj Jitindar Singh <sursingh@redhat.com>
357786
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
357786
---
357786
 hw/ppc/spapr_caps.c | 6 +-----
357786
 1 file changed, 1 insertion(+), 5 deletions(-)
357786
357786
diff --git a/hw/ppc/spapr_caps.c b/hw/ppc/spapr_caps.c
357786
index 531e145..00e43a9 100644
357786
--- a/hw/ppc/spapr_caps.c
357786
+++ b/hw/ppc/spapr_caps.c
357786
@@ -335,14 +335,10 @@ static sPAPRCapabilities default_caps_with_cpu(sPAPRMachineState *spapr,
357786
 
357786
     caps = smc->default_caps;
357786
 
357786
-    if (!ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_00,
357786
-                          0, spapr->max_compat_pvr)) {
357786
-        caps.caps[SPAPR_CAP_CFPC] = SPAPR_CAP_BROKEN;
357786
-    }
357786
-
357786
     if (!ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_2_07,
357786
                           0, spapr->max_compat_pvr)) {
357786
         caps.caps[SPAPR_CAP_HTM] = SPAPR_CAP_OFF;
357786
+        caps.caps[SPAPR_CAP_CFPC] = SPAPR_CAP_BROKEN;
357786
     }
357786
 
357786
     if (!ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_2_06_PLUS,
357786
-- 
357786
1.8.3.1
357786