Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp104046ybl; Thu, 22 Aug 2019 20:47:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsJsKIULy3R6MFKwM78RlJ+jh1sY21Qjh1o53hNaiEzIZv/nVBzaaXOI7JGMfCpDBUp3+t X-Received: by 2002:a17:90b:8ce:: with SMTP id ds14mr2996905pjb.105.1566532079282; Thu, 22 Aug 2019 20:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566532079; cv=none; d=google.com; s=arc-20160816; b=JliZxQJ1/GaTd6zwTD8F/llpEAEv14KQx0vjbtvdjSrRInrCCTZRW251FVLh6v7vDa JxK5w0Qpv0f67mg7dgZujrk3C58cV2UMkF1jK3FtLzKOfMIPyZ+Ux82dPPO43izA7HcN tR/aqVAsGz9E92JNUpBsWn+99XGiLhq/jK00MXtKFEezq7IjUDTAzfSSUut1EKonqeBQ slXk6ZI8cqU6n4E3SH/yMzZUxnMDrN4AR5Op7Jn0grkuonqTBUOrRTWvjhSS37iF6gq8 2O9uybyJ6kqoYtfr4sb1nhnfwf8TGONsbLywrWz17KPJjR/7uHjhXg9H/bFFKvM0B48g b3Nw== 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=922Y+2EC0LZSABMgGkUO8GjhWB3CBCC/N0DoQjxbIgQ=; b=sQdCgp0FbOay3tUVKLcsHLcOwiBb5lM+Dz1aCKpkpNXuxk6Ogh438tIq0FT2Tv3YoP mSfJDnKKFdUtstkRPjb5dsbtpZY8FmhhnMXrrV0n1rC7Z0eIx4FIWTUc/svap+FLqLfi h66BaRWPvK/G3841wLVbEU/9XoihkEr8rRIPmUU7GjGZ4FxvcgvPFahOnQb5oXhNV9u2 ++rdFxW4kNSKdMnfyL58L+NK9qQhppkTroOSgmjSpuevxtMA7gmMYHdZ+AXpBsSVogAV SnxKV2w69asQxuxglaVre5zARCZOQK78aHo5fN5MZYk0dkEMZvuq7MpQ3sk5TdqGDAcA Al0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AP4YppCK; 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 a3si1276681plc.412.2019.08.22.20.47.44; Thu, 22 Aug 2019 20:47:59 -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=AP4YppCK; 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 S2392477AbfHVRgW (ORCPT + 99 others); Thu, 22 Aug 2019 13:36:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:47154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391608AbfHVRYy (ORCPT ); Thu, 22 Aug 2019 13:24:54 -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 9AFE02341B; Thu, 22 Aug 2019 17:24:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566494693; bh=MxJyfsSZgkkzFA7Lk53PTKYXmSwiZxXz0gaGazBiNJg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AP4YppCKNDLMVa6EJhxSWdTqbWsVZAz6AMpG/f8xd3LuGksRvlT19DxT6XIW/YKhl 3oMUeC1Tffa7qOYm0CWDVOyEurLuPUJ8YfXSVmLOHy6vuQ4rqfRQoJ7uy0JUzfrXA0 NyZQ9Z7jX/zcjB9cRarE5L1oYvwT53JAHMY6Fnmo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Max Filippov Subject: [PATCH 4.14 09/71] xtensa: add missing isync to the cpu_reset TLB code Date: Thu, 22 Aug 2019 10:18:44 -0700 Message-Id: <20190822171727.191206458@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190822171726.131957995@linuxfoundation.org> References: <20190822171726.131957995@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 @@ -508,6 +508,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"