8000 libraries/openamp_arduino: Optimize Open-AMP RPMSG buffer configuration. · arduino/ArduinoCore-mbed@b874b41 · GitHub
[go: up one dir, main page]

Skip to content

Commit b874b41

Browse files
committed
libraries/openamp_arduino: Optimize Open-AMP RPMSG buffer configuration.
Reduce buffer size to 512 and increase available buffers to 64. The increased number of buffers minimizes the chances of blocking while waiting for a free buffer. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
1 parent 5499bd3 commit b874b41

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

libraries/openamp_arduino/src/openamp_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ extern int __OPENAMP_region_end__[];
158158
#define VRING_BUFF_ADDRESS (SHM_START_ADDRESS + 0x2000)
159159
#define VRING_BUFF_SIZE (SHM_SIZE - 0x2000)
160160
#define VRING_ALIGNMENT 32
161-
#define VRING_NUM_BUFFS 16 /* number of rpmsg buffers */
161+
#define VRING_NUM_BUFFS 64 /* number of rpmsg buffers */
162162

163163
/* Fixed parameter */
164164
#define NUM_RESOURCE_ENTRIES 2

variants/GENERIC_STM32H747_M4/conf/mbed_app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"VIRTIO_DEVICE_ONLY",
2323
"NO_ATOMIC_64_SUPPORT",
2424
"METAL_MAX_DEVICE_REGIONS=2",
25-
"RPMSG_BUFFER_SIZE=2048"
25+
"RPMSG_BUFFER_SIZE=512"
2626
]
2727
}
2828
}

variants/GENERIC_STM32H747_M4/defines.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
-DMETAL_MAX_DEVICE_REGIONS=2
5353
-DNO_ATOMIC_64_SUPPORT
5454
-DNO_VTOR_RELOCATE
55-
-DRPMSG_BUFFER_SIZE=2048
55+
-DRPMSG_BUFFER_SIZE=512
5656
-DSTM32H747xx
5757
-DTARGET_CORDIO
5858
-DTARGET_CORTEX

variants/GIGA/conf/mbed_app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"VIRTIO_DRIVER_ONLY",
1717
"NO_ATOMIC_64_SUPPORT",
1818
"METAL_MAX_DEVICE_REGIONS=2",
19-
"RPMSG_BUFFER_SIZE=2048"
19+
"RPMSG_BUFFER_SIZE=512"
2020
]
2121
}
2222
}

variants/GIGA/defines.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
-DMETAL_MAX_DEVICE_REGIONS=2
5454
-DNO_ATOMIC_64_SUPPORT
5555
-DQSPI_NO_SAMPLE_SHIFT
56-
-DRPMSG_BUFFER_SIZE=2048
56+
-DRPMSG_BUFFER_SIZE=512
5757
-DSTM32H747xx
5858
-DTARGET_CORDIO
5959
-DTARGET_CORTEX

variants/NICLA_VISION/conf/mbed_app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"VIRTIO_DRIVER_ONLY",
1818
"NO_ATOMIC_64_SUPPORT",
1919
"METAL_MAX_DEVICE_REGIONS=2",
20-
"RPMSG_BUFFER_SIZE=100"
20+
"RPMSG_BUFFER_SIZE=512"
2121
]
2222
}
2323
}

variants/NICLA_VISION/defines.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
-DMETAL_MAX_DEVICE_REGIONS=2
5555
-DNO_ATOMIC_64_SUPPORT
5656
-DQSPI_NO_SAMPLE_SHIFT
57-
-DRPMSG_BUFFER_SIZE=2048
57+
-DRPMSG_BUFFER_SIZE=512
5858
-DSTM32H747xx
5959
-DT1oI2C
6060
-DT1oI2C_UM11225

variants/OPTA/conf/mbed_app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"VIRTIO_DRIVER_ONLY",
1717
"NO_ATOMIC_64_SUPPORT",
1818
"METAL_MAX_DEVICE_REGIONS=2",
19-
"RPMSG_BUFFER_SIZE=2048"
19+
"RPMSG_BUFFER_SIZE=512"
2020
]
2121
}
2222
}

variants/OPTA/defines.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
-DMETAL_MAX_DEVICE_REGIONS=2
5454
-DNO_ATOMIC_64_SUPPORT
5555
-DQSPI_NO_SAMPLE_SHIFT
56-
-DRPMSG_BUFFER_SIZE=2048
56+
-DRPMSG_BUFFER_SIZE=512
5757
-DSTM32H747xx
5858
-DTARGET_CORDIO
5959
-DTARGET_CORTEX

variants/PORTENTA_H7_M7/conf/mbed_app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"VIRTIO_DRIVER_ONLY",
2323
"NO_ATOMIC_64_SUPPORT",
2424
"METAL_MAX_DEVICE_REGIONS=2",
25-
"RPMSG_BUFFER_SIZE=2048",
25+
"RPMSG_BUFFER_SIZE=512",
2626
"LSE_STARTUP_TIMEOUT=200"
2727
]
2828
}

variants/PORTENTA_H7_M7/defines.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
-DMETAL_MAX_DEVICE_REGIONS=2
5656
-DNO_ATOMIC_64_SUPPORT
5757
-DQSPI_NO_SAMPLE_SHIFT
58-
-DRPMSG_BUFFER_SIZE=2048
58+
-DRPMSG_BUFFER_SIZE=512
5959
-DSTM32H747xx
6060
-DTARGET_CORDIO
6161
-DTARGET_CORTEX

variants/PORTENTA_X8/conf/mbed_app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"VIRTIO_DEVICE_ONLY",
1717
"NO_ATOMIC_64_SUPPORT",
1818
"METAL_MAX_DEVICE_REGIONS=2",
19-
"RPMSG_BUFFER_SIZE=2048"
19+
"RPMSG_BUFFER_SIZE=512"
2020
]
2121
}
2222
}

variants/PORTENTA_X8/defines.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
-DMETAL_MAX_DEVICE_REGIONS=2
4545
-DNO_ATOMIC_64_SUPPORT
4646
-DNO_VTOR_RELOCATE
47-
-DRPMSG_BUFFER_SIZE=2048
47+
-DRPMSG_BUFFER_SIZE=512
4848
-DSTM32H747xx
4949
-DTARGET_CORTEX
5050
-DTARGET_CORTEX_M

0 commit comments

Comments
 (0)
0