Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1287645pxb; Wed, 10 Feb 2021 05:06:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmcJGwMKZiIXe2awy/N5b/j3A+vavMBt28h1KqSgJ9ZczR3y5eEg3gIcKGzUPCqLPoDPjb X-Received: by 2002:a17:906:4a8b:: with SMTP id x11mr2729924eju.195.1612962375725; Wed, 10 Feb 2021 05:06:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612962375; cv=none; d=google.com; s=arc-20160816; b=OxzzioKsqD1UQF8JdQpkLDweydJFolVsb0y0XWhategOuHvay/L13SBcRlq5aX+899 Lh/BYlac1Fq94BPm4L4yrYmQoYjgYtoZLTvQiFcQBOFYrQlxin8w6kFdw8IUgeY0xE2M AfMc34T3yeMGwqJ5vxNCBrwMbhmjh8JG69olJODincBGJHbanH1XKJasZtiw8kq3bJvO LHih3u8gdr6xlF2c1QMxIdtTQH6hfM2T8HPLHZuPvQxddHGDfazfPdGOOfdisUZIhobW ZenE+T0PwfLOcaXZ0KkDqQwQa4aeT3fn7TQIjj+LGBEIBUA/0Y2UecvWhipe6yyBsiaa 9tDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=PbC/OuvX3RajBPxHlNoIH5w45WS04qvTDDuZ2qWSpNk=; b=h7zchtu2HNcvsToTDvAbpdjvJl1BO8BB6pBvmEUfk+zzPIdKt3sCPSEKsfwGy0j/mE AsfKrU7JJIwqqRzoSpM+38y08WRB6XhC87fQBy4LZtVC/IdBBWQ4xhsp3vo34lj+ZBoG 1kn4NEDyenpEipMSYdIkmDg5cjjE4BBOBUJRl0qI9ZUNjo6lA3UB4bIxF3XmF/wzXlRK A8tIg1CIILaGVFzbwnscXQrZ+XhXI15ISpXxf+dv87tq4yB3wIx3PLemzA5QjHsjuTCR iQQN1chU/R2NtxLvN9SKgtzVYLMdzx4OEY6g+3sTwcLhRgoP8MBZY/fMM3rZxD48JS31 rOmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=f8xcknHK; 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 cb7si1277116edb.419.2021.02.10.05.05.51; Wed, 10 Feb 2021 05:06:15 -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=@mg.codeaurora.org header.s=smtp header.b=f8xcknHK; 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 S231755AbhBJNCQ (ORCPT + 99 others); Wed, 10 Feb 2021 08:02:16 -0500 Received: from mail29.static.mailgun.info ([104.130.122.29]:61187 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231624AbhBJM5x (ORCPT ); Wed, 10 Feb 2021 07:57:53 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1612961859; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=PbC/OuvX3RajBPxHlNoIH5w45WS04qvTDDuZ2qWSpNk=; b=f8xcknHK43FU4ttEbPUEYXLG7XrYuk9E2R5clIQLIMhoPsgf8MStrmtit6CP2Ld9MkTor0AS dnCGjJ3rTiLduGnivZCrwYgYcgh9GJ1ySvCB44HVWiUDAXAOoU4WKGIc7kUWTHqDsxrCw6CI dy5wEKzEplM/tp/ftJ+QDIXsp2U= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-east-1.postgun.com with SMTP id 6023d81e81f6c45dcec9f1cc (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 10 Feb 2021 12:57:02 GMT Sender: guptap=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id D8FCBC43464; Wed, 10 Feb 2021 12:57:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.1.6] (unknown [117.98.199.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: guptap) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5E205C433C6; Wed, 10 Feb 2021 12:56:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5E205C433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=guptap@codeaurora.org Subject: Re: [PATCH 01/10] mm/page-flags: introduce PageHighMemZone() To: Joonsoo Kim , Vlastimil Babka Cc: Matthew Wilcox , Andrew Morton , Linux Memory Management List , LKML , Laura Abbott , "Aneesh Kumar K . V" , Mel Gorman , Michal Hocko , Johannes Weiner , Roman Gushchin , Minchan Kim , Rik van Riel , Christian Koenig , Huang Rui , Eric Biederman , "Rafael J . Wysocki" , Pavel Machek , Joonsoo Kim References: <1587369582-3882-1-git-send-email-iamjoonsoo.kim@lge.com> <1587369582-3882-2-git-send-email-iamjoonsoo.kim@lge.com> <20200420112010.GA5820@bombadil.infradead.org> <2c45bab6-8c29-e227-56b8-307e8bee46c6@suse.cz> From: Prakash Gupta Message-ID: <1b13af90-6e76-bde7-e861-5eb99c249e1d@codeaurora.org> Date: Wed, 10 Feb 2021 18:26:49 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/21/2020 12:13 PM, Joonsoo Kim wrote: > This patchset is a preparation for my future patchset "mm/cma: manage the memory > of the CMA area by using the ZONE_MOVABLE" [1] to solve the many CMA problems. > > CMA areas can be on the all the memory range, from ZONE_DMA to ZONE_HIGHMEM. > And, in my future patchset [1], all the CMA areas are managed through > the ZONE_MOVABLE > and the range of the ZONE_MOVABLE is extended to cover all the CMA > areas. In this > case, following scenario would be possible. > > CMA area 1: 32MB size on the memory range 16MB~48MB (originally on the > ZONE_NORMAL) > CMA area 2: 32MB size on the memory range 896MB~928MB (originally on > the ZONE_HIGHMEM) > > With my future patchset [1], ZONE_MOVABLE manages all the pages from > CMA area 1 and 2. > So, ZONE_MOVABLE has both direct mapped page and un-mapped page. Since one zone > has two types of pages, current PageHighMem() implemented by using > zone index could not > work correctly. So, I make this patchset to change the PagHighMem() > implementation. Hello Joonsoo, Resurrecting this thread. I wanted to check if you are still working on [1]. If yes, would you be posting it soon. I think these would be useful for high CMA system. Thanks, Prakash