Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp258379ybl; Fri, 23 Aug 2019 00:01:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/De1rrlfhE6LQHm+7UlOwcaOHsacufCK7VG5PbSx52OKtMIVe9Zm5KumHzjW95K5EPidm X-Received: by 2002:a17:902:8543:: with SMTP id d3mr3131532plo.80.1566543699732; Fri, 23 Aug 2019 00:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566543699; cv=none; d=google.com; s=arc-20160816; b=csecJ3VXdnRtC2l6RT9Wg6M1ziuD5xnwC6snXYON+ubBScY5jb0dSP+UshVJd62A/o jmyzAKdiiBOyDx8Xb+1fNQfByRmAsBoq6DqHisGkq8EjmbJGzuaRNOX0eJDiTuqursMy +QdxgmBPb1L9m9Ww+TRtEle/Zry7oMDT1aYVZXS5nHJAiD7nZnl/YF6D+aRX59HPSQN1 QBJovWL42j9QthsjCvu5Pu1iBdH1xJK9uWN9WDQzdo+Cn5AAwLdZ4Sk4KTxeUQFXItbY 0vWANasV6dXBxDvrTjs1ATIIjHE26v1nyOPLLLCA4xJW7H5yyMb3ZLRDpdE2oy+gEGi9 1/UA== 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=iLHEdSc3OAqRzbbR9KC3+Am9uXg7dNyuCJrfVtRA55c=; b=SHiN5uhNVn3gmK938eLYWuQYRSRwku8H73cpEheyvVnnJi3V/NrHyccTsS30L0MvsZ VrFQ8QnjuotiKLyHMeoIPyULsY2BuedpVcB1hNL1AioChoglNx7dbUQPc3u5kO2RpmzX YkllizT4Nheqo0VEEC3+Nd/+Uzzg8P17mpANKtKt+UQa0MZgZSFjSBFLnib+g5cmHcTl lNrt9EEz+n9F7F80Q2W+H2ybzIxWPCSm8/DnpiBtNgJ4YtjNZwlL3lG9K2l8ybKECZke cZ90ikZE5anXfGfpkywweJ/UCul6LZdJIgcni+ewJXX9HLsN7175e4Jy/LfjoHS6r5rC 5Ajg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cpjLeacJ; 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 g14si1841164pfk.149.2019.08.23.00.01.23; Fri, 23 Aug 2019 00:01:39 -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=cpjLeacJ; 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 S2405038AbfHVRmi (ORCPT + 99 others); Thu, 22 Aug 2019 13:42:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:44142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404002AbfHVRXr (ORCPT ); Thu, 22 Aug 2019 13:23:47 -0400 Received: from localhost (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (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 74E3A23427; Thu, 22 Aug 2019 17:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566494627; bh=us8t8FZaxlpy3EoUzjVp7bS/5o23Op4UE1+ikVze0I4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cpjLeacJXQ9dGCejCPUq2C9oRx7m7a+3i9isYKTNZbRmXPe0I5dReudhC2RvHkb7v DDWj/wvtmSkrdhFOKNhr87U2emASRmf5oP3u8cp+94Qdzb5iTMyoTwB4Z/V71hFZ8G yFEhIQLCi5gFIKUiq84BTe+4j3id1UofqkMHvcdc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Max Filippov Subject: [PATCH 4.9 058/103] xtensa: add missing isync to the cpu_reset TLB code Date: Thu, 22 Aug 2019 10:18:46 -0700 Message-Id: <20190822171731.137216556@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190822171728.445189830@linuxfoundation.org> References: <20190822171728.445189830@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 From: Max Filippov commit cd8869f4cb257f22b89495ca40f5281e58ba359c upstream. ITLB entry modifications must be followed by the isync instruction before the new entries are possibly used. cpu_reset lacks one isync between ITLB way 6 initialization and jump to the identity mapping. Add missing isync to xtensa cpu_reset. Cc: stable@vger.kernel.org Signed-off-by: Max Filippov Signed-off-by: Greg Kroah-Hartman --- arch/xtensa/kernel/setup.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c @@ -626,6 +626,7 @@ void cpu_reset(void) "add %2, %2, %7\n\t" "addi %0, %0, -1\n\t" "bnez %0, 1b\n\t" + "isync\n\t" /* Jump to identity mapping */ "jx %3\n" "2:\n\t"