Skip to contentSkip to conversation

Change DRAM message and add RAM doc

PATCH NAK Neha Malcom Francis 3 participants 8 messages Mar 19, 2025 – Apr 17, 2025

lore
Share & tools
lore
#0 lore raw

v2 cover Change DRAM message and add RAM doc

This short series is an ongoing effort to make RAM utilization clearer for easier debugging and understanding of code. Intention is for users to quickly be able to identify the CONFIGs needed to modify for their RAM usecase.

Neha Malcom Francis (2):
board_f: Modify DRAM message
doc: memory: Add documentation for system RAM

 .gitattributes                        |   1 +
 common/board_f.c                      |   2 +-
 doc/develop/memory.rst                | 158 +++++++++++++++++++++++++-
 doc/develop/pics/spl_after_reloc.svg  | Bin 0 -> 193600 bytes
 doc/develop/pics/spl_before_reloc.svg | Bin 0 -> 224608 bytes
 5 files changed, 159 insertions(+), 2 deletions(-)
 create mode 100644 doc/develop/pics/spl_after_reloc.svg
 create mode 100644 doc/develop/pics/spl_before_reloc.svg
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/2 board_f: Modify DRAM message

The message "DRAM: 2 GiB (effective 32 GiB)" can be a little confusing, modify the message s/effective/total to make it more evident.

---
 common/board_f.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/board_f.c +1 -1
index 99616fdac80..9bbbf733f54 100644
@@ -254,7 +254,7 @@ static int show_dram_config(void)
 
 	print_size(gd->ram_size, "");
 	if (!sizes_near(gd->ram_size, size)) {
-		printf(" (effective ");
+		printf(" (total ");
 		print_size(size, ")");
 	}
 	board_add_ram_info(0);
Signature · 1 line
2.34.1
#2 lore raw

PATCH v2 2/2 doc: memory: Add documentation for system RAM

In reply to Neha Malcom Francis

Add documentation for system RAM utilization in U-Boot.

---
 .gitattributes                        |   1 +
 doc/develop/memory.rst                | 158 +++++++++++++++++++++++++-
 doc/develop/pics/spl_after_reloc.svg  | Bin 0 -> 193600 bytes
 doc/develop/pics/spl_before_reloc.svg | Bin 0 -> 224608 bytes
 4 files changed, 158 insertions(+), 1 deletion(-)
 create mode 100644 doc/develop/pics/spl_after_reloc.svg
 create mode 100644 doc/develop/pics/spl_before_reloc.svg
.gitattributes +1 -0
index 7a7c4163560..735b13da278 100644
@@ -6,3 +6,4 @@
 *.ttf binary
 *.gz binary
 *.png binary
+*.svg binary
doc/develop/memory.rst +157 -1

167 lines not on this page · raw message

doc/develop/pics/spl_after_reloc.svg new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..93e3d599526aa4765127e33aa57865d22d7bc94c
GIT binary patch
doc/develop/pics/spl_before_reloc.svg new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..f3a42ab7792e4b0bee61e511892055f6512b7a02
GIT binary patch
Signature · 1 line
2.34.1
#3 lore raw

Re: [PATCH v2 2/2] doc: memory: Add documentation for system RAM

Moin,

Am Wed, Mar 19, 2025 at 07:33:27PM +0530 schrieb Neha Malcom Francis:

Quoted 8 lines

Add documentation for system RAM utilization in U-Boot.

---
 .gitattributes                        |   1 +
 doc/develop/memory.rst                | 158 +++++++++++++++++++++++++-
 doc/develop/pics/spl_after_reloc.svg  | Bin 0 -> 193600 bytes
 doc/develop/pics/spl_before_reloc.svg | Bin 0 -> 224608 bytes

Had a look at the first svg. It's just some rectangles, arrows, and text. This should _not_ be ~200k but really small not much more than 20k! Actually there are pixel images embedded in your grahipcs instead of just using text. This is contradicting a vector image format, please invest some time for proper graphics instead of throwing bmp cloaked as svg to git as binary.

.gitattributes line 9

Quoted 13 lines
 4 files changed, 158 insertions(+), 1 deletion(-)
 create mode 100644 doc/develop/pics/spl_after_reloc.svg
 create mode 100644 doc/develop/pics/spl_before_reloc.svg
.gitattributes +1 -0
index 7a7c4163560..735b13da278 100644
@@ -6,3 +6,4 @@
 *.ttf binary
 *.gz binary
 *.png binary
+*.svg binary

nack, svg is by definition no binary format.

Greets
Alex

#4 lore raw
In reply to Neha Malcom Francis
Quoted 9 lines · Neha Malcom Francis

This short series is an ongoing effort to make RAM utilization clearer for easier debugging and understanding of code. Intention is for users to quickly be able to identify the CONFIGs needed to modify for their RAM usecase.

Neha Malcom Francis (2):
board_f: Modify DRAM message
doc: memory: Add documentation for system RAM

[...]

Applied to u-boot/master, thanks!

[1/2] board_f: Modify DRAM message

      commit: 7dfe3cdc6c58f428803b0f1698bbd4b283103adf
[2/2] doc: memory: Add documentation for system RAM
      commit: 284ef1bbcefcf3180592ed48f522c79618099bd6
Signature · 1 line
Tom
#5 lore raw

Hello Tom,

Am Wed, Apr 09, 2025 at 07:46:16PM -0600 schrieb Tom Rini:

Quoted 10 lines · Neha Malcom Francis
Quoted 9 lines

This short series is an ongoing effort to make RAM utilization clearer for easier debugging and understanding of code. Intention is for users to quickly be able to identify the CONFIGs needed to modify for their RAM usecase.

Neha Malcom Francis (2):
board_f: Modify DRAM message
doc: memory: Add documentation for system RAM

Quoted 8 lines
Quoted 1 line

[...]

Applied to u-boot/master, thanks!

[1/2] board_f: Modify DRAM message

      commit: 7dfe3cdc6c58f428803b0f1698bbd4b283103adf
[2/2] doc: memory: Add documentation for system RAM
      commit: 284ef1bbcefcf3180592ed48f522c79618099bd6

Something went wrong here. We have a file 'spl_before_reloc.svg' with size zero now in patch doc/develop/pics …

Greets
Alex

#6 lore raw
Quoted 17 lines · Alexander Dahl

Hello Tom,

Am Wed, Apr 09, 2025 at 07:46:16PM -0600 schrieb Tom Rini:

Quoted 14 lines · Neha Malcom Francis
Quoted 10 lines

This short series is an ongoing effort to make RAM utilization clearer for easier debugging and understanding of code. Intention is for users to quickly be able to identify the CONFIGs needed to modify for their RAM usecase.

Neha Malcom Francis (2):
board_f: Modify DRAM message
doc: memory: Add documentation for system RAM

[...]

Applied to u-boot/master, thanks!

Quoted 7 lines
Quoted 4 lines

[1/2] board_f: Modify DRAM message

      commit: 7dfe3cdc6c58f428803b0f1698bbd4b283103adf
[2/2] doc: memory: Add documentation for system RAM
      commit: 284ef1bbcefcf3180592ed48f522c79618099bd6

Something went wrong here. We have a file 'spl_before_reloc.svg' with size zero now in patch doc/develop/pics …

Sigh, I thought I caught the problems there, but it seems not. Neha can you address Alex's other feedback too and post new before/after svg files? Thanks.

Signature · 1 line
Tom
#7 lore raw

Hi Alexander, Tom

Quoted 23 lines · Tom Rini
Quoted 22 lines · Alexander Dahl

Hello Tom,

Am Wed, Apr 09, 2025 at 07:46:16PM -0600 schrieb Tom Rini:

Quoted 18 lines · Neha Malcom Francis
Quoted 10 lines

This short series is an ongoing effort to make RAM utilization clearer for easier debugging and understanding of code. Intention is for users to quickly be able to identify the CONFIGs needed to modify for their RAM usecase.

Neha Malcom Francis (2):
board_f: Modify DRAM message
doc: memory: Add documentation for system RAM

[...]

Applied to u-boot/master, thanks!

[1/2] board_f: Modify DRAM message

      commit: 7dfe3cdc6c58f428803b0f1698bbd4b283103adf
[2/2] doc: memory: Add documentation for system RAM
      commit: 284ef1bbcefcf3180592ed48f522c79618099bd6
Quoted 7 lines
Quoted 2 lines

Something went wrong here. We have a file 'spl_before_reloc.svg' with size zero now in patch doc/develop/pics …

Sigh, I thought I caught the problems there, but it seems not. Neha can you address Alex's other feedback too and post new before/after svg files? Thanks.

Will do that, thanks!

Signature · 2 lines
Thanking You
Neha Malcom Francis