Commit graph

1605 Commits

Autor SHA1 Nachricht Datum
Vikash Garodia
db314a6554 video: driver: remove redundant entry for STAGE
remove redundant entry for STAGE in pineapple DB.

Change-Id: I1a0a861a0f419fbcadd1ebbbdc8ca2dc373af10c
Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com>
2024-05-22 09:58:04 +05:30
Vikash Garodia
287b84428d video: driver: remove redundant entry for STAGE
remove redundant entry for STAGE in cliff DB.

Change-Id: Id640ee48dec26851ba18cd472077b0e75f367496
Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com>
2024-05-22 09:57:21 +05:30
qctecmdr
13af8a0783 Merge "video-driver: Add comments to the logs" 2024-05-14 21:31:33 -07:00
Rajathi S
85f3b6cbcc Video: Driver: Enable bug on for WD_TIMEOUT on MILOS
-  Enable bug on only for WD_TIMEOUT and disable WD SSR

Change-Id: I993ac622660a242fa3a835eca119b76e9e020510
Signed-off-by: Rajathi S <quic_rajathis@quicinc.com>
2024-04-25 18:24:27 +05:30
qctecmdr
4a19fb721c Merge "video: driver: limit auto-frame-rate to original fps value" 2024-04-22 15:00:08 -07:00
qctecmdr
09ce24d5ae Merge "Video: Driver: Add SSR support" 2024-04-22 15:00:07 -07:00
Wenjie Yin
ca60c1dc9e video: driver: limit auto-frame-rate to original fps value
Limit the auto-frame-rate feature to the original fps value the client
set, ignore other cases.

Change-Id: Ib8f374cc385da1cc4de464bc1d0520eb1d637b7e
Signed-off-by: Wenjie Yin <quic_wenjyin@quicinc.com>
2024-04-18 19:41:03 -07:00
Rajathi S
652e7d78ad Video: Driver: Add SSR support
- Add SSR support on MILOS

Change-Id: I87f9de1307b043b3d883ba934c805b0e80ade32c
Signed-off-by: Rajathi S <quic_rajathis@quicinc.com>
2024-04-17 11:24:42 +05:30
Rajathi S
2502af1259 Video: Driver: Moved DPB list from input to output
- Moved DPB list from input to output
  - change the log level of xo_reset control to high instead
    of error log.

Change-Id: Ie3fd1f5fc846b08452d1c0d56bb065a11135e1e3
Signed-off-by: Rajathi S <quic_rajathis@quicinc.com>
2024-04-12 17:56:18 +05:30
Manikanta Kanamarlapudi
155787cac4 video-driver: Add comments to the logs
Add comments to the error logs that are used
in RMA device screening.

Change-Id: I830e7116ceae535cf291aae8e137b38c9bc77fee
Signed-off-by: Manikanta Kanamarlapudi <quic_kmanikan@quicinc.com>
2024-04-09 05:34:34 -07:00
qctecmdr
3765322aa5 Merge "video: driver: Add mvs0 clock reset and update sideBand Register" 2024-04-06 18:10:47 -07:00
Rajathi S
a7e4cb9cef Video: Driver: Restrict VP9 to UHD 60 fps
- According to the spec, restrict VP9 to UHD 60 fps

Change-Id: Iaa8208824e0e54c9ed9091b2e54824cb20798dc0
Signed-off-by: Rajathi S <quic_rajathis@quicinc.com>
2024-04-03 02:12:20 -07:00
Vedang Nagar
aa530c552f video: driver: Add mvs0 clock reset and update sideBand Register
For Cliffs target, Add mvs0 reset clock and update sideBand NoC
registers.

Change-Id: I6e48e0cab842f3ee12b1e3cb68495afe5f4e67de
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2024-03-29 10:31:33 +05:30
qctecmdr
6acdf52427 Merge "video: driver: Update ssr type specific to target" 2024-03-27 23:09:03 -07:00
Manikanta Kanamarlapudi
f7b9dd6807 video-driver: Made changes in error recovery sequence
- Add ARES for Core clock.
- After controller power down, re-initiate controller/core power
  on sequence and wait for QACCEPT and then power down the video
  subsystem.

Change-Id: Icec985f33dc6e05adf71bfa40901120ceffea655
Signed-off-by: Manikanta Kanamarlapudi <quic_kmanikan@quicinc.com>
2024-03-27 14:21:00 +05:30
Manikanta Kanamarlapudi
98619ca0bd video-driver: update fuse register for Volcano
IRIS_MULTIPIPE_DISABLE fuse will decide the sku
version, update the same for Volcano.

Change-Id: Icc0103b83ccd2222783549a1fa3d56373e4ca343
Signed-off-by: Manikanta Kanamarlapudi <quic_kmanikan@quicinc.com>
2024-03-19 19:34:09 +05:30
Rajathi S
6b9d8e6863 Video: driver: Update platform data for SKU1
- Update platform data for SKU1 which supports
    4k30 encode and 4k30 decode.

Change-Id: I4523030e46c995918489eaaaceb0d0998134477d
Signed-off-by: Rajathi S <quic_rajathis@quicinc.com>
2024-03-19 16:38:00 +05:30
Megha Byahatti
b880b69c2e video: driver: Update ssr type specific to target
Update ssr type slection logic to msm_vidc_driver.c.
And add ssr type specific to target for kalama and
waipio.

Change-Id: Ifbdd47f3cc13f69cd93ecbfdbfefa20a112fca7e
Signed-off-by: Megha Byahatti <quic_mbyahatt@quicinc.com>
2024-03-19 15:06:32 +05:30
qctecmdr
59e34a8dbc Merge "Video: Driver: Added support for multiple project configuration" 2024-03-16 13:17:58 -07:00
qctecmdr
879ba91507 Merge "video: driver: Avoided video_xo_reset on MILOS" 2024-03-16 13:17:58 -07:00
Rajathi S
32330210ce Video: Driver: Added support for multiple project configuration
- Multiple targets can have same kernel config, but target will be
     differentiated by target name lunch command.
   - Instead of having multiple configuration in bazel file for
     different targets, calling get_all_la_target_variants will return all
     the target variants.
   - And for targets sharing the same kernel config but having a different
     lunch command can be queried using
     define_lunch_target_variant_modules.
   - Bazel compilation was modified generic based on lunch target and
     base target

Change-Id: I82cdf744061b9ca395d2dcef003219d3af87287f
Signed-off-by: Rajathi S <quic_rajathis@quicinc.com>
2024-03-13 22:51:10 +05:30
qctecmdr
85f57c12d6 Merge "Video: Driver: Updated clocks for iris2 volcano configuration" 2024-03-12 12:22:31 -07:00
qctecmdr
6414925f6a Merge "Video: Driver: Added UBWC configuration for volcano" 2024-03-12 12:22:31 -07:00
qctecmdr
5e9e0583cb Merge "Video: Driver: Add support for volcano upstream" 2024-03-12 12:22:31 -07:00
Rajathi S
94d3c6c0ea video: driver: Avoided video_xo_reset on MILOS
- Milos doesn't support video_xo_reset.
  - Since its a common code added a condition to checkif vpu
    version is iris2_2pipe and video_xo_reset is configured then
    return with success.

Change-Id: I0baf3b1e89245065be4a4c21c55bc138077dd214
Signed-off-by: Rajathi S <quic_rajathis@quicinc.com>
2024-03-12 14:31:16 +05:30
Rajathi S
623ae59d11 Video: Driver: Added UBWC configuration for volcano
- Added UBWC configuration(LP4 & LP5) for volcano target.

Change-Id: I9548eab543d47a87ae5b4ea068743ce388f17540
Signed-off-by: Rajathi S <quic_rajathis@quicinc.com>
2024-03-11 22:34:44 -07:00
Manikanta Kanamarlapudi
31e4bbb858 video-driver: update frequency corners for Volcano
Update frequency corners for Volcano

Change-Id: I99c8e31e8442c2e51bd078ef6ff8f4654ce15734
Signed-off-by: Manikanta Kanamarlapudi <quic_kmanikan@quicinc.com>
2024-03-11 22:33:00 -07:00
Rajathi S
8e1f8f6e58 Video: Driver: Modify platform specific changes for volcano
- Modify platform specific driver changes for volcano target

Change-Id: I1800d711ba8a7c9dab6f17c9f0f9e547acf8b52f
Signed-off-by: Rajathi S <quic_rajathis@quicinc.com>
2024-03-11 22:49:19 +05:30
Rajathi S
7464e3fdda Video: Driver: Add support for volcano upstream
- Add support for upstream folder for volcano

Change-Id: Ia61c11bbeaf7d3c7d5848dfcb808998a67ddc328
Signed-off-by: Rajathi S <quic_rajathis@quicinc.com>
2024-03-11 17:03:35 +05:30
Rajathi S
b10a25e7c7 Video: Driver: Updated clocks for iris2 volcano configuration
- Updated Clocks for iris2 volcano configuration

Change-Id: I6fb6c926949c86c5ff84617bf32f6be54771f4bc
Signed-off-by: Rajathi S <quic_rajathis@quicinc.com>
2024-03-10 09:24:42 -08:00
Megha Byahatti
ef642b7f36 video: driver: Update Max_MBPS for cliffs
According to PDM request updating specification
support for 4k60 and UHD120 for HEVC andH264.
Due to this MAX_MBPS value changes as max
load will be 1080p@480fps=3916800. For AV1 and
VP9 max support is 4k60.

Change-Id: I02eb0842388880b3c67a75b948816b80be11c6cb
Signed-off-by: Megha Byahatti <quic_mbyahatt@quicinc.com>
2024-03-04 11:12:11 +05:30
Rajathi S
fe23c9409b Video: Driver: Add support for Volcano
- Add the basic driver support for volcano variant.
  - Add platform specific files for volcano.

Change-Id: Iaa736415dc495912ed598a94fca736937015ac7b
Signed-off-by: Rajathi S <quic_rajathis@quicinc.com>
2024-02-18 18:44:16 +05:30
qctecmdr
3d174eaaae Merge "video: driver: do not send resume on output port for encoder" 2024-02-11 22:07:26 -08:00
Megha Byahatti
08ebfd7f87 video: driver: Fix ddr voting to 0 after drain
After drain command when there is inactive session,the
difference between last qbuf input and current time
was exceeding the MSM_VIDC_SESSION_INACTIVE_THRESHOLD_MS
which was leading to ddr voting 0(total_bw_ddr = 0).

When there are no video frames to process, ensure
minimum passive ddr voting for Tensilica(1000kbps).

Change-Id: I5ead2dcf95581b302fd711e4ec08962e876e09b9
Signed-off-by: Megha Byahatti <quic_mbyahatt@quicinc.com>
2024-02-01 16:49:13 +05:30
Vedang Nagar
4459cd1e4c video: driver: do not send resume on output port for encoder
HFI_CMD_RESUME is not required on output port for encoder.
Add change to skip the same.

HFI Doc snippet for reference:
* There is no usage of resume command for encoder output port.

Change-Id: Ib2f7177f38de4b780c4627c7bdb03cbc61a63399
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2024-01-31 23:25:24 +05:30
qctecmdr
119382c01d Merge "video: driver: Add pipes scalability for multi slice count" 2024-01-20 16:10:31 -08:00
Megha Byahatti
9df60c1fa4 video: driver: Add pipes scalability for multi slice count
- Add pipes check to support different Tile sizes based on
number of VPP Pipes for HFI_IRIS3_ENC_TILE_SIZE_INFO,
HFI_IRIS3_ENC_MB_BASED_MULTI_SLICE_COUNT.

HFI review done with ccb id 3284017.

Change-Id: I2e403ac712143635fd9ff5167260e23d6b48c482
Signed-off-by: Megha Byahatti <quic_mbyahatt@quicinc.com>
2023-12-20 19:41:25 +05:30
Megha Byahatti
8a2127ac4e video: driver: Enable SSR type target specific
- Allow SSR type according to the target with
defining SSR type in platform file.

Change-Id: Idca62ce34b66a885da388d798eddb0c6c00871e5
Signed-off-by: Megha Byahatti <quic_mbyahatt@quicinc.com>
2023-12-15 04:21:41 -08:00
qctecmdr
cf58e09805 Merge "video: driver: Read ctrl_init register value during FW bootup failure" 2023-11-30 20:03:51 -08:00
qctecmdr
f6104dbc28 Merge "video: driver: avoid array copy for freq and bitrate table" 2023-11-30 20:03:51 -08:00
qctecmdr
77e62fb38c Merge "Video: Driver: acquire xo_reset mutex for gdsc access" 2023-11-30 20:03:51 -08:00
qctecmdr
90c8286530 Merge "video-driver: update Max frequency for cliffs v1" 2023-11-30 20:03:51 -08:00
qctecmdr
fb57fc652d Merge "video: driver: Update Level for codecs for cliffs" 2023-11-30 20:03:50 -08:00
Megha Byahatti
8193b0274d video-driver: update Max frequency for cliffs v1
- Due to hw limitation update max frequency for fused
variant with video_cc_pll_uhd60_fmax_fuse = 1 to 366MHz.

Change-Id: Id3b154ca600c3e8fa3cbb19bab1e20feba347775
Signed-off-by: Megha Byahatti <quic_mbyahatt@quicinc.com>
2023-11-21 13:14:50 +05:30
qctecmdr
6d7027e438 Merge "video: driver: Fix internal buffers issue with FIRST IPSC + SEEK" 2023-11-20 02:38:13 -08:00
qctecmdr
48804dda69 Merge "video: driver: fix inconsistency in clock calculation" 2023-11-20 02:38:13 -08:00
Vedang Nagar
726326d756 Video: Driver: acquire xo_reset mutex for gdsc access
[1] Acquire xo_reset mutex for gdsc access.
[2] Retry acquire_regulator for 1sec and BUG_ON if still fails.

Change-Id: Ie0ed4561a0c12b8526e2ede96a879f9d311aafab
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2023-11-15 19:05:34 +05:30
Vedang Nagar
236e1f55dd video: driver: Read ctrl_init register value during FW bootup failure
To debug FW bootup failure scenario, FW tries to update ctrl_init
register to know at what point failure is seen and driver can
read and print this register so as to know where FW bootup is
failing.

Change-Id: I26691a84ab2526dee8adb6b2a46b62a01bacede8
Signed-off-by: Vedang Nagar <quic_vnagar@quicinc.com>
2023-11-15 18:46:57 +05:30
Megha Byahatti
70d73aeac5 video: driver: Update Level for codecs for cliffs
Update H264, HEVC, VP9 and AV1 LEVEL supported for cliffs.

Change-Id: I74cf8f221bff4c3af71e844269a8c500b5bcaee6
Signed-off-by: Megha Byahatti <quic_mbyahatt@quicinc.com>
2023-11-10 14:34:17 +05:30
qctecmdr
3ec6262c18 Merge "video: driver: Update encoder MAX_BITRATE" 2023-10-30 11:16:34 -07:00