From d859dc047a93f2ce01d230f6bff0f3236201d9d4 Mon Sep 17 00:00:00 2001 From: Wendy Liang Date: Fri, 10 Mar 2017 09:16:33 -0800 Subject: [PATCH] apps: zynqmp: set vdev and vdev IPI It is required to have vdev IPI, will need to the set the vdev device and vdev IPI in the application. Signed-off-by: Wendy Liang --- apps/machine/zynqmp/platform_info.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/machine/zynqmp/platform_info.c b/apps/machine/zynqmp/platform_info.c index 9518cef3c..14023952b 100755 --- a/apps/machine/zynqmp/platform_info.c +++ b/apps/machine/zynqmp/platform_info.c @@ -59,15 +59,13 @@ struct ipi_info { struct metal_io_region *io; metal_phys_addr_t paddr; uint32_t ipi_chn_mask; - int need_reg; atomic_int sync; }; extern struct hil_platform_ops zynqmp_a53_r5_proc_ops; static struct ipi_info chn_ipi_info[] = { - {IPI_DEV_NAME, DEV_BUS_NAME, NULL, NULL, 0, IPI_CHN_BITMASK, 1, 0}, - {IPI_DEV_NAME, DEV_BUS_NAME, NULL, NULL, 0, IPI_CHN_BITMASK, 0, 0}, + {IPI_DEV_NAME, DEV_BUS_NAME, NULL, NULL, 0, IPI_CHN_BITMASK, 0}, }; @@ -91,10 +89,12 @@ struct hil_proc *platform_create_proc(int proc_index) /* Setup vring info */ hil_set_vdev(proc, NULL, NULL); /* Setup IPI info */ + hil_set_vdev_ipi(proc, 0, + (unsigned int)(-1), (void *)&chn_ipi_info[0]); hil_set_vring_ipi(proc, 0, (unsigned int)(-1), (void *)&chn_ipi_info[0]); hil_set_vring_ipi(proc, 1, - (unsigned int)(-1), (void *)&chn_ipi_info[1]); + (unsigned int)(-1), (void *)&chn_ipi_info[0]); /* Setup vring info */ hil_set_vring(proc, 0, DEV_BUS_NAME, VRING_DEV_NAME); hil_set_vring(proc, 1, DEV_BUS_NAME, VRING_DEV_NAME);