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 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D6986C433F5 for ; Sun, 1 May 2022 17:18:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 46E7D80330; Sun, 1 May 2022 19:17:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="osgMjgAI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9794680330; Sun, 1 May 2022 19:17:56 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A8D2880163 for ; Sun, 1 May 2022 19:17:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 45106B80E16; Sun, 1 May 2022 17:17:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0F50C385AA; Sun, 1 May 2022 17:17:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651425471; bh=/9aHYR9GCio28+FdD+xHXeXpYJW0NLxKuI35GY+Dij4=; h=From:To:Cc:Subject:Date:From; b=osgMjgAI3x2dkWJq8wcsKd77YsU4HCsboqcUTRyHoGW6LE+SjMH1vJIP4UdbvKajO mvbZbSGdFHxN8u8tVYEg8yEMF0LtvXLVRaYz+8TZ9Bqdnp4jB+pOIk6ovdnW2U99hz SkvfsXzC2WYBnMkc8MAGTD6e9z5xI8XqBju9KdeRV+zEauiyGFKnMXHGzO+/IXikAn dBIyozRBu1OdpH7er9q5v/YobVLjYxpaO5dpyz8rNGPTaNozN/4PGulv2yWanzX+CL kUpkAd6NBPGhphWFfy8hJSPXOGrdqoC54AGBiwQSiPcAYb+WIIlyvYW2r1wnCJaZhx NsF550QjiLMaA== Received: by pali.im (Postfix) id 2D3E4942; Sun, 1 May 2022 19:17:47 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Wolfgang Denk Cc: u-boot@lists.denx.de Subject: [PATCH] powerpc: mmu: Fix FSL_BOOKE_MAS2() macro Date: Sun, 1 May 2022 19:17:35 +0200 Message-Id: <20220501171735.1017-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Effective page number mask for MAS2 register is stored in macro MAS2_EPN. Fixes: 2146cf56821c ("Reworked FSL Book-E TLB macros to be more readable") Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/mmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/mmu.h b/arch/powerpc/include/asm/mmu.h index 2e6255f0d606..b0aafdcdae10 100644 --- a/arch/powerpc/include/asm/mmu.h +++ b/arch/powerpc/include/asm/mmu.h @@ -447,7 +447,7 @@ extern void print_bats(void); (((ts) << 12) & MAS1_TS) |\ (MAS1_TSIZE(tsize))) #define FSL_BOOKE_MAS2(epn, wimge) \ - (((epn) & MAS3_RPN) | (wimge)) + (((epn) & MAS2_EPN) | (wimge)) #define FSL_BOOKE_MAS3(rpn, user, perms) \ (((rpn) & MAS3_RPN) | (user) | (perms)) #define FSL_BOOKE_MAS7(rpn) \ -- 2.20.1