Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4093597pxj; Tue, 11 May 2021 20:14:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuitazWzss7xKBHYktIMsN05Hf73MrDiuXkxqeLRYch6jkjHS5u5eu22OA5MiXTI6YYYwA X-Received: by 2002:a92:c20e:: with SMTP id j14mr16380289ilo.259.1620789280446; Tue, 11 May 2021 20:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620789280; cv=none; d=google.com; s=arc-20160816; b=zeJd1HaOFT7ZXyTQpIUNm5QRcN4OmH5LxSe5KzXtfl35n6a1FysHViewFb5pjTXpSQ zruVKRp45j+FhFDTFXLPSydn4QtqK81uoAI8TMFlCvBIW6WK4wqNQ+aZBQuqrEDe7f3M vjRkKLTAx+f0dsN4ieZ7EK7dHVs3TFvMI5zmclUuhYLmqZCMXMaEwuxVe4GfqNr2E46P 9Eil36JzMStETGA4VJd4Lg02EDDy0VZFY2pG6oaYFaTDOvBjSt+n0r41glZxoJc4shuS 5Qp6uCGPHBMG3JbljKiDKM7JVoYzZEB33n+EUoLaMqHM6eO8FBgNuq1LL848dvcxKiaj JoQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=VyJuDTf8m0KHntOoaJos4lqpnHqFllxd2TZv2afG8q8=; b=akeRvUHfRwALfiiJ0OtOZBy5YwSihQedoX5MK7CftvbNrDbn6Gzs+BMrTx6iX3TUq+ FIlbcrhon1DfJfmO4fAN5VrO2QF9yw9rfHEMPt1ky6K/+2HpiiH9rK3n+85gwq2LaB+o cRi+LX4U3X8zcm8fhCGCaLf6lqR0HvcI8dH1zPuGPb1q+sSqOxqKWVYqdhOl4K9t5EWR Ag/o0kAzOMU8xiCMk73GP6fycmZUvb6gTIo5YDzPsFAH7aZ3oj8LwX3idRfO+eawAmiT Dn7Yqk9X5f3EYeYh2kzKEpZi8f9pqAc9oQSzRj5s+21043n/8vRrrY0hg3DrwFM0j4HO ORHg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p31si9084085jac.95.2021.05.11.20.14.26; Tue, 11 May 2021 20:14:40 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230095AbhELDOj (ORCPT + 99 others); Tue, 11 May 2021 23:14:39 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:2449 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbhELDOi (ORCPT ); Tue, 11 May 2021 23:14:38 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Fg0D93P73zCrTC; Wed, 12 May 2021 11:10:49 +0800 (CST) Received: from [10.174.177.243] (10.174.177.243) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.498.0; Wed, 12 May 2021 11:13:29 +0800 Subject: Re: [PATCH v4 0/4] arm64: drop pfn_valid_within() and simplify pfn_valid() To: Mike Rapoport , Andrew Morton CC: Anshuman Khandual , Ard Biesheuvel , Catalin Marinas , "David Hildenbrand" , Marc Zyngier , Mark Rutland , Mike Rapoport , Will Deacon , , , , References: <20210511100550.28178-1-rppt@kernel.org> From: Kefeng Wang Message-ID: Date: Wed, 12 May 2021 11:13:28 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20210511100550.28178-1-rppt@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.243] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/5/11 18:05, Mike Rapoport wrote: > From: Mike Rapoport > > Hi, > > These patches aim to remove CONFIG_HOLES_IN_ZONE and essentially hardwire > pfn_valid_within() to 1. > > The idea is to mark NOMAP pages as reserved in the memory map and restore > the intended semantics of pfn_valid() to designate availability of struct > page for a pfn. > > With this the core mm will be able to cope with the fact that it cannot use > NOMAP pages and the holes created by NOMAP ranges within MAX_ORDER blocks > will be treated correctly even without the need for pfn_valid_within. > > The patches are boot tested on qemu-system-aarch64. > > I beleive it would be best to route these via mmotm tree. Reviewed-by: Kefeng Wang