This is the dmesg log (filtered for RCE) when opening the argus_camera for the 1st time
[RCE] NVCSILP clock rate = 408000000 Hz.
[RCE] tegra_nvcsi_stream_set_config(vm0, stream=0, csi=0)
[RCE] MIPI clock = 1249999 kHz, tHS-SETTLE = 0, tCLK-SETTLE = 0
[RCE] ===== NVCSI Stream Configuration =====
[RCE] stream_id: PP 0, csi_port: PORT A
[RCE] Brick: PHY 0, Mode: D-PHY
[RCE] Partition: CIL A, LP bypass: Enabled, Lanes: 4
[RCE] Clock information:
[RCE] MIPI clock rate: 1250.00 MHz
[RCE] T_HS settle: 0, T_CLK settle: 0
[RCE] ======================================
[RCE] tegra_nvcsi_stream_open(vm0, stream=0, csi=0)
[RCE] nvcsi_calc_ths_settle ths_settle 49
[RCE] nvcsi_calc_ths_settle ths_settle 49
[RCE] nvcsi_calc_ths_settle ths_settle 49
[RCE] nvcsi_calc_tclk_settle tclk_settle 75
[RCE] Deskew setup message sent for port 0 num_lane 4
[RCE] tegra_nvcsi_stream_close(vm0, stream=0, csi=0)
[RCE] tegra_nvcsi_stream_tpg_disable(vm0, stream=0, vc=0)
[RCE] tegra_nvcsi_stream_tpg_disable: channel 0 is already disabled
[RCE] tegra_nvcsi_stream_set_config(vm0, stream=0, csi=0)
[RCE] MIPI clock = 1249999 kHz, tHS-SETTLE = 0, tCLK-SETTLE = 0
[RCE] ===== NVCSI Stream Configuration =====
[RCE] stream_id: PP 0, csi_port: PORT A
[RCE] Brick: PHY 0, Mode: D-PHY
[RCE] Partition: CIL A, LP bypass: Enabled, Lanes: 4
[RCE] Clock information:
[RCE] MIPI clock rate: 1250.00 MHz
[RCE] T_HS settle: 0, T_CLK settle: 0
[RCE] ======================================
[RCE] tegra_nvcsi_stream_open(vm0, stream=0, csi=0)
[RCE] nvcsi_calc_ths_settle ths_settle 49
[RCE] nvcsi_calc_ths_settle ths_settle 49
[RCE] nvcsi_calc_ths_settle ths_settle 49
[RCE] nvcsi_calc_tclk_settle tclk_settle 75
---->[RCE] Deskew setup message sent for port 0 num_lane 4
[RCE] ISR PHY 0 CIL_A 0x88
[RCE] ISR PHY 0 CIL_B 0x88
[RCE] ISR PHY 0 CIL_A 0x1c00000
[RCE] ISR PHY 0 CIL_B 0xc00000
[RCE] deskew: num_lanes:4
[RCE] deskew: csi_port:0
[RCE] deskew: clk status_bits:0xfff8000000001fff
[RCE] deskew: pf:13
[RCE] deskew: data status_bits:0x8000000000ffffff
[RCE] deskew: pf:24
[RCE] deskew: clk status_bits:0xfffc000000000fff
[RCE] deskew: pf:12
[RCE] deskew: data status_bits:0x1ffffff
[RCE] deskew: pf:25
[RCE] deskew: clk status_bits:0xfffffe0000000007
[RCE] deskew: pf:3
[RCE] deskew: data status_bits:0x3ffffffff
[RCE] deskew: pf:34
[RCE] deskew: clk status_bits:0xffffff0000000001
[RCE] deskew: pf:1
[RCE] deskew: data status_bits:0x7ffffffff
[RCE] deskew: pf:35
[RCE] deskew: clk_trim:5
[RCE] deskew: data_trim0:10
[RCE] deskew: data_trim1:11
[RCE] deskew: data_trim2:20
[RCE] deskew: data_trim3:22
Now I have disabled the serdes (as it’s already configured) and changed the mode (which is also equivilant to close the argus_camera which runs stop_stream , and then open the argus again.)
here is the log …
[RCE] tegra_nvcsi_stream_close(vm0, stream=0, csi=0)
[RCE] tegra_nvcsi_stream_tpg_disable(vm0, stream=0, vc=0)
[RCE] tegra_nvcsi_stream_tpg_disable: channel 0 is already disabled
[RCE] tegra_nvcsi_stream_set_config(vm0, stream=0, csi=0)
[RCE] MIPI clock = 1249999 kHz, tHS-SETTLE = 0, tCLK-SETTLE = 0
[RCE] ===== NVCSI Stream Configuration =====
[RCE] stream_id: PP 0, csi_port: PORT A
[RCE] Brick: PHY 0, Mode: D-PHY
[RCE] Partition: CIL A, LP bypass: Enabled, Lanes: 4
[RCE] Clock information:
[RCE] MIPI clock rate: 1250.00 MHz
[RCE] T_HS settle: 0, T_CLK settle: 0
[RCE] ======================================
[RCE] tegra_nvcsi_stream_open(vm0, stream=0, csi=0)
[RCE] nvcsi_calc_ths_settle ths_settle 49
[RCE] nvcsi_calc_ths_settle ths_settle 49
[RCE] nvcsi_calc_ths_settle ths_settle 49
[RCE] nvcsi_calc_tclk_settle tclk_settle 75
--->[RCE] Deskew setup message sent for port 0 num_lane 4
As you may see I need to re-configure the serdes , problem is the same serdes is running several streams (using different VCs virtual channels) and if I configure the deserializer each time , when opening the 2nd stream , the 1st will be stuck…
again , any way to configure the RCE to “ignore/disable” the deskew (like in JP4.6?) , or after the 1st time to stop asking for it ?
BTW when there are 2 stream , I can easily change modes etc… (as long as there is at least one stream on…when closing both , it asks for the deskew again) , can this be configured ?