Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2448258yba; Mon, 15 Apr 2019 11:51:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqys+AT7IlkLkazFecrfQXGUlBjH3M35cVRPxZl6RBh0W9linH2SRTqCyvcl0EzmD7PklHR2 X-Received: by 2002:a17:902:822:: with SMTP id 31mr51639696plk.41.1555354279747; Mon, 15 Apr 2019 11:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555354279; cv=none; d=google.com; s=arc-20160816; b=cwRHyORLNPDvnQ9pbEbbeLeTxhC3cTshw/SsBqx7DMnfxrHrKRSE100kARM+JOJYmR ooLa5cvAzJqazs/IBa/5uFCj/B6oDmt0SO6QAzJ1PILCgTx63P09f3r41xu0O/0ZhS3K sbrPPlbkDgbMmLnUo28RqedHvbOEt5OJi2kpBw0ZGbBf3W83UvS34PoR686rr7pVqB2w tMxJJKiVOtCgETWB0RbA516ZtOTVDTXtN8ASUbwvwGpROFZ0T4NwnUIjEeZgwhgsdI3t R4+DT3qadBWGZbi0gGEP0HHmDA2iIUgwzKCHOxS0u5SlTQbKb2Xa4XzNIpxuKPjKKDXc dHBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jJ6O+7DPOhHTpvQe/G47JcVQpexI0sX7FxayoDI1FBk=; b=ZiFkbGhovfU9rMkJsgwu/SpfZyhMFB5B6y79mL1hAWMJlDqo0z8auL8JkeFsHHt+Cn DnHwnsOoUd6+quQFfUFPiwxFXjuPxC3iRnRdrY+sy6ISLgvbXAikYrNIVctUDLRP/flN bmztbezoxVQzvoGowrYTX6jLfyC8dGYNrK6dB9Y+a8RqR8Gx2UkpYDZyBgd2knibUcIC XnbsRak8YxF82lqKfrkOKPa5AMeneubVTsMeRrSSlo/1ykKbB8jeKAjrtaJj5RSZ0BeW HPRlUZ9jRIRtGvIEgvI7AIWlCK0TUcQn74n+R040tEsPgfWpMSV87crlF8unK910Gl/q EbSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fQXLPeEN; 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 c18si45619028pfi.198.2019.04.15.11.51.03; Mon, 15 Apr 2019 11:51:19 -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=fQXLPeEN; 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 S1728825AbfDOSrG (ORCPT + 99 others); Mon, 15 Apr 2019 14:47:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:50036 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728801AbfDOSrC (ORCPT ); Mon, 15 Apr 2019 14:47:02 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 4428D218DA; Mon, 15 Apr 2019 18:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555354021; bh=Jz4CMJJAqqS8hXRcDOx/AmbcXYAgo3CVD8RX9M/PJkI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fQXLPeENoQAMZ96W/xdB6clWzpMYf4EOAxpsLipgGwgWm2az6jNuhKgWKDhkDYBSO sxZ7UdBijyBws7Z37c8NE5yNoZQiHbtKQwaUpwAQaKS4AJqBxWzWAzMj3U4cgypLSt Ln/EnHu4W14PHiqHyu12KKOsNKa0qHA73A57HPYw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Diana Craciun , Christophe Leroy , Daniel Axtens , Michael Ellerman , Sasha Levin Subject: [PATCH 4.9 43/76] powerpc/fsl: Fix the flush of branch predictor. Date: Mon, 15 Apr 2019 20:44:07 +0200 Message-Id: <20190415183718.829242692@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183707.712011689@linuxfoundation.org> References: <20190415183707.712011689@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit 27da80719ef132cf8c80eb406d5aeb37dddf78cc upstream. The commit identified below adds MC_BTB_FLUSH macro only when CONFIG_PPC_FSL_BOOK3E is defined. This results in the following error on some configs (seen several times with kisskb randconfig_defconfig) arch/powerpc/kernel/exceptions-64e.S:576: Error: Unrecognized opcode: `mc_btb_flush' make[3]: *** [scripts/Makefile.build:367: arch/powerpc/kernel/exceptions-64e.o] Error 1 make[2]: *** [scripts/Makefile.build:492: arch/powerpc/kernel] Error 2 make[1]: *** [Makefile:1043: arch/powerpc] Error 2 make: *** [Makefile:152: sub-make] Error 2 This patch adds a blank definition of MC_BTB_FLUSH for other cases. Fixes: 10c5e83afd4a ("powerpc/fsl: Flush the branch predictor at each kernel entry (64bit)") Cc: Diana Craciun Signed-off-by: Christophe Leroy Reviewed-by: Daniel Axtens Reviewed-by: Diana Craciun Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/kernel/exceptions-64e.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/exceptions-64e.S b/arch/powerpc/kernel/exceptions-64e.S index 79c6fee6368d..423b5257d3a1 100644 --- a/arch/powerpc/kernel/exceptions-64e.S +++ b/arch/powerpc/kernel/exceptions-64e.S @@ -348,6 +348,7 @@ ret_from_mc_except: #define GEN_BTB_FLUSH #define CRIT_BTB_FLUSH #define DBG_BTB_FLUSH +#define MC_BTB_FLUSH #define GDBELL_BTB_FLUSH #endif -- 2.19.1