Skip to contentSkip to conversation

Revert "lmb: Default to not-LMB_USE_MAX_REGIONS"

PATCH In review Tom Rini 2 participants 3 messages Feb 8, 2023

Subsystems (2)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 Revert "lmb: Default to not-LMB_USE_MAX_REGIONS"

As explained by Philippe Schenker, I was misinterpreting what happened in the case where we do not set LMB_USE_MAX_REGIONS and so had re-introduced the problem I was attempting to more widely resolve.

This reverts commit 007ae5d108a37564905ea1588cb279f3a522cc3d.

---
 configs/a3y17lte_defconfig           | 1 +
 configs/a5y17lte_defconfig           | 1 +
 configs/a7y17lte_defconfig           | 1 +
 configs/dragonboard845c_defconfig    | 1 +
 configs/mt7981_emmc_rfb_defconfig    | 1 +
 configs/mt7981_rfb_defconfig         | 1 +
 configs/mt7981_sd_rfb_defconfig      | 1 +
 configs/mt7986_rfb_defconfig         | 1 +
 configs/mt7986a_bpir3_emmc_defconfig | 1 +
 configs/mt7986a_bpir3_sd_defconfig   | 1 +
 configs/qcs404evb_defconfig          | 1 +
 configs/starqltechn_defconfig        | 1 +
 lib/Kconfig                          | 1 +
 13 files changed, 13 insertions(+)
configs/a3y17lte_defconfig +1 -0
index 0215c5f234bb..124fb8d47617 100644
@@ -24,3 +24,4 @@ CONFIG_SYS_BOOTM_LEN=0x2000000
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
 CONFIG_DM_I2C_GPIO=y
+CONFIG_LMB_MAX_REGIONS=64
configs/a5y17lte_defconfig +1 -0
index d1cd97baf512..ffb0b3f474a6 100644
@@ -24,3 +24,4 @@ CONFIG_SYS_BOOTM_LEN=0x2000000
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
 CONFIG_DM_I2C_GPIO=y
+CONFIG_LMB_MAX_REGIONS=64
configs/a7y17lte_defconfig +1 -0
index bef2d0945aec..8c1229d8d5ec 100644
@@ -24,3 +24,4 @@ CONFIG_SYS_BOOTM_LEN=0x2000000
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
 CONFIG_DM_I2C_GPIO=y
+CONFIG_LMB_MAX_REGIONS=64
configs/dragonboard845c_defconfig +1 -0
index cef82f56108e..a69d82761a8d 100644
@@ -26,3 +26,4 @@ CONFIG_DM_PMIC=y
 CONFIG_PMIC_QCOM=y
 CONFIG_MSM_GENI_SERIAL=y
 CONFIG_SPMI_MSM=y
+CONFIG_LMB_MAX_REGIONS=64
configs/mt7981_emmc_rfb_defconfig +1 -0
index 4832a2264395..b3b37b6e5ed4 100644
@@ -62,3 +62,4 @@ CONFIG_MTK_SERIAL=y
 CONFIG_FAT_WRITE=y
 CONFIG_HEXDUMP=y
 # CONFIG_EFI_LOADER is not set
+CONFIG_LMB_MAX_REGIONS=64
configs/mt7981_rfb_defconfig +1 -0
index c3975278871e..b7ffb4dfa74d 100644
@@ -64,3 +64,4 @@ CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_MTK_SPIM=y
 CONFIG_HEXDUMP=y
+CONFIG_LMB_MAX_REGIONS=64
configs/mt7981_sd_rfb_defconfig +1 -0
index 17592dc22b9a..85be9bbc5030 100644
@@ -62,3 +62,4 @@ CONFIG_MTK_SERIAL=y
 CONFIG_FAT_WRITE=y
 CONFIG_HEXDUMP=y
 # CONFIG_EFI_LOADER is not set
+CONFIG_LMB_MAX_REGIONS=64
configs/mt7986_rfb_defconfig +1 -0
index 1363f9dc6d0b..ac91c93efb42 100644
@@ -64,3 +64,4 @@ CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_MTK_SPIM=y
 CONFIG_HEXDUMP=y
+CONFIG_LMB_MAX_REGIONS=64
configs/mt7986a_bpir3_emmc_defconfig +1 -0
index 354159df9b2e..2d4876f299f4 100644
@@ -62,3 +62,4 @@ CONFIG_MTK_SERIAL=y
 CONFIG_FAT_WRITE=y
 CONFIG_HEXDUMP=y
 # CONFIG_EFI_LOADER is not set
+CONFIG_LMB_MAX_REGIONS=64
configs/mt7986a_bpir3_sd_defconfig +1 -0
index db7ef98d807b..08edfe7ac409 100644
@@ -62,3 +62,4 @@ CONFIG_MTK_SERIAL=y
 CONFIG_FAT_WRITE=y
 CONFIG_HEXDUMP=y
 # CONFIG_EFI_LOADER is not set
+CONFIG_LMB_MAX_REGIONS=64
configs/qcs404evb_defconfig +1 -0
index d3608cae9f90..dae155141152 100644
@@ -51,3 +51,4 @@ CONFIG_USB_XHCI_DWC3=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_GENERIC=y
 CONFIG_USB_STORAGE=y
+CONFIG_LMB_MAX_REGIONS=64
configs/starqltechn_defconfig +1 -0
index 81fd7b22676e..7a64f2a7a088 100644
@@ -33,3 +33,4 @@ CONFIG_VIDEO=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_VIDEO_SIMPLE=y
 CONFIG_VIDEO_DT_SIMPLEFB=y
+CONFIG_LMB_MAX_REGIONS=64
lib/Kconfig +1 -0
index 59e4304afd1a..549bd3577851 100644
@@ -1028,6 +1028,7 @@ config LMB
 config LMB_USE_MAX_REGIONS
 	bool "Use a common number of memory and reserved regions in lmb lib"
 	depends on LMB
+	default y
 	help
 	  Define the number of supported memory regions in the library logical
 	  memory blocks.
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Tom Rini

As explained by Philippe Schenker, I was misinterpreting what happened in the case where we do not set LMB_USE_MAX_REGIONS and so had re-introduced the problem I was attempting to more widely resolve.

This reverts commit 007ae5d108a37564905ea1588cb279f3a522cc3d.

Quoted 15 lines
---
 configs/a3y17lte_defconfig           | 1 +
 configs/a5y17lte_defconfig           | 1 +
 configs/a7y17lte_defconfig           | 1 +
 configs/dragonboard845c_defconfig    | 1 +
 configs/mt7981_emmc_rfb_defconfig    | 1 +
 configs/mt7981_rfb_defconfig         | 1 +
 configs/mt7981_sd_rfb_defconfig      | 1 +
 configs/mt7986_rfb_defconfig         | 1 +
 configs/mt7986a_bpir3_emmc_defconfig | 1 +
 configs/mt7986a_bpir3_sd_defconfig   | 1 +
 configs/qcs404evb_defconfig          | 1 +
 configs/starqltechn_defconfig        | 1 +
 lib/Kconfig                          | 1 +
 13 files changed, 13 insertions(+)
author
#2 lore raw
In reply to Tom Rini
Quoted 8 lines · Tom Rini

As explained by Philippe Schenker, I was misinterpreting what happened in the case where we do not set LMB_USE_MAX_REGIONS and so had re-introduced the problem I was attempting to more widely resolve.

This reverts commit 007ae5d108a37564905ea1588cb279f3a522cc3d.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom