msm: mdss: Remove init phase programming

Init phase should only be programmed to a non zero value only through
a user program. Default value of zero is programmed by the driver to
avoid hardware hangs

Change-Id: Iff99394d2f3a937c5bb4456c2f7ca5669a5c732b
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
ARM: dts: Change the vertical back porch value for nt33590 panel

Currently the vertical back porch of this panel is very low,
and causes performance related issues,hence increase the vbp of
this panel properly with correct dsi panel sequence to accommodate
this vbp.

Change-Id: I4f0771fa4f827adca1f52b6e71cb968cc6602112
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>
msm: mdss: Notify userspace of idle screen case

Expose two new sysfs nodes - idle_time and idle_notify - that
are used to notify userspace whenever the display is idle with
no screen updates. The idle_time node needs to be configured
with the duration in milliseconds to detect no screen updates.
The userspace app can poll on the idle_notify node to get
notifications of the idle state.

Change-Id: I7435a084ad2c928d952c5d106ff9ef92aaa385b9
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Signed-off-by: Neti Ravi Kumar <ravineti@codeaurora.org>
Signed-off-by: Neti Ravi Kumar <ravineti@codeaurora.org>
CRs-Fixed: 637403
crypto: msm: ota: fix possible buffer overflow issue

This patch replaces snprintf with scnprintf to prevent
possible buffer overflow issues

CRs-Fixed: 562347

Change-Id: I56aebd24557dccc547ff86cb8853ace0602b6e50
Acked-by: Radhakrishna Popuri <c_rpopur@qti.qualcomm.com>
Signed-off-by: Venkatesh Yadav Abbarapu <quicvenkat@codeaurora.org>
msm: mdss: Fix BWC width alignment

BWC src width is segmented into 16 aligned RAUs. The segmentation
into 16 RAUs needs to be rounded up for corner cases.

Change-Id: Idbf675d7adfb45cb28e6c456dd4fd7c7f41ea280
Signed-off-by: Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
Merge "msm: mdss: Remove init phase programming"
Merge "msm: mdss: Fix BWC width alignment"
Merge "crypto: msm: ota: fix possible buffer overflow issue"
Merge "msm: mdss: Notify userspace of idle screen case"
Merge "ARM: dts: Change the vertical back porch value for nt33590 panel"
ARM: dts: Change the vertical back porch value for nt33590 panel

Currently the vertical back porch of this panel is very low,
and causes performance related issues,hence increase the vbp of
this panel properly with correct dsi panel sequence to accommodate
this vbp.

Change-Id: I4f0771fa4f827adca1f52b6e71cb968cc6602112
Signed-off-by: Anusha Koduru <kanusha@codeaurora.org>
Merge "ARM: dts: Change the vertical back porch value for nt33590 panel"
msm: camera: Change Avtimer timestamp implementation

If video telephony app uses camera, timestamp need to be more
accurate. Use hardware registers to read time in nano seconds
and fill it in buffer.

Change-Id: I25c321ec83fb952f09a57b1b0ad46b0458a990a1
Signed-off-by: Abhishek kondaveeti <akondave@codeaurora.org>
msm: kgsl: Add new API's to track device mutex owner

Add new API's kgsl_mutex_lock/unlock to track device mutex owner.
Mutex owner is an atomic variable and all operations set/clear on
it are also atomic to avoid any race conditions.

If a thread tries to acquire the mutex using new API, try to acquire
the mutex only if mutex owner is not same as current thread. This is
to prevent deadlocks which can happen if a thread tries to acquire
mutex with mutex held.

Change-Id: I3da4d0427ede5458f6a663043c57a4799b72d8fd
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
msm: kgsl: Flush TLB when mapping to IOMMU pagetable

Flush TLB when mapping to IOMMU pagetable, this is a requirement
for current IOMMU hardware.

Change-Id: I82e766f4869c737c1f5b73934eacaada40d46e10
Signed-off-by: Tarun Karra <tkarra@codeaurora.org>
msm: mdss: Notify userspace of idle screen case

Expose two new sysfs nodes - idle_time and idle_notify - that
are used to notify userspace whenever the display is idle with
no screen updates. The idle_time node needs to be configured
with the duration in milliseconds to detect no screen updates.
The userspace app can poll on the idle_notify node to get
notifications of the idle state.

Change-Id: I7435a084ad2c928d952c5d106ff9ef92aaa385b9
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
Signed-off-by: Neti Ravi Kumar <ravineti@codeaurora.org>
Signed-off-by: Neti Ravi Kumar <ravineti@codeaurora.org>
CRs-Fixed: 637403
Merge "msm: camera: Change Avtimer timestamp implementation"
Merge "msm: kgsl: Add new API's to track device mutex owner"
Merge "msm: kgsl: Flush TLB when mapping to IOMMU pagetable"
Merge "msm: mdss: Notify userspace of idle screen case"