Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1037386iob; Wed, 18 May 2022 20:10:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdgP6QpQq2Aiok1Umjb/Bc4lENDLgKNjsgyYMGCMTxfnBuvswdEIAKBpq67LUWjg5Y0HyZ X-Received: by 2002:a17:906:7252:b0:6fe:9163:a4f5 with SMTP id n18-20020a170906725200b006fe9163a4f5mr2330790ejk.562.1652929806961; Wed, 18 May 2022 20:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652929806; cv=none; d=google.com; s=arc-20160816; b=xjfvQY/xyKi91j4Jk9PrHTZnCYIkP8MpTMr/zye2bK+F/BI70iPE3IH4A+koNSzDKm 7xhiMeXAViebPIBudsGq9g9mhg77ODe1b4dPXd0TJNaQ/HK4Xxqg9r3sdNrqi1WBQF6m rNfTWigWDLlK1k/+1Wkoe8KxNbGkcRxLhEnYByNFjm5nDGBVnH2gHiz2kIrIR2jRZ6DO CxrwQlMIuBxC4TlvpZpk9C1BEOSqrjy6rCmhCbkBZ8H4aS4i012yZwXr92+W2UiU132z QxUmJwX57Dnos62YcAczar1KZ9EnP0HnFnxjq7dLav9dfvPxj0EeedVRsUpsrNb9TSpG opoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FfSGeGLsTGa/kN0tZZMhQzuZST7aaZkoCseqfn8igks=; b=OG3aSuEHqYBqokeP0kAXzvka/czuifCKpmFkSyYowB5pKo9nPJe3KViiz/wV2I99wy rn0pIlQVCAuSr549D9fbxm6PjjqI+bQg1UnWfl8qXlz1AXMsD73dSqtklfg/grdKV/tu VxglU10wnOtMoJst0NQ+MnlNNjkKjqxwEFPZBW2bCsoIHMczzr/HECFlswZz6P/dlnSI bMbcjfGwRFFu4daCjhCeiknwzyKFNUOxFdrq4Psw/InIQU4cAzHr6BAM5G9zATQDC/jO o5l70URLxNhTPSqthJKXpntO98qHvLarmIufZizD5fYOq15GOvLOuxu4PuX9/Kih+EWE JVlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Qoo2GAm1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a05640242c700b0042ae84b2966si4098389edc.410.2022.05.18.20.09.41; Wed, 18 May 2022 20:10:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Qoo2GAm1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231965AbiESAUd (ORCPT + 99 others); Wed, 18 May 2022 20:20:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231398AbiESAUd (ORCPT ); Wed, 18 May 2022 20:20:33 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF0C2F592 for ; Wed, 18 May 2022 17:20:31 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id 11so1528224qtp.9 for ; Wed, 18 May 2022 17:20:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=FfSGeGLsTGa/kN0tZZMhQzuZST7aaZkoCseqfn8igks=; b=Qoo2GAm1GcS9vr9qvOXmUufnaVX1H7cVYwMNkjhhTlYdOEeWcRpS5J/w2bbRafsAz5 fOqxGsggoCgmSux73CsRcliZ1CWDoHg/vSPSro39VoUSZlXJO5uvTZ9ZruRzJio1RBL3 5AUqHVbSehF4mYOZUvbhXiXbWhEKJmhNeUls91eP9TK8/sMeiYNiDdIVaK3fwxjrhTxF PZpKR0E9b/ZO4RZzx6kTIeJhYsYwmc8w0Pj+DzsUswk9YaOv8EHevjGeMWe3H0gXTOnx N5mj2jrirO5QmOsz1vANmm+8LWnYKZTIAyzTQTywXBkgyEwFMKY6rCvNxWlR6aqEsLM0 KZCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=FfSGeGLsTGa/kN0tZZMhQzuZST7aaZkoCseqfn8igks=; b=p4S35oaY769eOGq2sYrgo9Gt5MwyN/f0yJyOM7W4uCkptR6fKV16gh1VySea8eh0RA Y1SjMUdkR0oIsqVCgKeNOW4R/MyIeKV+Dg82W7YL9lKoddHYHixoq1gkxI+caBBTcfuH G2E1gsQjXjBi4ofq2CAl15JjtApOsC2Sq6SxiKZ47rimGSXXrZNnXrbIpg4wZLMyKROr ENSL3sL+Fu7XmZgrMYgK0V0oxJT+DoxnpwNGcoKxi8JzPC98QjFYIP/r73InfCuPFIL3 OJLXrt520BDssmG3BNvyFP0MsCb1IcLDnmXLdLyaoPMNim90Ru9KVkzNCX+319nDa7X4 y6bw== X-Gm-Message-State: AOAM530leslbjvsYme+8MiVbyIDVftZRSsrLQWy6qFDlsOA/Vbft6uol 4/g1VJx5jNNmJ3YelWejaQGmTRzqNUCvEMBimf0= X-Received: by 2002:a05:622a:1746:b0:2f3:e05f:ade6 with SMTP id l6-20020a05622a174600b002f3e05fade6mr2001007qtk.479.1652919631137; Wed, 18 May 2022 17:20:31 -0700 (PDT) MIME-Version: 1.0 References: <20220509074330.4822-1-jaewon31.kim@samsung.com> <20220516173321.67402b7f09eacc43d4e476f4@linux-foundation.org> In-Reply-To: From: Jaewon Kim Date: Thu, 19 May 2022 09:20:20 +0900 Message-ID: Subject: Re: [RFC PATCH] page_ext: create page extension for all memblock memory regions To: Mike Rapoport Cc: Andrew Morton , Jaewon Kim , Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Joonsoo Kim Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As I said it is v5.10 based kernel. ; Actually I am using v5.10 based source tree on an arm64 device. Thank you Jaewon Kim 2022=EB=85=84 5=EC=9B=94 18=EC=9D=BC (=EC=88=98) =EC=98=A4=ED=9B=84 10:31, = Mike Rapoport =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > On Tue, May 17, 2022 at 10:10:20PM +0900, Jaewon Kim wrote: > > 64 > > 59 > > > > 2022=EB=85=84 5=EC=9B=94 17=EC=9D=BC (=ED=99=94) =EC=98=A4=ED=9B=84 9:5= 5, Mike Rapoport =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > > > > > On Tue, May 17, 2022 at 08:38:18PM +0900, Jaewon Kim wrote: > > > > Hello Mike Rapoport > > > > Thank you for your comment. > > > > > > > > Oh really? Could you point out the code or the commit regarding 'al= l > > > > struct pages in any section should be valid and > > > > properly initialized' ? > > > > > > There were several commits that refactored the memory map initializat= ion, > > > freeing of the unused memory map and abuse of pfn_valid() as a substi= tute > > > of "is memory valid" semantics. > > > > > > > Actually I am using v5.10 based source tree on an arm64 device. > > > > > > Then most probably your change is not relevant for the upstream kerne= l. > > > Did you observe any issues with page_ext initialization on v5.18-rcN > > > kernels? > > > > Actually I observed only 59 sections were initialized for page_ext and > > missed 5 sections. > > It should be totally 64 sections * 128 MB =3D 8,192 MB > > Does this happen with v5.10 based kernel or with v5.18-rcN based kernel? > > > > > I tried to look up and found the following commit in v5.16-rc1, did > > > > you mean this? > > > > 3de360c3fdb3 arm64/mm: drop HAVE_ARCH_PFN_VALID > > > > > > Yes, this is one of those commits. > > > > > > > I guess memblock_is_memory code in pfn_valid in arch/arm64/mm/init.= c, v5.10 > > > > might affect the page_ext_init. > > > > > > Yes. In 5.10 the pfn_valid() test in page_ext_init() will skip an ent= ire > > > section if the first pfn in that section is not memory that can be ma= pped > > > in the linear map. > > > > > > But again, this should be fixed in the latest kernels. > > > > Great! Thank you for your explanation. > > I will check it someday later when I use the latest kernel on our devic= es. > > The next version on our devices seems to be v5.15 though. > > > > Thank you > > Jaewon Kim > > -- > Sincerely yours, > Mike.