Commit graph

590827 commits

Author SHA1 Message Date
Linux Build Service Account
92ad29f0c1 Merge "scsi: ufs: fix unclocked register access" 2017-06-09 02:45:14 -07:00
Zhaoyang Liu
39a8bb4fad defconfig: add cfg80211 internal regdb suuport
Enable CFG80211_INTERNAL_REGDB to support WiFi 5G channels.

Change-Id: I7d53d2a09c30173d121368ec2e3584217ddc5093
Signed-off-by: Zhaoyang Liu <zhaoyang@codeaurora.org>
2017-06-09 01:33:57 -07:00
Tony Truong
df92ddf7ad msm: pcie: do not set irq chip data when using QGIC MSI
When using QGIC MSI, the MSI controller is GIC not PCIe host
driver. Only set irq chip data if PCIe host is the MSI
controller.

Change-Id: I0ba9e78127424ab3da4b1f46b3ed3fa5d65d05f6
Signed-off-by: Tony Truong <truong@codeaurora.org>
2017-06-09 01:31:39 -07:00
Hareesh Gundu
cd94470626 msm: kgsl: Log clk set, enable and prepare failure
Handle the clk API return value so that it’s easy
to catch un clocked GPU register access.

Change-Id: I5a1a9a6cbd673394f126bb17b849393268a22b1b
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2017-06-09 13:34:56 +05:30
Fei Zhang
8877695dfc msm📷 correct stats query out of boundary
fix one potential out of boundary query of stats info.

CRs-Fixed: 2041066

Change-Id: I13e4bf8802fcce529f9268c272e4727619d5ad8f
Signed-off-by: Fei Zhang <feizhang@codeaurora.org>
2017-06-09 00:57:25 -07:00
Liangliang Lu
24a72da8c2 ARM: dts: msm: Enable secondary USB port for HDK660
Enable secondary USB port for HDK660 platform which use
host only mode.

Remove TCSR_QUSB2_PHY_CLAMP_DIG_N_1P8 resource entry for SDM660
which is not required to set now during disconnect as writing to this
register causes USB3.0 port and USB2.0 ports working independently.

Change-Id: I936a4012c30e0cd84144b12e34fb780cada541ae
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
2017-06-09 00:43:35 -07:00
Rama Krishna Phani A
d7c4b6867a ARM: dts: msm: Disable MHI node for msm8996
Mhi node needs additional information for driver
probe to get success. This generic node is not
required and hence disable unwanted dtsi node for
msm8996.

Change-Id: I4dffd3d668ac065fc800e5e7d3b52fdf2733e03f
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2017-06-09 12:27:02 +05:30
Rama Krishna Phani A
0e4399bcb0 msm: pcie: Fix for MDM enumeration issue
Add 500ms before MDM enumeration, this delay is needed for
link establishment between switch and MDM.

Change-Id: I32c4a4f9ef68b7672465ced0401fbf6dc0db0002
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2017-06-09 12:16:14 +05:30
Ajay Agarwal
3dfaffeea9 usb: gadget: Bind android devices for all UDC gadgets
For targets with multiple UDCs having DRD feature, two UDCs
may be in peripheral mode. In that case, create and bind
android device corresponding to each gadget as and when
mkdir gadget is run. Keep global structure android_device as
android0 (or g1's device) for ease of use by f_midi and
f_audio_source.

Change-Id: Idae6f6d0d8811f27e836f5f6399395a15fbf3c2f
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2017-06-09 12:01:59 +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
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
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
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