Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3765590ybh; Tue, 17 Mar 2020 06:15:57 -0700 (PDT) X-Google-Smtp-Source: ADFU+vulOmDAoAjG1O+EhTUVR3ELtoJwjItTgI5CCvYDm2m67LfgqiHtOPMw05ILS04c/qr/BqbZ X-Received: by 2002:a54:410c:: with SMTP id l12mr3436160oic.13.1584450957086; Tue, 17 Mar 2020 06:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584450957; cv=none; d=google.com; s=arc-20160816; b=Xj3Us/R3OcR+L2KxqWQuIC1EZ1sddzbyziJ98KIBUc7HYkAIMUvmTybKhP2Dn6bB0h anpxsjK5OmyEp1oO71VcFXZeljzpNjcrPPgBtjmKeZe3a3B3IW4eiQxR9G+pl1zRVNcW lWhadJf3IgBsD6kKegAltG1UMkrPEc3JBGKfWPyWdsDgnZrKdXSqrDEwx+2rHJORpPw/ I5S8iKNFyA2BydU6PAAJK3HhQXi4FGZTNFzu6lTHMJOu4/p4CtNv1cX5sluH97Z6Tg35 OZLsDckytzkzmsaeY1aIzWMCVTavGZpjuYldENUB0zxtWAp92ORu0eivLl7sMdiCjzNH pH7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=zxF+HE6pfityI0H5wdtlMIQgJh6BlQ8zqYo9iM9Pl9U=; b=UxYiJrTjcQSaIrOr7pkDu/6QPFQvqw10qyI2us9ztcc920OqaqxhwLc8OJcQCrILqI gthbRWqEAI5H65yt+LdP9q76aGgDcR/wF3n2Rt0XarAUpMC9fUKZpLYMHRd+wfBLewEl gKUMbvai6fatOFR5cGoh7NzjpspbX8aBvOuis7KQ8d9Z3RzCRPMo7+btuyeLTAXP9pJv Dv7f5Rsb/MCBcTjrW3FCyS9HfjsPZnOunRTlLJwjmujiHBZpsX4ua+6aShowzvxqb0cm Qoi9hANtWW4Z8DR0KyVzr8rEK0CoumoSCPExdUbS6g50yrwIrc/doAUISWydKIzjPKIN +fgA== 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 e9si1449693oig.116.2020.03.17.06.15.41; Tue, 17 Mar 2020 06:15:57 -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; 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 S1726757AbgCQNOm (ORCPT + 99 others); Tue, 17 Mar 2020 09:14:42 -0400 Received: from ozlabs.org ([203.11.71.1]:38941 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726084AbgCQNOm (ORCPT ); Tue, 17 Mar 2020 09:14:42 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 48hYYB6CJzz9sPF; Wed, 18 Mar 2020 00:14:38 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: aa4113340ae6c2811e046f08c2bc21011d20a072 In-Reply-To: <20200123111914.2565-1-laurentiu.tudor@nxp.com> To: Laurentiu Tudor , "oss@buserror.net" , "linuxppc-dev@lists.ozlabs.org" From: Michael Ellerman Cc: Diana Madalina Craciun , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Laurentiu Tudor Subject: Re: [PATCH] powerpc/fsl_booke: avoid creating duplicate tlb1 entry Message-Id: <48hYYB6CJzz9sPF@ozlabs.org> Date: Wed, 18 Mar 2020 00:14:38 +1100 (AEDT) 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:25 UTC, 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=3D1 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=3D1. > > Fixes: d9e1831a4202 ("powerpc/85xx: Load all early TLB entries at once") > Signed-off-by: Laurentiu Tudor > Cc: stable@vger.kernel.org Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/aa4113340ae6c2811e046f08c2bc21011d20a072 cheers