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

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