Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp53958lqf; Tue, 26 Mar 2024 14:10:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWk3hM2Rm5FFNsAN9x5HW6hcWWijrY1AcM2JhL/p407EBXzz/H2cs7uHhN7ihKXrUE5SSvpV8P3LjQQ2u+ekZpGfCoO19OUlazj+ZbfOQ== X-Google-Smtp-Source: AGHT+IH88oADcryxTfqlJKMMW9RqAJy5jbMDx2yhAMiBFMSLLZuzhJNFBnH0UcHpSi56ulq/H00t X-Received: by 2002:a05:6a00:17a4:b0:6ea:b073:be46 with SMTP id s36-20020a056a0017a400b006eab073be46mr1139202pfg.33.1711487421594; Tue, 26 Mar 2024 14:10:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711487421; cv=pass; d=google.com; s=arc-20160816; b=yqiGdg1AwaiU4TR3b0x1YeqrA87+fOcbWmoPEtRC7AAH+n6EEqeJeSmk2dUCP44DIW oLuLddw8ic48bh/09gaOQ0KR1R9yfpY918rojH0yK2IGm58V2fCxJQYcuOBEJN9Yvok1 62ky4WcR1NWc2zLbcMboHLp7GDF+t9ui4r0ZURzGgg+MSD3kFEs66Mwjno9Le4S6Ipe0 PH+/x9faHzLahlBmFa09707Lzy/1UqaCZfg1nQvQtqDWFhlrTC5OKYiSAdZmlQM2cTlK DOaPoVkYitAc8tSDth66F20xdNQjS8jPLqWSL7qr8ddKG4EMBJl34UqyjP2eBjGvdKP7 ZLpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+7bjw/hteF8djmOoWPYQb6GfOlzxEGXIn8a6dn1jJ20=; fh=duws341LQzDYdXXbs/tlQIdoITol+bDK027ElvBGq6I=; b=cWqn4/QyR3o4Pfr3AiZgKPK6dvpWEG5mEYeuvHQwjwIJKFGwDrK4SKR0SQ+qEvq20x IjoLCOeZCRb5U5UzEg9gYVkPb0bqKgHF4s51+zxIdJMmok6qxsH8QQ37Ia/yQAub5JyA +NmRoq+/MFPsXY9a7kcyHGb8WwwdiB+E3mKwefVgjSrUCebbWDlywWEgS84acca9ynRY PL8Q8NbYZd/0UubmsJuxmBzJvCJpWvxVLOftC4PgihXTx4hN8SYCITVGgyEmMl/OTLcI M3/f9Gnz2iFzBMr6eCuVeOZqHw6uCKH3/lLc1ochHeMtnrJu0qk+FvuTnwYHEZKJB+su hn5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=J7SvCAom; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-119947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 71-20020a63014a000000b005dc958db2fcsi10498023pgb.363.2024.03.26.14.10.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 14:10:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=J7SvCAom; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-119947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6F1E2B23B98 for ; Tue, 26 Mar 2024 20:43:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D12B712B158; Tue, 26 Mar 2024 20:43:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="J7SvCAom" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 685F7745E4 for ; Tue, 26 Mar 2024 20:43:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711485807; cv=none; b=oOUaAzGimI4zWHrXi3VC5ik6bGneqkg8BdTlEoiG47gcuXcGMzwwxMN2anTjnhiF2/Q2NTZgxPhW4uKUKM+O3FGlBw/ut1JHUmD8e0Qc+0EixUbxB1CfmGgnkUdoL2cNh2KDGOi1aHiWwhtlTGd5AAZNT6uvQtz8psxHXVX5whY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711485807; c=relaxed/simple; bh=xpgv3sgDQ7rpy8eSB8hXWoT4c/rHDCJv082+mAKX/Fc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ol6WAPFFYJ/DMhodfCjrTZaMEJt3NdqRP6RqoPLSheHftbFmv5mLL0dc4KPbju22GzfeXc31BytBYwpF8GEkGgLvb54Cyb/qFeTzbswmbw+dn1V1erIGlHRBsXrvSYfg0zZg5CHDdflBN07qKFGiyc55XuNbeSS1jUEvBjWYfO4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=J7SvCAom; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711485805; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+7bjw/hteF8djmOoWPYQb6GfOlzxEGXIn8a6dn1jJ20=; b=J7SvCAomlKsBUl3Oo8vPw7pRWDU2+PH628xnmqz0k70HQgJzAVAymdmeZun/0cmi42qvyL wemvIRuM7mX7aCb0U1RvH2WZjZSYPWI947ilCNB4J27FAzptzn03MVFOT+n8q4LpodjQEy sW7/kBxhwZd/5D4iO/lVkjDSoqMW9MQ= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-481-HH0yrNPKOZmYaVsvd4hiJQ-1; Tue, 26 Mar 2024 16:43:23 -0400 X-MC-Unique: HH0yrNPKOZmYaVsvd4hiJQ-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-430c9bbe925so10267951cf.0 for ; Tue, 26 Mar 2024 13:43:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711485803; x=1712090603; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+7bjw/hteF8djmOoWPYQb6GfOlzxEGXIn8a6dn1jJ20=; b=NLb5DqGHJBNEpZi0KVWfGEFKsKoUwn1zHDTnBdoj1Lc2h3CPr27I68oJl6id5q5ZWQ fwJdJKuKQR1KGzcyHzseQbeUJ/c919O5xj82dXVnFMMKt8LWE5CSo45GemdT5Qzih8b7 YO5ryB6xz7NVwNbchcQ6SVGq+dt+zUQadRakwpNT4r3ktuqtIrTW08U7R6cLLsFh6Fbl Q9+UU1OPWwDd0J2ecll89X/Iwpm+9XlHtJt26F4JtJR6bu1XYw1YZDbNoDT1AZjVgFKc KuGl2awgTUUX9FvA7rnQ9XxKHVNbu66vSWWIRuzwM9hlm8TMgKGCEjwL1aUoJOP8NtOL uzaA== X-Gm-Message-State: AOJu0YzQrsRclH2bBA+MzVO9K4cNMMbWcV+K4fdf0F7wpi+PwC/MAozy kZvSwEHnrYtGOXJlQMDm2Zef5X5ItjneBkm/kEb8ZLtDzO5e1Y5Qi/7amkHGzQX0X+e6QGS+zu2 pZVyv1SNJgkqhErp992nJbyC1Hnj0clqZ+msOEwUf8FM5l0AY6g1YsJbIob2fmA== X-Received: by 2002:a05:6214:3d8c:b0:696:6f95:4421 with SMTP id om12-20020a0562143d8c00b006966f954421mr12036053qvb.1.1711485803023; Tue, 26 Mar 2024 13:43:23 -0700 (PDT) X-Received: by 2002:a05:6214:3d8c:b0:696:6f95:4421 with SMTP id om12-20020a0562143d8c00b006966f954421mr12036034qvb.1.1711485802644; Tue, 26 Mar 2024 13:43:22 -0700 (PDT) Received: from x1n ([99.254.121.117]) by smtp.gmail.com with ESMTPSA id fw11-20020a056214238b00b0069693e10869sm1875364qvb.143.2024.03.26.13.43.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 13:43:22 -0700 (PDT) Date: Tue, 26 Mar 2024 16:43:20 -0400 From: Peter Xu To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, SeongJae Park , Jason Gunthorpe , Mike Rapoport , Matthew Wilcox , kernel test robot Subject: Re: [PATCH] mm/arch: Provide pud_pfn() fallback Message-ID: References: <20240323151643.1047281-1-peterx@redhat.com> <20240326132726.67e82559a928ac1636c8050c@linux-foundation.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240326132726.67e82559a928ac1636c8050c@linux-foundation.org> On Tue, Mar 26, 2024 at 01:27:26PM -0700, Andrew Morton wrote: > On Sat, 23 Mar 2024 11:16:43 -0400 peterx@redhat.com wrote: > > > From: Peter Xu > > > > The comment in the code explains the reasons. We took a different approach > > comparing to pmd_pfn() by providing a fallback function. > > > > Another option is to provide some lower level config options (compare to > > HUGETLB_PAGE or THP) to identify which layer an arch can support for such > > huge mappings. However that can be an overkill. > > > > ... > > > > If we care about per-commit build errors (and if it is ever feasible to > > reorder), we can move this patch to be before the patch "mm/gup: handle > > huge pud for follow_pud_mask()" in mm-unstable to unbreak build on that > > commit. > > I temporarily disabled that whole series a few days ago. Because of > multiple build issues, iirc. > > Let's make that permanent. Please redo the whole series against > mm-unstable and resend? Yes, that's the plan. Feel free to ignore this as this is not used until that GUP rework series, I'll include it in the whole set to be reposted. I'm currently doing the build tests; just finished writting the harness for testing the matrix. It'll take a bit time to run through the tests I specified (I tried to cover a few more archs/configs), and I'll repost with all patches included (fixups squashed) when test finished. [side note: I think I can reproduce the other not-reported issue, on arm+alldefconfig; that'll get covered too] Thanks, -- Peter Xu