Граф коммитов

3027 Коммитов

Автор SHA1 Сообщение Дата
Amine Najahi
d03f18c6b9 disp: msm: sde: toggle LLCC SCID for consecutive LLCC write
Toggle LLCC SCID for each consecutive LLCC write
operations and force read allocate when NSE bit
set.

Change-Id: Ice473cb126b627056b7346f142bc84c120e05f0b
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-05-09 17:07:58 -04:00
qctecmdr
63a9b89055 Merge "disp: msm: sde: fix precise vsync feature check" 2022-05-06 01:23:21 -07:00
qctecmdr
be3eb851cf Merge "disp: msm: dsi: Don't clear status interrupts while error interrupts toggle" 2022-04-30 22:49:59 -07:00
qctecmdr
25dd16eeb0 Merge "disp: msm: Address static analysis issues" 2022-04-30 18:45:41 -07:00
Nisarg Bhavsar
75aedb1c53 disp: msm: Address static analysis issues
Avoid various possible nullptr dereferences.
Addresses various issues highlighted by static analysis.

Change-Id: I36d34d610b37bf2799a7e34cd1de8b909b5c0ae4
Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
2022-04-28 11:53:38 -04:00
Rahul Sharma
d28f68dede disp: msm: add augen3 configuration
Add augen3 configuration for SA8155/SA8195/SA6155 family.

Change-Id: I206f0a636ef9f33b4c46cb0159ae2659a3dced59
Signed-off-by: Rahul Sharma <quic_rahsha@quicinc.com>
2022-04-28 07:42:28 -07:00
Srihitha Tangudu
4799920fc7 disp: msm: dsi: Don't clear status interrupts while error interrupts toggle
To toggle error interrupts, we currently read the DSI_INT_CTRL register,
toggle the DSI_ERROR_MASK bit and write back to the register. While doing
so we are also writing back 1 to any status bits set by HW, thus clearing
the status interrupts. Clearing the status bits should always be done as
part of interrupt handling, which otherwise can lead to command transfer
failures.

Avoid clearing status interrupts while error interrupts are toggled.

Change-Id: Iaae10c279f2341269ed49074448167e68ab7e13c
Signed-off-by: Srihitha Tangudu <quic_tangudu@quicinc.com>
2022-04-27 11:28:05 +05:30
Rajkumar Subbiah
609f084c8a disp: msm: dp: improve accuracy of mvid/nvid calculation
The software mvid/nvid values represent the ratio of mode clock
to link clock. Currently we are converting the link clock to vco
clock, get the ratio of vco clock to mode clock and then adjust
the resulting values to get the ratio of link clock to mode clock.
This change simplifies this logic by directly using the link
clock to get the ratio and uses fixed point arithmetic to scale
the resulting mvid, nvid values to meet requirements.

Change-Id: Ifdfa27edb73d2db6381e592db219e75806d6bdc7
Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
2022-04-26 18:58:47 -07:00
Veera Sundaram Sankaran
2d889b43ea disp: msm: sde: fix precise vsync feature check
Check the precise vsync feature bit in sde hw catalog features
bitmap for checking the precise vsync feature and remove the
obsolete has_precise_vsync_ts variable.

Change-Id: I1f0cfabe5dcf387358548e8ff5ea0d65d4d7cecf
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-04-26 15:46:33 -07:00
qctecmdr
b0aa8dbb0f Merge "disp: msm: sde: add support for LLCC_DISP_1 SCID" 2022-04-26 13:11:31 -07:00
Amine Najahi
bffdc0271d disp: msm: sde: add support for LLCC_DISP_1 SCID
Currently only LLCC_DISP SCID is used to read and write to
system cache during static display use case.

This changes adds SCID LLCC_DISP_1 to allow each SCID to
have a dedicated function (read/write).

Change-Id: I5604ec1183d99a8492b005ec06ac94e5db60b5f7
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-04-26 10:29:29 -04:00
qctecmdr
2ed5675910 Merge "disp: msm: sde: convert system cache boolean to feature bit" 2022-04-26 06:38:24 -07:00
Amine Najahi
50092909c0 disp: msm: sde: convert system cache boolean to feature bit
Currently a boolean variable is used to track if the system
cache feature is enable for a particular SCID.

This change converts it to use a feature bit instead.

Change-Id: I8461fd9fb837b871c4ac5c67a9ab7613aadea7bb
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-04-25 16:33:00 -04:00
Amine Najahi
edd8be4319 disp: msm: sde: log SCID during LLCC activation
Add SCID to event log and debug print during LLCC activation.

Change-Id: Ib4c0a68506e9620ca42aba03db35c9ee21eda6dd
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-04-25 16:32:53 -04:00
Bruce Hoo
02e97873a2 disp: msm: merge flag of register and dbgbus
Merge reg_dump and dbgbus dump flag into dump_mode, and bring
back debugfs node "evtlog_dump" to keep flexible controlling
of evtlog.
Set in_mem option as default dump mode, since in_coredump
option will be enabled once HW recovery feature is enabled.

Change-Id: I75de1a69b01594b652479bf79201591ac0bf62e5
Signed-off-by: Bruce Hoo <quic_bingchua@quicinc.com>
2022-04-25 08:07:46 -07:00
qctecmdr
13d8ca3148 Merge "disp: msm: sde: change ubwc revision" 2022-04-22 23:08:47 -07:00
Amine Najahi
3cfd52c905 disp: msm: sde: enable vsync irq during sys cache read work
Currently, when doze mode is enabled the encoder off work
worker is started 1 ms after idle power collapse because of
aggressive idle-pc feature. This causes the system cache
worker to start after the clocks and vsync interrupt are disabled.

This change independently enables clocks and interrupts during
system cache work thread to decouple it from the encoder
off work sequence.

Change-Id: I8ed172b0e7c5c8e4e270e768434301d972e90eb9
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-04-20 13:23:06 -04:00
Shamika Joshi
b2f0c90aca disp: msm: sde: change ubwc revision
UBWC revision is in the expanded form, no need to process it again.

Change-Id: Ie4aafeea5459a76f325a07e58af1de5665fe45ba
Signed-off-by: Shamika Joshi <quic_shamjosh@quicinc.com>
2022-04-19 09:32:11 -07:00
qctecmdr
6015c178db Merge "disp: msm: dp: update pll params with latest HPG values" 2022-04-15 22:15:56 -07:00
qctecmdr
7f0ec61940 Merge "disp: msm: dp: set drm device pointer in dp aux object" 2022-04-15 22:15:56 -07:00
qctecmdr
35ebbbfd59 Merge "disp: config: enable HDCP config for kalama" 2022-04-15 22:15:56 -07:00
Vara Reddy
657ac66343 disp: config: enable HDCP config for kalama
Enable HPCP module for Kalama.

Change-Id: I40daa8525b46533818990908404197ed0921c729
Signed-off-by: Vara Reddy <quic_varar@quicinc.com>
2022-04-13 14:05:21 -07:00
Vara Reddy
8c413f511e disp: msm: link HDCP sec-module as a dependency
HDCP sec_module is linked as an additional dependency for display drivers.
This change links hdcp_qseecom symbols needed for display drivers.

Change-Id: I227382dbf31b8488479b983b730d10b17c3b3af2
Signed-off-by: Vara Reddy <quic_varar@quicinc.com>
2022-04-13 11:46:57 -07:00
Vara Reddy
4c42ab82d4 Revert "disp: msm: dp: avoid duplicate read of link status"
This reverts commit 80efc128db.

Change-Id: Iea9e8a7ca7b7ea85ffef6c45f732b0a214c93e19
Signed-off-by: Vara Reddy <quic_varar@quicinc.com>
2022-04-12 16:10:58 -07:00
qctecmdr
99e41b7489 Merge "disp: msm: sde: reset plane cache state on plane disable" 2022-04-11 16:47:35 -07:00
Sandeep Gangadharaiah
e8ccba4d59 disp: msm: dp: set drm device pointer in dp aux object
drm device pointer is not set in dp aux object which
is leading to a warning message during device bootup.
This change will set that pointer before registering
aux object.

Change-Id: Ib79ece56d7d5efd098e06104eb020648d1d075f7
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-04-11 09:42:50 -07:00
qctecmdr
93a2cea771 Merge "disp: msm: avoid rotator code compilation" 2022-04-11 07:26:59 -07:00
qctecmdr
97c6db4693 Merge "disp: msm: sde: use LLCC_DISP for static display usecase with cwb" 2022-04-10 07:19:01 -07:00
qctecmdr
efb465749b Merge "disp: msm: sde: handle SSPP system cache for multi-plane scenario" 2022-04-10 03:21:03 -07:00
qctecmdr
3a8e850ac9 Merge "disp: msm: sde: fix GEM object inactive list locking" 2022-04-10 03:21:01 -07:00
qctecmdr
cb6ce492b5 Merge "disp: msm: sde: update HFC layer checks" 2022-04-09 16:51:07 -07:00
qctecmdr
95eb4d982c Merge "disp: msm: sde: add the DE lpf flag setting" 2022-04-09 13:24:42 -07:00
qctecmdr
6e5db7e5eb Merge "drm: msm: add spr by pass support" 2022-04-09 13:24:42 -07:00
qctecmdr
9607366aa9 Merge "disp: msm: dsi: parse panel ack disabled property for sim panels" 2022-04-09 06:33:20 -07:00
qctecmdr
652628e747 Merge "disp: msm: hdcp: set default topology as DOWN_REQUEST_TOPOLOGY" 2022-04-09 06:33:20 -07:00
qctecmdr
04ddb3a852 Merge "disp: msm: sde: add line insertion support for sspp" 2022-04-08 04:26:38 -07:00
qctecmdr
f9bdbed288 Merge "disp: msm: add mmrm configs for Kalama" 2022-04-07 21:19:36 -07:00
Sandeep Gangadharaiah
5448272a8c disp: msm: dp: update pll params with latest HPG values
Modified the pre-emph values for S3P0 & S1P1 in HBR/RBR
table. Also, modified BG timer value as per the latest
HPG changes.

Change-Id: Id9088d3cfe73cb14518dcf490676d92c54925793
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-04-07 16:18:53 -07:00
Veera Sundaram Sankaran
c5121825bf disp: msm: sde: reset plane cache state on plane disable
Plane cache state is updated based on the crtc's cache state.
The plane is left with state cache state, if the particular plane
is not used in the subsequent frame by the same crtc. Reset the
plane cache state on plane disable and reset_custom_properties to
avoid this case.

Change-Id: Ic6d31567af23906e94c5404d1d366e030b9be199
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-04-06 10:51:24 -07:00
Veera Sundaram Sankaran
65b81f914e disp: msm: sde: use LLCC_DISP for static display usecase with cwb
Static display usecase uses concurrent writeback path to compose the
layers and updates the primary display in the next cycle with cwb
output. Use LLCC_DISP scid for system cache in cwb path, to keep it
in sync with the legacy static display path. Use LLCC_DISP_WB for
the offline-wb path. Expose the writeback connector cache property
only when either or both the cache types are enabled.

Change-Id: I8ca4b14828a14ce0bde829136fb4baef272166aa
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-04-06 10:51:24 -07:00
Veera Sundaram Sankaran
beeab715ac disp: msm: sde: enable LLCC_DISP_WB for kalama target
Add sde hw catalog change to enable LLCC_DISP_WB system cache, which
is used for 2-pass composition usecases with offline writeback path.

Change-Id: Ic320b95a6699e59c62fed41f7fb88c484d98ffd0
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-04-06 10:51:24 -07:00
Dhaval Patel
24a51e1ab0 disp: msm: avoid rotator code compilation
Avoid rotator code compilation if config is not
enabled.

Change-Id: I4793fadfe14820931df2fbcc53337fc8a15d6449
Signed-off-by: Dhaval Patel <quic_pdhaval@quicinc.com>
2022-04-06 10:22:55 -07:00
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
Amine Najahi
05014b30d1 disp: msm: sde: handle SSPP system cache for multi-plane scenario
Currently, when CWB system cache use case is enabled and multiple planes
are used to fetch the LLCC data only one SSPP is programmed correctly.

This change ensures that whenever the fb_cache_flag is non 0, the SSPP
system cache gets reprogrammed.

Change-Id: Ic90eaae207f6221efb1fc8749093d8b44e092e44
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-04-04 07:07:49 -07:00
qctecmdr
068c83ecd9 Merge "disp: msm: sde: consider max of actual and default prefill lines" 2022-04-01 11:49:38 -07:00
Yahui Wang
6f22c2c636 disp: msm: dsi: parse panel ack disabled property for sim panels
Sim panels are not working well with video mode, parse panel ack
disabled property to fix sim video mode identification issue.

Change-Id: Ife3b533d5a6db97618459dacf1f7ce8d3fc896bf
Signed-off-by: Yahui Wang <quic_yahuiw@quicinc.com>
2022-04-01 12:55:29 +08:00
Rajesh kv
03aad2fdf9 disp: msm: sde: add line insertion support for sspp
Add line insertion support for sspp, this is used to support
display with external splitter. Line insertion logic checks
the difference between screen logical height and physical
height. If any difference is observed adds dummy and active
lines on screen.

Change-Id: Ieec322273df000a53fb39e05174c2d67c3c2da81
Signed-off-by: Rajesh kv <quic_kvrajesh@quicinc.com>
2022-04-01 09:35:03 +05:30
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
Narendra Muppalla
05e82e9f97 disp: msm: add mmrm configs for Kalama
This change adds display mmrm build configs for kalama target.

Change-Id: Ic35f396733c5031ea4f62e0fa3b3b6ea662a198b
Signed-off-by: Narendra Muppalla <quic_nmuppall@quicinc.com>
2022-03-31 12:16:52 -07:00