Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1579681

Re: [PATCH] mm: free reserved area's memmap if possiable

From Russell King - ARM Linux <linux@armlinux.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH] mm: free reserved area's memmap if possiable
Date 2017-02-13 13:30 +0100
Message-ID <tanVw-3DB-27@gated-at.bofh.it> (permalink)
References <tanC9-3wl-11@gated-at.bofh.it> <tanLQ-3A3-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Feb 13, 2017 at 12:17:00PM +0000, Will Deacon wrote:
> Adding linux-arm-kernel and devicetree (look for "raw-pfn"), since this
> impacts directly on those.
> 
> On Mon, Feb 13, 2017 at 08:02:29PM +0800, zhouxianrong@huawei.com wrote:
> > From: zhouxianrong <zhouxianrong@huawei.com>
> > 
> > just like freeing no-map area's memmap we could free reserved
> > area's memmap as well only when user of reserved area indicate
> > that we can do this in dts or drivers. that is, user of reserved
> > area know how to use the reserved area who could not memblock_free
> > or free_reserved_xxx the reserved area and regard the area as raw
> > pfn usage. the patch supply a way to users who want to utilize the
> > memmap memory corresponding to raw pfn reserved areas as many as
> > possible.
> 
> I don't really understand this. Can you point me at a specific use-case,
> please? Is CMA involved here?

You don't need "dt permission" to free the memmap page array for the
regions between memory areas.  In fact, adding a DT property for that
goes against the "DT describes the hardware not the implementation"
requirement, since the memmap page array is a Linux implementation
detail.

32-bit ARM has been freeing the memmap page array between memory areas
for years since pre-DT days, and continues to do so.  See
free_unused_memmap().

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] mm: free reserved area's memmap if possiable <zhouxianrong@huawei.com> - 2017-02-13 13:10 +0100
  Re: [PATCH] mm: free reserved area's memmap if possiable Will Deacon <will.deacon@arm.com> - 2017-02-13 13:20 +0100
    Re: [PATCH] mm: free reserved area's memmap if possiable Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-02-13 13:30 +0100
  [PATCH] mm: free reserved area's memmap if possiable <zhouxianrong@huawei.com> - 2017-02-14 08:10 +0100
    Re: [PATCH] mm: free reserved area's memmap if possiable zhouxianrong <zhouxianrong@huawei.com> - 2017-02-14 08:20 +0100
    Re: [PATCH] mm: free reserved area's memmap if possiable Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-02-14 10:10 +0100
      Re: [PATCH] mm: free reserved area's memmap if possiable zhouxianrong <zhouxianrong@huawei.com> - 2017-02-15 02:50 +0100
        Re: [PATCH] mm: free reserved area's memmap if possiable Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-02-15 08:20 +0100
          Re: [PATCH] mm: free reserved area's memmap if possiable zhouxianrong <zhouxianrong@huawei.com> - 2017-02-16 02:20 +0100

csiph-web