From patchwork Tue Jun 12 05:16:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suraj Jitindar Singh X-Patchwork-Id: 10459315 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7800C60348 for ; Tue, 12 Jun 2018 05:19:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66A872846F for ; Tue, 12 Jun 2018 05:19:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B5ED285E5; Tue, 12 Jun 2018 05:19:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 02E9D2846F for ; Tue, 12 Jun 2018 05:19:02 +0000 (UTC) Received: from localhost ([::1]:52764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSbhu-0001a0-6C for patchwork-qemu-devel@patchwork.kernel.org; Tue, 12 Jun 2018 01:19:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSbg7-0000t5-Q7 for qemu-devel@nongnu.org; Tue, 12 Jun 2018 01:17:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSbg6-0005vy-VF for qemu-devel@nongnu.org; Tue, 12 Jun 2018 01:17:11 -0400 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]:39259) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSbg4-0005o8-H4; Tue, 12 Jun 2018 01:17:08 -0400 Received: by mail-pl0-x241.google.com with SMTP id f1-v6so13678812plt.6; Mon, 11 Jun 2018 22:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kBe5tkMx7sjIww1iXt8D7R+XrfELO8lLckTx2FPOFwA=; b=uW6X8Y4/BqEXGdJLAsKb4mL3m2Ba/C7+/9xebDDcOxVPYNwTHLTPxctbpdfr6AwG9f obDEZ8yabcL/Go59a5Ob8SLpStLoU+c6Oskc/FY3Msi2SMe6Z8xLN6Kw0aCOWOXD/Sp1 D0ZqjtYubQt8BJc/KhOP+/H9g+4eaC6GZ6zv/3yNSeZ6dKqJpfq4A8hKedh+3/68xnHP VhRLeLTwZiEgqUaoSANW7QEg+BGbtuDyxLd+rcaZTG6tFfaZ28wnL9lyYZye1Bt2/Og7 lJEw6YJdXCh8uHuIN8aHGMFOf+LpzbS9+OmgoR1fyiny9zwSUXpCSpmA/Y+si7pqfRND w0ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kBe5tkMx7sjIww1iXt8D7R+XrfELO8lLckTx2FPOFwA=; b=Qj6GzyytxBGiuzEeNUbLKzq/VBlZSpLRh2uwXAE9I5+OYkcdLNyFO7RmcFSTFlNVbB FFglwFOejjsWLA0xOMnfZCrxY3MH6sYTL0nZZj65s+YAgOgKalUEnYmRAv1Z8/Q1EMeS jz3wyvWO1cL5kLsKJuraZFsMIT4XEHLv+Ea5uLQtqBO/qfWVgVBGB3WET4Cb2AREkEiE xNyquKDLWNBgAFtzZfShD40n/F4mEXZBG3Z2UgGVrL3R0e7GiXv7MgdLwFO5q2xqh3tB 2t48+AUGLAaor0nADlD6cBO/mvoBCt6eDsDaJsuM161PEI/5uAgKc7xW4Jx1EyxxKyd9 y/Hg== X-Gm-Message-State: APt69E2zeQlNK9rEdYoMt3BOs/WM3C9cMGCkxHSLLKt/29WJwHXiNoq1 KiaBJmMvNtzArrR9HzIVv3Nm+hCw X-Google-Smtp-Source: ADUXVKJORy2989fNnjS/KrjGsqES8CoM0uqdfmyooZDP9gIT2SHZuiIxiVSKGxsTUxsLEXgM/G63KQ== X-Received: by 2002:a17:902:2924:: with SMTP id g33-v6mr2427307plb.26.1528780627594; Mon, 11 Jun 2018 22:17:07 -0700 (PDT) Received: from surajjs2.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id h78-v6sm58313pfh.141.2018.06.11.22.17.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Jun 2018 22:17:07 -0700 (PDT) From: Suraj Jitindar Singh To: qemu-ppc@nongnu.org Date: Tue, 12 Jun 2018 15:16:30 +1000 Message-Id: <20180612051630.17854-2-sjitindarsingh@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180612051630.17854-1-sjitindarsingh@gmail.com> References: <20180612051630.17854-1-sjitindarsingh@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::241 Subject: [Qemu-devel] [QEMU-PPC] [PATCH V2 2/2] ppc/spapr_caps: Don't disable cap_cfpc on POWER8 by default X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: groug@kaod.org, muriloo@linux.ibm.com, qemu-devel@nongnu.org, sjitindarsingh@gmail.com, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: David Gibson --- V1 -> V2: - No Change --- hw/ppc/spapr_caps.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hw/ppc/spapr_caps.c b/hw/ppc/spapr_caps.c index 531e145114..00e43a9ba7 100644 --- a/hw/ppc/spapr_caps.c +++ b/hw/ppc/spapr_caps.c @@ -335,14 +335,10 @@ static sPAPRCapabilities default_caps_with_cpu(sPAPRMachineState *spapr, caps = smc->default_caps; - if (!ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_00, - 0, spapr->max_compat_pvr)) { - caps.caps[SPAPR_CAP_CFPC] = SPAPR_CAP_BROKEN; - } - if (!ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_2_07, 0, spapr->max_compat_pvr)) { caps.caps[SPAPR_CAP_HTM] = SPAPR_CAP_OFF; + caps.caps[SPAPR_CAP_CFPC] = SPAPR_CAP_BROKEN; } if (!ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_2_06_PLUS,