Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2076370pxa; Sun, 16 Aug 2020 23:04:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybQY+lyT/aJi5UQ6j/me0gndVK9jJ8Ksev4pJTN4vUZrGJ+kndg0xUXKwfUDnEavVNNfaz X-Received: by 2002:a17:906:7752:: with SMTP id o18mr13279700ejn.150.1597644282177; Sun, 16 Aug 2020 23:04:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597644282; cv=none; d=google.com; s=arc-20160816; b=Vek1s23GMEAHnauhukU906jRhmtByx5iZGIShIHsYSn82Mtfqe3bZ91suCBjAOSU0e eJgLMY2OxRJrpTV+/BsPtOhpYbMwD2MDg30ERkHbOOGBI5deurys5HvPKRB3plM3Tza7 ImxwnGFnudm72g7o6ghAtfEApnSDL0Jp5u98jisMqmxhingUoJ47Fnl9+3ENCmmMGGec jrlNneY7jjbmrC9rcj8XlWh3tpLfY8ABv3xZex5tR3ZhgEnSM2owiZzrYideJk2kAwiM 2kUUxmEs0B36ve7qGstNf6FJPSnVaca8ik25anWJkWoLqzIiCQrv9iOcEHpjsgIFxyZi b9VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id; bh=u+TckeykK+QwAGQTvc2ukQtDPOINPVTHfy6ecIm85u4=; b=LCnRYYF90EFYHaAbPPyik6Anbk/2tW37UfNcsEjxvvpiJB+MrH4ns1LDvmkADjhgN7 RBVx7dM2jJw94roF+X9nUHPK4z1rmPK/CfnMxUcbyRihPF7vPw9WNktqmx6FA7xCYdR/ cw63eqr2M0sBQBbyH0QnlMM7oO4wwCdh+LPQq71jVW1yJl3Y8Z2tqpBB76kxU56VCmNL 398L0kAQxe2Luj1xxFYJtA2sGaA+a4vxX1bknJN7P4N2VaFHDQL7T/kyPM3uokEcqVns 2KQIbXK7I2AQqSueTycbwwCzFt7y0OPvJ6N63Ypo2vlxM+YUj/t7Uj5136/McaNdEoY5 Eqjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si10439338edq.355.2020.08.16.23.04.18; Sun, 16 Aug 2020 23:04:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726417AbgHQGD3 (ORCPT + 99 others); Mon, 17 Aug 2020 02:03:29 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:56638 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726235AbgHQGD3 (ORCPT ); Mon, 17 Aug 2020 02:03:29 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4BVNkx5rrnz9tytr; Mon, 17 Aug 2020 08:03:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id a2ctUOMGwIQc; Mon, 17 Aug 2020 08:03:21 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4BVNkx4sC7z9tytq; Mon, 17 Aug 2020 08:03:21 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 8DF3B8B772; Mon, 17 Aug 2020 08:03:26 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 93TIwSvksR9Z; Mon, 17 Aug 2020 08:03:26 +0200 (CEST) Received: from po17688vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.104]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6D7D48B75B; Mon, 17 Aug 2020 08:03:26 +0200 (CEST) Received: by po17688vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 63DD665CDD; Mon, 17 Aug 2020 06:03:26 +0000 (UTC) Message-Id: <996184974d674ff984643778cf1cdd7fe58cc065.1597644194.git.christophe.leroy@csgroup.eu> From: Christophe Leroy Subject: [PATCH] powerpc/fixmap: Fix the size of the early debug area To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Mon, 17 Aug 2020 06:03:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit ("03fd42d458fb powerpc/fixmap: Fix FIX_EARLY_DEBUG_BASE when page size is 256k") reworked the setup of the early debug area and mistakenly replaced 128 * 1024 by SZ_128. Change to SZ_128K to restore the original 128 kbytes size of the area. Fixes: 03fd42d458fb ("powerpc/fixmap: Fix FIX_EARLY_DEBUG_BASE when page size is 256k") Cc: stable@vger.kernel.org Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/fixmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/fixmap.h b/arch/powerpc/include/asm/fixmap.h index 925cf89cbf4b..6bfc87915d5d 100644 --- a/arch/powerpc/include/asm/fixmap.h +++ b/arch/powerpc/include/asm/fixmap.h @@ -52,7 +52,7 @@ enum fixed_addresses { FIX_HOLE, /* reserve the top 128K for early debugging purposes */ FIX_EARLY_DEBUG_TOP = FIX_HOLE, - FIX_EARLY_DEBUG_BASE = FIX_EARLY_DEBUG_TOP+(ALIGN(SZ_128, PAGE_SIZE)/PAGE_SIZE)-1, + FIX_EARLY_DEBUG_BASE = FIX_EARLY_DEBUG_TOP+(ALIGN(SZ_128K, PAGE_SIZE)/PAGE_SIZE)-1, #ifdef CONFIG_HIGHMEM FIX_KMAP_BEGIN, /* reserved pte's for temporary kernel mappings */ FIX_KMAP_END = FIX_KMAP_BEGIN+(KM_TYPE_NR*NR_CPUS)-1, -- 2.25.0