summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-05Merge android-msm-pixel-4.19-tm into android-msm-pixel-4.19-tm-qpr1android-t-qpr3-beta-3_r0.2android-t-qpr3-beta-3.1_r0.2android-t-qpr3-beta-2_r0.2android-t-qpr3-beta-1_r0.2android-t-qpr2-beta-3_r0.2android-t-qpr2-beta-3.2_r0.3android-t-qpr2-beta-2_r0.2android-t-qpr2-beta-1_r0.3android-t-qpr1-beta-3_r0.1android-t-qpr1-beta-2_r0.3android-t-qpr1-beta-1_r0.2android-13.0.0_r0.81android-13.0.0_r0.72android-13.0.0_r0.67android-13.0.0_r0.62android-13.0.0_r0.57android-13.0.0_r0.52android-13.0.0_r0.47android-13.0.0_r0.122android-13.0.0_r0.111android-13.0.0_r0.102android-msm-redbull-4.19-t-qpr3-beta-3android-msm-redbull-4.19-t-qpr3-beta-2android-msm-redbull-4.19-t-qpr2-beta-3.2android-msm-redbull-4.19-t-qpr2-beta-1android-msm-redbull-4.19-t-qpr1-beta-2android-msm-redbull-4.19-android13-qpr3-beta1android-msm-redbull-4.19-android13-qpr3android-msm-redbull-4.19-android13-qpr2-betaandroid-msm-redbull-4.19-android13-qpr2android-msm-redbull-4.19-android13-qpr1-beta-3android-msm-redbull-4.19-android13-qpr1-betaandroid-msm-redbull-4.19-android13-qpr1PixelBot AutoMerger
SBMerger: 442815275 Change-Id: I0f20512b785bd9800aba7b843fc0536a9fa6ff40 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-05-30disp: msm: use vzalloc/vfree for large allocationsandroid-t-beta-4_r0.3android-t-beta-3_r0.3android-t-beta-3.3_r0.3android-t-beta-3.2_r0.3android-13.0.0_r0.42android-13.0.0_r0.3android-13.0.0_r0.18android-13.0.0_r0.13android-msm-redbull-4.19-t-beta-4android-msm-redbull-4.19-t-beta-3android-msm-redbull-4.19-android13Raghavendra Ambadas
Large allocations using kzalloc can lead to timeouts. This updates the allocation calls accordingly to use vzalloc/vfree to remove and manage requirements on contiguous memory. Bug: 231528346 Change-Id: I9592f5b612d7b368ba3e389308f047a624355e99 Signed-off-by: Raghavendra Ambadas <quic_c_rambad@quicinc.com> (cherry picked from commit 3127869dd5b4a343bee6ae6eb89bbc147a26f483)
2022-04-15Merge branch 'LA.UM.9.12.C10.11.00.00.840.265' via branch ↵JohnnLee
'qcom-msm-4.19-7250' into android-msm-pixel-4.19 Bug: 223958127 Signed-off-by: JohnnLee <johnnlee@google.com> Change-Id: I277f8aed8e8d285a4214a812631fbb5795418ba5
2022-04-01disp: sde_crtc: add early_wakeup_show functioncarltsai
Add early_wakeup_show function to avoid the read attribute function fail for libperfmgr in power HAL Bug: 184089731 Change-Id: I0b3c9a648b537c79d57eee36372fa19ca56870de Test: 1. cat /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/sde-crtc-0/early_wakeup success 2. No "Failed to read node path: /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/sde-crtc-0/early_wakeup" message in bugreport file
2022-03-24Merge branch LA.UM.9.12.C10.11.00.00.840.265 into qcom-msm-4.19-7250Wilson Sung
Change-Id: Ibe92346b998ae84a67160ee85f4968c812a416c2
2022-03-07Merge branch 'LA.UM.9.12.C10.11.00.00.840.201' via branch ↵android-t-beta-2_r0.3android-msm-redbull-4.19-t-beta-2JohnnLee
'qcom-msm-4.19-7250' into android-msm-pixel-4.19 Conflicts: msm/dsi/dsi_panel.c msm/dsi/dsi_panel.h msm/msm_drv.c Bug: 210578498 Signed-off-by: JohnnLee <johnnlee@google.com> Change-Id: I6aba60287ffc66030afd510a16d97e473408beba
2022-02-14Merge android-msm-barbet-4.19-sc-qpr3 into android-msm-pixel-4.19android-t-beta-1_r0.3android-msm-redbull-4.19-t-beta-1Lucas Wei
SBMerger: 410055097 Change-Id: I01df3a7c841393b2a6d0cb479d944434807be357 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com> Signed-off-by: Lucas Wei <lucaswei@google.com>
2022-02-13Merge android-msm-barbet-4.19-sc-v2 into android-msm-barbet-4.19-sc-qpr3android-s-qpr3-beta-3_r0.4android-12.1.0_r0.34android-12.1.0_r0.27android-msm-barbet-4.19-s-qpr3-beta-3android-msm-barbet-4.19-android12-qpr3PixelBot AutoMerger
SBMerger: 410055097 Change-Id: Ic9d603e34d5284a64154882bcfd2970c7c91111b Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-02-13Merge android-msm-pixel-4.19-sc-qpr3 into android-msm-pixel-4.19PixelBot AutoMerger
SBMerger: 410055097 Change-Id: Ib371281e788fa1ac30582176d487edd1fefa0e42 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-02-13Merge android-msm-pixel-4.19-sc-v2 into android-msm-pixel-4.19-sc-qpr3android-s-qpr3-beta-3_r0.3android-s-qpr3-beta-2_r0.3android-12.1.0_r0.33android-12.1.0_r0.26android-msm-redbull-4.19-s-qpr3-beta-3android-msm-redbull-4.19-s-qpr3-beta-2android-msm-redbull-4.19-android12-qpr3PixelBot AutoMerger
SBMerger: 410055097 Change-Id: I462da6f1e3466f3e8c0695d5cee8a5097b974e18 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2022-02-10Merge branch 'android-msm-barbet-4.19-sc-security' into ↵android-12.1.0_r0.21android-12.1.0_r0.15android-msm-barbet-4.19-android12LHarrison Lingren
android-msm-barbet-4.19-sc-v2 Apr 2022.1 Bug: 215313369 Signed-off-by: Harrison Lingren <hlingren@google.com> Change-Id: I8d741f34de17b824583e7a8aa2ff2fa1b45c950e
2022-02-10Merge branch 'android-msm-pixel-4.19-sc-security' into ↵android-12.1.0_r0.20android-12.1.0_r0.14android-msm-redbull-4.19-android12LHarrison Lingren
android-msm-pixel-4.19-sc-v2 Apr 2022.1 Bug: 215313369 Signed-off-by: Harrison Lingren <hlingren@google.com> Change-Id: Ibfec28b04e90fbb93cfe8be01793329855b6d92a
2022-01-30Merge "disp: msm: sde: synx: Add quic copyright"qctecmdr
2022-01-29Merge "disp: msm: avoid BW down vote after splash memory release"qctecmdr
2022-01-28disp: msm: avoid BW down vote after splash memory releaseMahadevan
In RSC disabled targets during display bootup with continuous splash constant ab and ib votes are set. Upon issuing first commit these values gets updated and at the end of first commit on release of splash resource the votes are removed using sde_power_data_bus_set_quota API. On the very next commit if bandwidth is changed from previous commit, new BW voting is reflected else the disable splash vote exists and underruns are seen. This patch removes the downvote and fixes the underruns seen in video mode in targets for which rsc is disabled. Change-Id: I628d426ad11c703dd972be89fa998588c53a57bb Signed-off-by: Mahadevan <quic_mahap@quicinc.com>
2022-01-28disp: msm: sde: synx: Add quic copyrightRaghavendra Ambadas
Change fixes adding quic copyright as instructed. Change-Id: I2331492b78c013969fa1d48e9ab9afdb03e2f999 Signed-off-by: Raghavendra Ambadas <quic_c_rambad@quicinc.com>
2022-01-27disp: msm: sde: protect file private structure with mutex lockKrishna Manikandan
Access file private data structures inside the mutex lock only to avoid use-after-free issues . Bug:213239835 Change-Id: If70731f517bcb47d4515f131fecafe702064cb45 Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org> Signed-off-by: linjoey <linjoey@google.com>
2022-01-27disp: msm: sde: add null check for drm file in msm_releaseKrishna Manikandan
Drm file is not set to NULL after freeing it from drm release. This can result in use-after-free issues in some scenarios. Add a mutex lock and other proper null checks to prevent such issues. Bug:213239835 Change-Id: Ic35b0a76166b0f47a354b1737e6f4c3ac1437ed4 Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org> Signed-off-by: Althaf Neelanchirayil <aneelanc@codeaurora.org> Signed-off-by: linjoey <linjoey@google.com>
2022-01-27disp: msm: sde: protect file private structure with mutex lockKrishna Manikandan
Access file private data structures inside the mutex lock only to avoid use-after-free issues . Bug:213239835 Change-Id: If70731f517bcb47d4515f131fecafe702064cb45 Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org> Signed-off-by: linjoey <linjoey@google.com>
2022-01-27disp: msm: sde: add null check for drm file in msm_releaseKrishna Manikandan
Drm file is not set to NULL after freeing it from drm release. This can result in use-after-free issues in some scenarios. Add a mutex lock and other proper null checks to prevent such issues. Bug:213239835 Change-Id: Ic35b0a76166b0f47a354b1737e6f4c3ac1437ed4 Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org> Signed-off-by: Althaf Neelanchirayil <aneelanc@codeaurora.org> Signed-off-by: linjoey <linjoey@google.com>
2022-01-25disp: msm: dsi: Only enable lanes required during phy enableSrihitha Tangudu
Currently we are enabling all the lanes irrespective of the lanes we are actually going to use. Add support to enable only those lanes that are required and thus save power. Change-Id: I9aae76eeaa05a79337d4e4b1f2e36ea9842bd580 Signed-off-by: Srihitha Tangudu <quic_tangudu@quicinc.com>
2022-01-20disp: msm: sde: while timing engine enabling poll for active regionSrihitha Tangudu
DCS commands triggered right after timing engine enable can conflict with blanking period causing command transfer failures. Right after timing engine enable poll for frame start and line count reaching active region of display before any DCS commands. Change-Id: Ia3967e01c3bb5bc82aa3549c300fa8335e00210c Signed-off-by: Prabhanjan Kandula <quic_pkandula@quicinc.com> Signed-off-by: Srihitha Tangudu <quic_tangudu@quicinc.com>
2022-01-19Merge "disp: msm: sde: switch rsc state before CTL_PREPARE in dual display"qctecmdr
2022-01-12disp: msm: increase size of sde_kms_infoNilaan Gunabalachandran
With requirements to support an increased number of display modes, the current size of sde_kms_info is insufficient. This change increases the sde_kms_info max size. Change-Id: Ie0f29003732870dad9ce31ee7d484e84f12ba542 Signed-off-by: Nilaan Gunabalachandran <quic_ngunabal@quicinc.com>
2022-01-05Merge branch LA.UM.9.12.C10.11.00.00.840.201 into qcom-msm-4.19-7250Wilson Sung
Change-Id: I85759273f605c3e1a9570ec217fcb504dd69bab1
2022-01-04disp: msm: sde: switch rsc state before CTL_PREPARE in dual displayRaghavendra Ambadas
In dual display usecase when both displays comes out of idle following scenario will cause wr_ptr timeout. 1. Both displays goes to idle and RSCC enters Mode-2. 2. Primary display exit idle upon DRM commit N RSC enters Solver State. 3. Secondary display exits idle upon DRM commit M and waits on input fence after CTL_1_PREPARE is set. RSC is still in CMD state. 4. Primary Commit N frame transfer got successful and commit N+1 is queued in primary display when RSC in solver state which leads to timeout in primary. This is because RSCC will not generate a wakeup in sync with primary timelines leading to timeout. This is because RSCC still sees idle low thinking frame transfer is taking long time. This change will switch the rsc state to AMC mode before CTL_PREPARE is set which resolves such issue. Change-Id: Ic32e48b4febbbcc54d94876194d38fe6ef3d0981 Signed-off-by: Mahadevan <mahap@codeaurora.org> Signed-off-by: Raghavendra Ambadas <quic_c_rambad@quicinc.com>
2021-12-02Merge branch LA.UM.9.12.C10.11.00.00.840.150 into qcom-msm-4.19-7250Wilson Sung
Change-Id: Ib67a8e7b33f4b5c33608e9c310a34a300df41e98
2021-11-01disp: msm: sde: protect file private structure with mutex lockKrishna Manikandan
Access file private data structures inside the mutex lock only to avoid use-after-free issues . Change-Id: If70731f517bcb47d4515f131fecafe702064cb45 Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
2021-09-30Merge "disp: msm: dp: parse displayport label dt property"qctecmdr
2021-09-29disp: msm: dp: parse displayport label dt propertyNarender Ankam
Add logic in DP driver to parse "label" dt property. This info will be useful to configure DP as primary or secondary. Change-Id: I708179c5940c82256034bc6c8338b01ee52f2f79 Signed-off-by: Narender Ankam <nankam@codeaurora.org>
2021-09-27disp: msm: sde: handle partial update transitions in rounded cornerAnjaneya Prasad Musunuri
This change handles partial update use case transitions. Rounded corner should be programmed to full ROI when transitioning out of partial update use case. This change also clear cached ROIs when rounded corner feature is disabled to ensure full frame ROI for first frame when feature is enabled again. This change depends on HAL change to disable PU for one frame when RC mask config is set. This change also moves cached rectangles from crtc state to crtc structure to avoid cached rectangles being incorrect due to race conditions between updating cached rectangles in crtc state and duplicating crtc state when next commit starts. Change-Id: I4c48ccd3f64409d1b0fa19f0e6f92eab5f86d099 Signed-off-by: Anjaneya Prasad Musunuri <aprasad@codeaurora.org>
2021-09-13Merge "disp: msm: sde: handle partial update use case in rounded corner"qctecmdr
2021-09-12Merge android-msm-pixel-4.19-sc-qpr1 into android-msm-pixel-4.19android-t-preview-2_r0.3android-t-preview-1_r0.3android-msm-redbull-4.19-t-preview-2android-msm-redbull-4.19-t-preview-1PixelBot AutoMerger
SBMerger: 379283923 Change-Id: Ib0552c64c0916cff98faa274b583713a5604cc18 Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2021-09-12Merge android-msm-pixel-4.19-sc into android-msm-pixel-4.19-sc-qpr1android-s-v2-beta-3_r0.4android-s-v2-beta-2_r0.4android-s-v2-beta-1_r0.4android-s-qpr3-beta-1_r0.3android-12.1.0_r0.4android-12.0.0_r0.40android-12.0.0_r0.34android-12.0.0_r0.24android-msm-redbull-4.19-s-v2-beta-3android-msm-redbull-4.19-android12-v2-beta-2android-msm-redbull-4.19-android12-qpr1android-msm-redbull--s-v2-beta-1PixelBot AutoMerger
SBMerger: 379283923 Change-Id: I7f13ab5bb0435403c035276bac67af1242d08c6b Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2021-09-07Merge branch 'android-msm-pixel-4.19-sc-security' into android-msm-pixel-4.19-scandroid-12.0.0_r0.14android-msm-redbull-4.19-android12Eva Huang
Nov 2021.1 Bug: 198397628 Change-Id: I31883ee9614843a2df8081e3b00a4ed9b0c871e8
2021-09-05disp: msm: sde: handle partial update use case in rounded cornerAnjaneya Prasad Musunuri
Currently, driver expects usermode to set RC blob flags based on the RC PU use case, which causes issue when commits are staggered and is unnecessarily reprogramming RC mask data on every PU frame. This change uses existing driver logic to internally determine the RC PU use case and programs the RC region enable bits accordingly. It also adds essential logging in RC functions to help debugging. Change-Id: I19ae59a79dbee20f357b384c12acd7d2a6a93fb4 Signed-off-by: Anjaneya Prasad Musunuri <aprasad@codeaurora.org>
2021-09-01disp: msm: sde: clear partial update mask during last closeAnjaneya Prasad Musunuri
Clear partial update mask during last close to avoid rounded corner to be programmed without valid mask during shell stop/start operations. Change-Id: I378adc62b5bc5913abfc32fa3528c8e28ea273d4 Signed-off-by: Anjaneya Prasad Musunuri <aprasad@codeaurora.org>
2021-08-11disp: pll: Improve logging for 7nm dsi pllRavikanth Tuniki
For the targets not having slave pll, "slave pll unavailable" warning gets logged on suspend, resume and idle power collapse. Change pr_warn to pr_debug to avoid extra logging. Change-Id: I2f06d88f3ea8ceb03e30095439c24a6729daae97 Signed-off-by: Ravikanth Tuniki <rtunik@codeaurora.org>
2021-08-09msm/dsi: alloc pps command onceraylinhsu
Alloc pps command once when boot up. It could let dsi_panel_debugfs_read_cmdset access and avoid use after free. Bug: 187851056 Change-Id: I91ec5cb265059cbd667bb2b562ea1433f5d03d84 Signed-off-by: raylinhsu <raylinhsu@google.com>
2021-07-28disp: msm: sde: update rsvp_cur when poll is enabled for rsvp_nxtJayaprakash Madisetty
This change updates rsvp_cur pointer to latest to avoid use after free issues. rsvp_cur pointer can be freed in few cases due to the unlock, wait and lock of rm_lock present in _sde_rm_poll_get_rsvp_nxt_locked. Change-Id: I389048188e8a615edc3e75dd1102d4ca8c74af65 Signed-off-by: Jayaprakash Madisetty <jmadiset@codeaurora.org>
2021-07-26Merge 'android-msm-barbet-4.19' into android-msm-pixel-4.19Lucas Wei
Bug: 194667419 Signed-off-by: Lucas Wei <lucaswei@google.com> Change-Id: Ib7ebc608b51e899086c344380ba78bd9363d1b49
2021-07-21Merge "disp: msm: sde: updating DSI command packet creation for MIPI flags"qctecmdr
2021-07-21Merge "disp: msm: sde: add null check for drm file in msm_release"qctecmdr
2021-07-15disp: msm: sde: poll for rsvp nxt after idleNilaan Gunabalachandran
During mode enable after idle, rsvp next would be set without rsvp cur. Back to back test only should be serialized, but currently this would be possible right after idle. This is established by commit 11aab5f9c382 ("disp: msm: sde: Fix null dereference errors"). This change updates the condition to poll for rsvp next clear during this usecase as well. Change-Id: I300254967cbec69fff8b31545b8d659afc56f283 Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2021-07-09disp: msm: sde: add null check for drm file in msm_releaseKrishna Manikandan
Drm file is not set to NULL after freeing it from drm release. This can result in use-after-free issues in some scenarios. Add a mutex lock and other proper null checks to prevent such issues. Change-Id: Ic35b0a76166b0f47a354b1737e6f4c3ac1437ed4 Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org> Signed-off-by: Althaf Neelanchirayil <aneelanc@codeaurora.org>
2021-06-22Merge "disp: msm: sde: add support for hardware based rounded corner"qctecmdr
2021-06-21disp: msm: sde: updating DSI command packet creation for MIPI flagsRajesh Bharathwaj
At present, code is checking only for MSM_REQ_ACK flag which is set for read commands and ignores all other flag states. This fix takes all the different states that are configured as the DSI Command MIPI Flag states and sets it. Also, added the backlight brightness control support with different DCS command(0xC2) to update backlight brightness. Change-Id: I689e902e7d997afcb629084e89e42361bf1c685b Signed-off-by: Rajesh Bharathwaj <rajeshbharathwaj@codeaurora.org>
2021-06-21Merge "disp: rotator: add rev checks for rotator for khaje target"qctecmdr
2021-06-21Merge "disp: msm: sde: add rev checks for khaje target"qctecmdr
2021-06-18disp: msm: sde: add support for hardware based rounded cornerAnjaneya Prasad Musunuri
Add support for hardware based rounded corner part of color processing framework. Change-Id: Ie05c5ecba6bd0323d1c8fd6949e12cec1f56b477 Signed-off-by: Anjaneya Prasad Musunuri <aprasad@codeaurora.org>