Skip to contentSkip to conversation

spapr: increase temporary fdt buffer size

PATCH Applied Alexey Kardashevskiy 3 participants 4 messages Sep 24, 2013 – Sep 25, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spapr: increase temporary fdt buffer size

At the moment the size of the buffer is set to 64K which is enough for approximately 150 VCPUs which is not the limit.

This increases the buffer up to 256K which allows having a tree for approximately 600 VCPUs which is way beyond the real number we need.

As only the real size of the tree is copied to the guest, there will be no impact on existing configurations.

---
 hw/ppc/spapr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/ppc/spapr.c +1 -1
index 1bb76f1..063fe63 100644
@@ -62,7 +62,7 @@
  *
  * We load our kernel at 4M, leaving space for SLOF initial image
  */
-#define FDT_MAX_SIZE            0x10000
+#define FDT_MAX_SIZE            0x40000
 #define RTAS_MAX_SIZE           0x10000
 #define FW_MAX_SIZE             0x400000
 #define FW_FILE_NAME            "slof.bin"
Signature · 1 line
1.8.4.rc4
#1 lore raw
Quoted 20 lines · Alexey Kardashevskiy

At the moment the size of the buffer is set to 64K which is enough for approximately 150 VCPUs which is not the limit.

This increases the buffer up to 256K which allows having a tree for approximately 600 VCPUs which is way beyond the real number we need.

As only the real size of the tree is copied to the guest, there will be no impact on existing configurations.

---
  hw/ppc/spapr.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/ppc/spapr.c +0 -0
index 1bb76f1..063fe63 100644

hw/ppc/spapr.c line 68

Quoted 8 lines
hw/ppc/spapr.c +1 -1
@@ -62,7 +62,7 @@
   *
   * We load our kernel at 4M, leaving space for SLOF initial image
   */
-#define FDT_MAX_SIZE            0x10000
+#define FDT_MAX_SIZE            0x40000
  #define RTAS_MAX_SIZE           0x10000
  #define FW_MAX_SIZE             0x400000
  #define FW_FILE_NAME            "slof.bin"
#2 lore raw
Quoted 16 lines · mike
Quoted 15 lines · Alexey Kardashevskiy

At the moment the size of the buffer is set to 64K which is enough for approximately 150 VCPUs which is not the limit.

This increases the buffer up to 256K which allows having a tree for approximately 600 VCPUs which is way beyond the real number we need.

As only the real size of the tree is copied to the guest, there will be no impact on existing configurations.

---
 hw/ppc/spapr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

hw/ppc/spapr.c line 68

Quoted 13 lines
hw/ppc/spapr.c +1 -1
index 1bb76f1..063fe63 100644
@@ -62,7 +62,7 @@
  *
  * We load our kernel at 4M, leaving space for SLOF initial image
  */
-#define FDT_MAX_SIZE            0x10000
+#define FDT_MAX_SIZE            0x40000
 #define RTAS_MAX_SIZE           0x10000
 #define FW_MAX_SIZE             0x400000
 #define FW_FILE_NAME            "slof.bin"

Signed-off-by is supposed to mean "this patch went through my hands". So are you trying to say that you wrote this patch? Or that you think it does "the right thing" in which case it should be "Acked-by" or "Reviewed-by":

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/SubmittingPatches?id=f6f94e2ab1b33f0082ac22d71f66385a60d8157f#n297

Alex

#3 lore raw
In reply to Alexey Kardashevskiy
Quoted 11 lines · Alexey Kardashevskiy

At the moment the size of the buffer is set to 64K which is enough for approximately 150 VCPUs which is not the limit.

This increases the buffer up to 256K which allows having a tree for approximately 600 VCPUs which is way beyond the real number we need.

As only the real size of the tree is copied to the guest, there will be no impact on existing configurations.

Thanks, applied to ppc-next.

Alex