From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31FD4C433ED for ; Tue, 20 Apr 2021 13:59:04 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6D325613B1 for ; Tue, 20 Apr 2021 13:59:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6D325613B1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:Subject: From:References:Cc:To:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7ihJdPEdpmZsGvGx5mX6a0++0nmYmsPEdceiOyDQBIk=; b=bFUY1KxzwE/hroS2EsW/Ts7wZ 3qTCTflHAkapC9LyA8I1OTdjG3dFP+0fHytEKj7AwlDSZf6gYjNbp8kwaQGaUbgTRBEKtl7ow4A0t NZ2+G1Tpgsf5w5htk6lp/ET9UgRXHG4dsRsSYQRGQviJM7+LE0EZtiMp9h8jkLynf2ovQSJBbEZuG J0Zsc/IzvSbmuvswD6pv0nD2jfudYCmJW3jrXD/uGEuNPCFH07QdkIa6pq6sIG6rEGCsShy6IKR5J TLHibLr2fXduD0wogtlT7ep51FVCz2XCNVmDuUA4NgcqQdOu8JeXjo4hZy1kVE7vEeYtnnm1Lw928 Hll1cLoSw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lYqro-00CHYD-E0; Tue, 20 Apr 2021 13:56:40 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYqrm-00CHY6-QH for linux-arm-kernel@desiato.infradead.org; Tue, 20 Apr 2021 13:56:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:Subject:From:References :Cc:To:Sender:Reply-To:Content-ID:Content-Description; bh=2swGFScfNKtndGubsPyzcMB/R/9UWctxaEjz506YT0I=; b=OOp+znxCDRZTNNBG+lP8CL9/vd cofQN2IN9GZxl6p/g3YHYczaKYRe7IHgIx0+k1PRJHDaxzDBZ1dkWHGSk1LzbphGvqbD6Q2SrbVu+ zJQgBStHnEZhWIwISOYPKVMTcB1Ty+IoMgRTw6nSvjpTqr8UbbzUIlHzbC6/25SQLVy9JrIhTcFtu CPrpvIsDzKTJpvKCrFtMkT3ojCMCS7rPyQYn0ceOL1DVh2tZT3DXHgChRmObNgxo6k2ZJrOkK3Z7/ zJfAtbk5VneBwG1LQ70lkfduf8eD2h3fPhXi/sh81nNeiGH3jgEV2XAQx+Bmu+RD096NLOLXOZfhN Gj7ENaUA==; Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYqrk-00CAca-0x for linux-arm-kernel@lists.infradead.org; Tue, 20 Apr 2021 13:56:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618926994; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2swGFScfNKtndGubsPyzcMB/R/9UWctxaEjz506YT0I=; b=WJsSsVJTTGeji3llz/NmyaVmUI1MOP0MA1oUWsZA9d+yuTn0ZGE+qazim8R5pmro5eMqm+ q5E5Ud43dY5G/OtZuWzQQBZ+qYEdZmwdX8/Tm242r4bGUvPSCnb/i3ozmJH27W+OnZ3vao TTsxIdAA5LQpyyt0NYscDmukebnjPXA= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-45-E8IzQydZNCivgr7VJBhE3w-1; Tue, 20 Apr 2021 09:56:30 -0400 X-MC-Unique: E8IzQydZNCivgr7VJBhE3w-1 Received: by mail-wr1-f72.google.com with SMTP id s9-20020a5d51090000b02901028ea30da6so10881954wrt.7 for ; Tue, 20 Apr 2021 06:56:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:references:from:organization:subject :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=2swGFScfNKtndGubsPyzcMB/R/9UWctxaEjz506YT0I=; b=m1wUHNpbygQuQESspPcNk0d9lN9rbe219fzhEWZy+ucS2Jbe09aHXD//39h803smZj EGfk4HFXW8iHhbBhge1QsdjS1ONN/5N9a0d4GkvagoZfruW4gF1s5qNiXDil7KfdTtXy eNkWVg7A/IKGuYYz49DUylcaJB9tObxuM8Woc0CgPG/pl527//NC9xH98J2Z+MlF6OYx jzxYMvIz+yAmc7YqJIjhQiCtt/O3z8SJ5j6LFZ1QppB79QQEF4CeK2JgscP/3QBEFmoB tZcOZTs/gcuXqWTC1/z7dngZ1j0QfVZJkXcks9OhabHoPpJparc3LoRGLtCkI8UyCy51 E5zA== X-Gm-Message-State: AOAM530N0Ec5W8A3yAz9DLIibepyz2CetbQi1+hGQ1EbJ5fn2r4URvmd TVUn82aDDv+ML9Apo3dco9djqzQ6XIKb7CuuYyLt1S174AyBm2lSm8YUQj1Ro9S0aO3X91GGfrs iAzmMu1TJ/lMq7x68wAFg8+LZMI0W7RPmgjI= X-Received: by 2002:a1c:7714:: with SMTP id t20mr4773899wmi.24.1618926989412; Tue, 20 Apr 2021 06:56:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXffdbVbO4EhLxZXboPYwUyY34Zz8JQIixcWjehp7ikNXXuUMfZAGOffqPbzkJhVg2Dv9JJQ== X-Received: by 2002:a1c:7714:: with SMTP id t20mr4773877wmi.24.1618926989194; Tue, 20 Apr 2021 06:56:29 -0700 (PDT) Received: from [192.168.3.132] (p4ff2390a.dip0.t-ipconnect.de. [79.242.57.10]) by smtp.gmail.com with ESMTPSA id c18sm27378176wrn.92.2021.04.20.06.56.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Apr 2021 06:56:28 -0700 (PDT) To: Mike Rapoport , linux-arm-kernel@lists.infradead.org Cc: Anshuman Khandual , Ard Biesheuvel , Catalin Marinas , Marc Zyngier , Mark Rutland , Mike Rapoport , Will Deacon , kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <20210420090925.7457-1-rppt@kernel.org> <20210420090925.7457-3-rppt@kernel.org> From: David Hildenbrand Organization: Red Hat Subject: Re: [PATCH v1 2/4] memblock: update initialization of reserved pages Message-ID: Date: Tue, 20 Apr 2021 15:56:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210420090925.7457-3-rppt@kernel.org> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210420_065636_163168_A157E980 X-CRM114-Status: GOOD ( 14.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 20.04.21 11:09, Mike Rapoport wrote: > From: Mike Rapoport > > The struct pages representing a reserved memory region are initialized > using reserve_bootmem_range() function. This function is called for each > reserved region just before the memory is freed from memblock to the buddy > page allocator. > > The struct pages for MEMBLOCK_NOMAP regions are kept with the default > values set by the memory map initialization which makes it necessary to > have a special treatment for such pages in pfn_valid() and > pfn_valid_within(). Just a general question while thinking about it: Would we right now initialize the memmap of these pages already via memmap_init_zone()->memmap_init_range()? (IOW, not marking the PageReserved?) -- Thanks, David / dhildenb _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel