Commit Graph

56462 Commits

Author SHA1 Message Date
Arian
758b09c5dd display: mi_disp: Allow partial reads
Change-Id: I7f9720153a7992b4fe0526e2114b780674465ec6
2024-03-14 14:35:34 +01:00
Arian
242555c91f display: mi_disp: Move fod_ui_ready_state to uapi headers
Change-Id: I40e37f65654294403a038ea41ea9c5a28302aa6e
2024-03-14 14:35:24 +01:00
Abhilash Mahapatra
e71a77c871 msm: camera: flash: Proper QueryCapV1 Handling
Proper handling of Flash state machine in case of
query cap V1 getting selected.

CRs-Fixed: 3416292
Change-Id: Ib727c26ac9b6c723b64f4c6dfdb6ea359716d8d4
Signed-off-by: Abhilash Mahapatra <quic_abhmah@quicinc.com>
2024-03-07 19:26:45 +01:00
Arian
35f643e2bd Revert "Revert "msm: camera: flash: Proper handling of epcr reqs""
This reverts commit d270b0d515.
2024-03-07 17:49:28 +01:00
Arian
06ba5bee79 Revert "Revert "msm: camera: flash: Reenabling Enable and Disable regulator support for PMIC flash""
This reverts commit d1a962b09d.
2024-03-07 17:49:28 +01:00
Arian
5da0351ac9 Revert "Revert "msm: camera: flash: Add support for flash stream off""
This reverts commit a5205fd124.
2024-03-07 17:22:18 +01:00
Arian
29790320a0 camera_sensor_utils: Add support for WL2866D
Change-Id: I9a8a3ef7a4381d889c408a709f36a58fada78a46
2024-03-07 16:31:21 +01:00
Andrew Bartfeld
0e7a5d626a disp: msm: dp: modify hdcp wait loop to not add to cpu load
Currently, hdcp wait loops uses the wait_event() macro which sets the
status of the thread to WAIT_UNINTERRUPTIBLE and contributes to system
load. The macro wait_event_idle() polls for a changing condition in the
same way but instead sets the thread status to WAIT_IDLE which does not
contribute to system load. This prevents hdcp threads from appearing as
hung threads in system load summaries while still properly polling for
status changes.

Change-Id: Ie6991881d912ba6fca6bb0fd9558633b1fb83492
Signed-off-by: Andrew Bartfeld <quic_abartfel@quicinc.com>
2024-02-28 19:48:53 +01:00
Veera Sundaram Sankaran
424700cd2c disp: msm: sde: move some frame_events from crtc commit to event thread
Move frame data stats collection/notification during frame-done and
retire fence sysfs notification to event thread. This will free up
some interrupt time.

Change-Id: I2648ac4287ce8712e9a059edd408a59753aa6d32
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2024-02-28 19:48:53 +01:00
Mahadevan
738027ec6f disp: msm: sde: wait for pending vsync event on pm_suspend
Before pm_suspend is called when there is a vsync enable event
from sf and disabling is not done pm_suspend will fail.
Following are the commit states when a pm_suspend is called:

 1. Normal Active Commit - When an active commit is going on
    and pm_suspend is called then forcefully do a disable
    commit. This will make sure in encoder virt_disable
    wait for vsync disable is exited only after vsync is
    disabled.
 2. Suspend Commit - When suspend commit is going on
    the wait for vblank disable in encoder virt_disable will
    make sure the pending vsync event from sf is already
    triggered.
 3. Doze mode - When in doze mode in pm_suspend we will
    forcefully do a commit to change to doze suspend.
    In this case, we will make sure that the commit is
    completed and rc_idle is kicked in. There is a chance
    disabling of vblank irq is not done in this case.
 4. Doze Suspend mode- This is same as Doze Mode where
    vblank irq may not be disabled.

To resolve the issue in Case3 and 4 wait for a vblank irq is added
which will queue the vblank disable work to event_thread and make
sure the queued work is completed by doing a kthread_flush.

Change-Id: I8f9969c3865f7396d6e87819d65c7b16be73ad39
Signed-off-by: Mahadevan <quic_mahap@quicinc.com>
2024-02-28 19:48:53 +01:00
Raviteja Tamatam
df09b5e7d7 disp: msm: sde: wait for pending vsync event in encoder disable
In some corner cases there is pending vsync timestamp event to
sf when encoder is getting disabled. This is keeping vblank irq
to be enabled after sde_encoder_virt_reset leading to NULL ptr
access. In these cases, wait for vsync event to be completed which
disables the irq.

Change-Id: If0a6be1fc282906fb1b9c0fd18ede1d31d2549b3
Signed-off-by: Raviteja Tamatam <quic_travitej@quicinc.com>
2024-02-28 19:48:53 +01:00
Pzqqt
8b16aaa114 display-drivers: Skip setting doze brightness if panel is not initialized
Reverse engineering based on msm_drm.ko of OS1.0.2.0.UMRMIXM.
2024-02-28 19:48:53 +01:00
Pzqqt
816f3e9c6f display-drivers: mi_disp: Optimize for marble's 36_0d_0b screen panel
- The code is based on reverse engineering of msm_drm.ko from v14.0.25.0.
- This resolves an issue with marble devices with 36_0d_0b panels occasionally flickering after the screen goes off.

Signed-off-by: Pzqqt <821026875@qq.com>
2024-02-28 19:48:52 +01:00
Pzqqt
6a9c5e4174 display-drivers: Optimize for marble's 36_02_0a screen panel
- The code is based on reverse engineering of msm_drm.ko from v14.0.23.0.
- This fixes an issue with marble devices with 36_02_0a panels flickering when switching the refresh rate from 120 to 60.

Change-Id: I9ca5f2046eb5c5a19f17862bc6bae1af7873134e
Signed-off-by: Pzqqt <821026875@qq.com>
2024-02-28 19:48:52 +01:00
Jens Reidel
aeafb38a6a camera-kernel: Add support for m16t csiphy
From yudi-t-oss

Change-Id: I59eed23f39b226f41f8d681c7236e765aa70aa58
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-02-28 19:48:07 +01:00
Arian
d6ecbda74d cam_ois: Update from garnet-t-oss
Change-Id: Ib612e29013d74ab1f99a69573f5e7782f8c933fd
2024-02-27 18:05:03 +01:00
Arian
0c12c953c5 cam_csiphy: Add support for several more xiaomi devices
Change-Id: Id4d3baa4f037ae634085c5e3c011fb7903d4d493
2024-02-24 16:13:52 +01:00
Pranav Vashi
7f072f75f0 qcom: Remove build timestamp injection on every build
Change-Id: I0417ea4177cf6462f9e94a5a9882889fc1135991
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-02-24 15:58:22 +01:00
Jens Reidel
c4c26cd300 display-drivers: Add missing function prototypes
Change-Id: I06368d9d37889b5528e428138619ee2662c7a043
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-02-24 15:57:02 +01:00
Jens Reidel
5ecd0503ba cvp/eva: Add missing function prototypes
Change-Id: Ia9413c5f13921c24870e96e54a87027fb780ea6e
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-02-24 15:56:33 +01:00
Jens Reidel
833c7f1d12 dataipa: Add missing function prototypes
Change-Id: I30e0f3c4a9af0a90da9d1367b2f7e5ef0c42e28d
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-02-24 15:56:33 +01:00
Jens Reidel
00363094cc cam_utils: Add missing function prototypes
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2024-02-24 15:56:33 +01:00
Phani Kumar Uppalapati
b59d78291f audio-kernel: fix compilation issues
Fix compilation issues in audio-kernel.

Change-Id: I93fa4fb670989f82139dd2cd0dbe57b52ad52504
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2024-02-24 15:56:33 +01:00
Deepa Guthyappa Madivalara
9cb47e8ac5 video: driver: update definition same as prototype
Update function definition to be same as prototype to
avoid compile error

Change-Id: I92be0d96ce1e95e858cca6e5cad8de0564a60e5b
Signed-off-by: Deepa Guthyappa Madivalara <quic_dmadival@quicinc.com>
2024-02-24 15:43:23 +01:00
Darshana Patil
0f0b9c61a4 video: driver: misc fixes for venv project
Change-Id: I4b5495ac4669a1e4519ac855d6b995e9d259f335
Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
2024-02-24 15:37:19 +01:00
vantoman
ae279bc171 ipa_v3: Fix enum conversion warnings
../techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c:510:41: warning: implicit conversion from enumeration type 'enum ipa_ip_type_enum_v01' to different enumeration type 'enum ipa_ip_type' [-Wenum-conversion]
        q6_ul_flt_rule_ptr->ip = flt_spec_ptr->ip_type;
                               ~ ~~~~~~~~~~~~~~^~~~~~~
../techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c:511:45: warning: implicit conversion from enumeration type 'enum ipa_filter_action_enum_v01' to different enumeration type 'enum ipa_flt_action' [-Wenum-conversion]
        q6_ul_flt_rule_ptr->action = flt_spec_ptr->filter_action;
                                   ~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~

Change-Id: I0eb68d707151cd103676a30659ab81bf6fced131
2024-02-24 15:37:13 +01:00
Arian
21e78aa0c0 audio-kernel: Enable CS35L41
Change-Id: Idcc391d3bf0c851e90a362a40e68d851e099b5ea
2024-02-24 15:37:08 +01:00
Arian
4257f3ecb2 display-drivers: Set mi panel_state to on in dsi_display_enable as seen in stock driver
Change-Id: Ibfcabb8d13240a725fd8b646a074d395bfd6c9e6
2024-02-24 15:36:32 +01:00
Arian
56a2f49eac display-drivers: Implement auto gamma update as seen in stock driver
Change-Id: I8949940d50c8b785392640d52a2307920ffa02ad
2024-02-24 15:36:25 +01:00
Arian
c6a55dc9ca display-drivers: Enable more whitebuf changes for M11A as seen in stock driver
Change-Id: Ib02424a9997a5f88f620959e054c370773fe8f91
2024-02-24 15:36:22 +01:00
kxxt
57f9a81584 display-drivers; Update aa_alpha_M11A_PANEL_PA from stock driver
Change-Id: I736ef702c2f337ecad8931c1f1594e045f695112
2024-02-24 15:36:22 +01:00
Arian
98235c161d display-drivers: Disable mi display pwrkey callback to fix compile
Change-Id: I3c82f9349d5026609fe6b77cf06fa194f0af256a
2024-02-24 15:36:22 +01:00
Arian
4a17042a14 display-drivers: Update from garnet-t-oss
Change-Id: I297e7838283226ca86107af36ad61a912ef2f6ea
2024-02-24 15:36:14 +01:00
Arian
7eecfd7b1b audio-kernel: Update xiaomi changes from garnet-t-oss
Change-Id: I277dba82495bbb4247c30ecc8a233a663c8b76ec
2024-02-24 15:35:40 +01:00
Pranav Vashi
20f11a8b14 qcom: Remove build timestamp injection on every build
Change-Id: I0417ea4177cf6462f9e94a5a9882889fc1135991
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
2024-02-24 15:34:16 +01:00
Arian
35c5879fff display-drivers: mmm_color_format: Avoid Unannotated fall-through
Change-Id: If3fc9dba003f5beb6a99c48b7a22445d8424c6d1
2024-02-24 15:34:16 +01:00
Arian
05873bd0e6 display-drivers: Import xiaomi changes from ziyi-s-oss
Change-Id: Ic5bb4ad55d627e988f31f9c336d6a0ce7479b3d0
2024-02-24 15:34:16 +01:00
Jens Reidel
a5205fd124 Revert "msm: camera: flash: Add support for flash stream off"
This reverts commit 04825f917c.

Change-Id: Idf0fea2470683463ddb5e46db96a7447696acea2
2024-02-24 15:34:16 +01:00
Jens Reidel
d1a962b09d Revert "msm: camera: flash: Reenabling Enable and Disable regulator support for PMIC flash"
This reverts commit 7e309d30dd.

Change-Id: Idddf05d62a319578924831ea9d6bdf31e1c7474d
2024-02-24 15:34:16 +01:00
Jens Reidel
d270b0d515 Revert "msm: camera: flash: Proper handling of epcr reqs"
This reverts commit 18b54c06a8.

Change-Id: I45776bcfe194582eeff13bc9689ffe30749045f4
2024-02-24 15:34:16 +01:00
Arian
444b2f956d cam_req_mgr: Increase max events
Change-Id: Iaaa3c7ee7a9d17efec8c455c9c9169f3265ee3f3
2024-02-24 15:34:16 +01:00
Arian
bcd2e024c4 cam_req_mgr: Increase watchdog timeout and max retry attempts
Change-Id: Ifbae4b64b754fc2b0d4d13bddfeb9b2f753e0814
2024-02-24 15:34:16 +01:00
Arian
0032aadc53 cam_icp: Increase cmd and msg sizes
Change-Id: I77ec1a528d7079b8fcefcd8af058fadc0cae917c
2024-02-24 15:34:16 +01:00
Arian
245bf48f06 cam_sensor_utils: Add CAM_VANA1 to vreg name enum
Change-Id: I7a5818c9955c93526159a1ab7a0c34472eba6ff6
2024-02-24 15:34:16 +01:00
Arian
70f2fb88e6 cam_ois: Import xiaomi changes
Change-Id: I7a85f175e982ba9d55a2122b895ec3ce42aa196e
2024-02-24 15:34:16 +01:00
Arian
c5218afc05 cam_csiphy: Modify cdr delay reg for xiaomi l2 (zeus)
Change-Id: I4bbfdfe609ff93ffc82c8aa973a205a7fe69fcbf
2024-02-24 15:34:16 +01:00
Arian
f73facfa82 cam_csiphy: Always stop cpas on shutdown
Change-Id: I4114d8724d074f70d4480067795be10ac6d5c0dd
2024-02-24 15:34:16 +01:00
Arian
97c805ec20 cam_isp: Set rdi_only_ctx to false on stop
Change-Id: Ie4d7305b17c42ee7aa92f20f5b67d47d5aaf11d9
2024-02-24 15:34:16 +01:00
Arian
2fb5929480 cam_isp: Avoid race condition in tasklet start and stop
Instead of reading the tasklet_active state, preparing and then
setting tasklet_active to the intended value directly change the
value if necessary to avoid others reading the old value while
one is already preparing the start.

Change-Id: I8456512a7646b9f657aa23c111b80d90de4341c6
2024-02-24 15:34:16 +01:00
Arian
9f29767848 cam_isp: Try to recover bubble if request can be re-applied
Change-Id: I84a4d67943d768f93906621c80e31499af043a88
2024-02-24 15:34:16 +01:00