Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp663022pxu; Thu, 3 Dec 2020 09:33:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4+TvqIiz5pWxxu7ix1yOa173uKUpLbXtpZ04j/hy8l2O2K/KjVNbTqBQhC4Ew9GbHX36V X-Received: by 2002:a50:fd88:: with SMTP id o8mr3885584edt.386.1607016797944; Thu, 03 Dec 2020 09:33:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607016797; cv=none; d=google.com; s=arc-20160816; b=ojy9o4DTJ/i0k5Baz1fH50cVykJDfbGhmWV7dnAWnBzaOS2NIeUetKi4vDlhePf0ii NeXzCbUPELwU3ZZHiqOCI/VFww62bG2Pf6whMxb77ySCunQ5sT33zpp4ghorsrEBSn69 IB1qILSMr38Kvhq4YPAyEaInaWtSgPhIcwcs57E9BS2Qk+nXEWyL/03UWj9Ocww70PDp mW68wau2iYDlzkUc+N3927MjsRWgoqwzcxQORozdWH5chn5I5HhEHKdhoRRiG42LFjmW 1cR59EppCIUxNMsLHgP8md1MmlXya2FKOHEBCQnWJNLdK69ztkwl+1MheWeiy1Xf6Us0 B2pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:cc:to:from:subject:dkim-signature:dkim-filter; bh=GjaFqTJ5lp61k/LGJVQAhrKoVyTGjwsxrnSkt04ovtE=; b=urDbXzPXoDYEdvDWOKH8nXDBiYVT6Mx7Ar/F6sfPCl58iIzXDWk6kH3DOwSadNibdF ZRiqkXl5v5pS+b61R7PKiFx3rAzCIc3NgCCGz35lJAODI4is/Jd9QM8m5N2mBoiuVU/+ qotsg13Vo5XsfwUv3mUB/bUpwEHybDu1suNvTSy+F8QYlw1wWg1BMMtvw/XNz8LDRLfr MdUmfJWImVZeQDRMOXd9Fe4zmKUOr3fEiSMaRY0yCJbtYdQ6UQQxWINksUrk04uNR6gt k8WrbazR8kE9tw7omje8RGqAgHF3a7r67XNmfF28BrD/otXFqhyXvjHmP5ex1vo8p1ei /8Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=F5J9vp0r; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qk27si438969ejb.615.2020.12.03.09.32.52; Thu, 03 Dec 2020 09:33:17 -0800 (PST) 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=pass header.i=@samsung.com header.s=mail20170921 header.b=F5J9vp0r; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388511AbgLCR2b (ORCPT + 99 others); Thu, 3 Dec 2020 12:28:31 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:41315 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387703AbgLCR22 (ORCPT ); Thu, 3 Dec 2020 12:28:28 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201203172736euoutp02528b88f4adf5199dc3afe21ebf204ecf~NRPPgYJIX0719007190euoutp02b for ; Thu, 3 Dec 2020 17:27:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201203172736euoutp02528b88f4adf5199dc3afe21ebf204ecf~NRPPgYJIX0719007190euoutp02b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1607016456; bh=GjaFqTJ5lp61k/LGJVQAhrKoVyTGjwsxrnSkt04ovtE=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=F5J9vp0rzYz6KHiYYsCJEkwdQ5/2R/N94lGrhDRb5FR4n19iVy0WsQfjsHQmTKfhr VWDJfJrzd1S2X36CRh89gHzb5cUaa5WQpuI/U2E1sEHUZFDjpZ6hbzsUvf62pK3HJX znO/84PY8VdVAdkD9hSQyTWzgYj91HR9HLOQjzZ4= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20201203172726eucas1p264e2e84dc61dc8b723bb7bedcbf57861~NRPF_y_dX2650426504eucas1p2D; Thu, 3 Dec 2020 17:27:26 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id D8.92.44805.DFF19CF5; Thu, 3 Dec 2020 17:27:25 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20201203172725eucas1p2fddec1d269c55095859d490942b78b93~NRPFnjqiC0463904639eucas1p2i; Thu, 3 Dec 2020 17:27:25 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201203172725eusmtrp1e973a606237785b1f9a1a54bb0d32974~NRPFm2BV42689826898eusmtrp1k; Thu, 3 Dec 2020 17:27:25 +0000 (GMT) X-AuditID: cbfec7f4-b37ff7000000af05-6c-5fc91ffdba9d Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id B2.F3.16282.DFF19CF5; Thu, 3 Dec 2020 17:27:25 +0000 (GMT) Received: from [106.210.88.143] (unknown [106.210.88.143]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20201203172724eusmtip1189e0e7a7c619e60fb77515c850b4375~NRPE-sis71314213142eusmtip14; Thu, 3 Dec 2020 17:27:24 +0000 (GMT) Subject: Re: [PATCH v4 00/16] Overhaul multi-page lookups for THP From: Marek Szyprowski To: Matthew Wilcox , Hugh Dickins Cc: Andrew Morton , Jan Kara , William Kucharski , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, hch@lst.de, hannes@cmpxchg.org, yang.shi@linux.alibaba.com, dchinner@redhat.com, linux-kernel@vger.kernel.org Message-ID: <0107bae8-baaa-9d39-5349-8174cb8abbbe@samsung.com> Date: Thu, 3 Dec 2020 18:27:26 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Transfer-Encoding: 8bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA01Se0xTdxj1d+/l9rZavBaUb4i6NIwFo4BM3SVTJvF1XbJHjMlwyYJVbhAH RVuKY/MPArq4rkFUtLVg5CEpIhYpIgzGItUWKgPc6hMZKWglQglCeWxUUNrrg//O+b5z8p2T fBQu+dsvmEqWp3MKuSxFSoqI69b/O1dPr7AlRE0NxjCFVZUk0z5wXsBcNn3JXLpswRjnaC7B FGhzMOaPJhvB2BsKSaan8pUfU1OqxhjPf7N0JLuH3LSAvekaxtkik4qtKV/JmkZPCdhWnYdg f++NYRsfZZHsiLOLYIf/vEeyfxXdErBu0/Jv5n8n2pDIpSRncIrI2D2i/e3WcvygQfTjQ+vG LNRGqZGQAnotqM21mBqJKAldjmDgRQHOkzEEZ2+NI69KQrsRuO4L3zrKb9rfiAwInutPkjwZ RtBmeexzBNBx8KvTIPBikl4D6iE16cWB9A74V92HvAacLsHgTIHLtxDTsaDLa/eZCToUnkyc 85kX03uhecTxRrMIbOeeEl4spD8Hz/mLPozTKyCn1pvbi4Og6+kFXyGgS4WQbejH+dxb4I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QkMWfZbKju KcwS0zauYAGp4hWwk5gx4SwjiM0ioCLx+NtMsEmiAkkSv5euZYOoEZQ4OfMJWD2ngL3E77lL wGxmATOJeZsfMkPY8hLNW2dD2eISt57MZ5rAKDQLSfssJC2zkLTMQtKygJFlFaNIamlxbnpu sZFecWJucWleul5yfu4mRmB0bzv2c8sOxpWvPuodYmTiYDzEKMHBrCTCe3vpiXgh3pTEyqrU ovz4otKc1OJDjKZA/0xklhJNzgeml7ySeEMzA1NDEzNLA1NLM2MlcV6TI2vihQTSE0tSs1NT C1KLYPqYODilGph2Mk49vHbG1/k+PAkauxzNuHOXNLBcqpo+aclqttQZbD0ijE9K+vyL/ma9 OJHEEH+hQVH2Yn+97ZeYotWZOvZTt4idltbgapjY4n7bQYVlc+G5yG6/AKY3svst/whfnLKe e4dy4t20/gNJ0n11Aoxycm7vvu51uOX5YM+7za7uAh2Mn4vUMo7H3j1XwMrR0+e1yc7B4cH8 /O55vV8UL13f8HXnn9m2zY1PuOKbk53+HVpVXZKl+3YFB+cfZanKB/0292rjWtd53fhurb4r 1LR/yqJQi2V5FnGmSzp6dW5kT15swClqu9te9sEEj87La1w/vImf7vj3iO/0wJgXlxqcpHNO 3DurFFd6JGT3DyWW4oxEQy3mouJEAFW9ZZZ3AwAA X-CMS-MailID: 20201203172725eucas1p2fddec1d269c55095859d490942b78b93 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20201203172725eucas1p2fddec1d269c55095859d490942b78b93 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201203172725eucas1p2fddec1d269c55095859d490942b78b93 References: <20201112212641.27837-1-willy@infradead.org> <20201117153947.GL29991@casper.infradead.org> <20201117191513.GV29991@casper.infradead.org> <20201117234302.GC29991@casper.infradead.org> <20201125023234.GH4327@casper.infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On 03.12.2020 16:46, Marek Szyprowski wrote: > On 25.11.2020 03:32, Matthew Wilcox wrote: >> On Tue, Nov 17, 2020 at 11:43:02PM +0000, Matthew Wilcox wrote: >>> On Tue, Nov 17, 2020 at 07:15:13PM +0000, Matthew Wilcox wrote: >>>> I find both of these functions exceptionally confusing.  Does this >>>> make it easier to understand? >>> Never mind, this is buggy.  I'll send something better tomorrow. >> That took a week, not a day.  *sigh*.  At least this is shorter. >> >> commit 1a02863ce04fd325922d6c3db6d01e18d55f966b >> Author: Matthew Wilcox (Oracle) >> Date:   Tue Nov 17 10:45:18 2020 -0500 >> >>      fix mm-truncateshmem-handle-truncates-that-split-thps.patch > > This patch landed in todays linux-next (20201203) as commit > 8678b27f4b8b ("8678b27f4b8bfc130a13eb9e9f27171bcd8c0b3b"). Sadly it > breaks booting of ANY of my ARM 32bit test systems, which use initrd. > ARM64bit based systems boot fine. Here is example of the crash: One more thing. Reverting those two: 1b1aa968b0b6 mm-truncateshmem-handle-truncates-that-split-thps-fix-fix 8678b27f4b8b mm-truncateshmem-handle-truncates-that-split-thps-fix on top of linux next-20201203 fixes the boot issues. Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland