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

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