Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp121780ybt; Thu, 18 Jun 2020 20:18:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEKxplFKuiz7VX1m5L6/PvbqsclL/m7TSvHc/PrMAf8DQ4BbtYgwRBkUzfB5uxwiue0DLG X-Received: by 2002:a17:906:d973:: with SMTP id rp19mr1333938ejb.475.1592536729876; Thu, 18 Jun 2020 20:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592536729; cv=none; d=google.com; s=arc-20160816; b=0CjhVmaSz2DFUFJybrcVkRrr/dJdcHAx633Zavwzc3jATmfStNEv7N4UsnN7lNcK5w zP5DtWwzCxrNvsa9Ml8dqgrmLp/9un2qw9lSMB+3fZD8dKTdE2WlQHCPH7Yz1Vc3oC3Z /83AD2cVDs13rJgz9LHsZrqoHQuWMKcyhDFm10+LZNJcGT/MVJPjzAKTIqgSJDqQrmkg h3T/vaCeNitIyqmJe3JYZXW8suGnKk9XzKlt2g2ctcwkCW5UcxNOfjhBYIguZY6zyQD3 pwLg+gu9F/56SZQRH0RvfsdAnXUotrn1mzsGMIBFn+hufd2I7adJCcm+nhLUM7vwoHPX HRRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from; bh=qktueNLzgq6WJX4e8KgnMr6JPDxbZcZiALEY/3ND3Cw=; b=DFJnHWPOgkXmI1W6ARN0gDvrHtLUVFYI23Lmv8dHm97F1QdlTS8zNyRK7Voyl0BWAe r4C8yTq/8/bBnRumNCjVGOHXJW2yY8Nhj0305pl4zs9Ood+iL9qMQ/ky84oox47Uq3XA s/9v5Lj9W0KH3KMhB8z0AqlfW/AbQdzdjhLss10iA6gmSMHoLlU/anuxbPm/ue3XcryA pzFwCU9FB8oC38n7+OTx55ifXHYnjV7vp4GEA6FvyvOchbe1yPjbNoXFmg3dETcdjXvt aYzT+5nbdOXwSpkMumTK9HsrvGVyqqdI18eW9xDPuPMugj6lHQUSt6jGrDV5rUFgDqDc WtnA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt4si3549285ejc.34.2020.06.18.20.18.25; Thu, 18 Jun 2020 20:18:49 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730409AbgFSBev (ORCPT + 99 others); Thu, 18 Jun 2020 21:34:51 -0400 Received: from foss.arm.com ([217.140.110.172]:37594 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726878AbgFSBeu (ORCPT ); Thu, 18 Jun 2020 21:34:50 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 238DFD6E; Thu, 18 Jun 2020 18:34:50 -0700 (PDT) Received: from [10.163.81.119] (unknown [10.163.81.119]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 216703F73C; Thu, 18 Jun 2020 18:34:41 -0700 (PDT) From: Anshuman Khandual Subject: Re: [PATCH V3 (RESEND) 0/3] arm64: Enable vmemmap mapping from device memory To: Mike Rapoport Cc: linux-mm@kvack.org, Catalin Marinas , Will Deacon , Mark Rutland , Paul Walmsley , Palmer Dabbelt , Tony Luck , Fenghua Yu , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , David Hildenbrand , Michal Hocko , "Matthew Wilcox (Oracle)" , "Kirill A. Shutemov" , Andrew Morton , Dan Williams , Pavel Tatashin , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-riscv@lists.infradead.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <1592442930-9380-1-git-send-email-anshuman.khandual@arm.com> <20200618085641.GE6493@linux.ibm.com> Message-ID: <27f8c6f9-3970-6f02-dff4-7ca15bee7138@arm.com> Date: Fri, 19 Jun 2020 07:04:35 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200618085641.GE6493@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/18/2020 02:26 PM, Mike Rapoport wrote: > On Thu, Jun 18, 2020 at 06:45:27AM +0530, Anshuman Khandual wrote: >> This series enables vmemmap backing memory allocation from device memory >> ranges on arm64. But before that, it enables vmemmap_populate_basepages() >> and vmemmap_alloc_block_buf() to accommodate struct vmem_altmap based >> alocation requests. >> >> This series applies on 5.8-rc1. >> >> Pending Question: >> >> altmap_alloc_block_buf() does not have any other remaining users in >> the tree after this change. Should it be converted into a static >> function and it's declaration be dropped from the header >> (include/linux/mm.h). Avoided doing so because I was not sure if there >> are any off-tree users or not. > > Well, off-tree users probably have an active fork anyway so they could > switch to vmemmap_alloc_block_buf()... Sure, will make the function a static and remove it's declaration from the header. > > Regardless, can you please update Documentation/vm/memory-model.rst to > keep it in sync with the code? Sure, will do.