msg_context->u.bulk.dts = msg->u.buffer_from_host.buffer_header.dts;
msg_context->u.bulk.pts = msg->u.buffer_from_host.buffer_header.pts;
+#ifdef CONFIG_ARM
// only need to flush L1 cache here, as VCHIQ takes care of the L2
// cache.
__cpuc_flush_dcache_area(msg_context->u.bulk.buffer->buffer, rd_len);
+#endif
/* queue the bulk submission */
vchi_service_use(instance->handle);
/* payload size must not cause message to exceed max size */
if (payload_len >
(MMAL_MSG_MAX_SIZE - sizeof(struct mmal_msg_header))) {
- pr_err("payload length %d exceeds max:%d\n", payload_len,
+ pr_err("payload length %d exceeds max:%lu\n", payload_len,
(MMAL_MSG_MAX_SIZE - sizeof(struct mmal_msg_header)));
return -EINVAL;
}
* directly (de)serialised from memory.
*/
+#ifdef CONFIG_ARM
/* ensure the header structure has packed to the correct size */
BUILD_BUG_ON(sizeof(struct mmal_msg_header) != 24);
/* mmal port struct is correct size */
BUILD_BUG_ON(sizeof(struct mmal_port) != 64);
+#endif
/* create a vchi instance */
status = vchi_initialise(&vchi_instance);