diff options
author | Tero Kristo <t-kristo@ti.com> | 2019-12-13 13:26:24 +0200 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2019-12-19 10:34:53 +0200 |
commit | c4cf044bbd2cc2fb21110453183eaa0ce988aa03 (patch) | |
tree | 703a18008cc02fd7a546bb6a524c44bdf131d2e1 | |
parent | 6095b0ebd5c0e8092129212e4e1fa9891dbebffc (diff) | |
download | ipc-c4cf044bbd2cc2fb21110453183eaa0ce988aa03.tar.gz |
Remoteproc: DRA7xx: Use FW_RSC_ADDR_ANY for vrings in IPU resource table
Mark the vring device addresses as FW_RSC_ADDR_ANY, so that Linux kernel
knows it needs to update these to the actual dynamically allocated
memory locations. The virtqueue driver itself will poll for the
completion status of this update.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
-rw-r--r-- | packages/ti/ipc/remoteproc/rsc_table_vayu_ipu.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/ti/ipc/remoteproc/rsc_table_vayu_ipu.h b/packages/ti/ipc/remoteproc/rsc_table_vayu_ipu.h index 34068af..a10d6f3 100644 --- a/packages/ti/ipc/remoteproc/rsc_table_vayu_ipu.h +++ b/packages/ti/ipc/remoteproc/rsc_table_vayu_ipu.h @@ -99,8 +99,6 @@ #define IPU_MEM_IPC_DATA 0x9F000000 #define IPU_MEM_IPC_VRING 0x60000000 -#define IPU_MEM_RPMSG_VRING0 0x60000000 -#define IPU_MEM_RPMSG_VRING1 0x60004000 #define IPU_MEM_VRING_BUFS0 0x60040000 #define IPU_MEM_VRING_BUFS1 0x60080000 @@ -227,6 +225,8 @@ struct my_resource_table { #pragma DATA_SECTION(ti_ipc_remoteproc_ResourceTable, ".resource_table") #pragma DATA_ALIGN(ti_ipc_remoteproc_ResourceTable, 4096) +#define RPMSG_VRING_ADDR_ANY FW_RSC_ADDR_ANY + struct my_resource_table ti_ipc_remoteproc_ResourceTable = { 1, /* we're the first version that implements this */ NUM_RSC_ENTRIES, /* number of entries in the table */ @@ -269,8 +269,8 @@ struct my_resource_table ti_ipc_remoteproc_ResourceTable = { /* no config data */ }, /* the two vrings */ - { IPU_MEM_RPMSG_VRING0, 4096, IPU_RPMSG_VQ0_SIZE, 1, 0 }, - { IPU_MEM_RPMSG_VRING1, 4096, IPU_RPMSG_VQ1_SIZE, 2, 0 }, + { RPMSG_VRING_ADDR_ANY, 4096, IPU_RPMSG_VQ0_SIZE, 1, 0 }, + { RPMSG_VRING_ADDR_ANY, 4096, IPU_RPMSG_VQ1_SIZE, 2, 0 }, { TYPE_CARVEOUT, |