summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/msm (follow)
Commit message (Collapse)AuthorAge
...
| * | | | | msm: mdss: advertize hdr support on msm8998Abhijit Kulkarni2016-12-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change advertizes hdr feature support to user space driver on msm8998. Change-Id: I6b81f64d14e472b563e2ee3ea86198be82c58920 Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
* | | | | | Merge "msm: mdss: avoid possible infinite loop on kmalloc failure"Linux Build Service Account2017-01-05
|\ \ \ \ \ \
| * | | | | | msm: mdss: avoid possible infinite loop on kmalloc failureHarsh Sahu2016-12-19
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If any of the calls to kmalloc fail then the value of ret becomes non-zero. Hence the code in the if condition gets executed. Then in "exit" section ret is set again to non-zero value. The program jumps back to the exit label and the code in the if condition gets executed again leading to an infinite loop. Removing the goto exit line will avoid the possible infinite loop forming when kmalloc fails. Change-Id: I0d7d7d3d6d65806ede866667a7030fb9d1e0480e Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
* | | | | | Merge "msm: mdss: fix cwb output buffer memory leak"Linux Build Service Account2017-01-05
|\ \ \ \ \ \
| * | | | | | msm: mdss: fix cwb output buffer memory leakPrabhanjan Kandula2016-12-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, cwb buffers are allocated and mapped during commit but not unmapped, leaving the kernel refcounts intact which would eventually cause memory issues. Fix it by adding the buffer to a cleanup queue after mapping and unmap/free the buffer in the work queue after cwb intr done. Change-Id: I2bb41a4fadc58ecedb1fafacf6821ce6376b1b4d Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
* | | | | | | Merge "msm: mdss: fix programming of scaler lut_ctrl register"Linux Build Service Account2017-01-05
|\ \ \ \ \ \ \
| * | | | | | | msm: mdss: fix programming of scaler lut_ctrl registerAbhijit Kulkarni2016-12-21
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LUT_CTRL register is present in the QSEED3 sub block. This change adds the correct offset for each pipe for this register so that it does not over write the LUT coeff and hang the LUT HW. CRs-Fixed:1062539 Change-Id: Ica36733466be474b7b3bc8de52e55fa5cb7a011f Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
* | | | | | | Merge "msm: mdss: rename dsi phy version for msm8996 and sdm660"Linux Build Service Account2017-01-05
|\ \ \ \ \ \ \
| * | | | | | | msm: mdss: rename dsi phy version for msm8996 and sdm660Sandeep Panda2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DSI phy v2 is used on msm8996 and sdm660. Update the phy timing device node property to mention the correct DSI PHY version. This will ensure that proper naming convention is followed across msm8996 and sdm660 target. Change-Id: Idd88110ddebf2dd38cfe375ac1bf3804ce4bb4d0 Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
* | | | | | | | Merge "msm: mdss: Set default fps for dedicated WB"Linux Build Service Account2017-01-05
|\ \ \ \ \ \ \ \
| * | | | | | | | msm: mdss: Set default fps for dedicated WBKrishna Manikandan2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In targets with dedicated writeback paths, the FPS isn't set properly for BW calculations for WB cases. Setting the FPS to default frame rate, for such cases. Change-Id: I83c545f3344ee5fc3d356f0e08d3c20453e22b31 Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
| * | | | | | | | msm: mdss: protect iommu attached status variable with iommu_lockKrishna Manikandan2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit dd7ad27eb3de6b088b6525b066c40f5a29ac4c60 ("msm: mdss: fix race condition between iommu attach and sending DCS cmds") protected the iommu attach/detach to fix possible race condition between the display thread and DCS cmd sending from ESD or some other thread with iommu_lock. But this still leaves possibility of race condition based on iommu_attached status flag. -> Display thread finishes the attach and releases the iommu lock -> DCS cmd thread gets the iommu lock and checks iommu_attached status before display thread could change it. Protect the iommu_attached status variable along with iommu attach/detach to avoid such cases. Change-Id: I42d0ced5cbfd741cf02ad71c80c4f01dde37f647 Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: Memset commit structure in compat path"Linux Build Service Account2017-01-05
|\| | | | | | | |
| * | | | | | | | msm: mdss: Memset commit structure in compat pathKrishna Manikandan2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Memset commit structure in compat path ioctl as some of the pointer variables might go uninitialized, if not explicitly initialized by the userspace. These uninitialized variables contain garbage values which can further result in kernel crash. Change-Id: I09518a43438e27751f2b918d682f551550c4342e Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: Add sysfs node for mdss to give runtime fps"Linux Build Service Account2017-01-05
|\| | | | | | | |
| * | | | | | | | msm: mdss: Add sysfs node for mdss to give runtime fpsKrishna Manikandan2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added sysfs node on mdss to get fps value at runtime. The calculation is time based where in mdss driver counts number of frames transferred for every 1 second. Change-Id: I6f38298d066852d1a41cb90167aa41f594eec9c0 Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: Allow WB to use first available control path"Linux Build Service Account2017-01-05
|\| | | | | | | |
| * | | | | | | | msm: mdss: Allow WB to use first available control pathKrishna Manikandan2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WB timeouts are seen when WB is connected after 4k HDMI use case. This was seen when WB is using the same mixer which was earlier used by HDMI, with 3D Mux enabled. Since 3D Mux registers are double buffered, the best way to clear control operations is to re-use the control path. Hence allowing WB to choose the first available control path. Change-Id: Ie599a6d58f461ee7905402bf0a948ac829d8de12 Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: Fix potential NULL pointer dereference in mdss smmu driver"Linux Build Service Account2017-01-05
|\| | | | | | | |
| * | | | | | | | msm: mdss: Fix potential NULL pointer dereference in mdss smmu driverKrishna Manikandan2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FB driver will call this function even if there is no MDP. mdss_mdp_get_mdata will return NULL in that scenario and needs to be checked. Change-Id: Icebed1bc9b4da214fec2ca924590403d1656fa5d Signed-off-by: Naseer Ahmed <naseer@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: print fence name during sync fence timeouts"Linux Build Service Account2017-01-05
|\| | | | | | | |
| * | | | | | | | msm: mdss: print fence name during sync fence timeoutsKrishna Manikandan2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add fence name to the warning message instead of sync pt data fence, to help in debugging sync fence timeout issues. Change-Id: I4bee08786ff3fc7f6109afcf923df46e76ad1619 Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: Fix compat IOCTLS in rotator and primary"Linux Build Service Account2017-01-05
|\| | | | | | | |
| * | | | | | | | msm: mdss: Fix compat IOCTLS in rotator and primaryKrishna Manikandan2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update structures in mdss compat layer with the new interface changes in mdss headers, so that 32_to_64 backward compatibility is maintained. Change-Id: I1b75ee6d0d13438fedbaf045a3cdc7f47bf32ba2 Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
| * | | | | | | | msm: mdss: configure the dynamic fps correctlyKrishna Manikandan2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dynamic fps should be set to max fps supported if it is out of range. Configure the clocks based on the max fps set. Change-Id: Ied2d4803c0840be00929b7093601aab39930b3e9 Signed-off-by: Ashish Garg <ashigarg@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
| * | | | | | | | msm: mdss: add cmd_off_mtx for synchronizing vsync handler and off sequenceKrishna Manikandan2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At present the ctl->offlock mutex is used for synchronization between ESD thread and OFF sequence. Using the same mutex for synchronization between add_vsync_handler() and OFF sequence was causing unnecessary synchronization between ESD thread and add_vsyc_handler(). To improve performance a new mutex, cmd_off_mtx is used for the second case. Change-Id: I7d0b0690672869937d82df68ea9f571023fc88d1 Signed-off-by: Shalini Krishnamoorthi <shakri@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: Fix potential NULL pointer dereferences"Linux Build Service Account2017-01-05
|\| | | | | | | |
| * | | | | | | | msm: mdss: Fix potential NULL pointer dereferencesKrishna Manikandan2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixing potential NULL pointer dereferences in MDSS driver. Change-Id: Ibaa6b8adec966737b41c36f530ae88a968d5d5ed Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | | | | Merge "msm: mdss: Initialize pan_name array to 0 and handle error case"Linux Build Service Account2017-01-05
|\| | | | | | | |
| * | | | | | | | msm: mdss: Initialize pan_name array to 0 and handle error caseKrishna Manikandan2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initialize the pan_name array to 0 before trying to copy data from mdss_mdp_panel array to prevent junk values being wrongly parsed by strnstr function and return error when panel name is '0', this would let us read the primary panel interface from device tree. Change-Id: I07bfc1f7195f6cc61dfd3e470d2e3e3e43c0049d Signed-off-by: Shalini Krishnamoorthi <shakri@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
| * | | | | | | | msm: mdss: check for split display enable in multiple displaysKrishna Manikandan2017-01-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'commit 3bf808d38b78b55eb2bf686555a0c2f371eccdf2 ("msm: fb: add mdp foot switch for multiple splash displays")' considers DSI0 and DSI1 as separate displays even if split display is enabled. So the number of displays are calculated as 2 whereas the driver considers this as a single display. This causes MDP clocks to remain ON. This change corrects number of displays calculated by checking for split display. Change-Id: Ie0d3dbbcb93cc86b88a8b903fd1f7ccd89a8a871 Signed-off-by: Krishna Srinivas <krisrini@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
| * | | | | | | | msm: fb: add mdp foot switch for multiple splash displaysKrishna Manikandan2017-01-02
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If there are multiple splash displays enabled in LK, mdp foot switch needs to perform multiple times. Otherwise, clock resources are not enabled/disabled symmetrically. Change-Id: Iaca1163f44883be9e027460c48bd0ebc0ec2266a Signed-off-by: Camus Wong <camusw@codeaurora.org> Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | | | Merge "msm: mdss: Update WB OT settings for SDM660"Linux Build Service Account2017-01-05
|\ \ \ \ \ \ \ \
| * | | | | | | | msm: mdss: Update WB OT settings for SDM660Raviteja Tamatam2017-01-03
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added changes to update WB OT settings for SDM660 based on QOS recommendations Change-Id: I6a4dfe3f6ef88547c6c67750edb1cd2c2404429e Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
* | | | | | | | Merge "msm: mdss: Fix invalid dma attachment during fb shutdown"Linux Build Service Account2017-01-03
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | msm: mdss: Fix invalid dma attachment during fb shutdownBenjamin Chan2016-12-15
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If DMA attachment fail during fb_mmap, all ION memory will get free. It is necessary to reset the fbmem and fb_attachemnt pointer to NULL, otherwise during shutdown will perform another free and causing issue. CRs-Fixed: 1090244 Change-Id: I92affcf2ce039eecfc72b7c191e058f37815c726 Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
* | | | | | | Merge "msm: mdss: Add check to fix null pointer dereference"Linux Build Service Account2016-12-30
|\ \ \ \ \ \ \
| * | | | | | | msm: mdss: Add check to fix null pointer dereferenceKrishna Manikandan2016-12-13
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In mdss_mdp_overlay_kickoff, the mixer_left can be accessed without checking whether it is allocated or not which can result in null pointer dereference. This is fixed by adding a check to decide if mixer_left is NULL or not. CRs-Fixed: 1070611 Change-Id: Iab4254a492b7b5930984dbb8ea91597a5506aca6 Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
* | | | | | | Merge "msm: mdss: Fix error handling logic in MDSS DP driver"Linux Build Service Account2016-12-30
|\ \ \ \ \ \ \
| * | | | | | | msm: mdss: Fix error handling logic in MDSS DP driverBenjamin Chan2016-12-12
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add proper NULL checking for USBPD_SVDM_ATTENTION handling in DP driver. CRs-Fixed: 1099086 Change-Id: I44ccb9a19ad85bdcef090ea3cb8ba27628d20ccb Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
* | | | | | | Merge "msm: mdss: avoid cropping of pipe src/dst rect for MPU"Linux Build Service Account2016-12-30
|\ \ \ \ \ \ \
| * | | | | | | msm: mdss: avoid cropping of pipe src/dst rect for MPUVeera Sundaram Sankaran2016-12-14
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid cropping of the pipe src/dst rect based on the two ROIs during Multiple Partial Update. The userspace is expected to send the actual cropped rect, as cropping in the kernel will need recalculation of pixel extension parameters. Add checks to fail such cases fall back to full screen update. Change-Id: Ie41c5664adf3882400b8138b0473ac3a469ee0a6 Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
* | | | | | | Merge "msm: mdss: fix data path for concurrent writeback"Linux Build Service Account2016-12-30
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | | |
| * | | | | | msm: mdss: fix data path for concurrent writebackPrabhanjan Kandula2016-12-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Read data-path flag set by client for CWB, and populate CWB output layer flags. - Fix data path register setting for right mixer Change-Id: I3599ce1b19df48c72a4c951be76b813704b8a124 Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
| * | | | | | msm: mdss: rely on client provided stride for CWBPrabhanjan Kandula2016-12-11
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Though CWB output is configured to primary resolution, client can provide an output buffer with bigger stride. Use client stride for computing output buffer plane info. Change-Id: Ib632c95fbb89dc181247dddee27b393a65aaa296 Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
* | | | | | Merge "msm: mdss: Avoid overwriting dsc reconfiguration flag"Linux Build Service Account2016-12-30
|\ \ \ \ \ \
| * | | | | | msm: mdss: Avoid overwriting dsc reconfiguration flagNaseer Ahmed2016-12-07
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While switching between panel resolutions with DSC on/off the variable that is used to flag the reconfiguration can be overwritten if the roi_changed flag is not true. Change-Id: I2e3041c848aafbc7a348fca7ce450a4fadd0e8d7 Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
* | | | | | Merge "mdss: display-port: add support for multiple resolutions"Linux Build Service Account2016-12-30
|\ \ \ \ \ \
| * | | | | | mdss: display-port: add support for multiple resolutionsChandan Uddaraju2016-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the "down stream" registration during EDID initialization so that all the support resolutions are exposed to the framework. Change-Id: I9dcc89d75f97d2c88563af6389a3f87a7982b155 Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
* | | | | | | Merge "msm: mdss: dp: fix compilation issues for 32-bit architectures"Linux Build Service Account2016-12-30
|\| | | | | |