Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2584557ybk; Mon, 18 May 2020 02:52:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOd1aO/DBJ1LNxd6qWtu33mEMJUvN4c/9oCzN2guNKwUF3ZnJ0LBm60a6fSlgvvxeQhYjD X-Received: by 2002:a17:906:2e46:: with SMTP id r6mr2455706eji.222.1589795553444; Mon, 18 May 2020 02:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589795553; cv=none; d=google.com; s=arc-20160816; b=BZNI3f4cB83g80DIU/2s116AGbE2U9yhSIl9wYEfpnrwDuh0sVtFzutSwB9Ry1ZMR8 cb0xRjhp+RY9uUtSk2EU+Bf+sESKMkagbActNUY89m29Vy5BCL3ytGMryIdMBGbh7NW5 FBu0qAuzO9D7EsOcc4ljVn8BVC0Ql0gtslw5s62qefmehUam7E50kzwz2Wa15SJPsTh/ BBpeIwTkaRVBKd/4IhjT8BH0wbEnoOsGsSV/ipJbknUd27SFKsuVxCf11HOsXMNOGIp+ nwwvNJ8/y6ZZkvQUdOpdi0trqdiT50eiOSGpxEMAqYD1kur3Ez7008Q3a9M3akEjAze+ gGcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=Qhhn0VwMxiaOVltVT+JHeQEc8jO/6BKzGmuLUsypl40=; b=0eEkYKzToL452g6NbSozf34rsDFWygzDaYj+ArBYRSALG84UEAF9kvp+Qze0Ut7OdU ATy6IUACNzJEz/SGMZQOCMhrD+u8ajdi6HcvDJAxesbxLNszKspME/5btO/iVXTrlUTm B26rEqjYa1IQ4lX0fDEKKgLhST+3YWZ8+ZldOIjRI/hfLtjrTuWHrvICL5S2UocV6Mc/ lRuaLM2w1oT7VUqyVQGwuWcNwbvULtQhnhK7x5k5sGd80TosS95XvM2d8CrpGlrwrfYh 5uWnyHwVEMaWHpryTprNDttNbURAbQDL453CLsY1LOKfqI4H4bhaPkrOGrXYQhd8Mz8q IzIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Vtm64xWV; 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 r13si6353369edc.201.2020.05.18.02.52.09; Mon, 18 May 2020 02:52:33 -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=Vtm64xWV; 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 S1726505AbgERJsW (ORCPT + 99 others); Mon, 18 May 2020 05:48:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726040AbgERJsV (ORCPT ); Mon, 18 May 2020 05:48:21 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 327EBC061A0C for ; Mon, 18 May 2020 02:48:21 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id ci21so1528279pjb.3 for ; Mon, 18 May 2020 02:48:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Qhhn0VwMxiaOVltVT+JHeQEc8jO/6BKzGmuLUsypl40=; b=Vtm64xWVmyDtHmUUR2p2lWsliT1zLS+ji2PmXEo5AOaXRctjr5RrzuG299MOHoi7/Y Ncm/X1K8fJeljEh9G/Yy/juSpQ53ipBA5Ci7CD1lrGqQ4OGu8f6prCRYyfFqBAzUa3vj gaXfaNxWAPiCxTePAtxez4Pa6OeA77UMa3xmTE62nFHvGbxAvo6ZXGVJRO5Nd+sTkqMn uLy6McZZOcWvLEXkoV6L85FjQ9Af5BdIBg/VyZhQjNDkabQtauIcq2u1E+ZCZ18PEmjM N61AMQkKoZpHIrKZeLCkwPs15FOJ7UPwK6EpbQSjbMMBx70AmWS9BIHdKHtRKuRHv5E8 nmbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Qhhn0VwMxiaOVltVT+JHeQEc8jO/6BKzGmuLUsypl40=; b=cLyJqEMTZNs8jVMagNJ6ydN2vgzIDZIH10seUJR/fUx9J1BYQmf8MVKtybaXguriAk 0lKNXrjlwh5mz9S8bVl62LHMb5sADO0a6jD9q8OA93EUy3jQh8wqxGbEPVBKlt1n3obP qNdV6uKRCOtIcoTM/4FKs/WxBnKfccCekKgHTIvFhSUjDUcCQyA8g4DnNQ4YaW0qdbon Gn43FiGojd6fVHfUGAuPiTxQ8z/j2DASrWlL2hfPdz5FxEuERI7UeAOqTdW+dalZPQFM ryohBVgFASMtvRD96MYJsIU+izmou6e1LcpTz8fEBFHT+4kW5EruxQ5/nyWdFkn9YE8J ls2w== X-Gm-Message-State: AOAM531dm2RLeioz+L7ipg6xif7f025NyyRrKmL3jxGxKjJt/XpmgnQW XKO9p5UaPi2EEPMyhnTg/VM= X-Received: by 2002:a17:902:d311:: with SMTP id b17mr6403665plc.147.1589795300476; Mon, 18 May 2020 02:48:20 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id u73sm8955021pfc.0.2020.05.18.02.48.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 May 2020 02:48:19 -0700 (PDT) Subject: Re: [PATCH v5 04/18] sparc32: mm: Reduce allocation size for PMD and PTE tables 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" , rppt@kernel.org 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> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6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k7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: <418aa44b-6fb3-c3d8-a920-1a26e5edec62@roeck-us.net> Date: Mon, 18 May 2020 02:48:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200518083715.GA31383@willie-the-truck> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/18/20 1:37 AM, Will Deacon wrote: > On Sat, May 16, 2020 at 05:07:50PM -0700, Guenter Roeck wrote: >> 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. > > FWIW, I retested my sparc32 patches with PREEMPT=y and I don't see any > issues. However, linux-next is a different story, where I don't get very far > at all: > > BUG: Bad page state in process swapper pfn:005b4 > > If you're seeing this on powerpc too, I wonder if it's related to: > > https://lore.kernel.org/r/20200514170327.31389-1-rppt@kernel.org > > since I think it just hit -next and the diffstat is all over the place. I've > added Mike to CC just in case. > Here are the bisect results for ppc: # bad: [bdecf38f228bcca73b31ada98b5b7ba1215eb9c9] Add linux-next specific files for 20200515 # good: [2ef96a5bb12be62ef75b5828c0aab838ebb29cb8] Linux 5.7-rc5 git bisect start 'HEAD' 'v5.7-rc5' # good: [3674d7aa7a8e61d993886c2fb7c896c5ef85e988] Merge remote-tracking branch 'crypto/master' git bisect good 3674d7aa7a8e61d993886c2fb7c896c5ef85e988 # good: [87f6f21783522e6d62127cf33ae5e95f50874beb] Merge remote-tracking branch 'spi/for-next' git bisect good 87f6f21783522e6d62127cf33ae5e95f50874beb # good: [5c428e8277d5d97c85126387d4e00aa5adde4400] Merge remote-tracking branch 'staging/staging-next' git bisect good 5c428e8277d5d97c85126387d4e00aa5adde4400 # good: [f68de67ed934e7bdef4799fd7777c86f33f14982] Merge remote-tracking branch 'hyperv/hyperv-next' git bisect good f68de67ed934e7bdef4799fd7777c86f33f14982 # bad: [54acd2dc52b069da59639eea0d0c92726f32fb01] mm/memblock: fix a typo in comment "implict"->"implicit" git bisect bad 54acd2dc52b069da59639eea0d0c92726f32fb01 # good: [784a17aa58a529b84f7cc50f351ed4acf3bd11f3] mm: remove the pgprot argument to __vmalloc git bisect good 784a17aa58a529b84f7cc50f351ed4acf3bd11f3 # good: [6cd8137ff37e9a37aee2d2a8889c8beb8eab192f] khugepaged: replace the usage of system(3) in the test git bisect good 6cd8137ff37e9a37aee2d2a8889c8beb8eab192f # bad: [6987da379826ed01b8a1cf046b67cc8cc10117cc] sparc: remove unnecessary includes git bisect bad 6987da379826ed01b8a1cf046b67cc8cc10117cc # good: [bc17b545388f64c09e83e367898e28f60277c584] mm/hugetlb: define a generic fallback for is_hugepage_only_range() git bisect good bc17b545388f64c09e83e367898e28f60277c584 # good: [9b5aa5b43f957f03a1f4a9aff5f7924e2ebbc011] arch-kmap_atomic-consolidate-duplicate-code-checkpatch-fixes git bisect good 9b5aa5b43f957f03a1f4a9aff5f7924e2ebbc011 # bad: [89194ba5ee31567eeee9c81101b334c8e3248198] arch/kmap: define kmap_atomic_prot() for all arch's git bisect bad 89194ba5ee31567eeee9c81101b334c8e3248198 # good: [022785d2bea99f8bc2a37b7b6c525eea26f6ac59] arch-kunmap_atomic-consolidate-duplicate-code-checkpatch-fixes git bisect good 022785d2bea99f8bc2a37b7b6c525eea26f6ac59 # good: [a13c2f39e3f0519ddee57d26cc66ec70e3546106] arch/kmap: don't hard code kmap_prot values git bisect good a13c2f39e3f0519ddee57d26cc66ec70e3546106 # first bad commit: [89194ba5ee31567eeee9c81101b334c8e3248198] arch/kmap: define kmap_atomic_prot() for all arch's I don't know if that is accurate either. Maybe things are so broken that bisect gets confused, or the problem is due to interaction between different patch series. Guenter