<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/simtrace2/+/16604">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pseudo_talloc: Increment number of buffers from 10 to 20<br><br>We need at least one per IN/IRQ endpoint, as well as at least 3 for<br>every OUT endpoint.  Plus some more depending on the application,<br>in case of cardem there could be one in uart_tx and one in uart_rx.<br><br>So for cardem, it should be 7 per slot, resulting 14 for dual-slot<br>devices like OWHW and QMOD.<br><br>Given that we have plenty of RAM available (utilization up from 49%<br>to 56% with this change), we can be on the comfortable size and<br>easily have 20 buffers for now.<br><br>Future MITM / triple-play applications likely need more.<br><br>Change-Id: I022ba3bb3e1f5fd0c364aafe1a23f8fd9b2d8499<br>Related: OS#4251<br>---<br>M firmware/libcommon/source/pseudo_talloc.c<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/04/16604/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/firmware/libcommon/source/pseudo_talloc.c b/firmware/libcommon/source/pseudo_talloc.c</span><br><span>index 7c452b3..3407a59 100644</span><br><span>--- a/firmware/libcommon/source/pseudo_talloc.c</span><br><span>+++ b/firmware/libcommon/source/pseudo_talloc.c</span><br><span>@@ -22,7 +22,9 @@</span><br><span> #include "utils.h"</span><br><span> #include <osmocom/core/utils.h></span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-#define NUM_RCTX_SMALL 10</span><br><span style="color: hsl(120, 100%, 40%);">+/* TODO: this number should dynamically scale. We need at least one per IN/IRQ endpoint,</span><br><span style="color: hsl(120, 100%, 40%);">+ * as well as at least 3 for every OUT endpoint.  Plus some more depending on the application */</span><br><span style="color: hsl(120, 100%, 40%);">+#define NUM_RCTX_SMALL 20</span><br><span> #define RCTX_SIZE_SMALL 348</span><br><span> </span><br><span> static uint8_t msgb_data[NUM_RCTX_SMALL][RCTX_SIZE_SMALL] __attribute__((aligned(sizeof(long))));</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/simtrace2/+/16604">change 16604</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/simtrace2/+/16604"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: simtrace2 </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I022ba3bb3e1f5fd0c364aafe1a23f8fd9b2d8499 </div>
<div style="display:none"> Gerrit-Change-Number: 16604 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>