Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2360546imm; Mon, 28 May 2018 06:43:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKEjJbJEXO0m5r6pDGQZSfI2r14jqXe4yKRWxrzgNaoaDJD5dZySy/2oPN/FHCx5n9CngRy X-Received: by 2002:a17:902:7105:: with SMTP id a5-v6mr5495177pll.171.1527514989432; Mon, 28 May 2018 06:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527514989; cv=none; d=google.com; s=arc-20160816; b=Fmc8AbPNzO+fL/m7Bol4kZO1ebpB4qroJYx94ASiSwN5p0/BaA2epdLjlOZZANyPOQ J2r4AK5zZJLq8PcMDJ39WdQ1Ah710E+u8zAL9oUJMxyCEoHvd/T5EbkLVnWDbujIG9bx tI7pdlyTplC38kPIG/KyuhaqyrwWMC8km/22igOp9tjyBqRpRlDkxKwpGkk2SmZnaeRG OJFLIk/XTE58wAqP9+1KBhbjicft8QPQ9qdRP3GA/RiX9AAiWkiLwD+Q3TgEgN9kd7sV ia2dN6S6Ktj0+wvM3xsQXJ1F3tUDYOs8Yvrl4MoLjRYql3nLoqMjb9ub4wghVLNqRlCP axMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=p5SAwKUoxkaAHQlcm2Oq1GX38rbZl2Iv8p6lZ4rLBKc=; b=Jm8dQTQcdgdUgiodXf/o/WnlfPWGP8UYLEemE0qKQhy6m1zcTr8oDqNiszYwVzJdaY aaxRq21KiytR3zZP1+kUBcZMvl45AkDoMxLZpaKTBcVZxpDmJWTAjxU56kL8UxsFK/Ut lzCfFrnfuGsoM2lGPIy+PQGTKvWOgrGRH6WZ8CiW/x3UJG+U4m+X/XyCxoo5iTv50jnL B8I1zX5c47aTfiei/kHuRycur6fq52q3sQ13iHfKFuiDqNkH118b2t+mRiDRL6m/jTb9 fCEFdEQ0mH9Ircli+a6zSloEyMBGWS4X3yZrK8idESSQs/pMX53Jg4s93eIQ2OtQSXxG /inA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Z7UCafg2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1-v6si30135399pld.3.2018.05.28.06.42.54; Mon, 28 May 2018 06:43:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Z7UCafg2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1165385AbeE1NmK (ORCPT + 99 others); Mon, 28 May 2018 09:42:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:34998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937637AbeE1KoK (ORCPT ); Mon, 28 May 2018 06:44:10 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C8BF8204EE; Mon, 28 May 2018 10:44:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527504250; bh=YJqWnzWI5nKbx+Hk99lf+tLGfYGXefK/LIpO8dDR+O8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z7UCafg2Mj56YdFJLhaMbIH7+GYteVCtIn+E8uNCWDu39mvGXYb7MiXPK902Flv4i fqgcJi+qCqAiWK32qxaWZ/TYxn46xNJb2TSrM9uA+xVP/ONE0NgurZYSGG6ashxEF6 wh4Nz37XMzPVDl6HuwNU7rvnIiqSKdyB4t3xWUdk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, greg@kroah.com Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Ellerman Subject: [PATCH 4.14 036/496] powerpc/powernv: Support firmware disable of RFI flush Date: Mon, 28 May 2018 11:57:01 +0200 Message-Id: <20180528100321.137704266@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100319.498712256@linuxfoundation.org> References: <20180528100319.498712256@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Michael Ellerman commit eb0a2d2620ae431c543963c8c7f08f597366fc60 upstream. Some versions of firmware will have a setting that can be configured to disable the RFI flush, add support for it. Fixes: 6e032b350cd1 ("powerpc/powernv: Check device-tree for RFI flush settings") Signed-off-by: Michael Ellerman Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/platforms/powernv/setup.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/arch/powerpc/platforms/powernv/setup.c +++ b/arch/powerpc/platforms/powernv/setup.c @@ -79,6 +79,10 @@ static void pnv_setup_rfi_flush(void) if (np && of_property_read_bool(np, "disabled")) enable--; + np = of_get_child_by_name(fw_features, "speculation-policy-favor-security"); + if (np && of_property_read_bool(np, "disabled")) + enable = 0; + of_node_put(np); of_node_put(fw_features); }