提交图

1587 次代码提交

作者 SHA1 备注 提交日期
Rajkumar Subbiah
d767013a10 disp: msm: dp: update mst connector in debugfs data on replug
The debugfs api for mst control is a multi stage process where the
connector id is selected using the mst_con_id node, which is then
used on other commands such as edid_modes_mst for mode switch.
During mode switch control, the mode is set using the current id
for a display and then the switch is initiated through an unplug
and replug. But on an unplug the connector is destroyed and a new
id is assinged for that display on the subsequent plug. This
change detects this scenario and updates the cached connector id
with the id from the newly created connector.

Change-Id: Ib51566ac9e334d4a0b145b6ae549c59c537cb0cd
Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
2020-07-28 12:54:05 -07:00
Rajkumar Subbiah
65534be8da disp: msm: dp: update hpd handling for mst
On hpd low signaling, if MST is enabled, then the dp driver should
send the uevent to usermode and wait for the displays to be turned
off before destroying the connectors. In the current mst driver,
hpd low handling is a monolithic step. This change breaks this
into two separate callbacks into the mst driver so the display
driver can wait for usermode completion between these two steps.

When processing hpd low in sim mode, the mst driver uses the drm
framework's the port detection function. When hpd unplug is signaled
to the usermode, it checks the port status before disabling it. But
since the port hasn't been destroyed yet, the framework reports that
the port as still connected. This causes the driver to timeout while
waiting for the the displays to be disabled. This change adds a
wrapper which will report the port status as disconnected when hpd
low is signaled.

Change-Id: I1c59a4878018a300f258bd67c36d1cf4eaf5f67b
Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
2020-07-28 12:53:56 -07:00
qctecmdr
32e305e278 Merge "disp: msm: sde: avoid extra vblank refcount from modeset" 2020-07-28 03:30:05 -07:00
qctecmdr
deab440ff7 Merge "disp: msm: sde: add debugfs node to support system cache disable" 2020-07-27 23:59:29 -07:00
qctecmdr
a42f0fe0e6 Merge "disp: msm: sde: Fix LTM hist off notification issue" 2020-07-24 16:11:41 -07:00
Raviteja Tamatam
900ddf4a1b disp: msm: sde: avoid double mmu destroy during mmu init failure
mmu destroy is called in _sde_kms_mmu_destroy as part of
smmu_aspace_destroy. This change avoids msm_smmu already getting
freed at smmu_aspace_destroy.

Change-Id: I00ff2a99295534189ceec7c769cd0a01762408c2
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
2020-07-24 15:21:19 -07:00
qctecmdr
ecf7bd7696 Merge "disp: msm: dsi: reorder operations during DSI display pre kickoff" 2020-07-24 14:10:40 -07:00
qctecmdr
da06015241 Merge "disp: msm: dsi: update MDP/DSI transfer time calculation" 2020-07-24 14:10:39 -07:00
qctecmdr
de155b0582 Merge "disp: msm: sde: right only pu support" 2020-07-24 14:10:39 -07:00
Krishna Manikandan
603dd34629 disp: msm: sde: avoid wb commit before cwb disable
Add support to detect if a writeback commit is received
while cwb commit is going on. Allow writeback commit
only once the cwb commit is completed and cwb is
disabled.

Change-Id: I020659ed63f9ff660a905938a92a6ed6d07a4917
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
2020-07-24 12:42:52 -07:00
qctecmdr
32251009e0 Merge "disp: msm: dsi: fixes in GKI cleanup path" 2020-07-24 11:17:20 -07:00
qctecmdr
2b8aaf8652 Merge "disp: msm: fix driver unload issues in gki config" 2020-07-24 11:17:20 -07:00
qctecmdr
5c9e7ebc98 Merge "disp: msm: sde: add macro for default fps" 2020-07-24 06:38:09 -07:00
qctecmdr
5cd8505102 Merge "disp: remove kernel mapping of writeback framebuffer" 2020-07-24 02:22:42 -07:00
Yuan Zhao
b54107cfa3 disp: msm: dsi: add a new PWM pinctrl configure
The default PWM gpio pin mode was not right for PWM backlight
control. If needs to use PWM backlight, must config the
gpio pinctrl.

Change-Id: I5fd6b947d379b53ef4c358be1b935a2ad4970f99
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
2020-07-23 19:54:02 -07:00
Satya Rama Aditya Pinapala
b03e4eceb8 disp: msm: dsi: reorder operations during DSI display pre kickoff
During a dynamic mode switch if the DSI clocks need to be changed,
it would result in a sequence of clock off and on operations. If
this happens after a partial update even though the commands are
sent with an asynchronous wait flag, the clock off forces the commit
thread to wait  till the DSI command wait_for_done thread is
scheduled and completed. The change ensures that the clock change is
the first operation that occurs during pre kickoff.

Change-Id: I1b4e765cd0281f1539fc4af309247f3bc0867c1b
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2020-07-23 18:56:12 -07:00
Satya Rama Aditya Pinapala
ab5d2638de disp: msm: dsi: update MDP/DSI transfer time calculation
This change ensure that in cases panel transfer time is specified,
the final transfer time is calculated in accordance with the minimum
threshold time allowed.

Change-Id: I3442d4d3e8a27ec30d93725cb96b229bb94f2ce2
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2020-07-23 18:55:40 -07:00
qctecmdr
b41ee8cf11 Merge "disp: msm: dp: ensure display is disabled before deinit" 2020-07-23 16:20:44 -07:00
Abhijit Kulkarni
4e37cc3f17 disp: msm: sde: right only pu support
This change add right only pu support by allowing the dsc to be
flushed when one of the dsc is getting disabled. Since the crtc
swaps the mixers in case of right only partial update, this change
fixes the active display mask passed to encoder so that always the
left only dsc gets programmed. This change also fixes layer mixer
configuration where only one layer mixer is driving the partial
update, the other mixer's configuration is disabled.

Change-Id: I2dd2e9a347797bfe07c90e0ca7f999d151fba933
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2020-07-23 14:40:03 -07:00
qctecmdr
13f1a4ee8e Merge "disp: msm: sde: add handoff implementation for color processing features" 2020-07-23 13:59:55 -07:00
Krishna Manikandan
35d72973e0 disp: msm: update seamless check for connector
During CWB case where writeback connector is disabled
and connectors_changed is set, add support to allow
disabling of corresponding encoder for this connector.
Modify the seamless check for connector to handle
the same. With this cwb + dfps concurrency can
be handled.

Change-Id: Ia8f86bd12ac3c5ab622334fb04cdcb2e2b60f111
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
Signed-off-by: Steve Cohen <cohens@codeaurora.org>
2020-07-23 14:46:22 -04:00
Linux Build Service Account
87f5eca6e0 Merge changes I63392417,I6ca0188d into display-kernel.lnx.5.4
* changes:
  disp: msm: add trace logs in display early wakeup function
  disp: msm: add support for display early wakeup
2020-07-23 07:38:30 -07:00
Linux Build Service Account
69829bc5c5 Merge "drm: define a new SDE custom IOCTL for early wakeup display feature" into display-kernel.lnx.5.4 2020-07-23 07:38:30 -07:00
Linux Build Service Account
004c899d2f Merge "disp: msm: dsi: drive backlight enable gpio low during power off" into display-kernel.lnx.5.4 2020-07-23 07:19:17 -07:00
Dhaval Patel
b49188b45a disp: msm: sde: avoid extra vblank refcount from modeset
SDE encoder modeset add and remove the vblank refcount
based on userspace vblank refcount request. This logic
can have race condition with vblank update from
crtc event thread. It is already avoided with
Ibb810ec90e8 ("disp: msm: sde: manage vblank
refcount concurrency").

Change-Id: I1749bff2e2574500db03a405781eab7496f307b2
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2020-07-22 22:35:19 -07:00
Dhaval Patel
d7514cc1a3 disp: msm: sde: add debugfs node to support system cache disable
Add a debugfs node to support system cache disable dynamically.

Change-Id: I19da291c6e7a8d96e78cf94fa143c63c065f7fb9
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2020-07-22 22:13:00 -07:00
Narendra Muppalla
cea2d1cef0 disp: msm: sde: add macro for default fps
This changes adds macro for default fps.

Change-Id: Ieb1d38bd6fbfcd3fec7e2cc6e39636b6297dd0ef
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2020-07-22 13:07:45 -07:00
qctecmdr
9ec255db3a Merge "disp: msm: sde: control backlight update for trusted UI" 2020-07-22 08:10:55 -07:00
Ping Li
98821c4384 disp: msm: sde: add handoff implementation for color processing features
Add handoff implementation for color processing features when switching
from primary VM to trusted VM.

Change-Id: I9c3a168f70f3981e912bf37533f212880ab30924
Signed-off-by: Ping Li <pingli@codeaurora.org>
2020-07-21 16:45:38 -07:00
Jeykumar Sankaran
f86e722e56 disp: msm: sde: control backlight update for trusted UI
Install backlight property only for primary VM and avoid
backlight updates when HW is not owned by the VM.

Change-Id: I35f26d5c41ea57c7271382a1fe571e65ee4520c1
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
2020-07-21 13:29:28 -07:00
qctecmdr
e24cd76a78 Merge "Revert "disp: fix compilation issue with trusted VM config"" 2020-07-21 13:18:32 -07:00
Linux Build Service Account
6b74335f74 Merge "disp: msm: dsi: add DSI PLL support for 10nm-LPU" into display-kernel.lnx.5.4 2020-07-21 12:59:59 -07:00
Linux Build Service Account
f04391273d Merge "disp: msm: sde: fix cache controller node parse logic" into display-kernel.lnx.5.4 2020-07-21 12:59:58 -07:00
Tatenda Chipeperekwa
d4c2d70e14 disp: msm: dp: use updated pre-emphasis/voltage settings
Use updated settings for the DP controller versions above
v1.2.3.

Change-Id: I957071e81e0f7dfd149495df0a225301078aaf60
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2020-07-21 12:51:20 -07:00
qctecmdr
7c4ab87985 Merge "disp: msm: make rotator in msm_drm module" 2020-07-20 22:06:27 -07:00
qctecmdr
b70b79128c Merge "makefile: add config support for display techpack for holi" 2020-07-20 22:06:27 -07:00
qctecmdr
202cacbbc6 Merge "msm: disp: rotator: changes to enable rotator on 5.4 kernel" 2020-07-20 22:06:26 -07:00
Linux Build Service Account
8d58ba851e Merge "Revert "disp: msm: sde: control backlight update for trusted UI"" into display-kernel.lnx.5.4 2020-07-20 15:39:52 -07:00
Satya Rama Aditya Pinapala
333ce300ee Revert "disp: msm: sde: control backlight update for trusted UI"
This reverts commit 7bb6e30418.

Change-Id: I615129778556434f2e9a4bd1224b07df7b09ec02
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2020-07-20 13:14:45 -07:00
Krishna Manikandan
d141d184e6 disp: msm: sde: fix cache controller node parse logic
Cache controller is not a sde property, add
proper parsing logic to get the compatible version
of llcc cache.

Featurise system cache support with a catalog entry as it
provides a finer control to enable/disable llcc
for display.

Change-Id: I07fa8e144d0a4fa32ab16e46142c7b68f771d9c7
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
2020-07-20 16:47:20 +05:30
Satya Rama Aditya Pinapala
19c01f38bc disp: msm: dsi: drive backlight enable gpio low during power off
Change drives the LCD panel backlight enable GPIO low during panel
power off sequence.

Change-Id: Icfd22cf8d5216fcff857bbeab9c183dfb02b83bd
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2020-07-19 23:14:20 -07:00
qctecmdr
e50c2562c7 Merge "disp: msm: sde: reconfigure misr based on user input" 2020-07-19 12:15:43 -07:00
qctecmdr
1e19ca1adb Merge "disp: msm: sde: trigger pm_qos vote with encoder idle pc" 2020-07-19 08:19:48 -07:00
qctecmdr
1b80126268 Merge "disp: msm: sde: use mdp scratch register to pass drm mode info" 2020-07-18 14:45:56 -07:00
Linux Build Service Account
6d768e78df Merge "disp: msm: sde: add delay after porches changed" into display-kernel.lnx.5.4 2020-07-17 15:14:52 -07:00
Linux Build Service Account
a585d8a7d2 Merge "drm/msm/sde: fix invalid connector state in crtc check" into display-kernel.lnx.5.4 2020-07-17 15:14:51 -07:00
Ping Li
7536e8e0ef disp: msm: sde: Fix LTM hist off notification issue
When LTM is turning off, user space will turn off LTM histogram and
then wait for LTM hist off event from driver to change the state
from offpending to off. But if device enters IPC during this time,
driver will not notify user space with LTM hist off event and LTM
will stuck in offpending state. This change remove the check
before LTM hist off event notification to avoid LTM state stuck issue.

Change-Id: I073adabf72c6454acb8ab4d333c0547723523781
Signed-off-by: Ping Li <pingli@codeaurora.org>
2020-07-17 10:30:54 -07:00
Amine Najahi
1c83659a56 drm/msm/sde: fix invalid connector state in crtc check
Connector state in crtc_atomic_check is still the old state, use
connector_mask to update the actual connector in the list to fix
zero connector issue.

Change-Id: I91541063acbb19beced3004a030c7f27abf9ee50
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
2020-07-16 18:17:28 -04:00
Veera Sundaram Sankaran
e8309fcbf5 disp: msm: sde: use mdp scratch register to pass drm mode info
Use MDP scratch registers to pass drm mode index information
between the VMs. Expose the APIs which LA VM can use to set
the current mode for all active displays before handoff.
LE VM relies on this information to set the corresponding
display in correct mode during handoff.

Change-Id: I4569dd58e953e588bca816ac718335d3f3f7e29b
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2020-07-16 10:43:50 -07:00
Veera Sundaram Sankaran
96438460c6 disp: msm: sde: reserve resources on trusted vm usecase start
The MEM & IRQ lend handlers signals the resources
are lent from the primary VM. Reserve the SDE HW
resources in trusted VM using the cont-splash path
and setup the SDE & DRM software states. Set the
DSI connector status to active for the handoff
display during the start and disable it at the end
of the session.

Change-Id: I75b6df735eb5609cc521808aca0ddfb0b3993e84
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2020-07-16 10:40:52 -07:00