Public bug reported:

This bug targets the linux-amd-embedded kernel (Ubuntu 26.04 Resolute,
7.0, amd64). linux-amd-embedded is not yet available in the archive, so
the bug is filed against the linux package for now.

[Impact]
GMSL cameras (TEVS AR0821 modules with MAX96717 serializers, connected through 
a MAX96724 deserializer to the AMD ISP4) cannot be used with linux-amd-embedded:
 * There is no driver for the TEVS AR0821 camera module, and nothing creates 
the camera chain on x86, where it is not described in the firmware.
 * The MAX96717 and MAX96724 drivers can only be matched from DT. MAX96717 does 
not enable its RCLKOUT reference clock without a clock consumer, so the sensor 
does not boot.
 * With more than one camera on one CSI-2 port, the cameras are not separated 
by virtual channel and stream id, so only one camera gets valid frames.
 * Starting or stopping one camera reprograms or stops the deserializer and the 
ISP4 GMSL chain for all cameras, and opening one video node starts all cameras.

[Fix]
 * UBUNTU: SAUCE patches from the AMD patch set:
   - media/amd/isp4: refcount shared GMSL chain across VCs
   - media: i2c: maxim-serdes: add MAX96717/MAX96724 and multi-VC stream fixes 
(ported to the upstream maxim-serdes framework in linux-amd-embedded)
   - media: i2c: add TEVS AR0821 and max_gmsl_cam glue
   - media/amd/isp4: start GMSL remotes per VC with enable_streams
 * UBUNTU: SAUCE patch from the ADI GMSL tree, part of the maxim-serdes 
framework used by the AMD patch set:
   - HACK: media: i2c: maxim-serdes: max_ser: ignore failed reset write
 * Enable VIDEO_TEVS and VIDEO_MAX_GMSL_CAM as modules on amd64.

[Test Plan]
 * Build the linux-amd-embedded kernel for all flavours and check that 
updateconfigs passes.
 * Boot the kernel in an LXD VM and load the tevs, max96717, max96724 (with 
manual_instantiate=0) and amd_isp4_csi_capture modules.
 * On hardware with four GMSL cameras: load max_gmsl_cam, stream from all four 
video nodes at the same time, and check that starting and stopping one camera 
does not affect the others.

[Where problems could occur]
The changes affect the maxim-serdes framework and the MAX96717/MAX96724 
drivers, and the stream start and stop of the remote subdevices in the AMD ISP4 
driver. A regression could cause capture failures, corrupted or missing frames, 
or cameras that do not come up. The deserializer and serializer accept all 
media links without a format check, and selecting the GMSL links can take up to 
1 s and does not fail when the links do not lock, so a cabling or power problem 
is reported only in the kernel log. The new modules are not loaded 
automatically.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: linux (Ubuntu Resolute)
     Importance: High
     Assignee: Krystian Kaniewski (kkaniewski)
         Status: Confirmed

** Also affects: linux (Ubuntu Resolute)
   Importance: Undecided
       Status: New

** Changed in: linux (Ubuntu Resolute)
   Importance: Undecided => High

** Changed in: linux (Ubuntu Resolute)
     Assignee: (unassigned) => Krystian Kaniewski (kkaniewski)

** Changed in: linux (Ubuntu Resolute)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174613

Title:
  linux-amd-embedded: Add GMSL multi-camera support for the AMD ISP4

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2174613/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to