gmsl camera readNvMedia time out issue.

Hi:
I run sample_camera_multiple_gmsl and sample_drivenet_multiGPU ( the sample of driveworks)at the same time , on jetson tx2. The camera process exit with exception. My hardware include one tx2 and one GP106 card.

The debug message of camera:
./sample_camera_multiple_gmsl --selector-mask=000001100000
Program Arguments:
–cross-csi-sync=0
–fifo-size=3
–selector-mask=000001100000
–slave=0
–type-ab=ar0231-rccb
–type-cd=ar0231-rccb
–type-ef=ar0231-rccb

Initialize DriveWorks SDK v0.6.67
Release build with GNU 4.9.2 from v0.6.0-rc7-0-g51bd3aa against Vibrante PDK v5.0.5.0
TimeSource: monotonic epoch time offset is 1542848417818379
TimeSource: Lost PTP time synchronizaton. Synchronized time will not be available.
TimeSource: Could not detect valid PTP time source at ‘eth0’. Fallback to CLOCK_MONOTONIC.
SDK: Resources mounted from /usr/local/driveworks-0.6/data/resources
SDK: Create NvMediaDevice
SDK: use EGL display as provided
SDK: number of GPU devices detected 2
SDK: currently selected GPU device discrete ID 0
SAL: identified board as DrivePX2-TegraA
SensorFactory::createSensor() -> camera.gmsl, csi-port=cd,camera-type=ar0231-rccb,camera-count=4,camera-mask=0110,slave=0,cross-csi-sync=0,fifo-size=3
CameraGMSL: required FPS = 30, resolution = 1920x1208
bind failed: Address already in use
***** aurix state *****
CAM_PWR_ON: 0x0
TEGRA_GMSL: TEGRA B
TEGRA_FPDL: TEGRA B
TEGRA_A_HDMI: MXM
TEGRA_B_HDMI: MXM
TEGRA_PCI: TEGRA B
FAN_STATE: UNKNOWN


bind failed: Address already in use
***** aurix state *****
CAM_PWR_ON: 0x2
TEGRA_GMSL: UNKNOWN
TEGRA_FPDL: UNKNOWN
TEGRA_A_HDMI: UNKNOWN
TEGRA_B_HDMI: UNKNOWN
TEGRA_PCI: UNKNOWN
FAN_STATE: UNKNOWN


Sensor AR0231 RCCB Rev7 detected!
Sensor AR0231 RCCB Rev7 detected!
nvmEglStProducerCreateCommon: Entered
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:193] NvMediaISCSetWBGain failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
[ISCThreadFunc:183] NvMediaISCSetExposure failed
readFrameNvMedia: DW_TIME_OUT
readFrameNvMedia: DW_TIME_OUT
bind failed: Address already in use
***** aurix state *****
CAM_PWR_ON: 0x0
TEGRA_GMSL: UNKNOWN
TEGRA_FPDL: UNKNOWN
TEGRA_A_HDMI: UNKNOWN
TEGRA_B_HDMI: UNKNOWN
TEGRA_PCI: UNKNOWN
FAN_STATE: UNKNOWN


SDK: Release NvMediaDevice
Driveworks SDK released

The GPU infomations :

./deviceQuery
./deviceQuery Starting…

CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 2 CUDA Capable device(s)

Device 0: “Graphics Device”
CUDA Driver Version / Runtime Version 9.0 / 9.0
CUDA Capability Major/Minor version number: 6.1
Total amount of global memory: 4096 MBytes (4294901760 bytes)
( 9) Multiprocessors, (128) CUDA Cores/MP: 1152 CUDA Cores
GPU Max Clock rate: 1290 MHz (1.29 GHz)
Memory Clock rate: 3003 Mhz
Memory Bus Width: 128-bit
L2 Cache Size: 1048576 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(131072), 2D=(131072, 65536), 3D=(16384, 16384, 16384)
Maximum Layered 1D Texture Size, (num) layers 1D=(32768), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(32768, 32768), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 65536
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 2 copy engine(s)
Run time limit on kernels: No
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Supports Cooperative Kernel Launch: Yes
Supports MultiDevice Co-op Kernel Launch: Yes
Device PCI Domain ID / Bus ID / location ID: 0 / 1 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

Device 1: “NVIDIA Tegra X2”
CUDA Driver Version / Runtime Version 9.0 / 9.0
CUDA Capability Major/Minor version number: 6.2
Total amount of global memory: 7847 MBytes (8228200448 bytes)
( 2) Multiprocessors, (128) CUDA Cores/MP: 256 CUDA Cores
GPU Max Clock rate: 1301 MHz (1.30 GHz)
Memory Clock rate: 1600 Mhz
Memory Bus Width: 128-bit
L2 Cache Size: 524288 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(131072), 2D=(131072, 65536), 3D=(16384, 16384, 16384)
Maximum Layered 1D Texture Size, (num) layers 1D=(32768), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(32768, 32768), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 32768
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 1 copy engine(s)
Run time limit on kernels: No
Integrated GPU sharing Host Memory: Yes
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Supports Cooperative Kernel Launch: Yes
Supports MultiDevice Co-op Kernel Launch: Yes
Device PCI Domain ID / Bus ID / location ID: 0 / 0 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

Peer access from Graphics Device (GPU0) -> NVIDIA Tegra X2 (GPU1) : No
Peer access from NVIDIA Tegra X2 (GPU1) -> Graphics Device (GPU0) : No

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 9.0, CUDA Runtime Version = 9.0, NumDevs = 2
Result = PASS

Please help to investigate.

thanks & BR
naibiao zhou

Hi tigerzhou,

We do not support to run DriveWorks SDK on Jetson TX2, and didn’t try that before.
Please move to use DRIVE PX2 platform if want to utilize the DriveWorks SDK.

Thanks