From: Ramprasad N Date: Thu, 13 Feb 2020 04:13:21 +0000 (+0530) Subject: ipumm: Use FW_RSC_ADDR_ANY for vrings in IPU resource table X-Git-Url: https://git.ti.com/gitweb?p=ivimm%2Fipumm.git;a=commitdiff_plain;h=df4c50aecc9aad7ab3eb1ca9ebacfe473fcad7c5 ipumm: 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 Signed-off-by: Ramprasad N --- 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 @@ /* - * Copyright (c) 2013-2015, Texas Instruments Incorporated + * Copyright (c) 2013-2020, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -86,8 +86,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 @@ -122,6 +120,9 @@ /* flip up bits whose indices represent features we support */ #define RPMSG_IPU_C0_FEATURES 1 + +#define RPMSG_VRING_ADDR_ANY FW_RSC_ADDR_ANY + struct my_resource_table { struct resource_table base; @@ -219,8 +220,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,