Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1566876ybl; Thu, 22 Aug 2019 17:16:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwNRCYHDrzgJ/Pf58J454Dy8qj5SvacfyFVHadEcOKkp6bCPc/oJwLOt+k5AbE6RnoSMM4 X-Received: by 2002:a17:902:e48d:: with SMTP id cj13mr1581733plb.177.1566519407268; Thu, 22 Aug 2019 17:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566519407; cv=none; d=google.com; s=arc-20160816; b=iMzPONle1NNWK4lJaOjySldlGnZVINk5FLtTSttK/JtWjX7TNAPQnLFCY51eQrwU8y IQSIgc4kedFrDFIFO5MR4b/N3WRq+oG+DzNDoBmZTJwNUlTrYeKrco66kkv8gcTLmD4n gsKI0Ss0mgtcheF5TXedVjdpGm8bdDhrpbRoRUa82qntiK3LRsLCdc70Bfsqi7P0ESEx xrCIVPMFpRYoXHlNJTkeYasO0Ozm9Rjn2nIfV/764EsuTp1PozqIHzHoMYiNePrnW6fI iKGDSJuIQPbGH+z+LHcCbuylKJ6xv3rmRk5JxgFSL5WHNb+pUfzYrEpAMF/S2/B8QlCT HhGg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7EdLzOXOPRrqc1mbo6omAwroBDBUxlXiqTEkhbKtzS8=; b=DdTAffWn9ePqcjf+7o5wgrjVUxZmaG8FAWpVlgRt7QK1foFW0fheVK9pvj7s763Ypa XFxS1uIRiIlgryoZUBvYuVZJJuJMRQWoo9KMb14F1pI56igJiimk8CsmSBD8zqRVxs4p /2tQr7r5sGsB7MMpoyO/P4XuqOsNb+6LwFAB0GZ6szt5FxOSxG23ItGw6/kBGggKjIsc 0MVZUwryJjJv18m6kFkJfIh5EhkBHNZaFp4OWKzYLTunu12MIxUQIB0HFmDrKOH4eTHe no10NQJK5K+d7s9BH3M8wgwuRkSOFcALZzBl1OIKIdgwGJHRLRJ7jfRSsZfGKCl2hL86 ePMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EplEx8lI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h30si936649pjb.45.2019.08.22.17.16.32; Thu, 22 Aug 2019 17:16:47 -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=EplEx8lI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388500AbfHVRTo (ORCPT + 99 others); Thu, 22 Aug 2019 13:19:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:57958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390295AbfHVRIY (ORCPT ); Thu, 22 Aug 2019 13:08:24 -0400 Received: from sasha-vm.mshome.net (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EACED23404; Thu, 22 Aug 2019 17:08:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566493703; bh=WozQVHAvxMlGUO9JWvfxjwZ3Pv3TpGs1akcR2dUpekk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EplEx8lIhIcIAgHB30E+zWUQ6Tn9jgJ10upY0z4NYjywy5+V7CTHAjHs1vl2nzARX MZJMthCeWNMEZ73B1fSRwlgkcmaWfuuiD16jpyFOPvljvmMx6GN/Ex+tQRjTAQKpdy BZkmU8ZPkob9+cFn1gsyUwxwWY+UPRnxXqswkb5w= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Max Filippov , Greg Kroah-Hartman Subject: [PATCH 5.2 015/135] xtensa: add missing isync to the cpu_reset TLB code Date: Thu, 22 Aug 2019 13:06:11 -0400 Message-Id: <20190822170811.13303-16-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190822170811.13303-1-sashal@kernel.org> References: <20190822170811.13303-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.2.10-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.2.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.2.10-rc1 X-KernelTest-Deadline: 2019-08-24T17:07+00:00 X-stable: review X-Patchwork-Hint: Ignore 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(+) diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index 176cb46bcf12c..0634bfb82a0bc 100644 --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c @@ -515,6 +515,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" -- 2.20.1