Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1605823ybk; Sat, 16 May 2020 17:11:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnEBGWiDBJsN/l/pgSs6WDl1qpBfDwHPIPBFpEvl+eQtmSUeZrIl2YdrI27nBkAH326fh+ X-Received: by 2002:a17:906:34c4:: with SMTP id h4mr9506216ejb.167.1589674313201; Sat, 16 May 2020 17:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589674313; cv=none; d=google.com; s=arc-20160816; b=kMUED9luZmMdS7DA22jXkFiHyaBp7+EWKZYpmDsa57qb6rRMb0sKDoiXdc5hMblX62 H1GXtVkC5wS/XEDMRuv7E0HT+kGEFs3TJE9V49AUOjDyL+0wHlC5QmSIShq7zLNFJPy/ DXUgTz7COS8Bmo8S0lgp1gU2PZHgErQBM+7huJYD8/hYrO5K2Ujt7cldGP8RyVksDXh1 gdFlqP5BB4f9Faw8mKDxl1cq1jPX0sSshu1QzHYPND6ISBUTARDTi+ATIHP+bdQWCJLo r4TROfe3cNbvghjA4CySQH+CZkrI9fboPDwaNNuvaFJh5L0HnkIRHbEfFOi8zZBpq2u/ 8pgQ== 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=OwLBocF7GOWOm6ltPrRkZeo3oS8u31U+Qw2kOqsGVr4=; b=uc1hvzjlvSsw0V5L/gi2QPv0PPyLVW2a1PzduzBpUhujNM92ifuzLEghRZrLCELahV jA50neZESFbSSlvv8daM2M/uxylphGqEnF5Zm/JC4HHOPXoHADsfHFx/csESZrOfp0eh ol9g47ZSjaWiC2dH8Jg6SaJbPwuc61yS2NBpY00V3/r5L8IbDa9yDyuAwksNcPJsFqjK fvly/Twu7hodVONddcwofCCwx+0KJLEP02LkGe/s0VnCtAOxPkQEmyAGpckjnZdNnGVA wnQkDg6jgue4Y9AwwLWlcx7IFCWXT0idPY2tZpBtrrt+FEDOarWQU1EM3mdBsojUvb1K SUBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Uvmcdwzo; 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 f30si3684716edj.524.2020.05.16.17.11.29; Sat, 16 May 2020 17:11:53 -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=Uvmcdwzo; 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 S1726824AbgEQAHx (ORCPT + 99 others); Sat, 16 May 2020 20:07:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726670AbgEQAHw (ORCPT ); Sat, 16 May 2020 20:07:52 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCD00C061A0C for ; Sat, 16 May 2020 17:07:52 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id f4so2890503pgi.10 for ; Sat, 16 May 2020 17:07:52 -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=OwLBocF7GOWOm6ltPrRkZeo3oS8u31U+Qw2kOqsGVr4=; b=UvmcdwzowRgRawYU0w29101+wpOUhbjvhH69OnFa2IuWfFBRR7UHo5bDBZdXFYTEUN 2usxzjnXdfY/TbcDAnR4RLO3Q3TPKLiJ+KOKwnXDPtNSQEsBVIPDtMjEL2Of+IuDcUkd 0CBrV3s/RWlKx2DwljWbI7bbWTkoNcvywA/9PEFqshgFOekyBA9u/VQCmEtnzI5/KgaS C+1NebKSxcVaJKxvpqLuco+qi/3Gp+3FIGSs5x1Tgd3Zd1auruVywutms4LcWnYbmuFX oCFh3V0SWGGo1xvkUhilro+xgM5o3h4cHEzq8M5BA9c7LFGpwxxGMs0klb92UF2KiYys InQQ== 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=OwLBocF7GOWOm6ltPrRkZeo3oS8u31U+Qw2kOqsGVr4=; b=nE50pxxxMaR/BeFuFdWXxqLvydDw9QzAwarxikSSTURTgQAz2pMEIFQ0OGvH2aM+BF 7S87Lw8RTDxk9eiPuwelzFs2A+TfsIoKzfriV05JVJOqlWU7jDDMAgZCED2XhFA0RSum 7dQiM3sLTlLnNqizk46wkY/hjGE4/ML7rPiCEiq0lJfivBCD5k5S7EZz2R2f3CtfBwcF ihkdeLxxccj0WcMzE/bWd2yvSvybMjFotYdS84v5xdqyPs5ZwY4FdPOQTmfDqXObsz8S lK7X+yFpcw0Holz4ivByShtO6L4rkkSDPdWC2YVip8uQMoRpG3qrzJoEmtVvG0hBHtBu IdBQ== X-Gm-Message-State: AOAM532Yt+72xzr0E02d5vRTuyar+zBpwaexFysNg0zpNRHod05l/jZL e3XVRBk4eFTVfM9IErj1qY8= X-Received: by 2002:a62:528e:: with SMTP id g136mr11015600pfb.165.1589674072225; Sat, 16 May 2020 17:07:52 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id n16sm5087773pfq.61.2020.05.16.17.07.51 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 16 May 2020 17:07:51 -0700 (PDT) Date: Sat, 16 May 2020 17:07:50 -0700 From: Guenter Roeck To: Will Deacon Cc: 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: <20200517000750.GA157503@roeck-us.net> References: <20200511204150.27858-1-will@kernel.org> <20200511204150.27858-5-will@kernel.org> <20200517000050.GA87467@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200517000050.GA87467@roeck-us.net> 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 Sat, May 16, 2020 at 05:00:50PM -0700, Guenter Roeck wrote: > On Mon, May 11, 2020 at 09:41:36PM +0100, Will Deacon wrote: > > Now that the page table allocator can free page table allocations > > smaller than PAGE_SIZE, reduce the size of the PMD and PTE allocations > > to avoid needlessly wasting memory. > > > > Cc: "David S. Miller" > > Cc: Peter Zijlstra > > Signed-off-by: Will Deacon > > Something in the sparc32 patches in linux-next causes all my sparc32 emulations > to crash. bisect points to this patch, but reverting it doesn't help, and neither > does reverting the rest of the series. > Actually, turns out I see the same pattern (lots of scheduling while atomic followed by 'killing interrupt handler' in cryptomgr_test) with several powerpc boot tests. I am currently bisecting those crashes. I'll report the results here as well as soon as I have it. Guenter > Guenter > > --- > Bisect log: > > # bad: [bdecf38f228bcca73b31ada98b5b7ba1215eb9c9] Add linux-next specific files for 20200515 > # good: [2ef96a5bb12be62ef75b5828c0aab838ebb29cb8] Linux 5.7-rc5 > git bisect start 'HEAD' 'v5.7-rc5' > # bad: [3674d7aa7a8e61d993886c2fb7c896c5ef85e988] Merge remote-tracking branch 'crypto/master' > git bisect bad 3674d7aa7a8e61d993886c2fb7c896c5ef85e988 > # bad: [1ab4d6ff0a3ee4b29441d8b0076bc8d4734bd16e] Merge remote-tracking branch 'hwmon-staging/hwmon-next' > git bisect bad 1ab4d6ff0a3ee4b29441d8b0076bc8d4734bd16e > # good: [dccfae3ab84387c94f2efc574d41efae005eeee5] Merge remote-tracking branch 'tegra/for-next' > git bisect good dccfae3ab84387c94f2efc574d41efae005eeee5 > # bad: [20f9d1287c9f0047b81497197c9f4893485bbe15] Merge remote-tracking branch 'djw-vfs/vfs-for-next' > git bisect bad 20f9d1287c9f0047b81497197c9f4893485bbe15 > # bad: [6537897637b5b91f921cb0ac6c465a593f4a665e] Merge remote-tracking branch 'sparc-next/master' > git bisect bad 6537897637b5b91f921cb0ac6c465a593f4a665e > # good: [bca1583e0693e0ba76450b684c5910f7083eeef4] Merge remote-tracking branch 'mips/mips-next' > git bisect good bca1583e0693e0ba76450b684c5910f7083eeef4 > # good: [1f12096aca212af8fad3ef58d5673cde691a1452] Merge the lockless page table walk rework into next > git bisect good 1f12096aca212af8fad3ef58d5673cde691a1452 > # good: [23a457b8d57dc8d0cc1dbd1882993dd2fcc4b0c0] s390: nvme reipl > git bisect good 23a457b8d57dc8d0cc1dbd1882993dd2fcc4b0c0 > # good: [f57f5010c0c3fe2d924a957ddf1d17fbebb54d47] Merge remote-tracking branch 'risc-v/for-next' > git bisect good f57f5010c0c3fe2d924a957ddf1d17fbebb54d47 > # good: [1d5fd6c33b04e5d5b665446c3b56f2148f0f1272] sh: add missing DECLARE_EXPORT() for __ashiftrt_r4_xx > git bisect good 1d5fd6c33b04e5d5b665446c3b56f2148f0f1272 > # bad: [8c8f3156dd40f8bdc58f2ac461374bc804c28e3b] sparc32: mm: Reduce allocation size for PMD and PTE tables > git bisect bad 8c8f3156dd40f8bdc58f2ac461374bc804c28e3b > # good: [8e958839e4b9fb6ea4385ff2c52d1333a3a618de] sparc32: mm: Restructure sparc32 MMU page-table layout > git bisect good 8e958839e4b9fb6ea4385ff2c52d1333a3a618de > # good: [3f407976ac2953116cb8880a7a18b63bcc81829d] sparc32: mm: Change pgtable_t type to pte_t * instead of struct page * > git bisect good 3f407976ac2953116cb8880a7a18b63bcc81829d > # first bad commit: [8c8f3156dd40f8bdc58f2ac461374bc804c28e3b] sparc32: mm: Reduce allocation size for PMD and PTE tables > > --- > Log messages: > > Lots of: > > BUG: scheduling while atomic: kthreadd/2/0xffffffff > Modules linked in: > CPU: 0 PID: 2 Comm: kthreadd Tainted: G W 5.7.0-rc5-next-20200515 #1 > [f04f2c94 : > here+0x16c/0x250 ] > [f04f2df0 : > schedule+0x78/0x11c ] > [f003f100 : > kthreadd+0x188/0x1a4 ] > [f0008448 : > ret_from_kernel_thread+0xc/0x38 ] > [00000000 : > 0x0 ] > > followed by: > > Kernel panic - not syncing: Aiee, killing interrupt handler! > CPU: 0 PID: 19 Comm: cryptomgr_test Tainted: G W 5.7.0-rc5-next-20200515 #1 > [f0024400 : > do_exit+0x7c8/0xa88 ] > [f0075540 : > __module_put_and_exit+0xc/0x18 ] > [f0221428 : > cryptomgr_test+0x28/0x48 ] > [f003edc0 : > kthread+0xf4/0x12c ] > [f0008448 : > ret_from_kernel_thread+0xc/0x38 ] > [00000000 : > 0x0 ]