From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 038C9C3A5A1 for ; Thu, 22 Aug 2019 17:26:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C48F0206DD for ; Thu, 22 Aug 2019 17:26:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566494799; bh=Qlp3x3U+zOCKY7hCtsldlsB4qi6UWQSOuURbtxgayK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=HH8BsfO7rbjaa7nVbPMfU7xIJAxLLi/IfCZPnBIjrVOUVpmx8MHqJ7E6NU5UsTKuI wmWFuAKiIOWzqwAWmmsIvkQqkvY+E8vIvzqIXmI9ie1jN6SA0bX78CNs5mCRzI6W3v tnUuQye1aHZo5JCMkgrenPL3VO2wOq8h0rOtXeUA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391893AbfHVR0i (ORCPT ); Thu, 22 Aug 2019 13:26:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:48536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404396AbfHVRZW (ORCPT ); Thu, 22 Aug 2019 13:25:22 -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 E2B192064A; Thu, 22 Aug 2019 17:25:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566494722; bh=Qlp3x3U+zOCKY7hCtsldlsB4qi6UWQSOuURbtxgayK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iihzBwBHjdv86Nt0AEsk+L+L7I1VK5+z1fvQbWrpLzgGBv9upfZ+UlI++gjXsUMF8 4SVH5kvJQsaE2EyEmmKvbPvBMVa/hwqFSgXEBW3xwD5LB99r144dxuN6FG6eA4tcBV lSqDIBKRFC7/bWKgGXeNlgXZJBUqr9LDEsHR80mg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Max Filippov Subject: [PATCH 4.19 10/85] xtensa: add missing isync to the cpu_reset TLB code Date: Thu, 22 Aug 2019 10:18:43 -0700 Message-Id: <20190822171731.471245216@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190822171731.012687054@linuxfoundation.org> References: <20190822171731.012687054@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 @@ -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"