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

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