• Loic Pallardy's avatar
    remoteproc: modify vring allocation to rely on centralized carveout allocator · c6aed238
    Loic Pallardy authored
    Current version of rproc_alloc_vring function supports only dynamic vring
    allocation.
    
    This patch allows to allocate vrings based on memory region declatation.
    Vrings are now manage like memory carveouts, to communize memory management
    code in rproc_alloc_registered_carveouts().
    
    Allocated buffer is retrieved in rp_find_vq() thanks to
    rproc_find_carveout_by_name() functions for.
    
    This patch sets vrings names to vdev"x"vring"y" with x vdev index in
    resource table and y vring index in vdev. This will be updated when
    name will be associated to vdev in firmware resource table.
    Signed-off-by: default avatarLoic Pallardy <loic.pallardy@st.com>
    Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
    c6aed238
remoteproc_virtio.c 9.41 KB