Skip to content

Commit

Permalink
POZ: increase size of output buffer to cater for multiple ffdc
Browse files Browse the repository at this point in the history
For POZ SBE can queue n number of FFDC packets till the maximum
size is reached. So modified to read upto 32KB of data.

Change-Id: I3a73a605119968645e87154e91bfff0d3c4842d5
Signed-off-by: Marri Devender Rao <[email protected]>
  • Loading branch information
devenrao committed Mar 26, 2024
1 parent bde3fa0 commit 9e4d507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsbefifo/operation.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ int sbefifo_operation(struct sbefifo_context *sctx,
return ENOTCONN;

/*
* Allocate extra memory for FFDC (SBEFIFO_MAX_FFDC_SIZE = 0x2000)
* Allocate extra memory for FFDC (SBEFIFO_MAX_FFDC_SIZE = 0x8000)32kb
* Use *out_len as a hint to expected reply length
*/
buflen = (*out_len + 0x2000 + 3) & ~(uint32_t)3;
buflen = (*out_len + 0x8000 + 3) & ~(uint32_t)3;
buf = malloc(buflen);
if (!buf)
return ENOMEM;
Expand Down

0 comments on commit 9e4d507

Please sign in to comment.