Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp750474ybf; Sat, 29 Feb 2020 15:11:34 -0800 (PST) X-Google-Smtp-Source: ADFU+vulZoWO5PjIlXXz1A3Uoy9DTGxfefDl7yY/deG+RVRwnpBaaNWwqOW1lpycclO5UmjeezyV X-Received: by 2002:a9d:3d65:: with SMTP id a92mr342724otc.326.1583017894751; Sat, 29 Feb 2020 15:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583017894; cv=none; d=google.com; s=arc-20160816; b=kXM+kX8gp6YAkUsExsGMBeDLBHrwKoPThShHyKGEXpmE8dcWxEDQzHFSGb1Nw65ZRC lTUVSrhB2kEmXcc5sAPCnKyqGC2K/aZlBN8OlwvDKJRrzwzDR13u0kwIYvfKruO9+CAK MP/gA6looixIxbyFqsSoyGaFu17tYUWH7qgzHQtPEvJTp3fhKMkSp0ifWZ070bKbkwAt mVVyA4SrlawtCu6U1MW+ramsLXMA3LN4+ZLJw6Pw3woZnQo+GB8yoQdO1/Qssx6jBy0X h+8OydPeb0ouBrefMbrZCIzXp2RaVRd6PbxZrXTNuIVElJFId6bkHw94fAOupy2IsChZ LuFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:organization:references:in-reply-to:date:cc:to:from :message-id; bh=+TzD5dNJg2sIzqp3bp7F20Xqaj48u9d+wdE/Z+uxaB0=; b=NiIgRccTT8k2GhHemwEIf5YKMbRa1G/a6nedbcyj2fi3DW4CNGg1Fmc3XL45EG/kba n9vl0YidZlTobdXI8odEkvgvIjKF/mk5WOWkVCngZa5N9iDhptH2/Lx0c7Ynt3z/M74i yLDRXJPyifGbk71+jHK5aak1xLDAZZ718ohkyRthuuvKBinn79qeiNMOyS96b1sIulGX jf/6lEvpx1XWjx+UmxOCJ7JanFgi0OHEjOwCZ8Eqd5fS5SDn6KK1D6zuzq7QlfMN2RgD WorFAmQ6qF1JeitqJ/TfWBRCKsUzzrOU/x94O9PRV5vgwjGtMR71dOp57yQmhK5kGUVK bJiQ== ARC-Authentication-Results: i=1; mx.google.com; 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 g10si3956424otn.12.2020.02.29.15.11.22; Sat, 29 Feb 2020 15:11:34 -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; 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 S1727422AbgB2XJa (ORCPT + 99 others); Sat, 29 Feb 2020 18:09:30 -0500 Received: from baldur.buserror.net ([165.227.176.147]:54288 "EHLO baldur.buserror.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726786AbgB2XJa (ORCPT ); Sat, 29 Feb 2020 18:09:30 -0500 Received: from [2601:449:8480:af0:12bf:48ff:fe84:c9a0] by baldur.buserror.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1j8BEZ-0002KT-PB; Sat, 29 Feb 2020 17:09:24 -0600 Message-ID: <498ce16efb7784d95569d000bfab33ae25b823bd.camel@buserror.net> From: Scott Wood To: Laurentiu Tudor , "linuxppc-dev@lists.ozlabs.org" , "mpe@ellerman.id.au" Cc: "christophe.leroy@c-s.fr" , "linux-kernel@vger.kernel.org" , Diana Madalina Craciun , "stable@vger.kernel.org" Date: Sat, 29 Feb 2020 17:09:22 -0600 In-Reply-To: <20200123111914.2565-1-laurentiu.tudor@nxp.com> References: <20200123111914.2565-1-laurentiu.tudor@nxp.com> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2601:449:8480:af0:12bf:48ff:fe84:c9a0 X-SA-Exim-Rcpt-To: laurentiu.tudor@nxp.com, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, christophe.leroy@c-s.fr, linux-kernel@vger.kernel.org, diana.craciun@nxp.com, stable@vger.kernel.org X-SA-Exim-Mail-From: oss@buserror.net X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on baldur.localdomain X-Spam-Level: X-Spam-Status: No, score=-17.5 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -15 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -1.5 GREYLIST_ISWHITE The incoming server has been whitelisted for * this recipient and sender Subject: Re: [PATCH] powerpc/fsl_booke: avoid creating duplicate tlb1 entry X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on baldur.buserror.net) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-01-23 at 11:19 +0000, Laurentiu Tudor wrote: > In the current implementation, the call to loadcam_multi() is wrapped > between switch_to_as1() and restore_to_as0() calls so, when it tries > to create its own temporary AS=1 TLB1 entry, it ends up duplicating the > existing one created by switch_to_as1(). Add a check to skip creating > the temporary entry if already running in AS=1. > > Fixes: d9e1831a4202 ("powerpc/85xx: Load all early TLB entries at once") > Signed-off-by: Laurentiu Tudor > Cc: stable@vger.kernel.org > --- > arch/powerpc/mm/nohash/tlb_low.S | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) Assuming you've tested this on all combinations of 32/64 relocatable and not: Acked-by: Scott Wood -Scott