Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6247020ybf; Thu, 5 Mar 2020 16:29:43 -0800 (PST) X-Google-Smtp-Source: ADFU+vtCl2VqIlWqLCgBg98z9/zxzQYYj4p9W1DrK8WvnT5FxEa5q4ceeh3OpwmCfXLfbqS1mq80 X-Received: by 2002:a9d:20c1:: with SMTP id x59mr458534ota.286.1583454583589; Thu, 05 Mar 2020 16:29:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583454583; cv=none; d=google.com; s=arc-20160816; b=dgSY8YDQSXaJ6fTPpdf2WgnUlxBtq0BdtTnqiQy8/lEDi5acObvyZ0U8FRb8lZ7D/m +lJEsIMfzblw2QCFScdjFthjDtwXkEF8kJiPfnqdAYmGGnXACpIj+8Pnjp+3i+8Dt7t2 2PcJdq4rLpOj+J6LhYS1bkBumgeri58pwrGUujDnVbWMl2/F33Zr1ANLHIwHuQNyOA9O +wqWLlp3C/mhUSLVJJLBzAA4j94nYRwN3sf63uMCwaFFfhi5jIXj4Jr4pJMxl7TNa+nI Ji0sIM2N2qDp1lCluuP+ukdrxDbunVmU+hkvLy2VcZdAEZLeEmYmbKziekgOPaESgKsl n27g== 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=n7nOeZx0GT4bPexi4ocf/vL9gXL0kG3vitduqo2DuIY=; b=qngVdkAFco2mUc3DSnS8+rDCt8PkOJDkMW4AgloggIDmSgi9kHL8s0XVbCl56bAbTf 13tzUHihre8hKQk7+/szKZ/TlNjwRLvsYt0xA3Sv10011dFua82IulvBMllXmdzSWQ1c xCp4jF5kMdksqRP4ZMfOBKpXuZgbb8ZgY9cJMlaiqv/jJh9deQqZC5DM2S1bmdshvA0q p4dKgSVI4lBVanwDv8+QWRboE6X6lxMH2iqaJEKUyLe7dXc1ix2/xQOZ9MCTovL08e2a THPlVmyd9sf2m0MHcQAkWDqUuU88renlRwe6ZjjKwon0y/xtqfh2X/8yLe8eRaJfo6+c pZzQ== 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 t3si326972oth.247.2020.03.05.16.29.32; Thu, 05 Mar 2020 16:29:43 -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 S1727250AbgCFA2D (ORCPT + 99 others); Thu, 5 Mar 2020 19:28:03 -0500 Received: from ozlabs.org ([203.11.71.1]:38271 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727178AbgCFA1y (ORCPT ); Thu, 5 Mar 2020 19:27:54 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 48YT3X0KXSz9sPJ; Fri, 6 Mar 2020 11:27:51 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 6453f9ed9d4e4b4cdf201bf34bf460c436bf50ea In-Reply-To: <03c97f0f6b3790d164822563be80f2fd4713a955.1581932480.git.christophe.leroy@c-s.fr> To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc/mm: Don't kmap_atomic() in pte_offset_map() on PPC32 Message-Id: <48YT3X0KXSz9sPJ@ozlabs.org> Date: Fri, 6 Mar 2020 11:27:51 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-02-17 at 09:41:35 UTC, Christophe Leroy wrote: > On PPC32, pte_offset_map() does a kmap_atomic() in order to support > page tables allocated in high memory, just like ARM and x86/32. > > But since at least 2008 and commit 8054a3428fbe ("powerpc: Remove dead > CONFIG_HIGHPTE"), page tables are never allocated in high memory. > > When the page is in low mem, kmap_atomic() just returns the page > address but still disable preemption and pagefault. And it is > not an inlined function, so we suffer function call for no reason. > > Make pte_offset_map() the same as pte_offset_kernel() and make > pte_unmap() void, in the same way as PPC64 which doesn't have HIGHMEM. > > Signed-off-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/6453f9ed9d4e4b4cdf201bf34bf460c436bf50ea cheers