Commit gráf

2976 Commit-ok

Szerző SHA1 Üzenet Dátum
Amine Najahi
3e63669e71 disp: msm: sde: fix GEM object inactive list locking
Currently code is locking the struct_mutex when accessing
the GEM object inactive list. This causes corruption of
the inactive list during stability testing.

This change uses the mm_lock mutex instead, as it is used
in the allocation and de-allocation paths.

Change-Id: I6384fd70e7ea5d7e3c2910c7670d152a61670dc1
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-04-05 18:47:25 -04:00
qctecmdr
068c83ecd9 Merge "disp: msm: sde: consider max of actual and default prefill lines" 2022-04-01 11:49:38 -07:00
qctecmdr
fdcfe00b0b Merge "disp: msm: sde: drop suspend state if commit is skipped" 2022-03-31 17:23:16 -07:00
qctecmdr
0d5e286187 Merge "disp: msm: sde: shorter idle-pc duration in doze mode" 2022-03-31 17:23:15 -07:00
qctecmdr
e84f1b6640 Merge "disp: msm: sde: disable autorefresh on encoder disable" 2022-03-31 07:49:19 -07:00
Veera Sundaram Sankaran
3112cb87dd disp: msm: sde: fix sde_vbif_get_xin_status return value
sde_vbif_get_xin_status is expected to return true if client is idle
and false otherwise. Update the final return status based on this
expectation.

Change-Id: I3a9ff7c83cb5966ff5573b27e5c2e88423448199
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-03-29 12:16:17 -07:00
Narendra Muppalla
0828ce68f2 disp: msm: sde: consider max of actual and default prefill lines
In transfer-time calculation remove fixed prefill lines assumption
and consider max of default prefill lines, prefill lines
specified from the panel timing info and Vtotal. For panels with
higher porches exceeding default prefill lines, alternate framedrops
can occur if transfer-time exceeds RSC static waketup time
as actual prefill lines are considered in RSC static wakeup timer
calculation. This change ensures transfer-time is within
RSC static wakeup time.

Change-Id: Ic489d69cf99cfb6750e871c7fc8197243f61acf3
Signed-off-by: Narendra Muppalla <quic_nmuppall@quicinc.com>
2022-03-29 11:36:27 -07:00
Veera Sundaram Sankaran
e50d08286f disp: msm: sde: disable autorefresh on encoder disable
Disable the autorefresh during encoder disable to avoid any
pending frame transfers while disabling. Additionally, handle
frame_done for new autorefresh frames to signal the fences and
proper accounting of pending_kickoff counter.

Change-Id: I8af114972b19ccdf0edab6b4c454ee90b4e8d8cf
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-03-29 10:41:46 -07:00
Yu Wu
6e050f641a disp: msm: dsi: Remove backlight operation during poms process
During POMS process, from vid to cmd or from cmd to vid, we both
see black screen, this is caused by backlight operation. Logically
display driver should not operate on backlight during POMS process.

Change-Id: I3bc76d6ed9ccee50f740c36cb276b6b103e7d43e
Signed-off-by: Yu Wu <quic_zwy@quicinc.com>
2022-03-28 00:36:32 -07:00
qctecmdr
cba5134cac Merge "disp: msm: sde: address static analysis issues" 2022-03-25 23:49:17 -07:00
Nisarg Bhavsar
4d8bf011d5 disp: msm: sde: address static analysis issues
Avoid various possible nullptr dereferences
and check validity of index before accessing
arrays. Addresses issues highlighted by
static analysis.

Change-Id: I5abfbc8c4cacb56e9decc3a6339ab0fa3a63b606
Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
2022-03-25 13:26:33 -07:00
qctecmdr
89422fbde1 Merge "disp: msm: sde: enable llcc in AOD mode" 2022-03-25 12:06:36 -07:00
Govinda Rao K S
1928128776 disp: msm: sde: enable llcc in AOD mode
LLCC usage is currently limited to static display
configuration. With these changes, LLCC will be
enabled for always-on screen with Video mode.

Change-Id: I54cbb6f0aa6380819ca00e02ac8ffd1c01d07ede
Signed-off-by: Govinda Rao K S <quic_gkarikur@quicinc.com>
2022-03-25 09:09:42 +05:30
qctecmdr
51f0c1bd0b Merge "disp: msm: sde: install default value for panel_mode property" 2022-03-24 20:13:01 -07:00
qctecmdr
9ef57c8125 Merge "disp: msm: remove unused code snippet" 2022-03-24 16:30:49 -07:00
qctecmdr
67c4ea24a4 Merge "disp: msm: add capability to dynamically update the transfer time" 2022-03-24 07:56:56 -07:00
qctecmdr
07a272bcb8 Merge "disp: msm: sde: remove hardcoding of LLCC use case id" 2022-03-24 04:19:48 -07:00
Shamika Joshi
64c6d2e0f4 disp: msm: remove unused code snippet
Removing unused DMA-BUF code snippet

Change-Id: I860acfbeb81b7d4ed5229e0bfb19959652cfc575
Signed-off-by: Shamika Joshi <quic_shamjosh@quicinc.com>
2022-03-23 12:59:45 -07:00
qctecmdr
41505c6109 Merge "disp: msm: sde: refactor _sde_encoder_phys_wb_update_cwb_flush function" 2022-03-23 00:39:24 -07:00
qctecmdr
264e0b32ce Merge "disp: msm: dsi: add MISR support for ctl 2.2 version" 2022-03-23 00:39:24 -07:00
Amine Najahi
213997b2c9 disp: msm: sde: remove hardcoding of LLCC use case id
Remove hardcoding LLCC use case id and use catalog information
to decide which system cache section to use.

Change-Id: I9748ca1f3569db0cf77689af296def0759fe94cc
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-03-22 11:15:14 -04:00
Nilaan Gunabalachandran
e5fcf7f263 disp: msm: add capability to dynamically update the transfer time
This change adds a connector OP, that will be used to update frame
transfer time dynamically at the request from user space.

It also adds parsing for new device tree entries that set the minimum
and maximum trasnfer times on a mode basis. These min and max transfer
times are also published to userspace through the connector mode info
capabilities blob.

Change-Id: I12aedf96a51ff7feb2c5b3b1353d3c4ec8dcb068
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
Signed-off-by: Nilaan Gunabalachandran <quic_ngunabal@quicinc.com>
2022-03-21 14:13:32 -04:00
Govinda Rao K S
c35cbdda4f disp: msm: sde: shorter idle-pc duration in doze mode
Currently aggresive idle-pc entry is only enabled in
case of doze-suspend mode. Extend the support to doze
mode as well.

Change-Id: I8e9e0e116bb65a1aec0180bf9bc10bed99d4a137
Signed-off-by: Govinda Rao K S <quic_gkarikur@quicinc.com>
2022-03-21 02:14:55 -07:00
qctecmdr
de4b82ec48 Merge "disp: msm: sde: refactor dsi_display_get_modes function" 2022-03-19 21:33:44 -07:00
Shamika Joshi
d66d6a1a71 disp: msm: sde: refactor _sde_encoder_phys_wb_update_cwb_flush function
Refactor the function '_sde_encoder_phys_wb_update_cwb_flush' to
reduce its complexity.

Change-Id: I91b5fd5409617d06c3c17799d6af128578c3ba16
Signed-off-by: Shamika Joshi <quic_shamjosh@quicinc.com>
2022-03-18 18:30:37 -07:00
Veera Sundaram Sankaran
451f79771f disp: msm: dsi: add MISR support for ctl 2.2 version
Add DSI CTL MISR support for ctl 2.2 version. Reuse the same
debugfs nodes to setup/collect misr.

Change-Id: I3d8dfab093659ce53817d9511999c0c03cc33f62
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-03-18 09:25:40 -07:00
Lei Chen
ffcdd853a5 disp: msm: sde: install default value for panel_mode property
Install default panel mode for connector panel_mode property
so that the panel mode can be changed to default mode accordingly
when SDM is restarted.

Change-Id: I3229a1b8e60da9030d6e20112f6b1f3071b5f988
Signed-off-by: Lei Chen <quic_chenlei@quicinc.com>
2022-03-18 00:44:18 -07:00
qctecmdr
33ed6045ac Merge "disp: msm: sde: remove WB output buffer pitch alignment check" 2022-03-17 15:54:13 -07:00
qctecmdr
2884396664 Merge "disp: msm: sde: avoid null pointer dereference" 2022-03-17 15:54:12 -07:00
Amine Najahi
cc19682733 disp: msm: sde: remove WB output buffer pitch alignment check
Currently, driver enforces the allocated WB output buffer to be 256 bits
aligned in memory in order to optimize DDR access and meet maximum system
bandwidth requirements.

Since there are no functional failures with using a 256 bits unaligned
buffer, this change removes this unnecessary check.

Change-Id: I23476e8a28e970f2e1853bbcc0c1d1042d9fdfe2
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-03-17 16:09:09 -04:00
qctecmdr
09f8f69716 Merge "disp: msm: optimize devcoredump read operation duration" 2022-03-17 07:48:44 -07:00
qctecmdr
96782a0d63 Merge "disp: msm: sde: program master intf register for single intf" 2022-03-17 07:48:44 -07:00
qctecmdr
1b541d5bb6 Merge "disp: msm: dp: add pll params table for 4nm PHY pll settings" 2022-03-17 00:56:08 -07:00
Sandeep Gangadharaiah
597cc8e43b disp: config: conditional import of msm-ext-display symbols
msm-ext-display module is moved out of the kernel to display
driver after waipio release. This change will import these
msm-ext-display symbols only for a non-waipio variant.

Change-Id: I3cb30f666120e29c13405b98c98cc540198fa651
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-03-16 12:29:52 -07:00
Nisarg Bhavsar
a9c8b41adf disp: msm: sde: avoid null pointer dereference
Avoids null function pointer dereference in WriteBack object.

Change-Id: I9f23a7f9f5e72e09cfd7a955d0c0ca64b401f89e
Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
2022-03-16 11:41:18 -07:00
qctecmdr
6ddda369b3 Merge "disp: msm: dsi: mitigate errors on non-parsed regulator nodes" 2022-03-15 22:42:35 -07:00
qctecmdr
aea34b4fd7 Merge "disp: msm: sde: enable tui flag in catalog for kalama" 2022-03-15 19:54:04 -07:00
Bruce Hoo
522b0cee4c disp: msm: optimize devcoredump read operation duration
Set a flag to avoid multiple reading of sde_dbg info, that
reduces devcoredump reading time.

Change-Id: I83f77dea35bb818d51b0982124a54ffeef7db8af
Signed-off-by: Bruce Hoo <quic_bingchua@quicinc.com>
2022-03-15 18:34:57 +08:00
Raviteja Tamatam
3555dc45ca disp: msm: sde: enable tui flag in catalog for kalama
Enable trusted vm flag for kalama target

Change-Id: I2f2c0a838914d5fccf6642690c082c592e04e38d
Signed-off-by: Raviteja Tamatam <quic_travitej@quicinc.com>
2022-03-14 15:23:07 -07:00
Raviteja Tamatam
2d4e001512 disp: msm: sde: SID programming for new MDSS
SID registers and offsets are changed in display
MDSS 9.0.0. Changes are made to program these new registers.
Also, added new revision check for backward
compatibility.

Change-Id: I4e1ea374f38c95a4d1019c2596418bb6bb7c5347
Signed-off-by: Raviteja Tamatam <quic_travitej@quicinc.com>
2022-03-14 15:21:56 -07:00
Christina Oliveira
5f5c9cdf3d disp: msm: sde: program master intf register for single intf
This change adds the programming of the master interface
register for single interface configurations.
Setting this register is required by hw-fencing feature
to distinguish primary interfaces vs wb.

Change-Id: I84936ebd6a9f2d67cf98c19a51ce3a132c648a2d
Signed-off-by: Ingrid Gallardo <quic_ingridg@quicinc.com>
Signed-off-by: Christina Oliveira <quic_coliveir@quicinc.com>
2022-03-10 16:38:20 -08:00
Sandeep Gangadharaiah
b5383dbae3 disp: msm: dp: add pll params table for 4nm PHY pll settings
Because of changes to ref clock frequency, few of the pll
reg values are different for kalama compared to palima.
This change differentiates between these two 4nm versions,
based on pll revision and also introduces a pll reg table
to differentiate the values.

Change-Id: I016330ded10ab334012daa8cc288a8cd5c039f58
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-03-10 14:13:40 -08:00
Linux Build Service Account
a0516637d3 Merge "disp: config: enable msm_ext_display config for kailua" into display-kernel.lnx.5.15 2022-03-10 06:30:46 -08:00
Linux Build Service Account
c4d83920c3 Merge "disp: msm: link msm-ext-disp module as a dependency" into display-kernel.lnx.5.15 2022-03-10 06:30:43 -08:00
Linux Build Service Account
e4a2f166c3 Merge "disp: msm: sde: use INTF mdp_vsync timestamp only for video-mode" into display-kernel.lnx.5.15 2022-03-10 05:03:04 -08:00
Linux Build Service Account
e88609fedc Merge "disp: msm: fix WD timer load value calculation" into display-kernel.lnx.5.15 2022-03-10 05:03:02 -08:00
Linux Build Service Account
44fe916f51 Merge "disp: msm: sde: Enable demura tap point capability in cwb" into display-kernel.lnx.5.15 2022-03-10 05:02:03 -08:00
Narendra Muppalla
ae96cad06c disp: msm: sde: avoid null pointer dereference
This change avoids null pointer dereference in different APIs.

Change-Id: I01eba9d64fa4ba2fd81f7f39f586867e22d66771
Signed-off-by: Narendra Muppalla <quic_nmuppall@quicinc.com>
2022-03-08 11:44:20 -08:00
Shamika Joshi
896e10ee2d disp: msm: sde: refactor dsi_display_get_modes function
Refactor the function 'dsi_display_get_modes' to
reduce its complexity.

Change-Id: I1a8ecaa780e5070bac7fa40404677c0a8a5d7cd8
Signed-off-by: Shamika Joshi <quic_shamjosh@quicinc.com>
2022-03-07 17:55:35 -08:00
Jeykumar Sankaran
a8b968f64b disp: msm: dsi: mitigate errors on non-parsed regulator nodes
Mitigate errors to debug logs on non-parsed regulator look ups. Callers
can make use of the return value to handle failures.

Change-Id: Ib0ed869e92104ac7e859484b247ac99bf332fa5c
Signed-off-by: Jeykumar Sankaran <quic_jeykumar@quicinc.com>
2022-03-07 15:53:03 -08:00