コミットグラフ

2976 コミット

作成者 SHA1 メッセージ 日付
Soutrik Mukhopadhyay
5e75a0bfc7 disp: msm: dp: updated copyright set for 4nm target
Changes include support to update necessary copyright
information to dp file for 4nm target.

Change-Id: Iebb2cc542f7b9262073936f12d55eb1be788e757
Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
2022-01-28 13:41:52 +05:30
Lei Chen
ec9231090c disp: msm: sde: add support for DS2 and DS3
Expand the DS enum and increase the DS max number
to support DS2 and DS3.

Change-Id: Iff8d591fece20528e30449c228db5cb2047cdded
Signed-off-by: Lei Chen <quic_chenlei@quicinc.com>
2022-01-28 12:58:06 +08:00
qctecmdr
22b1890454 Merge "disp: msm: sde: fix UBWC decoder version support for Kalama" 2022-01-26 13:47:22 -08:00
Rajeev Nandan
7db99e30d5 Revert "disp: msm: sde: consider max of actual and default prefill lines"
This reverts commit 6547137f7b.

This change can cause negative mdp_transfer_time_us for the panels with
VFP as big as panel active height.

Change-Id: Ibebfcacd9c4eddf80749fa55509821b332fba4cf
Signed-off-by: Rajeev Nandan <quic_rajeevny@quicinc.com>
2022-01-25 22:02:53 -08:00
Yuchao Ma
998bb11a2c disp: msm: sde: Reset backlight scale when HWC is stopped
Reset backlight scale when HWC is stopped.

Change-Id: Iafcb1560a901af3428a3eae19b01580a1c69eddf
Signed-off-by: Yuchao Ma <quic_yuchaom@quicinc.com>
2022-01-26 13:29:27 +08:00
Abhijit Kulkarni
f96beac76e disp: config: correct the copyright markers
This change adds the quic copyright for 2022 changes and
keeps LF copyright for older changes.

Change-Id: I03330a2736fec8711b4440ea6a5a1c0e81f86e21
2022-01-25 13:06:34 -08:00
Amine Najahi
1aacef1e1d disp: msm: sde: fix UBWC decoder version support for Kalama
Add support for detecting UBWC decoder version and program
UBWC configuration to hardware.

Change-Id: Ibe753d35ca46b069de8392c65a3b06131b7e238a
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-01-25 10:52:23 -08:00
qctecmdr
5aa509ef1f Merge "disp: msm: sde: fix dnsc_blur mux setting for cwb" 2022-01-25 10:50:56 -08:00
qctecmdr
3c4210e869 Merge "disp: msm: sde: avoid ALIGN check on sde_dbg_reg_register_dump_range" 2022-01-25 09:56:23 -08:00
Rajkumar Subbiah
812a36347b disp: msm: dp: avoid duplicate read of link status
During link training, after the swing/preemphasis is updated, the driver
is supposed to poll the link status on the sink and quit once the
LINK_STATUS_UPDATED bit is set and also latch the next set of
swing/preemphasis requested by the sink. But currently, the driver is
exiting the loop only when the LINK_STATUS_UPDATED bit is cleared. So,
it also latches the swing/emphasis request from the second read.

Typically, the SW read is slow enough that the bit is set on the first
read. The driver then reads the second time and exits the loop, since
the bit would be cleared then. In most cases, this doesn't affect
the training sequence, since the swing/preemphasis request for next
attempt is retained on the second read. But, atleast in one
specific case, it was observed that the swing/emphasis request
gets reset along with LINK_STATUS_UPDATED and so the driver ends
up missing the actual request and latches incorrect values instead.
This causes link training to fail as it keep retrying with the
same values that it starts with.

This change fixes the exit condition check so the driver quits the loop
as soon as the LINK_STATUS_UPDATED bit is set.

Change-Id: I7f5d9c6b30d48e113aef628d2ab2c1bd972fe743
Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
2022-01-25 11:03:14 +05:30
Veera Sundaram Sankaran
eb45d6c173 disp: msm: sde: fix dnsc_blur mux setting for cwb
Fix the dnsc_blur block pingpong mux setting for concurrent
writeback case.

Change-Id: I1a79602f05471ce2bc143258ffe87e46772f3d06
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-01-24 10:06:06 -08:00
Ritesh Kumar
41f7749026 disp: msm: dsi: update vreg_ctrl settings for cape
This change updates vreg_ctrl_0 and vreg_ctrl_1 settings for
cape DPHY as per the HW recommendation.

Change-Id: Ide66c62d980b57de1f826ed24d1c0747d8fb6c77
Signed-off-by: Ritesh Kumar <quic_riteshk@quicinc.com>
2022-01-24 16:30:26 +05:30
qctecmdr
4927d28629 Merge "disp: msm: sde: Add a new major version of sixzone in Kalama for SB LUTDMA" 2022-01-21 12:12:38 -08:00
qctecmdr
b45366ec72 Merge "disp: msm: sde: Split PA sixzone lutdma implementation" 2022-01-21 11:45:11 -08:00
qctecmdr
1d2901d59f Merge "msm: drm: uapi: Add uapi support for sixzone saturation adjustment" 2022-01-21 11:18:14 -08:00
Jayaprakash Madisetty
3fb9c29953 disp: msm: fail commit if drm_gem_obj was found attached to a sec CB
This change fails the drm_atomic_commit and avoids S2 translation
fault if drm_gem_object is found attached to a secure context bank
during non secure session. In the current codeflow, we are detaching
the gem object from secure CB and reattaching it to non secure CB,
but only S1 pagetables entries get modified and S2 pagetables entries
are not corrected since hyp_unassign is not called with CP_PIXEL
VMID which can only be done by client when buffer gets allocated.

Change-Id: I62302064f96276ef82044ee88fb89e295fb96b4b
Signed-off-by: Jayaprakash Madisetty <quic_jmadiset@quicinc.com>
2022-01-21 16:20:14 +05:30
qctecmdr
60c129a954 Merge "disp: msm: dp: updated register values for 4nm target" 2022-01-20 21:06:37 -08:00
qctecmdr
4e43eebed5 Merge "disp: msm: sde: update framedata event handling" 2022-01-20 21:06:36 -08:00
Soutrik Mukhopadhyay
03b3d8d746 disp: msm: dp: updated register values for 4nm target
Changes include updated register writes for DP PLL
as per 4nm target.

Change-Id: I2d8ddbf4af5c2c6d885c73b7c888f31ce45f4cbf
Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
2022-01-21 09:11:06 +05:30
qctecmdr
b68845e871 Merge "disp: msm: dp: avoid dp sw reset on disconnect path" 2022-01-20 16:36:44 -08:00
qctecmdr
0077eebd41 Merge "disp: msm: dp: use link clk khz when initializing mst mgr" 2022-01-20 16:03:19 -08:00
qctecmdr
38513fe19e Merge "disp: msm: dp: avoid duplicate read of link status" 2022-01-20 15:35:22 -08:00
qctecmdr
c3d10af8a0 Merge "disp: msm: dp: fix configuration of aux switches and HPD sources" 2022-01-20 15:05:17 -08:00
Veera Sundaram Sankaran
aeb2201dbe disp: msm: sde: avoid ALIGN check on sde_dbg_reg_register_dump_range
Remove unnecessary register block size < REG_DUMP_ALIGN check during
the sde_dbg registration of a HW blcok. This avoids the registration
failures for few smaller hw blocks. The register size is padded later
according to REG_DUMP_ALIGN during the hw block register dump time.

Change-Id: I36474720a630f1c3e96072b1d6d8743018fcaeec
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-01-20 14:57:12 -08:00
qctecmdr
5212368b49 Merge "disp: msm: dp: init DP catalog for kalama" 2022-01-20 13:33:57 -08:00
qctecmdr
31ee22eecb Merge "disp: msm: dp: avoid return value check for certain debugfs functions" 2022-01-20 13:01:13 -08:00
qctecmdr
a51cdff99f Merge "disp: msm: dp: remove unused header declaration" 2022-01-20 12:23:51 -08:00
qctecmdr
178ea61c88 Merge "disp: msm: sde: Update LTM merge mode setting for kailua" 2022-01-20 11:19:08 -08:00
Rajkumar Subbiah
fa1f3fab80 disp: msm: dp: avoid dp sw reset on disconnect path
In an effort to reset the DP controller states on a disconnect, the
driver is issuing a SW reset to the controller. But SW reset on
the controller doesn't necessarily restore the controller to its
full reset state. It only resets part of the logic. So if for some
reason the MST streams were not disabled properly, ie. the slot
allocations were not reset properly in the controller, then a SW
reset would result in the DP controller raising state interrupts.
Since this SW reset is issued in the tail end of the disconnect
processing, the driver turns off all the clocks and also
removes the irq handler. This results in an interrupt storm at
the MDSS top level.

This change removes the SW reset on the disconnect path and
relies on the SW reset that already exists in the connect path
to restore controller state.

Change-Id: Ie7115e17d3c50c46c83c6f0e333da5cb534b8227
Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-01-20 13:55:57 -05:00
Rajkumar Subbiah
7ec4eae53b disp: msm: dp: use link clk khz when initializing mst mgr
MST driver is incorrectly using maximum bw_code while initializing
MST topology manager instead of maximum link clock in KHz. This
prevents the topology manager to set MST state on a subsequent MST
plug in causing all MST cases to fail.

Change-Id: I9fc4e0326fe0c7a6c9b81af8810b7098fa8ba967
Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
2022-01-20 13:55:28 -05:00
Rajkumar Subbiah
80efc128db disp: msm: dp: avoid duplicate read of link status
During link training, after the swing/preemphasis is updated, the driver
is supposed to poll the link status on the sink and quit once the
LINK_STATUS_UPDATED bit is set and also latch the next set of
swing/preemphasis requested by the sink. But currently, the driver is
exiting the loop only when the LINK_STATUS_UPDATED bit is cleared. So,
it also latches the swing/emphasis request from the second read.

Typically, the SW read is slow enough that the bit is set on the first
read. The driver then reads the second time and exits the loop, since
the bit would be cleared then. In most cases, this doesn't affect
the training sequence, since the swing/preemphasis request for next
attempt is retained on the second read. But, atleast in one
specific case, it was observed that the swing/emphasis request
gets reset along with LINK_STATUS_UPDATED and so the driver ends
up missing the actual request and latches incorrect values instead.
This causes link training to fail as it keep retrying with the
same values that it starts with.

This change fixes the exit condition check so the driver quits the loop
as soon as the LINK_STATUS_UPDATED bit is set.

Change-Id: I7f5d9c6b30d48e113aef628d2ab2c1bd972fe743
Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-01-20 13:53:27 -05:00
Aravind Venkateswaran
78c45e9d5d disp: msm: dp: fix configuration of aux switches and HPD sources
Decouple the configuration and parsing of aux switches with the
parsing and configuration of HPD sources. HPD notification can come from
either GPIO based approach or a PD module through a SW interface. The
presence of AUX switch on the board should have no bearing in deciding
which configuration for HPD detection is used. Update the implementation
to allow for flexibility in selecting any combination of the HPD source
and aux switches.

Change-Id: I96d558f1d88a359d523fae6dc746045393884d5a
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-01-20 13:52:06 -05:00
Alisha Thapaliya
7997a43aa1 disp: msm: sde: Add a new major version of sixzone in Kalama for SB LUTDMA
Add a new function in Kalama to support implementation of sixzone
using single buffer LUTDMA. Since there is a hw delta from previous
target, we are updating the major version.

Change-Id: I1078e4e6f351c6894367c5457f3415a7432f55b5
Signed-off-by: Alisha Thapaliya <quic_athapali@quicinc.com>
2022-01-20 10:22:30 -08:00
Sandeep Gangadharaiah
135e318102 disp: msm: dp: init DP catalog for kalama
DP PHY version is changed for kalama. This change
initializes the catalog structure for this new
version.

Change-Id: Ib89293cb874c61c6276f49573266822570e715bb
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-01-20 13:10:54 -05:00
Sandeep Gangadharaiah
522177a45c disp: msm: dp: avoid return value check for certain debugfs functions
Adapt 5.15 kernel upstream change to return void for
debugfs_create_bool.

Change-Id: I0cdb4c65ff6e476c7592b2a61e43c40cd757ab7a
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-01-20 13:06:26 -05:00
Sandeep Gangadharaiah
c334c818dd disp: msm: dp: remove unused header declaration
Certain pll variables and function signatures are
obsolete and hence removing the header file
declaration containing these.

Change-Id: I93d4ff096ff253f21d67660287d6d3baa857cca1
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-01-20 13:05:50 -05:00
Nilaan Gunabalachandran
137938ab7e disp: msm: sde: update framedata event handling
This change updates framedata event and ubwc stats API to
align with userspace handling and expectations.

This change adds the empty irq event handler required to register
the frame data event.

This change also adds handling to the crtc event notify to provide
the payload pointer directly, required for the buffer object,
ensuring pointers are not mismatched while sending drm events.

This change also updates the ubwc roi plane property to process the
uapi defined roi.

Change-Id: I209f2b7418a0ec33aa0488119eb3fdb8ae94e8ba
Signed-off-by: Nilaan Gunabalachandran <quic_ngunabal@quicinc.com>
2022-01-20 09:46:22 -05:00
Srihitha Tangudu
25beb2fccc disp: msm: dsi: Add new phy comaptible string for cape
Cape uses phy version 4.3 but requires programming of
different values for vreg_ctrl_0 and vreg_ctrl_1 to
configure LDO setting. Add new phy compatible string
to distinguish cape from other chipsets and program
the registers accordingly.

Change-Id: I68b266cc6e179d211ee0fd05584a605f39b4d31d
Signed-off-by: Srihitha Tangudu <quic_tangudu@quicinc.com>
2022-01-20 02:27:53 -08:00
qctecmdr
46849f2f19 Merge "disp: msm: sde: software override for fal10 in cwb enable" 2022-01-19 23:05:13 -08:00
qctecmdr
a02746e4d2 Merge "disp: msm: update cleanup during bind failure in msm_drm_component_init" 2022-01-19 23:05:13 -08:00
Narendra Muppalla
43d8d04e73 disp: msm: sde: add DE LPF blend support
This change adds Detail Enhancer LPF blend support from MDSS 9.0.
Support is added for qseed block in both SSPP and Destination Scaler.

Change-Id: Ic8e3732059498a156f51fb93c5fd6638bd731c57
Signed-off-by: Narendra Muppalla <quic_nmuppall@quicinc.com>
2022-01-19 17:25:58 -08:00
Alisha Thapaliya
2d48ad424b disp: msm: sde: Split PA sixzone lutdma implementation
Create a common config function to be used by newer
versions of sixzone to avoid code repetitions.

Change-Id: I570cc625715880c325d257e2594d8a7688a040bc
Signed-off-by: Alisha Thapaliya <quic_athapali@quicinc.com>
2022-01-19 16:06:15 -08:00
Alisha Thapaliya
c108771c7f msm: drm: uapi: Add uapi support for sixzone saturation adjustment
In Kalama for sixzone there are 2 new lut entries for saturation
high and saturation medium. There is also a new saturation
adjustment curve, and a SV enable feature.

Add entries in uapi to accomodate the corresponding programming
for these 4 new registers.

Change-Id: Ib9a8a4e233da25de90480c09c40536546f614a01
Signed-off-by: Alisha Thapaliya <quic_athapali@quicinc.com>
2022-01-19 16:05:32 -08:00
Prabhanjan Kandula
ecc2d6e0ba disp: msm: sde: software override for fal10 in cwb enable
When cwb is enabled enable software override for fal10 veto to
block fal10 entry as MDSS can keep asserting uidle if there
are no fetch clients like dim layer only usecase.

Change-Id: Ief51499d370c20fcbdda79576aee0179578650fd
Signed-off-by: Prabhanjan Kandula <quic_pkandula@quicinc.com>
Signed-off-by: Nilaan Gunabalachandran <quic_ngunabal@quicinc.com>
2022-01-19 12:16:17 -05:00
qctecmdr
e1eb043ded Merge "disp: msm: sde: Add support for LTM2/3 for kailua" 2022-01-18 23:27:05 -08:00
Renchao Liu
f4730e436e disp: msm: sde: Update LTM merge mode setting for kailua
Update LTM merge mode setting for kailua since
merge control has its own register.

Change-Id: Ieaacd1e12f410def18a0fce11a77c94832c416f5
Signed-off-by: Renchao Liu <quic_rencliu@quicinc.com>
2022-01-19 14:02:49 +08:00
Alisha Thapaliya
13865bc425 disp: msm: sde: Add support for LTM2/3 for kailua
Some of the DPU hardware can have LTM2/LTM3 blocks.
Change adds register DMA to support LTM2/3 blocks.

Change-Id: I5703872994156b42decaaf6d383f8aded218c117
Signed-off by: Alisha Thapaliya <quic_athapali@quicinc.com>
Signed-off-by: Renchao Liu <quic_rencliu@quicinc.com>
2022-01-19 11:48:40 +08:00
qctecmdr
78d979bad5 Merge "disp: msm: sde: parametrize RC minimum region width" 2022-01-18 19:29:45 -08:00
qctecmdr
b67e836b6e Merge "disp: msm: sde: always set CTL_x_UIDLE_ACTIVE register to "1"" 2022-01-17 09:07:27 -08:00
Mahadevan
64ae0c58f0 disp: msm: update cleanup during bind failure in msm_drm_component_init
During msm_drm_bind if one of the sub components fails
to bind and defers the probe, it used to clear the device
platform device private structures which are created as
part of msm_pdev_probe. When sub devices try to bind as
part of probe sequence it will try to bringup master
msm_drm and accesses invalid address leading to crash.
This change updates the cleanup procedure which avoids
such crash.

Change-Id: I2d5c94cfafa3c5ec23b81bb0a080ad6e0e5b02ad
Signed-off-by: Mahadevan <quic_mahap@quicinc.com>
2022-01-17 09:36:14 +05:30