Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4378872imm; Tue, 11 Sep 2018 10:57:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY69fjNO0m58qgMhXjA1DfGyl0xuK2W4OgPZqja94/dJA9wCTefKK6RB6+z9Y9ANnOdHSb7 X-Received: by 2002:a17:902:4124:: with SMTP id e33-v6mr28677083pld.48.1536688643505; Tue, 11 Sep 2018 10:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536688643; cv=none; d=google.com; s=arc-20160816; b=k6GyAwnd2Ey6miEtPKtN+DNZtGkeYocKbDF3TvPdq2XLv9h0mG9sTof6F482JCsV8n B7hrqctN+antmWnx2yrEIFMgMixJ5eg7TfZhTNeGjrLc5yhwqBElOd0NWO8V4pa/n2EZ 4CVanPOgInN0As4BkncKpyfanwdFFCTotpqIdt6zN+39ASKIdQqeRJeGuXbVFswpuS6x Y16dPQ5BFlyFNlQXupssPg9mEn9ryBuEYmjg+xfbe3gkF1Zw2LeZBauuUEsTePdo9yDj 3m4Wax031NuEbPkvxmHf8XPZ84XpR5hAXy8LL+rOgfFCDLtD0vJnAjD/mh7U/TRQOqJ9 v+mg== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=YSDjACERomhXMzNOHOo3zTs2KphZUTZuO3jUSflzFNw=; b=ucZRkJa9+YHKhxhDNt7023oWz2390Cp3oGtUIUs3dzambL9UGG1YPgt0R4ey7BePpb rlhjQHNEo38uqraJU+XbNNuz1Wuj8IXimv31S3l2axLYyNydhq2J97rah8ts11uYXJgK bDckPzzmQdJaNWt/PdPLQ78EfLvcvMbhz2SndC2cshVyVtfElamrZdOjLF1aJPIsx0KM /3kii6hS1LWUXDStAbEyZgjRWZZ7A49TU45cBcMoqFTL+Kb1Xfg4xPT9M7vU8ZJXL4r7 lmEtO1kOQVNoklP9ZVqj0OsW7FchSdExV+hJpS3IpI2/RXGilZMHrdxFP3CI2FHaFZD7 TvyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a91-v6si19388343pla.123.2018.09.11.10.56.40; Tue, 11 Sep 2018 10:57:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728248AbeIKW4X (ORCPT + 99 others); Tue, 11 Sep 2018 18:56:23 -0400 Received: from ms.lwn.net ([45.79.88.28]:51544 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727044AbeIKW4X (ORCPT ); Tue, 11 Sep 2018 18:56:23 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 4306772A; Tue, 11 Sep 2018 17:55:57 +0000 (UTC) Date: Tue, 11 Sep 2018 11:55:55 -0600 From: Jonathan Corbet To: Mike Rapoport Cc: Michal Hocko , Randy Dunlap , Matthew Wilcox , Vlastimil Babka , linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/3] docs: core-api: add memory allocation guide Message-ID: <20180911115555.5fce5631@lwn.net> In-Reply-To: <1534517236-16762-4-git-send-email-rppt@linux.vnet.ibm.com> References: <1534517236-16762-1-git-send-email-rppt@linux.vnet.ibm.com> <1534517236-16762-4-git-send-email-rppt@linux.vnet.ibm.com> Organization: LWN.net X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry for being so slow to get to this...it fell into a dark crack in my rickety email folder hierarchy. I do have one question... On Fri, 17 Aug 2018 17:47:16 +0300 Mike Rapoport wrote: > + ``GFP_HIGHUSER_MOVABLE`` does not require that allocated memory > + will be directly accessible by the kernel or the hardware and > + implies that the data is movable. > + > + ``GFP_HIGHUSER`` means that the allocated memory is not movable, > + but it is not required to be directly accessible by the kernel or > + the hardware. An example may be a hardware allocation that maps > + data directly into userspace but has no addressing limitations. > + > + ``GFP_USER`` means that the allocated memory is not movable and it > + must be directly accessible by the kernel or the hardware. It is > + typically used by hardware for buffers that are mapped to > + userspace (e.g. graphics) that hardware still must DMA to. I realize that this is copied from elsewhere, but still...as I understand it, the "HIGH" part means that the allocation can be satisfied from high memory, nothing more. So...it's irrelevant on 64-bit machines to start with, right? And it has nothing to do with DMA, I would think. That would be handled by the DMA infrastructure and, perhaps, the DMA* zones. Right? I ask because high memory is an artifact of how things are laid out on 32-bit systems; hardware can often DMA quite easily into memory that the kernel sees as "high". So, to me, this description seems kind of confusing; I wouldn't mention hardware at all. But maybe I'm missing something? Thanks, jon