diff --git a/include/zephyr/ipc/ipc_rpmsg.h b/include/zephyr/ipc/ipc_rpmsg.h index 4f92b02732b..cc46a4ba788 100644 --- a/include/zephyr/ipc/ipc_rpmsg.h +++ b/include/zephyr/ipc/ipc_rpmsg.h @@ -90,7 +90,7 @@ struct ipc_rpmsg_instance { * Init an RPMsg instance. * * @param instance Pointer to the RPMsg instance struct. - * @param role Master / Remote role. + * @param role Host / Remote role. * @param shm_io SHM IO region pointer. * @param vdev VirtIO device pointer. * @param shb Shared memory region pointer. @@ -115,7 +115,7 @@ int ipc_rpmsg_init(struct ipc_rpmsg_instance *instance, * Register an endpoint to a provided RPMsg instance. * * @param instance Pointer to the RPMsg instance struct. - * @param role Master / Remote role. + * @param role Host / Remote role. * @param ept Endpoint to register. * * @retval -EINVAL When some parameter is missing. diff --git a/include/zephyr/ipc/ipc_static_vrings.h b/include/zephyr/ipc/ipc_static_vrings.h index c8eb9bd07d3..ff6678d8ca1 100644 --- a/include/zephyr/ipc/ipc_static_vrings.h +++ b/include/zephyr/ipc/ipc_static_vrings.h @@ -91,7 +91,7 @@ struct ipc_static_vrings { * Init VRINGs and Virtqueues of an OpenAMP / RPMsg instance. * * @param vr Pointer to the VRINGs instance struct. - * @param role Master / Remote role. + * @param role Host / Remote role. * * @retval -EINVAL When some parameter is missing. * @retval -ENOMEM When memory is not enough for VQs allocation. diff --git a/samples/subsys/ipc/openamp/src/main.c b/samples/subsys/ipc/openamp/src/main.c index 5356c957914..e27d553e57b 100644 --- a/samples/subsys/ipc/openamp/src/main.c +++ b/samples/subsys/ipc/openamp/src/main.c @@ -226,7 +226,7 @@ void app_task(void *arg1, void *arg2, void *arg3) return; } - vdev.role = RPMSG_MASTER; + vdev.role = RPMSG_HOST; vdev.vrings_num = VRING_COUNT; vdev.func = &dispatch; rvrings[0].io = io; diff --git a/samples/subsys/ipc/openamp_performance/src/main.c b/samples/subsys/ipc/openamp_performance/src/main.c index c4b00d8bd1a..c8973fc480c 100644 --- a/samples/subsys/ipc/openamp_performance/src/main.c +++ b/samples/subsys/ipc/openamp_performance/src/main.c @@ -234,7 +234,7 @@ static void send_task(void *arg1, void *arg2, void *arg3) return; } - vdev.role = RPMSG_MASTER; + vdev.role = RPMSG_HOST; vdev.vrings_num = VRING_COUNT; vdev.func = &dispatch; rvrings[0].io = io; diff --git a/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c b/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c index b7a549d7d11..3f691ec7ed5 100644 --- a/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c +++ b/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c @@ -225,7 +225,7 @@ platform_create_rpmsg_vdev(unsigned int vdev_index, struct virtio_device *vdev; int ret; - vdev = rproc_virtio_create_vdev(VIRTIO_DEV_SLAVE, VDEV_ID, + vdev = rproc_virtio_create_vdev(VIRTIO_DEV_DEVICE, VDEV_ID, rsc_table_to_vdev(rsc_table), rsc_io, NULL, mailbox_notify, NULL); @@ -349,7 +349,7 @@ void rpmsg_mng_task(void *arg1, void *arg2, void *arg3) goto task_end; } - rpdev = platform_create_rpmsg_vdev(0, VIRTIO_DEV_SLAVE, NULL, + rpdev = platform_create_rpmsg_vdev(0, VIRTIO_DEV_DEVICE, NULL, new_service_cb); if (!rpdev) { LOG_ERR("Failed to create rpmsg virtio device\n"); diff --git a/subsys/ipc/ipc_service/backends/ipc_rpmsg_static_vrings.h b/subsys/ipc/ipc_service/backends/ipc_rpmsg_static_vrings.h index f355f2a3ceb..f5535476ebf 100644 --- a/subsys/ipc/ipc_service/backends/ipc_rpmsg_static_vrings.h +++ b/subsys/ipc/ipc_service/backends/ipc_rpmsg_static_vrings.h @@ -135,8 +135,8 @@ #define VIRTQUEUE_ID_HOST (0) #define VIRTQUEUE_ID_REMOTE (1) -#define ROLE_HOST VIRTIO_DEV_MASTER -#define ROLE_REMOTE VIRTIO_DEV_SLAVE +#define ROLE_HOST VIRTIO_DEV_DRIVER +#define ROLE_REMOTE VIRTIO_DEV_DEVICE static inline size_t vq_ring_size(unsigned int num) { diff --git a/subsys/ipc/ipc_service/lib/ipc_rpmsg.c b/subsys/ipc/ipc_service/lib/ipc_rpmsg.c index a0c07c15c1c..06142066d4c 100644 --- a/subsys/ipc/ipc_service/lib/ipc_rpmsg.c +++ b/subsys/ipc/ipc_service/lib/ipc_rpmsg.c @@ -86,7 +86,7 @@ int ipc_rpmsg_init(struct ipc_rpmsg_instance *instance, bind_cb = ns_bind_cb; } - if (role == RPMSG_MASTER) { + if (role == RPMSG_HOST) { rpmsg_virtio_init_shm_pool(&instance->shm_pool, shb, size); return rpmsg_init_vdev(&instance->rvdev, vdev, bind_cb, shm_io, &instance->shm_pool); diff --git a/subsys/ipc/ipc_service/lib/ipc_static_vrings.c b/subsys/ipc/ipc_service/lib/ipc_static_vrings.c index ad9121e8851..8ce57b5cc49 100644 --- a/subsys/ipc/ipc_service/lib/ipc_static_vrings.c +++ b/subsys/ipc/ipc_service/lib/ipc_static_vrings.c @@ -32,7 +32,7 @@ static void virtio_set_status(struct virtio_device *p_vdev, unsigned char status { struct ipc_static_vrings *vr; - if (p_vdev->role != VIRTIO_DEV_MASTER) { + if (p_vdev->role != VIRTIO_DEV_DRIVER) { return; } @@ -57,7 +57,7 @@ static unsigned char virtio_get_status(struct virtio_device *p_vdev) ret = VIRTIO_CONFIG_STATUS_DRIVER_OK; - if (p_vdev->role == VIRTIO_DEV_SLAVE) { + if (p_vdev->role == VIRTIO_DEV_DEVICE) { sys_cache_data_range((void *) vr->status_reg_addr, sizeof(ret), K_CACHE_INVD); ret = sys_read8(vr->status_reg_addr); diff --git a/subsys/ipc/rpmsg_service/rpmsg_backend.c b/subsys/ipc/rpmsg_service/rpmsg_backend.c index 4589c71658d..c608706e22c 100644 --- a/subsys/ipc/rpmsg_service/rpmsg_backend.c +++ b/subsys/ipc/rpmsg_service/rpmsg_backend.c @@ -26,7 +26,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME, CONFIG_RPMSG_SERVICE_LOG_LEVEL); #if MASTER #define VIRTQUEUE_ID 0 -#define RPMSG_ROLE RPMSG_MASTER +#define RPMSG_ROLE RPMSG_HOST #else #define VIRTQUEUE_ID 1 #define RPMSG_ROLE RPMSG_REMOTE diff --git a/west.yml b/west.yml index e0bc30618a0..b403ce0b374 100644 --- a/west.yml +++ b/west.yml @@ -198,7 +198,7 @@ manifest: revision: b8cea37dbdc8fc58cc14b4e19fa850877a9da520 path: modules/bsim_hw_models/nrf_hw_models - name: open-amp - revision: cfd050ff38a9d028dc211690b2ec35971128e45e + revision: 8d53544871e1f300c478224faca6be8384ab0d04 path: modules/lib/open-amp - name: openthread revision: d4d46ba94290bcf93cc849b832f0ad305c72c473