Commit Graph

34314 Commits

Author SHA1 Message Date
Robbe Derks
7b24cd24eb MIPI DCS debug interface (#95) 2025-09-24 17:15:54 +02:00
Robbe Derks
2002c305ee turn off display on 0 brightness (#55) 2023-05-09 12:18:08 +02:00
Adeeb Shihadeh
6abf3402d6 display regulator always on (#54)
* Revert "Control lcd3v3 regulator through backlight (#30)"

This reverts commit 7921c03adf.

* add that back
2023-02-25 22:21:10 -08:00
Robbe Derks
4c463f4704 Mate 10 lite LCD bringup (#51)
* wip

* this works

* rebased

* don't need this change

* unify backlight interface

* cleanup this change

* fix tici screen init
2023-01-01 14:09:32 -08:00
Adeeb Shihadeh
a192955d4d dsi_display: add read for sysfs max brightness attr 2021-12-08 16:04:26 -08:00
Adeeb Shihadeh
1970308507 dsi_display: configure max brightness by percentage (#37) 2021-12-08 00:30:17 -08:00
Adeeb Shihadeh
86999d6838 dsi_display: add brightness clip configurable over sysfs (#36)
* dsi_display: add brightness clip configurable over sysfs

* cleanup
2021-12-07 16:21:40 -08:00
Willem Melching
7921c03adf Control lcd3v3 regulator through backlight (#30)
* proper lcd3v3 regulator dependencies

* cleanup

* control screen power through backlight

* all non zero values turn on
2021-08-13 20:59:59 +02:00
Robbe Derks
8e5eee0c27 turn off error printing for virt plane not supported 2020-09-16 13:28:54 +02:00
robbederks
7318e513e5 vSync fix (+ turn off compilation of some governors we don't need) (#3)
* dirty fix for vsync. Wayland starts now, and kmscube spins. Still needs cleanup!

* cleanup
2020-08-12 00:54:39 -07:00
George Hotz
d4395dca11 fix screen 2020-06-09 08:44:13 -07:00
Robbe
7d75965aca Figuring out '[drm:alloc_reg_dma_buf_v1] *ERROR* failed to get aspace' 2020-04-01 23:08:20 -07:00
Robbe
0c7d06c167 Booting, no fb dev 2020-04-01 22:11:14 -07:00
Robbe
f823a1308b Fixed some build errors 2019-08-27 17:41:10 -07:00
xingkai
8eb455fed7 kernel: modify lt9611_hdmi_tx_phy for 4k VL
Change-Id: Ife2720cde881e802c056b67b0c303e07017e9bea
kernel: modify lt9611_hdmi_tx_phy for 4k VL
2019-05-20 16:07:54 +08:00
xingkai
4558e9c21a kernel: modify lt9611_hdmi_tx_phy
kernel: modify lt9611_hdmi_tx_phy

Change-Id: I77bcfd8258ca01788dc5b123f12dfd3c054fcc69
2019-05-20 16:07:44 +08:00
_张瑞杰#0201809211
4ab80eb00a Merge "Summary:kernel: modify for LT9611 HDMI,4K" into robotics-x-lu-16.04-sda845-p1-dev 2018-11-14 09:23:49 +08:00
zhangrj0920
f236c6d2d5 Summary:kernel: modify for LT9611 HDMI,4K
[IssueID]: redmineID87303
[Module]: kernel

Change-Id: Ie32c93c42f8b04e15e7f1b6990e6f62cf7a3bf47
2018-11-13 09:47:16 +08:00
_张瑞杰#0201809211
a621649381 Merge "Summary:HDMI lt9611 enable test pattern" into robotics-x-lu-16.04-sda845-p1-dev 2018-11-06 14:21:21 +08:00
zhangrj0920
3e3ba82939 Summary:HDMI lt9611 enable test pattern
[IssueID]: redmingID87116
[Module]: kernel/msm-4.9

Change-Id: I2084cb123c09f4c73fd18236aa8932d222e4b440
2018-11-04 21:34:35 +08:00
scm
fe58fe08c7 Merge remote-tracking branch 'origin/845LE.1.0-qualcomm' into HEAD
* origin/845LE.1.0-qualcomm:
  i2c-msm-v2: Handle Null pointer de-reference
  msm: camera: disable power collapse when camera is working
  msm: camera: cci: Fix burst read sequence
  msm: camera: cci: Modify condition check to read CCI data
  xfrm: validate template mode
  nl80211: nl80211_update_ft_ies to validate NL80211_ATTR_IE
  msm: kgsl: Make sure gpu-speed-bin-vectors has the correct size
  diag: Modify md_info and diag client map synchronization
  ion: Ensure non-HLOS memory cannot be mapped by CPU
  qseecom: fix kclient free issue in qseecom_remove
  msm: camera: cci: Fix error check
  msm: camera: eeprom: set platform driver data to null
  msm: ipa: Protect ipa default routing table
  ASoC: Fix UBSAN warning at snd_soc_get/put_volsw_sx()
  drm/msm/dsi-staging: fix potential out of bounds memory accesses

Change-Id: I442530d8facd9487c5205797c7e6725bec1d9ffd
2018-11-01 13:01:16 +08:00
zhangrj0920
e0f9f2c43f Summary:Enable lt9611
[IssueID]:redmineID86972
[Module]: kernel

Change-Id: Ib40f1e8af8ca49239aff10c528ba7a45c095f441
2018-10-31 20:20:12 +08:00
scm
6f2a8cb586 Merge remote-tracking branch 'origin/845LE.1.0-qualcomm' into HEAD
* origin/845LE.1.0-qualcomm: (22 commits)
  diag: Prevent out of bound access while initializing msg mask
  USB: core: only clean up what we allocated
  crypto: qcedev: Add null pointer check on sg_src
  msm: vidc: ignore processing responses in invalid state
  msm: ipa: Validate routing rule id
  drm/msm/dp: fix error checking for memory allocations
  msm: camera: fix double free in jpeg mgr
  msm: camera: Fix context refcount underflow
  msm: ipa4: Fix dangling pointer dereferencing after NAT del cmd
  drm/msm/dsi-staging: alter length to avoid stepping out of bounds
  msm: camera: Add check for sensor data rate
  net: core: null pointer derefernce in sockev_client_cb
  msm: camera: Check for valid per frame i2c data.
  net: memset smsg to avoid the padding data
  msm: adsprpc: allocate all remote memory in kernel
  drivers: Add flush_buffer for tty driver
  net: ipc_router: Initialize the sockaddr in recvmsg() handler
  msm: camera: Fix out-of-bounds read in string class name.
  msm: mdss: use uaccess routines to access user space buffers
  msm: camera: cpp: Check for valid tx level
  ...

Change-Id: If9fb2c1241478b6fc0ff74784484f24a4c5f3922
2018-10-19 17:42:09 +08:00
Sunil Khatri
8afddf2b4a msm: kgsl: Make sure gpu-speed-bin-vectors has the correct size
Total number of elements in the gpu-speed-bin-vectors array
should be multiple of number of elements in a speed bin vector.

If number of elements is not a multiple of vector size then
there is a possibilty of out of bound access in the speed-bin
vector array. Also rectify the memory allocated for it.

Change-Id: I9158e4f883eca400a46663b07326fb6f6020155c
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
2018-10-10 00:15:50 -07:00
Aravind Venkateswaran
33f2e13051 drm/msm/dsi-staging: fix potential out of bounds memory accesses
Use correct indexing when using the contianer_of operation to
get the DSI clock manager handle to avoid potential out of
bounds memory accesses.

Change-Id: I8804c5ff2bb602527f84749116e1408513e22759
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2018-09-30 00:55:59 -07:00
Aravind Venkateswaran
3f6f4d64f9 drm/msm/dp: fix error checking for memory allocations
Memory allocation using kzalloc can return a valid pointer
when a zero size memory is requested. Therefore it is
important to use IS_ZERO_OR_NULL macro instead of just
checking for a null pointer prior to any use of the allocated
memory.

CRs-Fixed: 2279573
Change-Id: I3a9526347669d77bd5642195ab2681ef96ce580a
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2018-09-24 19:17:10 -07:00
Satya Rama Aditya Pinapala
f6ca716abd drm/msm/dsi-staging: alter length to avoid stepping out of bounds
Limit max length of buffer while read misr configuration
from sysfs node.

Change-Id: I9adfd51da7ae77201cf6c0cf6e9af68785c7a063
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2018-09-15 03:05:01 -07:00
Wang Zhenhua
e629753b9d kernel:LT8912 bring up
HDMI driver enable
[IssueID]:redmine86160
[Module]:apps_proc/kernel/msm-4.9

Change-Id: I61456e5522ec7dfe853618e4f13a6a49ee53d7f0
2018-09-11 10:21:29 +08:00
Linux Build Service Account
9414a5b7ff Merge "drm/msm/sde: Fix deadlock due to input handler" 2018-06-23 16:40:11 -07:00
Linux Build Service Account
63a0f8a0ac Merge "drm/msm/dsi-staging: set correct state for status check command" 2018-06-23 16:40:10 -07:00
Linux Build Service Account
90ee51fcd8 Merge "drm/msm/sde: report rsc timeout state" 2018-06-23 16:40:07 -07:00
Linux Build Service Account
eb0c4d1d9b Merge "drm/msm/dsi-staging: tie up dsi irq control to core clock" 2018-06-23 16:40:06 -07:00
Linux Build Service Account
4553c5dcb0 Merge "drm/msm/dsi-staging: fix mem leak issue in ESD debugfs" 2018-06-23 16:40:05 -07:00
Sunil Khatri
670c7321bd msm: kgsl: Add A504 chipset for ME ucode workarounds
Add A504 to the list of chipsets where ME ucode
workarounds are applicable.

Change-Id: I524e59b92769368086825cd5540878ea98e6b7c9
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
2018-06-22 12:55:17 +05:30
Sandeep Panda
de7bc1becd drm/msm/dsi-staging: fix mem leak issue in ESD debugfs
There is a potential memory leak in ESD debugfs implementation,
in case if panel ESD trigger fails. This change fixes the same.

Change-Id: I6a136aad71aa5561709d539afc13d6591bc50d1f
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2018-06-20 10:16:27 +05:30
Kalyan Thota
d95f5572e6 drm/msm/sde: report rsc timeout state
report rsc timeout/success states to the
dependent components

Change-Id: Id2e85bcfbf7e0f07df436872583427ffa9bb3d87
Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
2018-06-19 12:30:26 +05:30
Tharun Raj Soma
88b6dfc3d7 drm/msm/sde: populate primary flag based on display type
In case of 2 encoders + 2 DSI ctrls topology, mark display
having display_type as primary to be primary in display info
else mark it as secondary.

Change-Id: Ia1e4afda9e41466407fba3ad324e7dbf80b2e08c
Signed-off-by: Tharun Raj Soma <tsoma@codeaurora.org>
2018-06-19 12:20:03 +05:30
Linux Build Service Account
07c7c5f935 Merge "drm/msm/sde: validate de-interlace and scalar concurrency" 2018-06-14 22:43:01 -07:00
Linux Build Service Account
68c334f9d2 Merge "drm/msm/sde: prevent clearing multirect flags during validate failure" 2018-06-14 22:42:58 -07:00
Linux Build Service Account
0e6719f403 Merge "drm/msm/sde: remove frame done wait from sde_crtc" 2018-06-14 22:42:57 -07:00
Linux Build Service Account
1fec87579a Merge "drm/msm/sde: Allow selection of panel TE GPIOs to source pingpong blocks" 2018-06-14 22:42:56 -07:00
Jayant Shekhar
779c752170 drm/msm/sde: Fix deadlock due to input handler
Input handler work is currently queue in disp thread.
There is corner case where if input event work is
queued to disp thread (commit thread) while going
into suspend (which happens in commit thread) then
deadlock might happen. Fix this by queueing input
handler into event thread.

Below is the stack trace:

Thread1:

__switch_to+0x90/0xc4
__schedule+0x2a8/0x824
schedule+0x38/0x9c
schedule_timeout+0x1d8/0x400
wait_for_common+0xb4/0x15c
wait_for_completion+0x14/0x1c
kthread_flush_work+0x100/0x178
msm_atomic_commit+0x8ac/0x8c4
drm_atomic_commit+0x50/0x5c
drm_mode_atomic_ioctl+0x8ec/0x958
drm_ioctl+0x1d0/0x430
do_vfs_ioctl+0xb8/0x800
SyS_ioctl+0x84/0x98

Thread2:

__switch_to+0x90/0xc4
__schedule+0x2a8/0x824
schedule+0x38/0x9c
schedule_timeout+0x1d8/0x400
wait_for_common+0xb4/0x15c
wait_for_completion+0x14/0x1c
kthread_flush_work+0x100/0x178
sde_encoder_virt_disable+0x184/0x2b8
msm_atomic_helper_commit_modeset_disables+0x160/0x570
complete_commit+0x6c/0x660
_msm_drm_commit_work_cb+0x40/0x1b8
kthread_worker_fn+0x88/0x1a8
kthread+0xe0/0xf4
cpu_switch_to+0x220/0x2490

Change-Id: If09bd1dfcffb20c4478a052bf7fd644fcf3dbf02
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
2018-06-13 14:19:46 +05:30
Sandeep Panda
3a1689da3d drm/msm/dsi-staging: set correct state for status check command
In the current implementation dsi driver is always sending the
status check command in HS mode. This change fixes the issue by
setting the proper state based on panel device tree entry, before
sending the status check command from dsi host.

Change-Id: I9e8ed8616295de2a2f1d5fa2a8a83b706c70f033
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2018-06-13 12:35:28 +05:30
Raviteja Tamatam
32a7daf0e5 drm/msm/sde: prevent clearing multirect flags during validate failure
In corner case where crtc->planemask and atomic state->planes[]
do not match, driver clears the multirect_index/multirect_mode
in the plane->state during validate failure case. This can lead
to multirect_index/multirect_mode mismatch for next commits during
failure condition.

Change-Id: Idccaa79431469e185ca46c1e40b040427d02a96d
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
2018-06-12 14:31:10 +05:30
Dhaval Patel
cfb6064e8d drm/msm/sde: remove frame done wait from sde_crtc
SDE crtc module waits for previous frame done
before it triggers a new frame. This is unnecessary
because sde encoder has similar wait already within
prepare_kickoff API call. This patch avoids extra
frame done wait and only flush the event thread
to trigger pending fences.

Change-Id: I45b6dcd5ec39491303fe29eaaf41988a68f48465
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2018-06-11 11:12:13 -07:00
Sandeep Panda
6c243ce91a drm/msm/dsi-staging: tie up dsi irq control to core clock
This change ties up the dsi irq line disable/enable control
to core clock disable/enable sequence.

Change-Id: I2c59799dbd7efd1ca35e996057370bc9b6956cf5
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2018-06-10 23:04:26 -07:00
Linux Build Service Account
ea98dc13e9 Merge "drm/msm/dsi-staging: improve xlog debug support for dsi" 2018-06-08 17:53:56 -07:00
Linux Build Service Account
b121352e40 Merge "drm/msm/sde: fix feature enable check for CWB support" 2018-06-08 17:53:56 -07:00
Prabhanjan Kandula
367bdf3d2b drm/msm/sde: fix feature enable check for CWB support
Fix the Concurrent Writeback feature enabled validation
to check if CWB feature bit set in the Writeback feature flag.

Change-Id: Iffd3167b500edaa3c3338094eadcdc08606ff5c1
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
2018-06-07 13:57:36 -07:00
Linux Build Service Account
c1940edc59 Merge "drm/msm/sde: queue display failure work to event thread" 2018-06-07 07:41:51 -07:00