Commit graph

590973 commits

Author SHA1 Message Date
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
Linux Build Service Account
0899f88b10 Merge "net: ipc_router: Add dynamic enable/disable wakeup source feature" 2017-06-07 20:57:59 -07:00
Linux Build Service Account
3f35f049e7 Merge "usb: pd: Increment MessageID only on successful TX" 2017-06-07 20:57:54 -07:00
Linux Build Service Account
9b5ee09c39 Merge "mhi: core: Add support for host triggered device ram dump" 2017-06-07 20:57:53 -07:00
Linux Build Service Account
04587e2ca3 Merge "usb: xhci: Free leaked command in case xhci_queue_stop_endpoint fails" 2017-06-07 20:57:51 -07:00
Linux Build Service Account
de6917af67 Merge "msm: mdss: Update msm8998 HDMI PHY sequence for bridge chip" 2017-06-07 20:57:50 -07:00
Linux Build Service Account
f10af35ab9 Merge "msm: mdss: update polarity based on HDMI resolution" 2017-06-07 20:57:49 -07:00
Linux Build Service Account
eaeca093b4 Merge "power: qpnp-fg-gen3: Fix possible integer overflow" 2017-06-07 20:57:48 -07:00
Linux Build Service Account
b420cddf1f Merge "soc: qcom: subsys-pil-tz: Initialize subsys_dev pointer" 2017-06-07 20:57:46 -07:00
Linux Build Service Account
edc5117530 Merge "policy_engine: Add module parameter to start USB stack" 2017-06-07 20:57:45 -07:00
Guchun Chen
a14f22c34c Revert "msm: smmu: add re-route calling for specified iova."
This reverts commit ae94b477af.

This change brings side effect of smmu fault in apq8098 project. It blocks their regression test.

Change-Id: Ia479188eca74ec988026f7d42207435da2f79bfc
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
2017-06-07 20:00:30 -07:00
Jack Pham
c8735c7530 usb: pd: Increment MessageID only on successful TX
According to the PD 2.0 Spec, Section 6.2.1.3, the MessageID
field shall only be incremented upon successful transmission
(meaning GoodCRC was received). Thus, increment the counter
only when pd_phy_write() succeeds.

Change-Id: I73dce5736c473a1f79db9be868442c7941d13c44
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-06-07 15:39:31 -07:00
Linux Build Service Account
8efb4552d1 Merge "msm: mdss: do not print error in case sync_trigger is enabled" 2017-06-07 13:13:41 -07:00