aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamprasad N2020-02-12 22:13:21 -0600
committerRamprasad N2020-02-12 23:09:35 -0600
commitdf4c50aecc9aad7ab3eb1ca9ebacfe473fcad7c5 (patch)
tree8ab87097d3bf141220ecf8c469689fe4bdbc2af1
parente4872a8966a267d537399b1babc54e5f66ae8b3b (diff)
downloadipumm-df4c50aecc9aad7ab3eb1ca9ebacfe473fcad7c5.tar.gz
ipumm-df4c50aecc9aad7ab3eb1ca9ebacfe473fcad7c5.tar.xz
ipumm-df4c50aecc9aad7ab3eb1ca9ebacfe473fcad7c5.zip
ipumm: Use FW_RSC_ADDR_ANY for vrings in IPU resource tableHEADmaster
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> Signed-off-by: Ramprasad N <x0038811@ti.com>
-rw-r--r--platform/ti/dce/baseimage/custom_rsc_table_vayu_ipu.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/platform/ti/dce/baseimage/custom_rsc_table_vayu_ipu.h b/platform/ti/dce/baseimage/custom_rsc_table_vayu_ipu.h
index f0ed505..e21c7f7 100644
--- a/platform/ti/dce/baseimage/custom_rsc_table_vayu_ipu.h
+++ b/platform/ti/dce/baseimage/custom_rsc_table_vayu_ipu.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2013-2015, Texas Instruments Incorporated 2 * Copyright (c) 2013-2020, Texas Instruments Incorporated
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
@@ -86,8 +86,6 @@
86 86
87#define IPU_MEM_IPC_DATA 0x9F000000 87#define IPU_MEM_IPC_DATA 0x9F000000
88#define IPU_MEM_IPC_VRING 0x60000000 88#define IPU_MEM_IPC_VRING 0x60000000
89#define IPU_MEM_RPMSG_VRING0 0x60000000
90#define IPU_MEM_RPMSG_VRING1 0x60004000
91#define IPU_MEM_VRING_BUFS0 0x60040000 89#define IPU_MEM_VRING_BUFS0 0x60040000
92#define IPU_MEM_VRING_BUFS1 0x60080000 90#define IPU_MEM_VRING_BUFS1 0x60080000
93 91
@@ -122,6 +120,9 @@
122/* flip up bits whose indices represent features we support */ 120/* flip up bits whose indices represent features we support */
123#define RPMSG_IPU_C0_FEATURES 1 121#define RPMSG_IPU_C0_FEATURES 1
124 122
123
124#define RPMSG_VRING_ADDR_ANY FW_RSC_ADDR_ANY
125
125struct my_resource_table { 126struct my_resource_table {
126 struct resource_table base; 127 struct resource_table base;
127 128
@@ -219,8 +220,8 @@ struct my_resource_table ti_ipc_remoteproc_ResourceTable = {
219 /* no config data */ 220 /* no config data */
220 }, 221 },
221 /* the two vrings */ 222 /* the two vrings */
222 { IPU_MEM_RPMSG_VRING0, 4096, IPU_RPMSG_VQ0_SIZE, 1, 0 }, 223 { RPMSG_VRING_ADDR_ANY, 4096, IPU_RPMSG_VQ0_SIZE, 1, 0 },
223 { IPU_MEM_RPMSG_VRING1, 4096, IPU_RPMSG_VQ1_SIZE, 2, 0 }, 224 { RPMSG_VRING_ADDR_ANY, 4096, IPU_RPMSG_VQ1_SIZE, 2, 0 },
224 225
225 { 226 {
226 TYPE_CARVEOUT, 227 TYPE_CARVEOUT,