Commit Graph

86 Commits

Author SHA1 Message Date
Juhyung Park
2bb013bd39 mm: compaction: allow using different proactiveness value depending on the screen state
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Change-Id: I94d15bd4da794d134a10095c4f432f6d77c8f32e
2022-11-12 11:22:27 +00:00
spakkkk
586d4f5545 techpack: audio: promote send_tfa_cal_apr out of DEBUG_FS
To disable debugfs
2022-11-12 11:19:57 +00:00
UtsavBalar1231
2338b91a59 techpack: audio: Remove DEBUG definations
find techpack/audio -type f -exec sed -i -e '/define DEBUG/d' $(git grep -l DEBUG | tr '\n' ' ') {} \;

Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Change-Id: I2dfe2ebbc223cb38ede08facc1bb6316c1421272
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:57 +00:00
spakkkk
c216439fa5 techpack: video: remove log spam 2022-11-12 11:19:55 +00:00
spakkkk
b8aba0da16 techpack: audio: disable log spam 2022-11-12 11:19:55 +00:00
spakkkk
0b858bf25e techpack: display: disable log spam 2022-11-12 11:19:54 +00:00
Yashwanth
0823222013 disp: msm: sde: add vblank mutex lock during irq unregister
Currently, during ctl reset in video mode, irq register or
unregister might result in race condition with vblank
enable/disable calls on event thread resulting in enable
cnt mismatch. This change adds mutex locks to avoid race
conditions in such cases.

Change-Id: I45aef19864475ac1b02dd8e84810eee233fc60ea
Signed-off-by: Yashwanth <yvulapu@codeaurora.org>
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:50 +00:00
Mahadevan
cb223c487d disp: msm: sde: add check to fix null pointer dereference
In pstate_cmp the plane_state structures are accessed
without checking it is allocated or not, which leads to
null pointer dereference. To fix it NULL check is added.

Change-Id: I5982138b396b70979205d87bc9aa260d9501fee0
Signed-off-by: Mahadevan <mahap@codeaurora.org>
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:50 +00:00
Jayaprakash
ca24a04be8 disp: msm: sde: fix null dereference in drm_atomic_get_property
Add changes to fix the null dereference in
drm_atomic_get_property caused by connector->state
being NULL. This change allows the drm_mode_config_reset
operation to happen before drm_dev_register to avoid this.
In current scenario, connector->state->crtc is being
accessed due to call to drm_mode_getconnector ioctl with
the drm_mode_config_reset operation pending.

Change-Id: I374d9485819fad85100d1837f4ae22fc2a3ccc40
Signed-off-by: Jayaprakash <jmadiset@codeaurora.org>
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:50 +00:00
UtsavBalar1231
644d3825bd disp: pll: Disable PLL Spread Spectrum Clocking for 7nm CPHY
Change-Id: I09f37185ee61dcc8d6afb3b38adc9ef1191321f1
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:50 +00:00
UtsavBalar1231
a2e9d692e8 disp: msm: Implement custom ESD IRQ handling
Change-Id: Ic1b928f941b7c573714e24aeb9e62cde0d6f2b13
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:50 +00:00
Amine Najahi
bca6c98700 disp: msm: fix kasan out of bound in dsi reception
Fix out of bound access that occurs when reading dsi
commands with custom non 4 bytes aligned payload.
When misaligned, the code is overfetching data due
to 32 bits reading constraint. This creates an offset
in receiving buffer. Using a local copy buffer large
enough to hold the extra bytes fixes the issue.

Bug: 139655049
Change-Id: Ia0ee791d2e87639edd58191cfd5cb6f8f825f8c8
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
(cherry picked from 8f44ae7ca74a5faf6d7caaac48899192301f250d)
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:49 +00:00
Ping Li
25838aad41 disp: msm: sde: fix potential race condition
Move the hist irq handling out of callback function, i.e., the hw
interrupt irq_lock context, to avoid dead lock between crtc spin_lock
and irq_lock. This change also extends crtc spin_lock coverage in
_sde_cp_crtc_enable_hist_irq to prevent null pointer dereference on
event node, which can be deleted during crtc event de-registration.

Change-Id: Iadaed54ab93c4c4abe065a8762d2addccb0c65c6
Signed-off-by: Ping Li <pingli@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:49 +00:00
Demon000
b87a34af2c techpack: display: Implement doze mode 2022-11-12 11:19:49 +00:00
yarpiin
f470e80bdf techpack: display: remove stock doze implementation 2022-11-12 11:19:49 +00:00
EcrosoftXiao
6207c41cc9 techpack: display: Temporary disable dimlayer exposure while in HBM 2022-11-12 11:19:49 +00:00
EcrosoftXiao
da82ae5c24 techpack: display: Make dimlayer exposure switchable
Signed-off-by: Carlos Ayrton Lopez Arroyo <15030201@itcelaya.edu.mx>
2022-11-12 11:19:48 +00:00
EcrosoftXiao
ea4666c703 techpack: display: Adapt dimlayer exposure alpha model for sm7250
Signed-off-by: Carlos Ayrton Lopez Arroyo <15030201@itcelaya.edu.mx>
2022-11-12 11:19:48 +00:00
Carlos Ayrton Lopez Arroyo
c827832977 techpack: display: enable CONFIG_DRM_SDE_EXPO
Signed-off-by: Carlos Ayrton Lopez Arroyo <15030201@itcelaya.edu.mx>
2022-11-12 11:19:48 +00:00
DevriesL
a73e986502 techpack: display: Introduce new exposure dim layer driver
This driver provides exposure adjustment function by Qcom SDE dim
layer without change panel hardware brightness to avoid PWM flicker
on OLED devices. Thanks to OnePlus' opensource code for inspiring
me to use dim layer.

Use expo_calc_backlight to remap brightness with hardware and SDE,
checking Disable Hardware Overlays in developer options if you face
blocks with differents brightness issue.

[Ayrton: Backported from lahaina to SMxx50.0 SDE Driver for compatibility]

Signed-off-by: DevriesL <therkduan@gmail.com>
Signed-off-by: Carlos Ayrton Lopez Arroyo <15030201@itcelaya.edu.mx>
2022-11-12 11:19:48 +00:00
Adrian Salido
b26fd3f0db techpack: display: drm/msm: add idle state sysfs node
Add a sysfs mechanism to track the idle state of display subsystem.
This allows user space to poll on the idle state node to detect when
display goes idle for longer than the time set.

Bug: 139655049
Bug: 126304228
Change-Id: I21e3c7b0830a9695db9f65526c111ce5153d1764
Signed-off-by: Adrian Salido <salidoa@google.com>
Signed-off-by: Robb Glasser <rglasser@google.com>
(cherry picked from commit 11a2193b434cb3130743fbff89a161062883132e)
Signed-off-by: Ken Huang <kenbshuang@google.com>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:48 +00:00
Cosmin Tanislav
187ffd126f techpack: display: msm: further increase delay times while waiting to turn off rscc clocks 2022-11-12 11:19:47 +00:00
Pig
405d668172 uapi: sde_drm: Define FOD_PRESSED_LAYER_ZORDER
Change-Id: I5b25d19fab3a2901948d639c785165e70786f4ab
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:46 +00:00
Demon000
a0671a4f76 techpack: display: msm: notify sysfs for fod ui changes
Change-Id: I5559a9cfe00af58847e089764452a24c39830e20
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:46 +00:00
Demon000
005cf4305a techpack: display: msm: implement fod handling
Change-Id: Id29333eb3b5282b25c52ff14492622bd12e1ee79
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:46 +00:00
Demon000
9f7815acfe techpack: display: msm: dsi: add dsi_panel_get_backlight
Change-Id: Ifab7f9b0a7fbe5846c24c611a16cfcb7f29684dc
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:46 +00:00
DevriesL
98ba22686e techpack: display: msm: dsi: add get_main_display
Change-Id: Id670875adc18659521c424a716cf0ef194f9627f
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:46 +00:00
Demon000
503ab9c64b techpack: display: msm: sde: translate zpos property to fod property
Change-Id: I7e8562ed3eda675d160d6dabee7e568a1a72e849
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:45 +00:00
Demon000
f5061d847a techpack: display: msm: dsi: create empty attributes group
Change-Id: I974643cb245f76e66b208f7e18601cbb3d90ae62
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:45 +00:00
EmanuelCN
4ad9b3f99d techpack: video: vidc: Guard debugfs
shut up please
2022-11-12 11:19:45 +00:00
Danny Lin
05f22f0ce0 techpack: display: sde: Omit debug logging code if !DEBUG
With how often these macros are used in frame commit hotpaths, the
drm_debug bitmask check adds measurably significant overhead during
continuous frame commits. Omit the debug logging code entirely if !DEBUG
and !DYNAMIC_DEBUG to fix it.

Signed-off-by: Danny Lin <danny@kdrag0n.dev>
2022-11-12 11:19:45 +00:00
Jayaprakash Madisetty
ce9b99bd56 BACKPORT: disp: msm: sde: increase kickoff timeout for doze usecase
This change increases the kickoff timeout in doze and
doze suspend usecases. This avoids false timeouts seen
in doze due to rscc static wakeup configured at a different
fps from actual panel TE.

Change-Id: I11c94eb40d4dbbc3d95b8268b007580599ee90fd
Signed-off-by: Jayaprakash Madisetty <jmadiset@codeaurora.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:44 +00:00
UtsavBalar1231
545656bb2c disp: msm: sde: Force SDE fd to start from 1
Change-Id: Ibddd2ea6dda2052deccc2d62490cc5a1f81377ad
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:44 +00:00
UtsavBalar1231
d3c7b4c55f ASoC: lsm: Do not create any wakeup_source for keyword detection
This commit was creating unnecessary wakeup sources in root with illegal names containing spaces
For example "Listen [0-9] Audio Service"

Listen [0-9] Audio Service are common dai links defined in individual SOC specific codec files
and as these dai links are registed on msm-lse-client platform they were being created as a file
in linux root with illegal spaces in their name.

So, avoid creating wakeup sources with such names as they are not needed for anything critical

Fixes: wakeup_stats denials
Side Effects: None

This reverts commit b8348e7cb7a90a82ef9d75cc605b039f6bf7e7e9.

Change-Id: I7a36172c48d91afbc90e4e3058e178982db0ff27
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:44 +00:00
UtsavBalar1231
5b476e9fd2 audio: swr-mstr-ctrl: Fix unbalanced IRQ condition in swrm_runtime_suspend()
Add irq request check condition before enabling swrm interrupt
This will make sure to only enabled interrupt request when it is in disabled state.

This Fixes:
W         : ------------[ cut here ]------------
W         : Unbalanced enable for IRQ 502
W         : WARNING: CPU: 4 PID: 81 at kernel/irq/manage.c:621 enable_irq+0x98/0xf0
I         : Modules linked in:
I         : CPU: 4 PID: 81 Comm: kworker/4:1 Tainted: G S                4.19.197-IMMENSITY-g09a924c384cb #1
I Hardware name: Qualcomm Technologies, Inc. xiaomi alioth (DT)
I Workqueue: pm pm_runtime_work
I pstate  : 60c00085 (nZCv daIf +PAN +UAO)
I pc      : enable_irq+0x98/0xf0
I lr      : enable_irq+0x98/0xf0
I sp      : ffffff800885bbb0
I         : x29: ffffff800885bbc0 x28: ffffffa6fea0db38
I         : x27: 0000000000000002 x26: 0000000000000000
I         : x25: ffffffd1991ef37d x24: 0000000000000000
I         : x23: ffffffd1991edca1 x22: ffffffd199555410
I         : x21: ffffffd1991ef248 x20: 00000000000001f6
I         : x19: ffffffd18cc7b400 x18: ffffffd1b4e9f048
I         : x17: 0000000000000000 x16: 0000000000000000
I         : x15: 0000000000000086 x14: 0000000000000030
I         : x13: 0000000000049754 x12: 0000000000000000
I         : x11: 0000000000000000 x10: 0000000000000007
I         : x9 : 060ca0f25e42ae00 x8 : 060ca0f25e42ae00
I         : x7 : 0000000000000000 x6 : ffffffa6fed3f8e5
I         : x5 : 00000000001b68dc x4 : 000000000000000e
I         : x3 : 0000000000000032 x2 : 0000000000000007
I         : x1 : 0000000000000007 x0 : 000000000000001d
I Call trace:
I         : enable_irq+0x98/0xf0
I         : swrm_runtime_suspend+0x390/0x47c
I         : pm_generic_runtime_suspend+0x28/0x3c
I         : __rpm_callback+0x12c/0x218
I         : rpm_suspend+0x420/0x7cc
I         : pm_runtime_work+0x98/0xa8
I         : process_one_work+0x228/0x3f4
I         : worker_thread+0x264/0x4b0
I         : kthread+0x13c/0x158
I         : ret_from_fork+0x10/0x18
W         : ---[ end trace 56c9cc0df5ea202b ]---

Change-Id: Ic539bfc8d595faf530361d32e0be4ce9009fec08
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:44 +00:00
LibXZR
cca0ececeb techpack: display: dsi_phy: Force allow panel phy power off
* May save power slightly
2022-11-12 11:19:44 +00:00
Miguel de Dios
8821a3a9e7 techpack: audio: Mark msm-dai-q6 drivers as sync probe
Bug: 115776306
Bug: 77146523

Signed-off-by: Miguel de Dios <migueldedios@google.com>
Change-Id: Ife7d7a5ac7db134cc3f9f031ceb730c16e5ffa7f
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:39 +00:00
Miguel de Dios
cd53c0dbcd techpack: display: sde: Specify sync probe for sde_wb
Bug: 115776306
Bug: 77146523

Signed-off-by: Miguel de Dios <migueldedios@google.com>
Change-Id: I23af51e545377fcdffa42917625db8a07b48bb73
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:38 +00:00
Miguel de Dios
7526cf26e0 techpack: display: Specify sync probe for msmdrm_smmu
Bug: 115776306
Bug: 77146523

Signed-off-by: Miguel de Dios <migueldedios@google.com>
Change-Id: Iff5a580c03e4733116f862ae26e2b67ceafb7e16
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:37 +00:00
Vincent Palomares
12b20efd53 techpack: display: Async suspend/resume callbacks
Make rotator suspend/resume callbacks asynchronous, improving
suspend/resume latency.

Bug: 134703102
Change-Id: I79cea74a33620b8b00c24b5f031cf6969fe09aff
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:36 +00:00
Rick Yiu
e143da307c techpack: display: Move msm_drm_register to async probe
To reduce boot time to first stage.

Bug: 129688998
Test: reboot 100 times, camera, wifi, basic operation
Signed-off-by: Rick Yiu <rickyiu@google.com>
Change-Id: I3f9d2a6de9c67a4c4743de89ac9edc44cee6e955
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:35 +00:00
UtsavBalar1231
1e6b7a0074 techpack: audio: cs35l41-i2c: Make it probe asynchronously
Change-Id: I0bc179edcab6670021f8a9b4d431443e9ebedcfd
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:34 +00:00
alk3pInjection
dfb8d70a07 treewide: Remove Android.mk
* Since we're not using kernel modules,
  these files are unnecessary for standalone kernel builds.

  Furthermore, removing them helps avoid confusing inline build system.

Signed-off-by: alk3pInjection <webmaster@raspii.tech>
2022-11-12 11:19:13 +00:00
alk3pInjection
68ef93e600 techpack: display: Fix out-of-tree build
Signed-off-by: alk3pInjection <webmaster@raspii.tech>
2022-11-12 11:19:12 +00:00
UtsavBalar1231
0541830aec techpack: display: Import xiaomi display drivers modifications
Change-Id: I77ac429672b9948004b198ffe8c5354ef7c4b9d9
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:19:12 +00:00
alk3pInjection
22cdb81cd3 techpack: camera: Fix out-of-tree build
Signed-off-by: alk3pInjection <webmaster@raspii.tech>
2022-11-12 11:19:11 +00:00
alk3pInjection
6d72dcd13c techpack: Build camera
Signed-off-by: alk3pInjection <webmaster@raspii.tech>
2022-11-12 11:19:11 +00:00
xSylla
b22b9e13d4 techpack: camera: Import Xiaomi changes 2022-11-12 11:19:11 +00:00
spakkkk
50f42a2b8b techpack: camera: Add from tag 'LA.UM.9.12.r1-08000-SMxx50.0' of https://source.codeaurora.org/quic/la/platform/vendor/opensource/camera-kernel into skizo-v5
"LA.UM.9.12.r1-08000-SMxx50.0"
2022-11-12 11:19:10 +00:00
spakkkk
e39678a10c techpack: cam: nuke to cleaner merge
I dont have time to fix 2534634423436345 conflicts
2022-11-12 11:19:10 +00:00