Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5318

Interfacing (DSI, CSI, I2C, etc.) • RPi4 Model B VCHIQ not sending a CONNECT message

$
0
0
Hello experts,

I'm trying to implement a driver for VCHIQ in the QNX 8.0 OS to debayer 10 bit camera raw data. I've been looking at vchiq_arm source code as a reference https://github.com/raspberrypi/linux/tr ... /vchiq_arm. I'm implementing the driver in C.

I was able to successfully receive a doorbell interrupt from VCHIQ after I send the physical address of the initialized slots to RPi mailbox. However, when I dump the zero slot content after the interrupt, VCHIQ does not trigger the state->local->trigger->fired, and the state->remote->tx_pos is still 0, instead of 8 in QNX.

In Linux, Raspian OS, I observed that after I get a doorbell interrupt, state->local->trigger->fired is set to 1, and that the state->remote->tx_pos is 8, indicating the remote has send us an 8 byte message i.e. CONNECT message. I do see that all of the values in the zero slot are the same for Linux and QNX except for the state->local->trigger->fired and state->remote->tx_pos. I see that the state->remote->intialised is 1, state->remote->debug[1] is 1, and that state->remote->debug[2] is 1851 for both QNX and Linux. I made sure that state->local->trigger->armed is set to 1 before I send the physical address to RPi mailbox.

I'm a little stuck here :? I ensured that the memory region I share with VCHIQ is physically contiguous and not cached. Has anyone experienced a problem like this? Any help would be appreciated.

Thanks.

Statistics: Posted by kfcgoose — Sun Jul 14, 2024 5:38 pm



Viewing all articles
Browse latest Browse all 5318

Trending Articles