Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3653099ybk; Tue, 19 May 2020 09:43:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLx12LS936j6SbvYa208S+yUau28xEYykZmAzm2T7jsdLTmD0fQOS6S6go5ltV9uWe9SUy X-Received: by 2002:a17:906:7a4f:: with SMTP id i15mr86121ejo.71.1589906582771; Tue, 19 May 2020 09:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589906582; cv=none; d=google.com; s=arc-20160816; b=pV0cD+pL4TRDxfOz+H/J29RjSB++JTBbhBunwvv4Bg5os4eFkP3WfGdX27zp2x0bOb itDR3wcKFR0fPMP/8zcX/goxjo3x1pnqHS7QSJgoQhcZuGrdFCXnrysgzh+Pjn4a805X zE9iJH/A+1ItXduAU6imzdFs/Mh2Er48fmm7ghOcc3mSb149wPA1KDe0wx6y2cTv1yxk yZgdeM8Tuci0zU1s/11qDJLUPYVMtaYA1N0nirTBl8AeF3iIwehX3ZdThSPhGbVPWt7o 4ZPJMwFmzLvqapJOXWAM3vK8kXuyXhpmEUC+phFq6XpnG7rZfQ1Hx5WMYbPEQUAvCCHA Jvmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5lVC+y9qrofIhKyYVHhNqStVfPjx6c6mVisc11SZ+6g=; b=Sv/q+yMUtg3UOz813jYSoSwwGgoL65SnPiTznTJ5P/ObnQQKAh1aiwCSXI62drcK28 1dkdanSg+CS9BcDkbcZ/9DzKwDR+jigS95OdXm2l7pqKfbmmhYEjcjSAbBE0pIUeMWX4 7WSgxFS/WJ0eKqE+F6gnubRtqI+z4ixMEYNNIg3EnjlkPCpvWlgeFJmaBkrkRTIU44nF nj4ATMlCY48XdvuS1nF21uIQcZvrfUw+CtqCcqC3ZsniHWzxWPGJF95ha51EVbnPLQm+ KBjkHxefYh9bH1WzNzUpNqAaSk8cdEYRCUsc/+ZMU7dda0nIpHtEDqctkZCQL7XT4D5b 1OXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="qUFlJ/d8"; 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 h1si217414ejl.434.2020.05.19.09.42.39; Tue, 19 May 2020 09:43:02 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b="qUFlJ/d8"; 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 S1729300AbgESQk5 (ORCPT + 99 others); Tue, 19 May 2020 12:40:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729053AbgESQk5 (ORCPT ); Tue, 19 May 2020 12:40:57 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 412D4C08C5C0 for ; Tue, 19 May 2020 09:40:57 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id y18so155495pfl.9 for ; Tue, 19 May 2020 09:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5lVC+y9qrofIhKyYVHhNqStVfPjx6c6mVisc11SZ+6g=; b=qUFlJ/d8B7IxlM5kkgpLO643/Gd3T+CLU/CLiO5/yckFzZ5AQcg/de9XwcNu2ghrxQ gxEjuXrUvHhqkKgOiGhIin1Zv2R1fkuI+X835miINTmIKoL443ZzDwX/6SslClvq40vP kVEpl/dZlQNrW3egoaD14Y4DqWMe1BbEAf1FOh4AIOAKu/d0h/Hjm7skpqhmkAvyJigS lyDlUp/qHaZ8F0taQXemNrHSttn5Jfs/dlYSQTwQ6ZFatek59/50Bgj3yKYcjMdfcIrR zfMoABuuqbmQ503eJsmNJTOs+/xVT336+x4GFcth1LAyALGFAoFFIL3ccqCZVFLfaYLr D+fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=5lVC+y9qrofIhKyYVHhNqStVfPjx6c6mVisc11SZ+6g=; b=FAACl177MA0jozVunwi1x4yc70JalYNMC2FuWR8zt5DfJBCAdqKEENp0aN+fVKZVtB 5xFaKi0A/Mv4GwUMRHaxBnMva8kruJ57ddq0CHl0TAr339OWAo9RQQUVOYfaXKRvHkpX SNCNkNEEov01mqUVdG8EeBWaImM45blOSHz6an/2khSUFLxk6YlqAOAez8KUW+nGy8B4 VmxO0mQ0i2HBToQE25Z3wJeJFKj3tth6wuiBj4mI3tNX0THfT0DBvWTJnkK4IyvilrvL +JUrj7bjvRs9TRFd2Y9RCzjxwQOgH/XXxP9JXzdqPyHSf8DR5c429fKW0+a5amyUc39u ErCA== X-Gm-Message-State: AOAM531JV3uwl+U8ItDYdg9Y3hce1OoEuMIFWrZPn4J1lL1rWeuq3/oK LdkayBCOML7kc43BotEWWOM= X-Received: by 2002:aa7:80cf:: with SMTP id a15mr14259pfn.124.1589906456808; Tue, 19 May 2020 09:40:56 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id n23sm98243pjq.18.2020.05.19.09.40.55 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 May 2020 09:40:56 -0700 (PDT) Date: Tue, 19 May 2020 09:40:55 -0700 From: Guenter Roeck To: Mike Rapoport Cc: Andrew Morton , Ira Weiny , Will Deacon , linux-kernel@vger.kernel.org, elver@google.com, tglx@linutronix.de, paulmck@kernel.org, mingo@kernel.org, peterz@infradead.org, "David S. Miller" Subject: Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables Message-ID: <20200519164055.GA23715@roeck-us.net> References: <20200511204150.27858-1-will@kernel.org> <20200511204150.27858-5-will@kernel.org> <20200517000050.GA87467@roeck-us.net> <20200517000750.GA157503@roeck-us.net> <20200518083715.GA31383@willie-the-truck> <418aa44b-6fb3-c3d8-a920-1a26e5edec62@roeck-us.net> <20200518142310.GC1118872@kernel.org> <20200518191511.GD1118872@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200518191511.GD1118872@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 18, 2020 at 10:15:11PM +0300, Mike Rapoport wrote: > On Mon, May 18, 2020 at 11:09:46AM -0700, Guenter Roeck wrote: > > On 5/18/20 7:23 AM, Mike Rapoport wrote: > > > > Below is another set of bisect results, from next-20200518. It points to one > > of your commits. This is for microblaze (big endian) boot failures. > > The microblaze one was easy, as for sparc32 I still have no clue for the > root cause :( > > Andrew, can you please fold it into "mm: pgtable: add shortcuts for > accessing kernel PMD and PTE"? > > From 167250de28aa526342641b2647294a755d234090 Mon Sep 17 00:00:00 2001 > From: Mike Rapoport > Date: Mon, 18 May 2020 22:08:10 +0300 > Subject: [PATCH] microblaze: fix page table traversal in setup_rt_frame() > > The replacement of long folded page table traversal with the direct access > to PMD entry wrongly used the kernel page table in setup_rt_frame() > function instead of the process (current->mm) page table. > > Fix it. > > Signed-off-by: Mike Rapoport Tested-by: Guenter Roeck > --- > arch/microblaze/kernel/signal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/microblaze/kernel/signal.c b/arch/microblaze/kernel/signal.c > index 28b1ec4b4e79..bdd6d0c86e16 100644 > --- a/arch/microblaze/kernel/signal.c > +++ b/arch/microblaze/kernel/signal.c > @@ -194,7 +194,7 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set, > > address = ((unsigned long)frame->tramp); > #ifdef CONFIG_MMU > - pmdp = pmd_off_k(address); > + pmdp = pmd_off(current->mm, address); > > preempt_disable(); > ptep = pte_offset_map(pmdp, address); > -- > 2.26.2 > > > > Guenter > > > > --- > > -- > Sincerely yours, > Mike.