linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* memblock:What is the difference between memory and physmem?
@ 2018-08-13  2:23 yhb
  2018-08-13  2:30 ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: yhb @ 2018-08-13  2:23 UTC (permalink / raw)
  To: linux-mm

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

struct memblock {
bool bottom_up; /* is bottom up direction? */
phys_addr_t current_limit;
struct memblock_type memory;
struct memblock_type reserved;
#ifdef CONFIG_HAVE_MEMBLOCK_PHYS_MAP
struct memblock_type physmem;
#endif
};
What is the difference between memory and physmem?

[-- Attachment #2: Type: text/html, Size: 2742 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: memblock:What is the difference between memory and physmem?
  2018-08-13  2:23 memblock:What is the difference between memory and physmem? yhb
@ 2018-08-13  2:30 ` Matthew Wilcox
  2018-08-13 14:36   ` Mike Rapoport
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2018-08-13  2:30 UTC (permalink / raw)
  To: yhb; +Cc: linux-mm

On Mon, Aug 13, 2018 at 02:23:26AM +0000, yhb@ruijie.com.cn wrote:
> struct memblock {
> bool bottom_up; /* is bottom up direction? */
> phys_addr_t current_limit;
> struct memblock_type memory;
> struct memblock_type reserved;
> #ifdef CONFIG_HAVE_MEMBLOCK_PHYS_MAP
> struct memblock_type physmem;
> #endif
> };
> What is the difference between memory and physmem?

commit 70210ed950b538ee7eb811dccc402db9df1c9be4
Author: Philipp Hachtmann <phacht@linux.vnet.ibm.com>
Date:   Wed Jan 29 18:16:01 2014 +0100

    mm/memblock: add physical memory list
    
    Add the physmem list to the memblock structure. This list only exists
    if HAVE_MEMBLOCK_PHYS_MAP is selected and contains the unmodified
    list of physically available memory. It differs from the memblock
    memory list as it always contains all memory ranges even if the
    memory has been restricted, e.g. by use of the mem= kernel parameter.
    
    Signed-off-by: Philipp Hachtmann <phacht@linux.vnet.ibm.com>
    Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: memblock:What is the difference between memory and physmem?
  2018-08-13  2:30 ` Matthew Wilcox
@ 2018-08-13 14:36   ` Mike Rapoport
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Rapoport @ 2018-08-13 14:36 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: yhb, linux-mm

On Sun, Aug 12, 2018 at 07:30:15PM -0700, Matthew Wilcox wrote:
> On Mon, Aug 13, 2018 at 02:23:26AM +0000, yhb@ruijie.com.cn wrote:
> > struct memblock {
> > bool bottom_up; /* is bottom up direction? */
> > phys_addr_t current_limit;
> > struct memblock_type memory;
> > struct memblock_type reserved;
> > #ifdef CONFIG_HAVE_MEMBLOCK_PHYS_MAP
> > struct memblock_type physmem;
> > #endif
> > };
> > What is the difference between memory and physmem?
> 
> commit 70210ed950b538ee7eb811dccc402db9df1c9be4
> Author: Philipp Hachtmann <phacht@linux.vnet.ibm.com>
> Date:   Wed Jan 29 18:16:01 2014 +0100
> 
>     mm/memblock: add physical memory list
>     
>     Add the physmem list to the memblock structure. This list only exists
>     if HAVE_MEMBLOCK_PHYS_MAP is selected and contains the unmodified
>     list of physically available memory. It differs from the memblock
>     memory list as it always contains all memory ranges even if the
>     memory has been restricted, e.g. by use of the mem= kernel parameter.

And it is enabled only for s390
     
>     Signed-off-by: Philipp Hachtmann <phacht@linux.vnet.ibm.com>
>     Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
> 

-- 
Sincerely yours,
Mike.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-13 14:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-13  2:23 memblock:What is the difference between memory and physmem? yhb
2018-08-13  2:30 ` Matthew Wilcox
2018-08-13 14:36   ` Mike Rapoport

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).