Skip to content
Commit b1b98914 authored by Suman Anna's avatar Suman Anna Committed by Ohad Ben-Cohen
Browse files

rpmsg: use less buffers when vrings are small



Adjust the number of rpmsg buffers to rely on the size of the
vring, instead of using the hard coded value of 512 (256 per
direction).

This is needed when small vrings are being used, where 256
buffers are too much to fit in a vring.

While considering the vring size, keep using the 512 hard coded
value as an upper limit to avoid wacky resource tables consuming
unreasonable amount of memory.

NOTE: The number of buffers is already assumed to be symmetrical
in each direction, and that logic is unchanged.

Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
[edit commit message, small code and comment simplification]
Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
parent 5d01410f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment