Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1331910img; Tue, 26 Feb 2019 19:38:05 -0800 (PST) X-Google-Smtp-Source: AHgI3IZv73SpZ+tQHloxoGRik47J91suLqelvPCK6DtUggZ6s00jsZVnia3Kwe02KLNUKGN4GSyt X-Received: by 2002:a62:e704:: with SMTP id s4mr29439576pfh.94.1551238685773; Tue, 26 Feb 2019 19:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551238685; cv=none; d=google.com; s=arc-20160816; b=HXCiiT3UOyTt8sbKpZP3CnILAXaO8bRJ1wtBUGTnGsMIXpEIql60vVFn2lk428DMME Q9wHsUnOM0Hpg0vrTGM949JTW9xwhsfwThiVWyhNKwemDFGetBZjxzd/sBm0VLqOXZs+ hGAs6gGWsDZuIH6dTfOHjzrut6ABZ9mFC8LuY/A7893y7liMlj7icgad0EW4+QF6Phoe ihZECDF9GO5fV26ki9u6Qbpp8UpMnhtKzLjyFKjJ7P6+ZFad9eK/radbK7Af3+FenXtp u/oiKEUYJ9gImLkGrvbr9O3zURYBeQO+GNFi2tIV3iWQWQaE87A8SHHNR1J0TKqUzHoY tHHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=RohVq4bk3hD+d+lcDfCqs9wP1nmCmAOw6y3x+VzbeoM=; b=FyYiIYc49fpq+9kJ87qvuWeNy4SOe2DqHrW7tBLpSn/oGacyYf9PfyytCCC0IL3JSG /oWcMyQAQMRoDP8YLzCBjk4YDI+uebmFoN63Xlscwj2dcXrzayoXAdJqFqH6tTEvgcFe XxkZMs8Qz4MKnFNuLJruejhhDqautxT2oJv7PyHYkFmOELqX8XHDfmZeULdqMGA8moxf oLTYYW+QEW4ajrJ+vZHtIDNqBOfmQ0a3WrXQB88mQAIhEs8oyRk9FEoUlNJZrhKl8HZ0 c5kENKwvOnTr70+YEepyxeUVjKv65zZ/nU5GkDALu0a++ixaUwR0lKOMI4nmd2ZZWh1k rl/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b=LULeXagi; 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 v71si13559605pgd.499.2019.02.26.19.37.50; Tue, 26 Feb 2019 19:38:05 -0800 (PST) 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=@axtens.net header.s=google header.b=LULeXagi; 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 S1729410AbfB0Dh1 (ORCPT + 99 others); Tue, 26 Feb 2019 22:37:27 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:36134 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729128AbfB0Dh1 (ORCPT ); Tue, 26 Feb 2019 22:37:27 -0500 Received: by mail-pg1-f193.google.com with SMTP id r124so7240812pgr.3 for ; Tue, 26 Feb 2019 19:37:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=RohVq4bk3hD+d+lcDfCqs9wP1nmCmAOw6y3x+VzbeoM=; b=LULeXagikwvRNczIlgV8is8M/5t9TjJ556NKvdVrcFxdsZFDCLQos5vAaL/vi22rOG ZY1dAM8gFfpBtqhusmOXkI4KqXeCoh/SsaheplzbV4/tI7WwL36/WNEOSHLo5wNe6jJv utrh6TjTfrGLwngpA+2QgojFdPSyQZp7Jm3SA= 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:in-reply-to:references:date :message-id:mime-version; bh=RohVq4bk3hD+d+lcDfCqs9wP1nmCmAOw6y3x+VzbeoM=; b=QTgbn8WNGfXIIfon4tSvzfOGHevExfhN/8D91KLNsWoNQJmwlVLptoVY3yA4E/hida NlB2EJFQGtOgbLwGQfU3OXjs/KrHLZ8fDKTYqtWbKXHBICaCPJ2QOP1eVIdRkWJqSeD7 ziY4uuzkI2wUPrNVKo4lWEMI/XoGou9pJtLhivQ2A9/nD/zXKafts9aXZryGO/vj1OY1 TnUDqs4o2EYNSnyEIi7eoLdFElXFMVdDZ7f/S+Cysm5iACzg4pF2uyLnvatXXZvnAywH VaJCKKtm97eBdnhuEvcuMFaS16iFP4kOt4/KL/AqBd8W/f50GwtQUotiFgMlPJgamIo0 rqxw== X-Gm-Message-State: AHQUAubtU21+cHV1ca5El+fFObe0Sd6eLPRdb99IIwThq8Vt6+C1axt/ b9s6MCyekoZQ9xGTpR566BDrGQ== X-Received: by 2002:a63:1c02:: with SMTP id c2mr878392pgc.351.1551238646314; Tue, 26 Feb 2019 19:37:26 -0800 (PST) Received: from localhost (203-59-50-226.dyn.iinet.net.au. [203.59.50.226]) by smtp.gmail.com with ESMTPSA id 10sm32339346pfq.146.2019.02.26.19.37.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Feb 2019 19:37:24 -0800 (PST) From: Daniel Axtens To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Diana Craciun Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/fsl: Fix the flush of branch predictor. In-Reply-To: References: Date: Wed, 27 Feb 2019 14:37:20 +1100 Message-ID: <878sy1aolr.fsf@linkitivity.dja.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > 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 > --- > 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 4549ce8d4637..49381f32b374 100644 > --- a/arch/powerpc/kernel/exceptions-64e.S > +++ b/arch/powerpc/kernel/exceptions-64e.S > @@ -338,6 +338,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 This seems correct to me: - MC_BTB_FLUSH gets a definition in the CONFIG_PPC_FSL_BOOK3E case. - other things that are defined in the FSL_BOOK3E case get empty definitions in the #else branch, but MC_BTB_FLUSH doesn't. - this patch just adds that empty definition. - there are no other definitions of MC_BTB_FLUSH that should be used instead. Reviewed-by: Daniel Axtens Regards, Daniel > #endif > > -- > 2.13.3