Commit graph

590985 commits

Author SHA1 Message Date
Krishna Manikandan
e2c351c864 fbdev: msm: Reserve mixers with dspp for primary display
Avoid allocating mixers LM0 and LM1 to external display and
writeback as they are allocated to primary display first.

Change-Id: I343a70dca2e664e5c9765fa2f0b933714b747b4a
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
2017-06-09 11:05:40 +05:30
Shiju Mathew
b3c4d17a71 ARM: dts: msm: Update CCI voltage range for MSM8996pro automotive
Update CCI voltage regulator voltage range to reflect the
corresponding change in pm8996_l17 on MSM8996pro.

CRs-Fixed: 1047744
Change-Id: I96c2070841b044f3ddfd19cad47f3cbc38452b6d
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:12:17 -07:00
Shiju Mathew
008cdc0351 ARM: dts: msm: Add CVBS input profile on MSM8996 Auto
This is to support CVBS video input via adv7481 device on
MSM8996 Automotive.

CRs-Fixed: 1029211
Change-Id: I15ada5b7d69ad0759f0d4025a575598909548b7a
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:12:10 -07:00
Shiju Mathew
ed3fd83665 ARM: dts: msm: Add voltage regulator on MSM8996 auto
Add voltage regulator configuration support for
adv7481 CCI on MSM8996 Mojave platform.

CRs-Fixed: 1021381
Change-Id: I9194d7b3b4f73afcfa37779ed4266e71b1876f56
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:12:04 -07:00
Shiju Mathew
e6bbd528e0 ARM: dts: msm: Add support for BA on MSM8996 auto
Add platform specific data for bridge abstraction
driver on MSM8996 auto.

CRs-Fixed: 998927
Change-Id: Ib354ce35acc69d0d636c68b29a9d59956f8ff55b
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:57 -07:00
Shiju Mathew
b18d2fcecd ARM: dts: msm: Enable GPIOs for adv7481 on MSM8996 auto
Enable reset and interrupt GPIO pins for adv7481 driver.

CRs-Fixed: 998927
Change-Id: I0fbe4bbb3fe0628151deaa7f146c3d0bea589bf5
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:51 -07:00
Shiju Mathew
b22f791241 ARM: dts: msm: Add support for adv7481 on MSM8996 auto
Add node and properties for adv7481 driver on MSM8996
automotive target.

CRs-Fixed: 998927
Change-Id: I5a0368288a9334a0286ee70e9d794965223e9944
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:45 -07:00
Jingtao Chen
fe4e800aeb msm: ba: Update ba driver to latest v4l2 framework
This patch upgrades ba driver to be compatible with the
latest v4l2 framework.

Change-Id: Id91953f7a4a075533e7e8bedab71e5c20d4da2c1
Signed-off-by: Jingtao Chen <jingtaoc@codeaurora.org>
2017-06-08 22:11:31 -07:00
Rahul Sharma
7a20b3af48 msm: ba: Fix race conditions in debug writes
Use dynamic allocation for debug buffer instead of static.
This is to avoid race condition which can cause buffer overflows.

Change-Id: I1b4eecb4280843064712ee3b7b52e23f55ab53c3
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-06-08 22:11:24 -07:00
Shiju Mathew
fd368e4ce1 msm: ba: Update video input device enumeration
Remove signal status check during enumeration to avoid
any unnecessary polling of device status during bootup.
The single status check is done when device is open for
streaming.

CRs-Fixed: 1092315
Change-Id: I2027fe0fab0fb865071001e7400ba7672433d8f5
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:18 -07:00
Shiju Mathew
6d0ae50f6e msm: ba: Fix issue with multiple BA profiles
Fix NULL pointer dereferencing on enabling multiple
BA profiles. It was due to improper pointer assignment.

CRs-Fixed: 1029211
Change-Id: Ibab903d8aaf4c74d0c35386778a84d9280dbb221
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:12 -07:00
Shiju Mathew
d751061941 msm: ba: Remove default disable of BA driver
Enable/Disable of bridge abstraction driver will be done
from kernel defconfig file.

CRs-Fixed: 1021381
Change-Id: Ie674de7c9c4a667a1eaeb6dd907341fef0cc34d1
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:11:06 -07:00
Shiju Mathew
47cee382fc msm: ba: Add DT support for BA driver
Move BA platform specific data into DT and minor cleanups.

CRs-Fixed: 998927
Change-Id: Ib68a7b16986b92a46a98beab0c35591274c334ba
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:10:59 -07:00
Shiju Mathew
751f9ac72e msm: ba: Merge relevant changes from A family
Merge relevant bridge abstraction changes from 8064
to MSM8996.

CRs-Fixed: 998927
Change-Id: I4baaa5a8b93cade64b0064acdc63b3b4ab7765e7
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 22:10:53 -07:00
Domi Papoi
481c212aa7 msm: BA: Save platform driver in device context
Probe function rework to have the drive capability
of reading from dts.

Change-Id: I5cc05d4e4ffd3d0f5546c1177516a2d0805be481
Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
2017-06-08 22:10:47 -07:00
Domi Papoi
bcfb8150a0 msm: BA: Fix race condition with v4l2 event handler
The v4l2 event handler struct should be initialized
before added to the dev_ctxt->instances list.
The v4l2 event handler struct should be de-initialized
after we remove inst from the core->instances list.

Change-Id: I1faf6bab4232bbcd2ca567a9a11b0c8faa2f45ce
Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
2017-06-08 22:10:41 -07:00
Domi Papoi
96befb971f msm: BA: Fix a race condition in BA event handling
Add proper locking in event handling so that invocation
of multiple events will not corrupt the event list.

Change-Id: I4499b3c0a106cbada54bbc122bb03ad5c30ed2c3
Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
2017-06-08 22:10:35 -07:00
Domi Papoi
841681b801 msm: BA: Avoid null pointer dereferencing
Add null pointer checking to avoid null pointer dereferencing
for ba input.

Change-Id: Ic54bbf8748a78c7f33540cab2ec32b753969fa06
Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
2017-06-08 22:10:29 -07:00
Domi Papoi
2fcbbaa101 msm: BA: Create Bridge Abstraction (BA)
Create bridge abstraction driver to provide a framework that can be
used to abstract different types of bridge chips under a common API.
The framework also allows multiple drivers to control different
functional aspects of a bridge chip.
The bridge abstraction driver is limited to bridge chips that deal
with converting audio/video data from one protocol to a different one.

Change-Id: Ib42365fb41afda8029f4f6e9b1ec27549d885659
Signed-off-by: Domi Papoi <dpapoi@codeaurora.org>
2017-06-08 22:00:06 -07:00
Anirudh Ghayal
df6ff62b19 ARM: dts: msm: specify a PWM mode threshold for BoB on SDM660
Specify a 2 A PWM vs AUTO mode load current threshold for the
BoB regulator.  Also specify the initial mode as AUTO.
Consumer that require the BoB to be in PWM mode should request
2000000 uA or more.

CRs-Fixed: 2054771
Change-Id: I2d2687a9b2204f677818b639fb6650084cffd84a
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-06-09 09:12:11 +05:30
Yahui Wang
0c7a3702d9 ARM: dts: msm: optimize brightness dcs control for msm8998 SKUK HDK panel
The panel used for msm8998 SKUK HDK is a special panel, brightness needs
to be sent with HS state to ensure that can be received successfully.

Change-Id: I4c0c13002de01aaea9e66e6cc011761234318a76
Signed-off-by: Yahui Wang <yahuiw@codeaurora.org>
2017-06-08 19:47:04 -07:00
Linux Build Service Account
55a25be010 Merge "drm/msm/sde: add secure use case properties" 2017-06-08 19:03:20 -07:00
Linux Build Service Account
16fcfea171 Merge "Revert "msm: smmu: add re-route calling for specified iova."" 2017-06-08 19:03:19 -07:00
Linux Build Service Account
bc22546551 Merge "Merge branch 'android-4.4@9bc4622' into branch 'msm-4.4'" 2017-06-08 19:03:18 -07:00
Pavankumar Kondeti
a761ae8501 sched: Fix the bug in select_best_cpu() that returns -1 as target_cpu
select_best_cpu() has previous CPU's cluster bias which overrides
the best_cpu with best_sibling_cpu when the power cost is same.
When the power table is configured incorrectly or static_cpu_pwr_cost/
static_cluster_pwr_cost tunables are set to a large value, the
power_cost() for all candidate CPUs can return INT_MAX. So the
stats.min_cost is never changed from it's initial value i.e INT_MAX.

In the above scenario, we find stats.best_cpu >= 0 &&  stats.min_cost =
stats.best_sibling_cpu_cost = INT_MAX && stats.best_sibling_cpu_cost = -1
and replace best_cpu with best_sibling_cpu i.e -1.

Change-Id: I09829e278e41daaaff959428ff50927aba29104c
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2017-06-09 06:40:02 +05:30
Harsh Sahu
0bb5e6610a msm: mdss: handle vsync properly during dynamic resolution switch
During resolution switch, the vsync is disabled just before the switch
as part of ctrl stop, but it is not enabled back after the switch. This
change keeps track of vsync before the switch and handles it
appropriately after the switch.

Change-Id: I3eed93d7f7635217bac3c19c61f68154cacef56e
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
2017-06-08 15:16:24 -07:00
Abhinav Kumar
e998aabf44 drm/msm: align HDMI register address space mapping with SDE
HDMI driver currently maps register addresses using ioremap()
but doesn't use the SDE driver utilities for register read/write.
Copy the mapped register spaces to SDE utility headers so that
other SDE APIs can be used seamlessly for HDMI.

Change-Id: I3cbe57778ff3a63ffd9176f1a2c60778238e3fe2
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-06-08 11:40:49 -07:00
Yuanyuan Liu
5f92d6280d icnss: Re-phrase debug message and rename state
Re-phrase PD notification registration debug message and
change state name of SSR/PDR to avoid confusion.

CRs-Fixed: 2057789
Change-Id: I5b800982c0d8c4d5ba627e28f3c9fa8eab7ca074
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2017-06-08 11:10:59 -07:00
Yuanyuan Liu
e9a0e8404c icnss: Enable platform device to be a wakeup source
Currently platform device is not enabled as a wakeup source, so
notifying the PM core for a wakeup event action will be no-op.
Hence enable it during driver probe.

CRs-Fixed: 2058010
Change-Id: Iefe5bcd4b498a9f02fca001ebcf8ad484f443217
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2017-06-08 10:49:09 -07:00
Linux Build Service Account
9725c4d90b Merge "ARM: dts: msm: Add new property to DSPS IPC router node for MSM8998" 2017-06-08 05:13:57 -07:00
Linux Build Service Account
cffda533d1 Merge "Revert "ARM: dts: msm: Remove TCSR_QUSB2_PHY_CLAMP_DIG_N_1P8 for SDM660"" 2017-06-08 05:13:55 -07:00
Linux Build Service Account
8df469526a Merge "scsi: ufs: Avoid dead lock during error recovery" 2017-06-08 05:13:54 -07:00
Linux Build Service Account
c6e845ffe7 Merge "netfilter:Notify user space on creating sysfs file" 2017-06-08 05:13:54 -07:00
Linux Build Service Account
3aa4e5e7c3 Merge "dm: md: Replace scheduling of request with direct call" 2017-06-08 05:13:52 -07:00
Linux Build Service Account
3dad7f3687 Merge "mmc: core: Fix the issue with clock scaling in resume-scaling" 2017-06-08 05:13:51 -07:00
Linux Build Service Account
9736b785cf Merge "mmc: core: Initialize the devfreq table with default frequencies" 2017-06-08 05:13:50 -07:00
Linux Build Service Account
02631fccd7 Merge "diag: Enable masks for user pd memory device session" 2017-06-08 05:13:49 -07:00
Linux Build Service Account
019955f7cd Merge "regulator: spm: check min/max voltages against HW configuration" 2017-06-08 05:13:48 -07:00
Linux Build Service Account
2bf7a89b5a Merge "drm/msm: Fix drm_mm bottom_up search" 2017-06-08 05:13:44 -07:00
Linux Build Service Account
2ae6690a56 Merge "drm/msm: Use mmu notifiers to track SVM range invalidations" 2017-06-08 05:13:43 -07:00
Linux Build Service Account
f81a3ca6b3 Merge "adv7481: Update adv7481 because of v4l2 changes" 2017-06-08 05:13:36 -07:00
Linux Build Service Account
9c9b154350 Merge "soc: qcom: glink_smem_native_xprt: recovery from SSR in tasklet only" 2017-06-08 05:13:35 -07:00
Divya Ojha
7925a540c8 ASoC: msm: qdsp6v2: make audio debugfs read and release exclusive
A thread can read audio debugfs entry while another closes the
device. Protect these operations with a mutex and before read
check audio data to be a valid pointer.

Change-Id: If29a308c1a8329d7befd047d41abe5f6ab626199
Signed-off-by: Divya Ojha <dojha@codeaurora.org>
2017-06-08 03:54:14 -07:00
Rashi Bindra
4c22995163 msm: mdss: Do not attempt to request TE irq again if already requested
If the TE irq is alredy requested and registred with a GPIO, then
setting it to true and not continuing with further requesting of
the same.

Change-Id: Iacd1677127c2663d88826e58f1b72704b58db939
Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
2017-06-08 03:50:31 -07:00
Deepak Kushwah
8801c9a1ee ARM: dts: msm: Align CB size to 128MB for SDM660 and SDM630
Ensuring the CB size to be 128MB aligned, the bitmap will be page
aligned i.e a 4k bitmap page can represent 4*1024*8 4k page i.e
128MB memory. Hence a 128MB aligned memory will always have bitmap
at page boundary.

Change-Id: I42e07e5b6b7a8a03e4c3abd2a37f5b1c7de15669
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
2017-06-08 02:26:46 -07:00
Shiju Mathew
d07f591ef0 ARM: dts: msm: Add clock config entry to vmem device on MSM8996
Add vmem clock config entries to msm8996 vmem device to fix
vmem probe failure. This will allow venus to use vmem that will
improve video usecase performance.

CRs-Fixed: 2044371
Change-Id: Id7f2797b12d93ef6d4a55cf50babdd25214747ee
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
2017-06-08 02:02:43 -07:00
Yahui Wang
e58eb7c0ca msm: mdss: add support to control dcs brightness with HS state
Some special panels may need high speed mode to send brightness
to avoid panel issues, adding this change can make a better user
experience using these panels.

Change-Id: Id2cd4b3652892cc7677d7c6863a67d93e24d980f
Signed-off-by: Yahui Wang <yahuiw@codeaurora.org>
2017-06-08 15:33:57 +08:00
Vijayavardhan Vennapusa
a64cc72e05 PD: policy_engine: Add timeout for mode change through sysfs
Currently USB driver tries to set power role as none and waits for
disconnect notification to set new mode. But there is a chance that it
might fail and stuck in infinite loop if other device is not dual-role
capable. Fix it by having timeout and bail out in case timeout happens.

Change-Id: I569356ee445c53950ed8fdd3f9994d4ae0e86131
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-06-08 11:18:23 +05:30
Krishna Manikandan
7eaa60b8e5 fbdev: msm: fix unaligned access problem
debug offset comes from the user and can hold any value which can
cause unaligned access. This change fixes the unaligned access
problem on debug offset by properly aligning it.

Change-Id: Ic61c2651986ea6c98cc7d58e27af3e5fe6e42a88
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
2017-06-08 10:43:47 +05:30
Linux Build Service Account
6c90c8860c Merge "drm/msm : fix hdmi controller register programming" 2017-06-07 20:58:00 -07:00