DRIVE OS 7.2.5 Thor: nvsipl_camera segfaults when any ISP output is enabled

Continuing the discussion from MAX96724 + OX08D10 on Thor: raw capture works at 30fps, DriveWorks stack smashes, ISP auto-control fails:

DriveWorks stack smash issue was solved by patched library so raw capture works perfectly but enabling any ISP output segfaults immediately.

On DRIVE AGX Thor / DRIVE OS 7.2.5, raw capture works perfectly but enabling any
ISP output segfaults immediately.

Setup

Platform : DRIVE AGX Thor devkit (P3960)
DRIVE OS : 7.2.5.0-46229577
Kernel : 6.8.12-rt-tegra
Camera : OX08D10 + MAX96717F, 4 active exposures
Deserializer: MAX96724, CSI-GH, 4-lane CPHY

A) RAW capture works - 4 cameras, no drops

./nvsipl_camera -c OX08D10-EXAE-AA1C_CPHY_x4 -m "0x0000 0x0000 0x1111" 
-0 -1 -2 -R -b 0 -Z -I -s -r 20

Sensor12_Out0   Frame rate (fps):   29.9991
Sensor13_Out0   Frame rate (fps):   29.9991
Sensor14_Out0   Frame rate (fps):   29.9991
Sensor15_Out0   Frame rate (fps):   29.9991
Sensor12  Frame captured: 597  Frame drops: 0  Frame discontinuities: 0
Sensor13  Frame captured: 597  Frame drops: 0  Frame discontinuities: 0
Sensor14  Frame captured: 597  Frame drops: 0  Frame discontinuities: 0
Sensor15  Frame captured: 597  Frame drops: 0  Frame discontinuities: 0

B) Same command with ISP enabled - segfault

./nvsipl_camera -c OX08D10-EXAE-AA1C_CPHY_x4 -m "0x0000 0x0000 0x0001" 
-1 -2 -b 0 -Z -I -s -r 20
exit=139


Complete application output, all of it:

LCM state change: 2
Pipeline: 12 ISP Output: 0 is using YUV 420 SEMI-PLANAR UINT8 BL REC_709ER

timeout: the monitored command dumped core

Kernel log for the same run - the driver reports both VI and ISP setup OK:

cam_fsync c230000.tsc_sig_gen: Group 0 found
cdi-mgr sipl_devblk_1: cdi_mgr_gpio_config: unknown gpio idx 7
tegra194-vi5 8181240000.host1x:vi1@8188c00000: [PIPELINE 12] VI capture setup complete (channel_id=0, csi_stream=5, vc=0)
tegra194-isp5 8188800000.isp: [PIPELINE 12] ISP capture setup complete (channel_id=1)

So the kernel side completes; the crash is in user space right after the ISP
output format is selected. Note the NITO is never even opened - there is no
“Opened NITO file” line before the crash.

C) Same failure offline, no camera involved

./nvsipl_reprocess -c OX08D10-EXAE-AA1C_CPHY_x4 -m "0x0000 0x0000 0x0001"
--nito /usr/share/camera/OX08D10-EXAE-AA1C.nito
-i frame.raw -f /tmp/out -n 2 --out0 yuv420_8b_pl

nvsipl_reprocess: ERROR: Register Sipl Control(NV) failed for ISP output of sensor: 12

Here it reports cleanly instead of crashing, from a RAW file, with no camera.

What we already ruled out

  • NITO: 12 different files fail identically, including your stock ones
    (C1O08D101DRZ0120HB1, C1O08D101DRZ0070HB1, C1O03H101ERZ0195NB1). Also tested
    through DriveWorks with an explicit nito-file= override.
  • Plugin: --plugin NV and --plugin SAMPLE both fail (SAMPLE: status 10).
  • Auto control entirely: characterization mode (-E ,0 --plugin 1) creates
    its own plugin with manual exposure settings -
    Created HDR mode plugin with manually set capture settings set idx [0]
    and the ISP still segfaults. So this is not a NITO / plugin / auto-control
    problem.
  • Output format: ISP0 and ISP1 (YUV420 8b BL) and ISP2 (RGBA FP16) all crash.
  • Camera HAL path (-H): cannot load our config at all,
    ERROR: Query GetConfig failed. status: 1

Thanks!

Dear @vladimir.tchernitski1 ,
Is it OmniVision OX08D10-EXAE-BA0C camera module? Did you receive NITO file from omnivision?
Did you check with sensor vendor on supported DOS version as indicated in DRIVE Ecosystem Thor Vendor | NVIDIA Developer ?

Exactly OmniVision OX08D10-EXAE-BA0C.
Yes I got drivers and nito files from OmniVision. The only thing they mentioned is that the drivers are for 7.2.4, and I could not find any trace of DRIVE OS 7.2.4. There are only 7.0.3 and 7.2.5 are in nvidia repo.

Dear @vladimir.tchernitski1 ,
DOS 7.2.4 is not a DevZone release. Please confirm with them if shared NITO file /usr/share/camera/OX08D10-EXAE-AA1C.nito corresponds to OX08D10-EXAE-BA0C module and can be used with DOS 7.2.5 release.

Could you please provide any update for this topic?

Got it working after getting updated 7.2.5 drivers.

Thank you for the update.