Commit graph

592292 commits

Author SHA1 Message Date
Linux Build Service Account
041974cf88 Merge "ARM: dts: msm: Add intermediate voting for DDR in memlat for sdm630" 2017-07-25 15:29:48 -07:00
Linux Build Service Account
139f1cce77 Merge "msm: sensor: Fix to validate the settings size in flash" 2017-07-25 15:29:47 -07:00
Linux Build Service Account
deb3b9d540 Merge "msm: camera: Prevent kernel info leak." 2017-07-25 15:29:46 -07:00
Linux Build Service Account
8682344a22 Merge "ARM: dts: msm: Add pinctrl bindings for msm8998" 2017-07-25 15:29:45 -07:00
Linux Build Service Account
dd657527ba Merge "msm: kgsl: Update total time at right place for accurate GPU busy" 2017-07-25 15:29:44 -07:00
Linux Build Service Account
18c4aab869 Merge "cnss2: Do not deinit MHI right after powerup failure" 2017-07-25 15:29:43 -07:00
Linux Build Service Account
9148aaf7a7 Merge "usb: gadget: Disable USB2 LPM Support" 2017-07-25 15:29:35 -07:00
Linux Build Service Account
dd5d279206 Merge "clk: msm: Fix pll out div programming" 2017-07-25 15:29:32 -07:00
Sameer Thalappil
ddbc617f58 icnss: Set crash state for PDR
For PDR, the crashed state should be set to invoke driver's
PDR/SSR routine rather than the remove routine.

CRs-Fixed: 2082279
Change-Id: I5f5d51c530c563d93eeaf183ee10ac558f5d5a1a
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2017-07-25 13:45:32 -07:00
Prasanth Kamuju
db6ebef1cb ARM: dts: msm: Add intermediate voting for DDR in memlat for sdm630
The current vote mapping is not sufficient for the most of the
gaming usecases on sdm630. Added intermediate voting in the
current mapping.

CRs-Fixed: 2033301
Change-Id: Ie376a3ce46ccfd31a067dfa93967bb211e9df97a
Signed-off-by: Prasanth Kamuju <pkamuju@codeaurora.org>
2017-07-25 04:47:50 -07:00
Govind Singh
54a3d52e88 ath10k: Fix dst CE ring configuration for CE5
CE5 ring is not used in current configuration for
WCN3990 chipset. Set the entries to zero to avoid
unnecessary allocation during driver load.

CRs-Fixed: 2082022
Change-Id: I992f0fb3b5c2bc6d6fd067bb23e67b23a12ffdb7
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-07-25 15:52:22 +05:30
Rahul Sharma
10f1e0528b msm: sensor: Fix for variable being de-referenced without proper check
Pointer from userspace is de-referenced before the command is checked.
This might cause a crash if the command being sent is not a valid command.
Hence changing the de-reference such that the pointer is accessed after
checking if a valid command is sent from the userspace.

Change-Id: Iba2e2da5b5adfa0323f8b7d56445af14acd58f84
CR fixed: 2053970
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
Signed-off-by: Andy Sun <bins@codeaurora.org>
2017-07-25 17:39:36 +08:00
Srikanth Uyyala
b2e834cfe1 msm: ispif: fix the OOB read issue
array 'entries' indexed without any conditional check
fix this by checking index against array size.

Change-Id: Ie41890ca26d4a780d13e65ee78b7a4f51f6183ea
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
2017-07-25 15:07:27 +05:30
Amit Blay
3d5f64fe8f ARM: dts: msm: Add qseecom device node on msm8996 lfv platform
Add qseecom device node in guest VM configuration.
This commit adds the device node for the qseecom driver,
and also the reserved memory region for the QSEECOM ION heap.

Change-Id: Ibdf80d080208b5ab8530a1c40ecbccc7298ae89b
Signed-off-by: Amit Blay <ablay@codeaurora.org>
2017-07-25 12:15:36 +03:00
Rahul Sharma
fa90d7b74f msm: ais: sensor: validating the flash initialization parameters
Copying the flash initialization parameters from userspace memory to
kernel memory and in turn checking for the validity of the flash
initialization parameters pointer sent from userspace

Change-Id: I9ecd0a5d320a68ef23fb8dd0d4eaab7f7da5f729
CR fixed: 2059812
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
Signed-off-by: Andy Sun <bins@codeaurora.org>
2017-07-25 16:57:48 +08:00
Amit Blay
3d4f53fccc misc: qseecom: Support qseecom deferred probing
During qseecom driver probing, the ION driver is invoked.
This commit supports the case where the ION driver still hasn't
probed. In that case, the qseecom probing will be deferred, and
retried at a later stage.

Change-Id: Ic780e8fa1d48a9f5b8b98773c034b280475f5fd0
Signed-off-by: Amit Blay <ablay@codeaurora.org>
2017-07-25 00:42:09 -07:00
Linux Build Service Account
a37c10a168 Merge "msm: mdss: sink mode needs to be read from EDID" 2017-07-25 00:36:02 -07:00
Linux Build Service Account
5fd7f75152 Merge "msm: mdss: hdcp2p2: fix check for sink support for HDCP 2.x" 2017-07-25 00:36:01 -07:00
Linux Build Service Account
223b0e823b Merge "msm: mdss: dp: do not program audio registers when DP core is off" 2017-07-25 00:35:58 -07:00
Linux Build Service Account
61edb88454 Merge "Revert "msm: sde: rotator: Enable traffic shaper for 4k@60fps layer"" 2017-07-25 00:35:57 -07:00
Linux Build Service Account
f92449559c Merge "wil6210: send uevent when creating sysfs files" 2017-07-25 00:35:56 -07:00
Linux Build Service Account
d4c5d4c9f0 Merge "esoc: Fix irq unbalance wake disable warning" 2017-07-25 00:35:55 -07:00
Linux Build Service Account
ba7b97eed0 Merge "ASoC: msm: mixer control queue handling in sink stream" 2017-07-25 00:35:46 -07:00
Linux Build Service Account
c4e3783d9c Merge "ASoC: msm: Add FE dai for MultiMedia21 for ASM Loopback" 2017-07-25 00:35:45 -07:00
Linux Build Service Account
64acc911d1 Merge "ASoC: msm: qdsp6v2: Add MultiMedia21 capture and routing" 2017-07-25 00:35:44 -07:00
Linux Build Service Account
863ccc545e Merge "USB: policy_engine: Enable VBUS after VCONN before PE_SRC_Startup" 2017-07-25 00:35:43 -07:00
Linux Build Service Account
3b3a95fafe Merge "soc: qcom: watchdog_v2: update last_pet variable during resume" 2017-07-25 00:35:42 -07:00
Linux Build Service Account
2f6ffceff8 Merge "usb: dwc3: gadget: don't send extra ZLP" 2017-07-25 00:35:41 -07:00
Linux Build Service Account
43a6d43b54 Merge "usb: dwc3: gadget: handle request->zero" 2017-07-25 00:35:40 -07:00
Linux Build Service Account
48f499115e Merge "msm: ais: cpp changes to validate ioctl input" 2017-07-25 00:35:39 -07:00
Linux Build Service Account
6e7835375e Merge "power: smb138x-charger: set buck freq to 700kHz in slave mode" 2017-07-25 00:35:38 -07:00
Linux Build Service Account
1cb02a84f9 Merge "vfs: Add support to debug umount failures" 2017-07-25 00:35:37 -07:00
Rahul Sharma
86bad2f4c7 msm: sensor: Fix to validate the settings size in flash
The size of the settings, copied from userspace, is directly checked
in msm_cci_data_queue with CCI_I2C_MAX_WRITE. This might cause
out of bound access in function msm_cci_data_queue as the max size is
MAX_I2C_REG_SET. Hence adding check on the size in flash driver itself.

Change-Id: Iaf8b62815282386af58d1b111876cc80411385a0
CR fixed: 2062894
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
Signed-off-by: Andy Sun <bins@codeaurora.org>
2017-07-25 14:49:16 +08:00
Guchun Chen
1faafb0d7c ARM: dts: msm: add memory region info for early splash feature
on msm8996

These two memory regions are for the memory nodes which early
animation/static display will visit. Both are needed to be
processed in kernel handoff sequence.

Change-Id: I36a9b3dcc6b905af4bb8383cfbd1555e8e9bd417
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
2017-07-25 13:47:16 +08:00
Guchun Chen
2170450d8b msm: sde: add early display handoff feature
When enabling animation/static splash in LK, drm/kms driver needs
to involve handoff code to support smooth transition. In display
driver's probe, it will do following items:
1. Check the status in LK for early splash.
2. Add data bus bandwidth voting in function sde_splash_init.
2. Handle SMMU mapping issue to avoid SMMU fault problem.
3. Bypass hardware reset to avoid glitch.

And after user's space is up, when first commit's vblank comes,
it will call functions to:
1. Tell LK to stop static/animation display and to exit.
2. Set early_domain_map_attr to 1 to enable stage 1 translation in
   iommu driver.
3. Check the property of commit.If it's for HDMI, release HDMI
resource. If for DSI, release DSI resource.
4. Recycle the memory to be available to system.
5. Withdraw the bus bandwidth voting.

Change-Id: If425f044e2c40301eed57375a33a26ec1970abd5
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
2017-07-25 13:39:12 +08:00
Trishansh Bhardwaj
7df26d6be3 msm: camera: Prevent kernel info leak.
Print offset instead of address.

Change-Id: I34c20397398d12b2b2e25fecd3b87ebad6906b62
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2017-07-24 22:32:03 -07:00
Jordan Crouse
3beb8eb467 drm/msm: Turn off hardware clock gating before reading A5XX registers
On A5XX GPU hardware clock gating needs to be turned off before
reading certain GPU registers via AHB. Turn off HWCG before calling
adreno_show() to safely dump all the registers without a system hang.

Change-Id: Ic0dedbad550ab5d414cea7837672e586a7acd370
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-07-24 13:01:14 -06:00
Jordan Crouse
a0c5da88c9 drm/msm: Remember the state of A5XX hardware clock gating
Remember if the A5XX hardware clock gating is currently
enabled or disabled to avoid inadvertently enabling it.

Change-Id: Ic0dedbada3734a257ac966c041d06695f3521ad4
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-07-24 13:01:13 -06:00
Jordan Crouse
74910dd6a2 drm/msm: Keep the power on throughout the entire ->show() operation
Enabling and disabling the power at various points in the ->show()
call flow may have detrimental effects. For all targets make sure
power is on before reading any register and leave it on until we are
all done.

Change-Id: Ic0dedbad4d37a11634174105fc3ee6fe3713a143
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-07-24 13:01:13 -06:00
Jordan Crouse
8eac9a50f0 drm/msm: Check value of active_cnt in a5xx power functions
The generic msm_gpu_pm_resume/msm_gpu_pm_suspend functions have
built-in reference counting but the a5xx specific functions
are doing unconditional a5xx specific setup / teardown that
would behave very badly if they were not accompanied by an
actual power up / power down.

Change-Id: Ic0dedbad549c4ea9a5c68b0ca43eb98e0449d54b
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-07-24 13:01:12 -06:00
Prasad Sodagudi
f866a8c956 ARM: dts: msm: Add pinctrl bindings for msm8998
Add pinctrl binding for msm8998 SoC.

Change-Id: I22642c5dc38fcc289912cb327c1d0f95a8cf61e8
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-07-24 11:47:07 -07:00
Yue Ma
10afc332b5 cnss2: Do not deinit MHI right after powerup failure
Immediately deinit MHI after powerup failure will clear all the
MHI context so it won't be able to enter RDDM state to collect
firmware RAM dump. Leave the cleanup to SSR shutdown routine.

Change-Id: Ibbbe3ffe3c471f69dd4fc89d7cfaf57f1f899a92
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-07-24 09:45:36 -07:00
Linux Build Service Account
26bb59b7f4 Merge "power: smb-lib: Move to SW based step-charging" 2017-07-24 07:28:57 -07:00
Linux Build Service Account
95d361d6da Merge "ath10k: Add peer delete resp event processing" 2017-07-24 07:28:56 -07:00
Sunil Khatri
5b1f525950 msm: kgsl: Fix the syncpoint_fence trace
We should have a corresponding syncpoint_fence trace
for every syncpoint_fence_expire trace. In case the
fence is already signaled then make sure to have
syncpoint_fence trace before syncpoint_fence_expire
trace.

Also take an extra refcount for fence which will make
sure that the fence pointer is valid in the trace even
if the fence is signaled.

Change-Id: I2fd8f91c800f89a4a64813a6908eaa0445cf548b
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
2017-07-24 15:36:48 +05:30
Vijay kumar Tumati
54c5eaaaf9 msm: camera: Add support for TOF sensor on msm8998 QVR
Necessary documentation and driver changes for few
custom GPIOs to support depth sensor.

Change-Id: Id545a25b31e29a3f017acc1a65ad00250da72ca6
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
2017-07-24 02:42:22 -07:00
Sarada Prasanna Garnayak
d8bfab393a wcnss: fix the potential buffer flow issue in firmware setup
Add the check against negative or invalid firmware size passed
by the userspace thread in firmware setup sysfs write operation.
Update the datatype of the variable which holds the firmware size
passed by userspace thread during firmware setup and WLAN calibration
data update process.

CRs-Fixed: 2072966
Change-Id: I8c84ad0d1b0a5f44a39c9c5b228734b0f693e8dd
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-07-24 00:04:54 -07:00
Jayant Shekhar
773b7b1613 msm: mdss: Fix race condition during mdp dump
In mdp debugfs, pipe, mixer, buffers and ctl information
is dumped. While dumping pipe buffer information using
pipe's buffer list, acquire list lock mutex. This is
done to prevent crash if at the same time buffer is freed
in commit thread.

Change-Id: Ibd26cc1484fb08ae7d0852f405100f6bbfa707de
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
2017-07-24 11:14:43 +05:30
Arun KS
51a7468ba0 esoc: Fix irq unbalance wake disable warning
Power management irq wakeup mode is by default disabled.
Calling irq_set_irq_wake() on a disabled irq causes warning.
Remove irq_set_irq_wake() function from mdm_enable/disable_irqs
functions and set it once in probe.

Change-Id: Ib7f49ae101e6dc04790649d408c1722df8da8bd2
Signed-off-by: Arun KS <arunks@codeaurora.org>
2017-07-23 21:39:04 -07:00
Linux Build Service Account
cffa5f76da Merge "msm: isp: fix the invalid type conversion" 2017-07-23 17:32:52 -07:00