Commit graph

568873 commits

Author SHA1 Message Date
Lokesh Batra
10a10539d0 ARM: dts: msm: Add GPU properties for Cobalt
Add device specific GPU properties for Cobalt.
Add GPU DCVS and bus DCVS plan

CR-fixed: 973565
Change-Id: I6c51be7eeb50c41d4cfa9f9548ebd48888ee1ac5
Signed-off-by: Lokesh Batra <lbatra@codeaurora.org>
Signed-off-by: George Shen <sqiao@codeaurora.org>
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-03-23 21:21:03 -07:00
Mayank Rana
e3020f3887 xhci-hub: Handle error condition with xhci_stop_device
xhci_stop_device() is calling xhci_queue_stop_endpoint() multiple time
and doesn't check return value. xhci_queue_stop_endpoint() can return
error if xhci is already halted or not able to queue command.
xhci_stop_device() waits for stop command completion using
wait_for_completion which wouldn't be interrupted or completed if
queueing of command fails. It results into possible deadlock condition
where usb_disconnect() waits for this udev->lock which is already
acquired by caller of xhci_stop_device() which is set_port_feature().

Fix this issue by handling error condition and making sure that
xhci_stop_device() doesn't wait if queueing of command is failed.

Change-Id: Ica4db17afcd39a7e89fcf985f41760efd2756653
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-03-23 21:21:02 -07:00
Subbaraman Narayanamurthy
2b72760a0a ARM: dts: msm: update regulator configurations for 8996AU CDP
As per the hardware documentation, update the voltage regulator
configurations needed for 8996AU CDP. This overrides the settings
done in msm8996-regulator.dtsi.

CRs-Fixed: 978343
Change-Id: I250e5c6e7f6d80ab1415b873c9ed6e405aae0c4c
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-03-23 21:21:02 -07:00
Subbaraman Narayanamurthy
a57fad4b40 ARM: dts: msm: update configurations of gfx_cpr regulator for 8996AU CDP
Halo HL7509 external buck converter powers VDD_GFX voltage rail
on 8996 automotive CDP. Specify the necessary configuration for
it.

Disable closed-loop CPR operation for graphics CPR controller
until it is verified with this external buck configuration.

CRs-Fixed: 978343
Change-Id: I7d9bdce4c0b381942c6201f80b0970cad8d82ab5
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-03-23 21:21:01 -07:00
Subbaraman Narayanamurthy
cacf3e7d2c ARM: dts: msm: add hl7509 regulator device to msm8996
Halo hl7509 buck converter will be powering the VDD_GFX voltage
rail of 8996 automotive platforms. HL7509 requires an enable gpio
to turn on the external buck. Support it through a fixed
regulator.

Add them to the list of regulators for msm8996. Keep them
disabled by default so that they can be enabled in board specific
files.

CRs-Fixed: 978343
Change-Id: Ib8006e640206a92ac6f227a4a180efbe7d15026f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-03-23 21:21:00 -07:00
Vidyakumar Athota
a15e630662 ASoC: msm: Add support to query speaker parameters
Add SET and GET parameter APIs to query speaker
parameters in feedback speaker protection FTM mode.

CRs-Fixed: 974621
Change-Id: I1a51e5033d7836c0c996621593cd2f4dd6982dcd
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-03-23 21:20:59 -07:00
Gopikrishnaiah Anandan
41a12ff0ed mdss: msm: Update dither driver interface
Post processing driver clients can program the dither table in mdp.
If length of the dither table is set to 0, driver will program the
default table. If driver client would like to program the table it needs
to update the length field as per mdp hardware version.

CRs-fixed: 983164
Change-Id: I5e6aaa3d9376884e5ea1fe153cdf2798e3a52d1e
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
2016-03-23 21:20:58 -07:00
Tatenda Chipeperekwa
7833d2e68d msm: mdss: hdmi: add support for CEC suspend and resume events
Add support for CEC commands to suspend and resume the device.
The HDMI core must be kept on when the CEC wakeup feature is
enabled and the device is going into suspend state. Furthermore,
interrupts must be enabled in this state to capture CEC commands.
This allows the device to be resumed later on via CEC wakeup commands.

Change-Id: Ie6fcbc666e4f40335ab8faaa969d4b03aa83e17c
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-03-23 21:20:57 -07:00
Padmanabhan Komanduru
87f34e2e55 clk: msm: mdss: update the procedure for storing DSI PLL codes
In the current implementation, the DSI PLL codes are copied from
a CMA memory which has a no-map attribute. Update the logic by
reading the pre-calibrated DSI PLL codes from physical memory
which is re-mapped to virtual memory allocated in kernel using
ioremap_page_range. Once the DSI PLL codes are stored, free the
reserved CMA memory back to kernel.

Change-Id: Iaa0bbd600dd1a18497cd4dfd7830a9bf88ab0ead
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2016-03-23 21:20:57 -07:00
Abhinav Kumar
560e95724f msm: mdss: dsi: ensure clocks are off when setting their source
When DSI panel in unblanked, the driver configures the sources for all
the DSI branch clocks based on the current HW configuration. This
assumes that the clocks would be off when the panel is unblanked. This
may not be true when transitioning to ON state from any of the panel low
power states (LP1 or LP2). This can lead to warnings when trying to set
the clock source while the clock is enabled. Fix this by ensuring that
the clock source is configured only if the panel is not on.

Change-Id: I97f40eaedad203c5aaa0c645105bea2ff962e81d
CRs-Fixed: 975819
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-03-23 21:20:56 -07:00
Veera Sundaram Sankaran
5521dbfb90 msm: mdss: dsi: add xlog for BTA DONE and few error messages
Add xlog entry when BTA DONE interrupt is received. And add
proper error messages before panic in few places, to make it
easy to identify the reason and place of the crash.

Change-Id: Ie9e24d2caeff12601058ea3c76af4e3dca0cd09c
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-03-23 21:20:55 -07:00
Neema Shetty
cc26218f26 ASoC: wcd9335: Add mixer controls for RX INTPn_2 HPF cut-off frequency
Added mixer controls for HPF cut-off frequency on the RX interpolator
mix-in paths.

CRs-fixed: 963405
Change-Id: I4ca4a554c0a83d4053301ca5dd2afb8b09fa5194
Signed-off-by: Neema Shetty <nshetty@codeaurora.org>
2016-03-23 21:20:54 -07:00
Phani Kumar Uppalapati
e5998b6308 drivers: mfd: Move codec reset gpio config to early boot
Codec reset gpio configuration needs to be updated
before slimbus master component is initialized otherwise
codec cannot be enumerated on the bus. Add a new platform
device driver to update the codec reset gpio configuration
to valid state (output, drive-strength) before slimbus
is initialized.

CRs-Fixed: 968161
Change-Id: I7227212e6b846d58196718255aa4b0923352d120
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-03-23 21:20:53 -07:00
Odelu Kukatla
6320908170 clk: msm: clock-local: Add support to set the post_div for debug mux
Update the clock framework to support the setting of post_div for
debug mux so as to divide the clock by post_div.

CRs-Fixed: 977413
Change-Id: I7299bdb0953dcf65fbf2a38b7578e2e54446c0d7
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2016-03-23 21:20:52 -07:00
Ray Zhang
290a09f4a3 ARM: dts: msm: update hx8394f panel sequence to fix corruption
There is a line corruption on top of hx8394f panel, which is a
specific issue of hx8394f panel configuration. Update hx8394f
init sequence to fix this issue.

Change-Id: If28cc8dc0c7fa9d979ada92685c1abb6c93ccccb
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2016-03-23 21:20:51 -07:00
Yue Ma
e073cd538d cnss_prealloc: Dump the call stack if there is no memory available
Dump the call stack if there is no memory available from the prealloc
pool in order to get the source of the memory allocation.

Change-Id: I0b523e82638410ea679f1d9d3f4bb56703ed9100
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2016-03-23 21:20:51 -07:00
Suman Tatiraju
4457a963d5 msm: kgsl: Specify the initial pwrlevel for each speed bin
Some platforms support multiple GPU clock plans based on the speed
bin in the efuse. Specify the wake up frequency of each speed bin
individually to wake the gpu at the correct powerlevel.

CRs-Fixed: 967494
Change-Id: I9890b8a710d7055c30f9ae7612b092af8fa8a9f5
Signed-off-by: Suman Tatiraju <sumant@codeaurora.org>
2016-03-23 21:20:50 -07:00
Oleg Perelet
06308f4fe8 msm: kgsl: Disable all HW clockgating during snapshot
While producing snapshot disable all HWCG branches, not only top level.

CRs-Fixed: 978122
Change-Id: I4b01224a0ba46c276115a284a0da6207c7968f72
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-03-23 21:20:49 -07:00
Mahesh Sivasubramanian
f0fc4d5eda msm: thermal: Add range checking for cluster_id
The cluster id flag is passed in from the userspace through ioctl
interface. Ensure correctness of cluster id to avoid out of bounds array
accesses.

CRS-fixed: 977508
Change-Id: I778b962d347b90488b983a15087b13e90ad06688
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2016-03-23 21:20:48 -07:00
Oleg Perelet
e70b298fa4 msm: kgsl: Add run time hardware clockgating control
Create sysfs nodes to enable/disable hardware clock gating.

CRs-Fixed: 973565
Change-Id: If5f0215e0d7f3d7be1a0cf00fbd8789c6adf2f0f
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-03-23 21:20:47 -07:00
Sarada Prasanna Garnayak
2456b24f24 net: cnss: refactor PM QoS request wrapper API
Make PM QoS request API generic to pass the type of latency
requirement needed by the client instead of hard coding
latency type. Add latency type as a function parameter.

CRs-Fixed: 972761
Change-Id: Ic912148d2068fe8a758b6a4b3be570ccf870f03a
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-03-23 21:20:46 -07:00
Zhen Kong
f6b4ea8dca qseecom: release ION memory if qseecom failed to unload app
To avoid memory leakage, make change to release ION memory if qseecom
failed to unload TZ app, which is allocated when starting app.

CRs-Fixed: 977073
Change-Id: Ic4c9a7d7a118ff5026ce6ce7769a4c053906ed2d
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-03-23 21:20:46 -07:00
David Collins
d3b5ab2373 ARM: dts: msm: correct PM8994 L18 pin control regulator name for msm8996
Change d743524091501ae60c76b272c45048a17144cc22 ("ARM: dts: msm:
add PM8994 LDO 18 pin control regulator for msm8996") added a new
rpm-smd-regulator device for the pin control version of the
PM8994 LDO 18 regulator.  Unfortunately, it specified the same
device node name as used for the original LDO 18 regulator.  This
had the effect of removing the original LDO 18 regulator and
switching all of its consumers to the pin control version.

Correct this by changing the name of the LDO 18 pin control
device to regulator-l18-pin-ctrl.

Change-Id: I2311b7c54afa98365e497598f7fb4be787141860
CRs-Fixed: 978138
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-03-23 21:20:45 -07:00
Sudheer Papothi
7f5348933a soundwire: Avoid runtime suspend after device path bringup
There is a possible race condition that runtime suspend is being
called after device path bringup. To avoid this race condition,
add a mutex lock during device path bringup to serialize runtime
suspend and resume.

CRs-Fixed: 967442
Change-Id: I268a25b05799c66fc019e19e46939286e54fb514
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-03-23 21:20:44 -07:00
Subhash Jadavani
a654cfb6cf ARM: dts: msm: update SD card detect GPIO number for 8996 auto CDP
8996 automotive CDP is using different SD card detect GPIO than normal
CDP, update the GPIO number accordingly.

CRs-fixed: 977653
Change-Id: I1b9365e305636f80905604aa9d6cf0a37e815924
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-03-23 21:20:43 -07:00
Mayank Rana
5b12e3c94f ARM: dts: msm: Update SNOC vote to allow SVS on MSM8996
With USB device mode, USB driver votes for nominal SNOC bus frequency
which prevents system going into SVS. This change reduces SNOC vote
from 120 MHz to 100 MHz to allow SVS.

CRs-Fixed: 975648
Change-Id: I13492cddd8af3f9dea4244e24485556c0efac29e
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-03-23 21:20:42 -07:00
Suman Tatiraju
7cb32a4085 msm: kgsl: Fix race condition in adreno_spin_idle()
adreno_spin_idle spins for a timeout checking for gpu to idle.
Sometimes due to race conditions the timeout can occur before the
loop is executed. Change the logic to a do-while loop and add an
extra idle check after the timeout before returning failure.

CRs-Fixed: 978122
Change-Id: Idb92a0180dd8cc3e662b1ccf44d69e4bbafb29f1
Signed-off-by: Suman Tatiraju <sumant@codeaurora.org>
2016-03-23 21:20:41 -07:00
Sarada Prasanna Garnayak
8a8cf1caab net: cnss_prealloc: Add memory for high latency SDIO interface
wlan driver transport layer pdev handler needs 128kb pre allocated
memory in a single block memory allocation for transmit/receive
descriptor initialization in wlan startup for the wlan module with
high latency(SDIO) based hardware interface.

CRs-Fixed: 978073
Change-Id: I0dbe047a7b64e96bf32470702d1b3e3088bffcf7
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-03-23 21:20:40 -07:00
Sivanesan Rajapupathi
112e4366ae crypto: msm: qcrypto: Fix hash crash if not last issue
If an ahash request is not final, the result variable of ahash_request
may not exist. In the completion callback function, then, do not
copy the digest result to result variable of ahash_request, if it not
final.  Otherwise, crash may happen.

Change-Id: I169218e8658500539b19408eca3afeabcaa4816b
Acked-by: Che-Min Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: Sivanesan Rajapupathi <srajap@codeaurora.org>
2016-03-23 21:20:40 -07:00
Shiraz Hashim
8cda113324 drivers: dma-contiguous: remove cma regions from kmemleak scan
cma regions can be allocated for secure use cases where
the virtual mapping is removed. kmemleak scan can try to
scan through this mapping causing mmu faults. Hence free
cma regions from kmemleak scan.

Change-Id: I2cc66423ec9ec539905cc8d07bbc40fa43e695bd
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2016-03-23 21:20:39 -07:00
Maulik Shah
649bc1242c cpuidle: lpm-levels: Log cpu enter & exit events into lpm debug
Add cpu enter and cpu exit log into lpm debug for 32bit.

Change-Id: I88973dbc4f9ffc08f8201059a82a3133fa0db330
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2016-03-23 21:20:38 -07:00
Bhalchandra Gajare
72f0f4b937 ASoC: wcd_cpe_services: Make the worker thread standalone
The worker thread can either be stopped through kthread_stop or could
return from the function on some conditions. Since thread has two exit
points, this is causing a race condition where kthread_stop indefinitely
waits for the thread to exit. Make the thread standalone and always call
do_exit itself to exit instead of stopping it through kthread_stop.

CRs-fixed: 972943
Change-Id: If95cbd6ee895d566887453e98421d1514147441b
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-03-23 21:20:37 -07:00
Vinu Deokaran
90c2030c5b ARM: dts: msm: Add DSI support for MSM8996 AU CDP board
Add split DSI display support for MSM8996 AU CDP board. It's
using NT25597 dual DSI video panel.

CRs-fixed: 977619
Change-Id: Ibeee5fa903c152c8242a2b27be3d9df9670b762e
Signed-off-by: Vinu Deokaran <vinud@codeaurora.org>
2016-03-23 21:20:36 -07:00
Jordan Crouse
20b3305fda ARM: dts: msm: Set the high bank bit value for GPU targets
Set the recommended high bit bank value for all of the various GPUs
that will be programmed into registers by the kernel and/or the
user mode driver.

CRs-Fixed: 970272
Change-Id: Ic0dedbadcd02dd37afce0807ac1118fe7bf10b5d
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2016-03-23 21:20:35 -07:00
Jordan Crouse
5c39fe697f msm: kgsl: Set the DDR high bank bit if specified in the device tree
On 5XX targets we need to program the bit of the highest DDR bank
into a number of registers, one of which is protected which would
cause problems if the user mode driver tried to write to it.

Specify the high bank bit in the device tree files, set the
problematic register in the kernel and then pass the value up to
the user mode driver as a property and let them program the
other registers.  This makes the device tree the authoratative
source of the high bit value which is exactly how it should be.

If the value isn't specified by the device tree for whatever reason
return an error for the property request - that will give the UMD
a clue that the value wasn't specified and they should just set a
default.

CRs-Fixed: 970272
Change-Id: Ic0dedbad830321329b74da7fa3e172fdaf765c4d
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2016-03-23 21:20:35 -07:00
Skylar Chang
8cd1ff747d msm: gsi: construct TRE before submit
For performance improvement avoid multiple writes to channel ring
which is a dma coherent memory. Instead, construct the TRE
(Transfer Ring Element) in local memory and then copy it to the
ring itself.

Change-Id: I36bfae306be2a90c8679d416397a435e638b54eb
CRs-Fixed: 977590
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-03-23 21:20:34 -07:00
AnilKumar Chimata
2f0b2a8d5f qseecom: Fix stack out of bounds issue
While copying the request buffer to temporary buffer large size
of request buffer is copied which leads to accessing stack out
of its size.

<3>[   24.265116] ==================================================================
<3>[   24.271333] BUG: KASAN: stack-out-of-bounds in memcpy+0x28/0x54 at addr ffffffc05890b744
<3>[   24.279388] Read of size 4096 by task vold/362
<0>[   24.283819] page:ffffffba494e3790 count:0 mapcount:0 mapping:          (null) index:0x0
<0>[   24.291800] flags: 0x0()
<1>[   24.294318] page dumped because: kasan: bad access detected
<6>[   24.299884] CPU: 1 PID: 362 Comm: vold Not tainted 3.18.20-g7bb9977 #1
<6>[   24.299895] Hardware name: Qualcomm Technologies, Inc. MSM8937-PMI8950 MTP (DT)
<0>[   24.299904] Call trace:
<6>[   24.302314] [<ffffffc00008c80c>] dump_backtrace+0x0/0x284
<6>[   24.302329] [<ffffffc00008caa0>] show_stack+0x10/0x1c
<6>[   24.302345] [<ffffffc001e7c4ac>] dump_stack+0x74/0xfc
<6>[   24.302362] [<ffffffc0002f8880>] kasan_report+0x3b4/0x504
<6>[   24.302376] [<ffffffc0002f7ae0>] __asan_loadN+0x20/0x14c
<6>[   24.302389] [<ffffffc0002f7fe4>] memcpy+0x24/0x54
<6>[   24.302406] [<ffffffc000bfdf80>] qseecom_scm_call2+0xec0/0x1c94
<6>[   24.302421] [<ffffffc000c00798>] qseecom_scm_call.constprop.41+0x64/0x7c
<6>[   24.302436] [<ffffffc000c0513c>] qseecom_create_key+0x304/0x680
<6>[   24.302450] [<ffffffc000c1084c>] qseecom_ioctl+0x2fb8/0x4944
<6>[   24.302464] [<ffffffc000333f70>] do_vfs_ioctl+0x9c8/0xb0c
<6>[   24.302476] [<ffffffc00033410c>] SyS_ioctl+0x58/0x8c
<3>[   24.302484] Memory state around the buggy address:
<3>[   24.307080]  ffffffc05890b680: f2 f2 f2 f2 00 04 f4 f4 f2 f2 f2 f2 00 00 00 00
<3>[   24.314283]  ffffffc05890b700: 04 f4 f4 f4 f2 f2 f2 f2 00 00 00 00 00 00 00 00
<3>[   24.321488] >ffffffc05890b780: 00 f4 f4 f4 f2 f2 f2 f2 00 00 00 00 00 00 00 00
<3>[   24.328690]                       ^
<3>[   24.332164]  ffffffc05890b800: 00 00 04 f4 f3 f3 f3 f3 00 00 00 00 00 00 00 00
<3>[   24.339369]  ffffffc05890b880: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
<3>[   24.346571] ==================================================================
<4>[   24.353777] Disabling lock debugging due to kernel taint
<3>[   24.533597] QSEECOM: __qseecom_process_incomplete_cmd: fail:resp res= -65,app_id = 0,lstr = 12288
<6>[   24.541522] get_ice_device_from_storage_type: found ice device ffffffc05bd61f80
<3>[   24.545296] ==================================================================
<3>[   24.551503] BUG: KASAN: stack-out-of-bounds in memcpy+0x28/0x54 at addr ffffffc05890b7c4
<3>[   24.559558] Read of size 4096 by task vold/362
<0>[   24.563989] page:ffffffba494e3790 count:0 mapcount:0 mapping:          (null) index:0x0
<0>[   24.571966] flags: 0x0()
<1>[   24.574485] page dumped because: kasan: bad access detected
<6>[   24.580050] CPU: 1 PID: 362 Comm: vold Tainted: G    B          3.18.20-g7bb9977 #1
<6>[   24.580060] Hardware name: Qualcomm Technologies, Inc. MSM8937-PMI8950 MTP (DT)
<0>[   24.580069] Call trace:
<6>[   24.582482] [<ffffffc00008c80c>] dump_backtrace+0x0/0x284
<6>[   24.582497] [<ffffffc00008caa0>] show_stack+0x10/0x1c
<6>[   24.582513] [<ffffffc001e7c4ac>] dump_stack+0x74/0xfc
<6>[   24.582529] [<ffffffc0002f8880>] kasan_report+0x3b4/0x504
<6>[   24.582543] [<ffffffc0002f7ae0>] __asan_loadN+0x20/0x14c
<6>[   24.582556] [<ffffffc0002f7fe4>] memcpy+0x24/0x54
<6>[   24.582574] [<ffffffc000bfe128>] qseecom_scm_call2+0x1068/0x1c94
<6>[   24.582588] [<ffffffc000c00798>] qseecom_scm_call.constprop.41+0x64/0x7c
<6>[   24.582603] [<ffffffc000c04c30>] __qseecom_set_clear_ce_key+0xf4/0x2fc
<6>[   24.582616] [<ffffffc000c05334>] qseecom_create_key+0x4fc/0x680
<6>[   24.582630] [<ffffffc000c1084c>] qseecom_ioctl+0x2fb8/0x4944
<6>[   24.582644] [<ffffffc000333f70>] do_vfs_ioctl+0x9c8/0xb0c
<6>[   24.582656] [<ffffffc00033410c>] SyS_ioctl+0x58/0x8c
<3>[   24.582664] Memory state around the buggy address:
<3>[   24.587250]  ffffffc05890b700: 04 f4 f4 f4 f2 f2 f2 f2 00 00 00 00 00 00 00 00
<3>[   24.594453]  ffffffc05890b780: 00 f4 f4 f4 f2 f2 f2 f2 00 00 00 00 00 00 00 00
<3>[   24.601656] >ffffffc05890b800: 00 00 04 f4 f3 f3 f3 f3 00 00 00 00 00 00 00 00
<3>[   24.608860]                          ^
<3>[   24.612596]  ffffffc05890b880: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
<3>[   24.619802]  ffffffc05890b900: 04 f4 f4 f4 f2 f2 f2 f2 00 f4 f4 f4 f2 f2 f2 f2
<3>[   24.627001] ==================================================================
<6>[   24.799462] get_ice_device_from_storage_type: found ice device ffffffc05bd61f80
<3>[   24.803065] QSEECOM: qseecom_create_key: Set the key successfully

Change-Id: Id683067d29531686dafe94114ba3329f87292923
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2016-03-23 21:20:33 -07:00
Ramesh V
79e5686c6b msm: camera: sof freeze enhancement
Enable CSID IRQ dynamically and add sof recover logic,
in case kernel get sof freeze hints from userspace,will
enable IRQs to monitor the status of moduels,if sof recovers
after 2.5 secs then kernel get MSM_SD_UNNOTIFY_FREEZE to disable
all the IRQs.

CRs-Fixed: 973732
Change-Id: I7aa6dcd60e0858258c40c3d6517e2974e6e2b722
Signed-off-by: Ramesh V <ramev@codeaurora.org>
2016-03-23 21:20:32 -07:00
Mahesh Sivasubramanian
99658ec7e3 cpuidle: Wakeup only cpus for which qos has changed.
The pm_qos framework passes down a mask of cpus for which the qos has
changed.  cpuidle driver uses this info to wakeup only those cpus for the
new qos to take effect. This would prevent waking up cpus for which the qos
values remains unchanged.

Change-Id: Ibb79937674a8f16920c6b8f224a21d2f72a0f9ce
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2016-03-23 21:20:31 -07:00
Anirudh Ghayal
5f4e7073d9 regulator: msm-gfx-ldo: Add LDO initial configuration
Add LDO initial configuration for msmtitanium.

CRs-Fixed: 975536
Change-Id: If3dea4c4422a1b11b4922b95a99c5e2fe3418a26
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2016-03-23 21:20:30 -07:00
Venkatesh Yadav Abbarapu
87c74153a8 msm: socinfo: Add socinfo for wearable platforms
Add chip IDs for apq8009w and msm8909w wearable targets

CRs-Fixed: 977075
Change-Id: If3e3d29d2a6e7fd9046ec60b495282b16087162c
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
Signed-off-by: mohammed thasleem <mthasl@codeaurora.org>
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
2016-03-23 21:20:29 -07:00
Divya Ponnusamy
aab7ab1e09 msm: kgsl: Add disable-busy-time-burst to disable ceiling threshold
Add a devicetree property disable-busy-time-burst to
disable ceiling threshold in the governor. The ceiling threshold
cause busy time burst that switch power level for
large frames based on busy time.

Change-Id: I44f8a51e0aa49bb0b2210703f57874fd5f219c18
Signed-off-by: Divya Ponnusamy <pdivya@codeaurora.org>
2016-03-23 21:20:29 -07:00
Konstantin Dorfman
5466529296 ARM: dts: msm: SD card support for msmcobalt on simulator
This change defines sdhc_2 device tree node, describing SD card slot for
VP (Virtual Platform) msmcobalt model.

Change-Id: I09c1cb034b69a1b806096bd9c3168d985e9cf963
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
2016-03-23 21:20:28 -07:00
Chris Lew
2bb5899311 soc: qcom: ipc_router_glink_xprt: Fix race condition during SSR
There is a race condition when a read is queued and a
subsystem restart occurs before the read can finish. The
read will call read_done on a freed handle. This fix
changes the ss_reset lock to a rwlock and extends the
critical sections in the read and write data functions.

CRs-Fixed: 969026
Change-Id: I7726e4bbea7447ad96df725b50e4eff1ec67607f
Signed-off-by: Chris Lew <clew@codeaurora.org>
2016-03-23 21:20:27 -07:00
Veera Sundaram Sankaran
e1b8e9d34e ARM: dts: msm: add sharp dsc 4k cmd panel support for msm8996
Add sharp 4k dsc cmd mode panel configs and enable it for
msm8996 mtp, cdp and fluid. Add partial update for support
with roi alignment width as 1080 and y-slice as 8,
as per the spec. The panel is also capable of supporting
y-slices 8/16/24/32/48/3840, but width/x-slice cannot be
modified.

CRs-fixed: 974677
Change-Id: I6e7e96178db604f71a16f1f656e38d66d37eca66
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-03-23 21:20:26 -07:00
Veera Sundaram Sankaran
f0a313b925 ARM: dts: msm: fix panel on cmd for sharp 4k dsc video panel
Fix the panel on command for sharp 4k dsc video model panel
according to panel spec. And remove few parameters from the config
file, which are unnecessary for video mode panels.

CRs-fixed: 974677
Change-Id: I92cb0c5a30206b6b788cdfe2b0316e4bf77d1828
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-03-23 21:20:25 -07:00
Deepak Katragadda
96da03ab31 clk: msm: clock-gpu-cobalt: Correct the CRC enable sequence
The GPU GDSCs need to be turned prior to enabling the graphics
clock and programming the CRC registers. Add that support.

CRs-Fixed: 974342
Change-Id: I4f97c10c383f79490c8dc428ef5ffb1040adc18d
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-03-23 21:20:24 -07:00
Jing Zhou
d5d3df187e msm: camera: isp: fix an issue in scratch buffer configuration
When configure the scratch buffer, wrong pingpong bit location is
programmed. So the VFE hardware can still write to the same buffer
which has been diverted to other camera compoment. This cause the image
corruption.

Change-Id: I6d5cfe0c00a237efb3ab3dff87459341736d45a7
Signed-off-by: Jing Zhou <jzhou70@codeaurora.org>
2016-03-23 21:20:24 -07:00
Srinivas Rao L
164cec81a9 PM / QoS: Free the memory allocated during add request
Allocated memory is not getting freed in remove request.
This change is to free the memory allocated to avoid memory
leaks.

Change-Id: I1225d492b7f58f8bda2621ec0bb2bd201d8dee6c
Signed-off-by: Srinivas Rao L <lsrao@codeaurora.org>
2016-03-23 21:20:23 -07:00
Lakshmi Narayana Kalavala
2e83f7a315 ARM: dts: msm: Disable the camera nodes from msmcobalt
The camera drivers for msmcobalt are not ready yet for
presilicon verification, Hence disable them from
the dtsi.

CRs-Fixed: 974351
Change-Id: Icdf65d0aabbac5661a803d2a3d6d04f78071d963
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
2016-03-23 21:20:22 -07:00