Skip to content

Allow showing the memory map

Simon Glass u-boot 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 3 repliesIn review
  2. v37 patches 7 repliesSuperseded
  3. v27 patches 11 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches14 repliesSuperseded

Changes in v4 from the cover letter

- Drop am65x patch as it is not needed
- Add patch to export the lmb data structure
- Add new patch to show the lmb records

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8common: Fix up malloc() comment in reserve_noncached()common/board_f.c+3 -30 replies
2/8common: Tidy up how malloc() is initedcommon/board_r.c common/dlmalloc.c common/spl/spl.c +1 more+15 -80 replies
3/8global_data: Add some more accessorsinclude/asm-generic/global_data.h+30 -00 replies
4/8bootstage: Allow counting memory without stringscommon/board_f.c common/bootstage.c include/bootstage.h+13 -100 replies
5/8cmd: Move meminfo command into its own filecmd/Kconfig cmd/Makefile cmd/mem.c +1 more+28 -191 reply
6/8cmd: Update the meminfo command to show the memory mapcmd/Kconfig cmd/meminfo.c doc/usage/cmd/meminfo.rst +3 more+230 -20 replies
7/8lmb: Export the lmb data structurelib/lmb.c+1 -11 reply
8/8meminfo: Show the lmb recordscmd/meminfo.c test/cmd/meminfo.c+30 -20 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by.

PatchIlias ApalodimasTom Rini
1/8A-b
2/8R-b R-b
3/8
4/8
5/8R-b
6/8
7/8R-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/8] Allow showing the memory map

This little series adds a new 'memmap' command, intended to show the layout of memory within U-Boot and how much memory is available for loading images.

Changes in v4:
- Drop am65x patch as it is not needed
- Add patch to export the lmb data structure
- Add new patch to show the lmb records

Changes in v3:
- Add a new Kconfig for the extra functionality

Changes in v2:
- Split into its own patch
- Modify the existing 'meminfo' command instead

Simon Glass (8):
common: Fix up malloc() comment in reserve_noncached()
common: Tidy up how malloc() is inited
global_data: Add some more accessors
bootstage: Allow counting memory without strings
cmd: Move meminfo command into its own file
cmd: Update the meminfo command to show the memory map
lmb: Export the lmb data structure
meminfo: Show the lmb records

 cmd/Kconfig                       |  12 +++
 cmd/Makefile                      |   1 +
 cmd/mem.c                         |  19 -----
 cmd/meminfo.c                     |  99 +++++++++++++++++++++++
 common/board_f.c                  |   8 +-
 common/board_r.c                  |   3 +-
 common/bootstage.c                |  16 ++--
 common/dlmalloc.c                 |   8 +-
 common/spl/spl.c                  |   4 +-
 doc/usage/cmd/meminfo.rst         | 128 ++++++++++++++++++++++++++++++
 doc/usage/index.rst               |   1 +
 include/asm-generic/global_data.h |  30 +++++++
 include/bootstage.h               |   5 +-
 include/malloc.h                  |   8 ++
 lib/lmb.c                         |   2 +-
 test/cmd/Makefile                 |   3 +-
 test/cmd/meminfo.c                |  42 ++++++++++
 17 files changed, 347 insertions(+), 42 deletions(-)
 create mode 100644 cmd/meminfo.c
 create mode 100644 doc/usage/cmd/meminfo.rst
 create mode 100644 test/cmd/meminfo.c
Signature · 1 line
2.43.0