OSDN Git Service
Mayank Rana [Fri, 24 Jun 2016 22:32:07 +0000 (15:32 -0700)]
usb: gadget: f_gsi: Use 16KB buffer with each TRB for MBIM DL
There is limitation when IPA is performing de/aggregation with MBIM
in scatter-gather mode. Hence instead of 2KB buffer use 16KB buffer
(i.e. size of aggregated frame) with each TRB for MBIM DL case.
CRs-Fixed:
1032467
Change-Id: I4f73d30711b5606c2ac88ce9d05a8483d64b665d
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
David Dai [Mon, 27 Jun 2016 23:46:52 +0000 (16:46 -0700)]
ARM: dts: msm: Remove redundant interrupt type flag for msmcobalt
Use existing IRQ flags definitions since devfreq_spdm driver no longer
overrides interrupt type. Interrupt-edge property is no longer used
as an indicator of interrupt type.
Change-Id: Iddf6b1b8a85100bbb3b6ff2d2dda88880b6e64f2
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Hemant Kumar [Fri, 17 Jun 2016 02:14:12 +0000 (19:14 -0700)]
ARM: msmcortex_defconfig: Enable USB audio driver
Enables support for USB audio and USB MIDI devices
connected via the USB bus.
Change-Id: I3fa2168b905b5242894ba985b8c615bfbb10492a
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Subhash Jadavani [Fri, 24 Jun 2016 20:08:34 +0000 (13:08 -0700)]
scsi: ufs-qcom: fix bug with read/modify write of UFS_CFG1
ufs_qcom_print_hw_debug_reg_all() function is having a bug
where it might incorrectly modify undesired bits in UFS_CFG1 register,
this change fixes it.
Change-Id: I2605beeb41f3c319877f48e35723f597f7dfb9da
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Jeykumar Sankaran [Thu, 9 Jun 2016 21:58:43 +0000 (14:58 -0700)]
msm: mdss: Fix fence handling for CWB
Creates a work queue for concurrent writeback to wait and signal
the CWB retire fence on WB done interrupt.
Change-Id: I169e3df1a68616be93377defdc30e3c326aff79f
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Oleg Perelet [Tue, 28 Jun 2016 22:22:30 +0000 (15:22 -0700)]
msm: kgsl: Discard negative CRC throttling cycle readings
Ignore negative CRC throttle cycle readings in corner cases.
Change-Id: Ic237bd0558a4769dc89bfb7e70a287165f842b92
CRs-Fixed: 973565
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
Nicholas Troast [Mon, 6 Jun 2016 21:24:41 +0000 (14:24 -0700)]
ARM: dts: msm: remove remaining stub regulators from msmcobalt
S10A and S13A regulators are not needed since APC voltage rails are
controlled by CPRh.
All of the PM8005 regulators have been defined properly as SPMI
regulators in msm-pm8005.dtsi
CRs-Fixed:
1025447
Change-Id: I2a93ffe3b5ce17a09ce836ef00f40c38678b9796
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
David Dai [Thu, 5 May 2016 00:01:07 +0000 (17:01 -0700)]
ARM: dts: msm: Remove clk reference from virt fab for msmcobalt
Remove bimc_clk references from GNOC as there is no resource associated
with GNOC.
Change-Id: Id038f13305c765336c85444f1064d38a0a61c9a2
Signed-off-by: David Dai <daidavid1@codeaurora.org>
David Dai [Mon, 20 Jun 2016 20:50:59 +0000 (13:50 -0700)]
defconfig: msmcortex: Enable devfreq_spdm
Enable SPDM governer and SCM call through Hypervisor support.
CRs-Fixed:
1025515
Change-Id: I911f84a44229b84491ea5b78e1ed2d8181b2c804
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Andrey Markovytch [Wed, 29 Jun 2016 09:27:24 +0000 (12:27 +0300)]
md: dm-req-crypt: fixed error propagation when ICE is used
When ICE is used and there was an error during endio, the error was
not propagated properly to upper layers, fixed.
Change-Id: I5c428e4a02f7012f95e3a32486920e69b93ea3fc
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
Srinivas Ramana [Tue, 28 Jun 2016 06:32:28 +0000 (12:02 +0530)]
arm: topology: fix the topology reset path during init
init_cpu_topology has a bug where
1. It's referring to out of bounds array.
2. It's not actually resetting topology for each cpu.
Fix this by iterating for each cpu for resetting topology.
Change-Id: I4df03fb4fbe9cb636f135de982e35173b1900ec2
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
Srinivas Ramana [Wed, 1 Jun 2016 06:58:08 +0000 (12:28 +0530)]
arm: qcom: Add support for msmfalcon chipset
Add support in Kconfig for msmfalcon chipset 32-bit platform.
Change-Id: I5509787b16e7837c674203a3a900159f449b14a6
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
Srinivas Ramana [Wed, 1 Jun 2016 06:55:58 +0000 (12:25 +0530)]
msmfalcon: add board files for 32-bit boot
Add board file to support msmfalcon 32-bit boot.
Change-Id: I4a7c9fd54983e58e5fdd73ae080702018a813cd7
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
Amir Samuelov [Thu, 30 Jun 2016 08:14:17 +0000 (11:14 +0300)]
spcom: increase timeout for TX-Done notification
Normally, it takes few msec for SPSS to responde with ACK for TX data.
However, due to SPSS HW issue, the SPSS might disable interrupts
for a very long time, and not ACK for the data.
Change-Id: I88a0b7a0637fb62d62ac760e9a8a946a5888d406
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Shiv Maliyappanahalli [Thu, 30 Jun 2016 18:39:57 +0000 (11:39 -0700)]
defconfig: msmcortex: Enable CONFIG_MSM_ADSP_LOADER
Enable CONFIG_MSM_ADSP_LOADER in order to enable
ADSP PIL loading during bootup.
Change-Id: I0d8a15283ec43bdf0818c4d9cbe92ac4474cb833
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
Fred Fettinger [Fri, 11 Jan 2013 20:20:40 +0000 (14:20 -0600)]
base: sync: increase size of sync_timeline name
This makes it possible for drivers to use a longer, more descriptive
name for a sync_timeline, which improves the readability of the
sync dump in debugfs.
Change-Id: Ifb83aebf6fd820ebb26aca2ff230ac1116e65ce9
Git-commit:
cb63e61b80ec905f01cbe1c21081aa0d1fef082d
Git-repo: https://www.codeaurora.org/gitweb/quic/la/?p=kernel/msm.git
Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com>
Signed-off-by: Harsh Vardhan Dwivedi <hdwivedi@codeaurora.org>
Signed-off-by: Omprakash Dhyade <odhyade@codeaurora.org>
Kyle Yan [Tue, 28 Jun 2016 23:35:12 +0000 (16:35 -0700)]
Revert "arm64: defconfig: msm: enable MODULE_SIG for msm chipsets"
This reverts commit
931a5101dfa4 ("arm64: defconfig: msm: enable
MODULE_SIG for msm chipsets").
Compilation of Android/DLKMs failing with below error:
Signing kernel module: bus_timeout_mod.ko
Can't open perl script "./kernel/msm-4.4/scripts/sign-file": \
No such file or directory
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
CRs-Fixed:
1035494
Change-Id: Iddc618a2467b8ba72a8466c2678b3195ef8fa1c7
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
David Dai [Tue, 28 Jun 2016 02:16:24 +0000 (19:16 -0700)]
soc: qcom: msm_bus: Remove panic for no aggregation scheme
Remove default panic error when no aggregation scheme is selected,
this is to support virtual fabrics that have no clocks or bandwidth
to aggregate.
Change-Id: I4fd8977845dd123890afc5076cd55499992e488e
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Mitchel Humpherys [Tue, 28 Jun 2016 18:55:00 +0000 (11:55 -0700)]
iommu: dma-mapping-fast: Remove unused #define
There's a stray #define left over from initial development of the fast
map feature. Rip it out.
CRs-Fixed:
1035430
Change-Id: Iae0649dc3fe878f948ad872803317eb4bf7ec1c6
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
David Dai [Wed, 25 May 2016 21:37:00 +0000 (14:37 -0700)]
dev_freq: devfreq_spdm: make cci_clk optional indicator
Enable dev_freq SPDM support in order to increase BIMC
vote based on bus rejection rate. Make cci_clk an optional
property as it's not always a relevant indicator of cpu performance.
CRs-Fixed:
1025515
Change-Id: I713cc396c8d563735981547e0dc18a63f6f15180
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Vinayak Menon [Thu, 25 Feb 2016 13:40:19 +0000 (19:10 +0530)]
mm: ksm: avoid trageted reclaim of ksm pages
Per Process Reclaim tries to avoid reclaiming of
shared pages by passing the target VMA. For anon and
file pages this works, but not for KSM. This is because
vma_address(page) will not return the intended value
resulting in crashes like this
[From 3.10 kernel]
kernel BUG at kernel/mm/rmap.c:534!
(vma_address+0x28/0x2c) from [<
c01eff94>] (try_to_unmap_ksm+0x4c/0x170)
(try_to_unmap_ksm+0x4c/0x170) from [<
c01e4834>] (try_to_unmap+0x34/0xa4)
(try_to_unmap+0x34/0xa4) from [<
c01c8e64>] (shrink_page_list+0x3f0/0xa34)
(shrink_page_list+0x3f0/0xa34) from [<
c01c9688>] (reclaim_pages_from_list)
(reclaim_pages_from_list+0xb0/0x100) from [<
c0240ed0>] (reclaim_pte_range)
(reclaim_pte_range+0xf0/0x164) from [<
c01e79a4>] (walk_page_range+0x1d0)
(walk_page_range+0x1d0/0x260) from [<
c0241ccc>] (reclaim_task_anon+0xb0)
(reclaim_task_anon+0xb0/0x114) from [<
c01f8d98>] (swap_fn+0x220/0x460)
(swap_fn+0x220/0x460) from [<
c0133a38>] (process_one_work+0x294/0x430)
(process_one_work+0x294/0x430) from [<
c0134720>] (worker_thread)
(worker_thread+0x224/0x358) from [<
c01390d4>] (kthread+0xa0/0xac)
(kthread+0xa0/0xac) from [<
c0105f38>] (ret_from_fork+0x14/0x3c)
CRs-Fixed: 984947
Change-Id: I5208fb68372f7af72868e39399bf545fb7b774f3
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Shiraz Hashim [Thu, 11 Jun 2015 05:11:54 +0000 (10:41 +0530)]
mm: process_reclaim: use unbounded cpu workqueue
It is observed that in some cases process reclaim work
doesn't get chance to run due to presence of RT scheduled
on the same CPU. This is leading to user space freeze and
a live-lock situation where RT itself is looping for a
page to be present in swap cache while process reclaim
work is unable to schedule and do the same.
Schedule process reclaim work on unbounded cpu workqueue
so that the work has opportunity to be scheduled on to
other cpu.
Change-Id: I6852f7e8d0a344ab5631b188627263f11414f27e
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Vinayak Menon [Thu, 21 May 2015 11:42:37 +0000 (17:12 +0530)]
mm: process_reclaim: do not iterate over stale task structs
swap_fn iterates through the threads of selected tasks after
a rcu_read_unlock which is wrong. But we can't extend the
rcu_read_lock since it will result in severe performance
issues. So better avoid iterating over the threads. Just
lock the group leader and use it further.
Change-Id: I36269b1b6619315f33f6f3b49ec73571a66796f2
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Vinayak Menon [Fri, 8 May 2015 13:06:52 +0000 (18:36 +0530)]
mm: process_reclaim: fix reclaim skip on low efficiency
The logic used to skip reclaim on low efficiency results
in process reclaim not triggering at all. Fix it by
properly handling the skip_reclaim atomic variable.
Change-Id: I119097bb9b1baf8f3e8d4afa0a6dc2c30c0de6e7
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Vinayak Menon [Fri, 20 Mar 2015 08:45:39 +0000 (14:15 +0530)]
mm: process reclaim: vmpressure based process reclaim
With this patch, anon pages of inactive tasks can be reclaimed,
depending on memory pressure. Memory pressure is detected
using vmpressure events. 'N' best tasks in terms of anon
size is selected and pages proportional to their tasksize
is reclaimed. The total number of pages reclaimed at each
run of the swap work, can be tuned from userspace, the
default being SWAP_CLUSTER_MAX * 32.
The patch also adds tracepoints to debug and tune the
feature.
echo 1 > /sys/module/process_reclaim/parameters/enable_process_reclaim
to enable the feature.
echo <pages> > /sys/module/process_reclaim/parameters/per_swap_size,
to set the number of pages reclaimed in each scan.
/sys/module/process_reclaim/parameters/reclaim_avg_efficiency, provides
the average efficiency (scan to reclaim ratio) of the algorithm.
/sys/module/process_reclaim/parameters/swap_eff_win, to set the window
period (in unit of number of times reclaim is triggered) to detect
low efficiency runs.
/sys/module/process_reclaim/parameters/swap_opt_eff, to set the optimal
efficiency threshold for low efficiency detection.
Change-Id: I895986f10c997d1715761eaaadc4bbbee60db9d2
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Dinesh K Garg [Tue, 27 Oct 2015 21:57:26 +0000 (14:57 -0700)]
md: Enable discard option for dm-req-crypt based devices
dm-req-crypt based devices are capable of supporting discard option.
DM layer by default does not enable discard option for DM devices.
Since underlying device supports discard option, mapped target should
also allow it.
Change-Id: Ia540a814c3dcd91f573d1f25d637107a48309a58
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
Karthik Reddy Katta [Tue, 21 Jun 2016 08:52:35 +0000 (14:22 +0530)]
ASoC: msm: qdsp6v2: Fix Tx mute issue over BT-SCO
Backend DAIs are not enabled for low-latency-record
bt-sco. Update mixer control array of MultiMedia5
mixer to enable backend DAIs.
CRs-Fixed:
1029460
Change-Id: I8e01302baf2d78afca930ef1f251906a971a8234
Signed-off-by: Karthik Reddy Katta <a_katta@codeaurora.org>
Arun Kumar Neelakantam [Mon, 28 Dec 2015 12:41:46 +0000 (18:11 +0530)]
soc: qcom: qsee_ipc_irq_bridge: Add initial driver version
This driver handles the Inter-Processor Communication(IPC) Interrupt(IRQ)
from remote subsystems directed towards Qualcomm Technologies, Inc. Secure
Execution Environment(QSEE) and notifies the QSEE listeners waiting in
the userspace.
CRs-Fixed:
1021749
Change-Id: Id0cab5773099e2f6267f8a5bd4fd5aeb3324e68b
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Girish Mahadevan [Thu, 26 May 2016 21:18:15 +0000 (15:18 -0600)]
ARM: dts: msm: Correct the TLMM IRQs for UART instances
The TLMM IRQ numbers were set incorrectly. This can prevent the UART
peer devices from waking up the core from sleep.
Change-Id: I11e725ac31f78f838ac9b8e1e08c384d11ea14a6
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
Oleg Perelet [Tue, 7 Jun 2016 19:30:14 +0000 (12:30 -0700)]
msm: kgsl: Add gcc_gpu_iref_clk to list of GPU clocks
GPU will vote off gcc_gpu_iref_clk when going to low power modes.
CRs-Fixed:
1024948
Change-Id: I13b7a70f1fa748f2f4cdfb485dda2f7857e0b3d2
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
Abdulla Anam [Thu, 9 Jun 2016 08:18:01 +0000 (13:48 +0530)]
msm: vidc: ensure venus is in power on before scaling clocks
It is to be ensured that venus is in power on state before scaling
clocks. When venus goes to power collapse, a resume can happen
either when driver writes some command to the command queue or any
response comes from firmware. So when client requests a particular
perf_level, venus is not resumed and scale clocks is called.
CRs-Fixed:
1000809
Change-Id: I2ac46c481065ada2b62a5eb248fbdf18f2b1a91f
Signed-off-by: Abdulla Anam <abdullahanam@codeaurora.org>
Abdulla Anam [Wed, 4 May 2016 21:16:29 +0000 (02:46 +0530)]
msm: vidc: Communicate session error to client if aborted.
msm_comm_kill_session is called in driver only in situations where
the driver state goes bad. session_abort is called on firmware
which may be honored. But still the session_error needs to be
communicated to the client or else client will operate oblivious
about the bad video driver state.
Change-Id: Iafb90cde31a985bf5377fdcdd1a9653a965c5600
Signed-off-by: Abdulla Anam <abdullahanam@codeaurora.org>
Susheel Khiani [Tue, 8 Sep 2015 07:04:11 +0000 (12:34 +0530)]
ARM: mm: Update the kernel log messages
After reclaiming vmalloc and adjusting lowmem, the two
regions are no longer contiguous. Update the messages
printed during bootup to list all regions corresponding
to low memory and vmalloc respectively.
Change-Id: Ib3e25b530b3dfbd1f9796cdc580fb79da484e850
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Susheel Khiani [Fri, 4 Sep 2015 14:12:18 +0000 (19:42 +0530)]
ARM: mm: Adjust the low memory boundary
The unused virtual address space in low memory is given to
vmalloc for use. This reduces the low memory space and
increases vmalloc space. Adjust the vmalloc_min in order
to increase the low memory.
Change-Id: I0dbef5b6e5ec3d19f5f93f06ed03a4cf1215dc4d
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Manaf Meethalavalappu Pallikunhi [Wed, 3 Feb 2016 10:53:58 +0000 (16:23 +0530)]
msm: thermal: Maintain state in the mitigation device monitor
If KTM get a trip threshold trigger notification and if the
temperature stays the same as the recent trip threshold, KTM will
re-activate the recently triggered threshold, resulting in back to
back interrupts. To avoid this add support in KTM to maintain the
recently triggered threshold state and then re-active the threshold
based on the last threshold trip.
This state is updated for mitigation features like VDD MX retention,
CX phase control, VDD restriction, OCR monitor and external clients
like CPR low temperature monitor etc.
CRs-Fixed: 969112 972634
Change-Id: I44c0a93e1507a9f0b8a65e5c2ce5a98962bb335b
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Oleg Perelet [Mon, 27 Jun 2016 16:41:19 +0000 (09:41 -0700)]
msm: kgsl: Fix calculation error for deep nap timer value.
Deep nap timer value was not calculated right when read from dts file.
CRs-Fixed: 973565
Change-Id: I11a70c61d408921edd89b1417b209c5c5a3ddf24
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
Stephen Boyd [Tue, 1 Dec 2015 01:31:41 +0000 (17:31 -0800)]
clk: qcom: Add gfx3d ping-pong PLL frequency switching
The GPU clocks on msm8996 have three dedicated PLLs, MMPLL2,
MMPLL8, and MMPLL9. We leave MMPLL9 at the maximum speed (624
MHz), and we use MMPLL2 and MMPLL8 for the other frequencies. To
make switching frequencies faster, we ping-pong between MMPLL2
and MMPLL8 when we're switching between frequencies that aren't
the maximum. Implement custom rcg clk ops for this type of
frequency switching.
Change-Id: Ia71dfc9947f858b485e7c7ea254d6f52de0e7f7d
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Rajendra Nayak [Tue, 1 Dec 2015 16:12:13 +0000 (21:42 +0530)]
clk: qcom: gdsc: Add support for votable gdscs
Some gdscs might be controlled via voting registers and might not
really disable when the kernel intends to disable them (due to other
votes keeping them enabled)
Mark these gdscs with a flag for we do not check/wait on a disable
status for these gdscs within the kernel disable callback.
Also at boot, if these GDSCs are found to be ON, we make sure we
vote for them before we inform the genpd framework about their
status. If genpd gets no users, it then disables (removes the vote)
them as part of genpd_poweroff_unused()
Change-Id: Idd26e1460aea84834cccac15a86adf35681e511e
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Rajendra Nayak [Tue, 1 Dec 2015 16:12:12 +0000 (21:42 +0530)]
clk: qcom: gdsc: Add support for gdscs with gds hw controller
Some gdsc power domains can have a gds_hw_controller block inside
to help ensure all slave devices within the power domain are idle
before the gdsc is actually switched off.
This is mainly useful in power domains which host a MMU, in which
case its necessary to make sure there are no outstanding MMU operations
or pending bus transactions before the power domain is turned off.
In gdscs with gds_hw_controller block, its necessary to check the
gds_hw_ctrl status bits instead of the ones in gdscr, to determine
the state of the powerdomain.
While at it, also move away from using jiffies and use ktime APIs
instead for busy looping on status bits.
Change-Id: I9e435ba071a9d1aa67bddc5d2c7cd7b66fb86c58
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Sudip Mukherjee [Wed, 23 Dec 2015 12:27:19 +0000 (17:57 +0530)]
devm: add helper devm_add_action_or_reset()
Add a helper function devm_add_action_or_reset() which will internally
call devm_add_action(). But if devm_add_action() fails then it will
execute the action mentioned and return the error code.
Change-Id: I70562e95e0ef672db7dc9bd9f24d9a3b356bf89c
(cherry picked from commit
a3499e9bf0fe ("devm: add helper
devm_add_action_or_reset()")
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
Runmin Wang [Thu, 23 Jun 2016 18:13:24 +0000 (11:13 -0700)]
drivers: GICv3: Enable logging of interrupts that triggered wakeup
This change enables logging of irq number and name which triggered
wake up of the system from deep sleep. This helps in debugging the
spurious wakeups due to interrupts from various subsystems.
CRs-Fixed:
1033023
Change-Id: Ieeec5959475740e2b0cc75871c1f7e10e1098fa4
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
Abhimanyu Kapur [Mon, 30 Mar 2015 18:54:54 +0000 (11:54 -0700)]
irqchip: add snapshot of msm_show_resume_irq
This is a snapshot of drivers/irqchip/msm_show_resume_irq.c as of
msm-3.18 commit <
e17a72ad7344065> ("Merge "ARM: dts: mdm: Adjust
memory region peripheral1_mem for MDM9640"").
CRs-Fixed:
1033023
Change-Id: Ia928cf5e23eebc7a0f80638f4be81beec7ed2878
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
Harsh Shah [Thu, 21 Apr 2016 17:56:18 +0000 (10:56 -0700)]
msm: camera: isp: Add drop reporting in RESUMING state
In RESUMING state, WM is stopped causing skip in diverted buffers.
Add drop reporting for these frames, so that modules down stream can
be notified in case of reg_update miss.
CRs-Fixed:
1012335
Change-Id: I67d700c5c844fd6be3bf6ded756fb93e0ebfb537
Signed-off-by: Harsh Shah <harshs@codeaurora.org>
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Praneeth Paladugu [Thu, 12 May 2016 18:20:01 +0000 (11:20 -0700)]
msm: vidc: Destroy mutexes used by vidc driver
Currently vidc driver is not destroying the mutexes that it
used. This can cause mutex resources leak. This changes fixes
the same.
Change-Id: I293ad3c4c5ed46c692ae066e7188efe41e5dc482
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
Satya Krishna Pindiproli [Thu, 23 Jun 2016 08:20:03 +0000 (13:50 +0530)]
ASoC: msm: qdsp6v2: fix non-gapless transition failure
During non-gapless transition, there is an indefinite wait in
drain until either eos_ack or cmd_interrupt is set. This results
in playback getting stuck and occurs because cmd_interrupt is
not set in TRIGGER_STOP as gapless_transition is set to 1 during
partial drain of earlier stream.
Fix the issue by setting gapless_transition to 0 when gapless
fails which ensures that cmd_interrupt is set in TRIGGER_STOP.
CRs-Fixed:
1027991
Change-Id: I47d2d45df8686f25e8170a84fcaf68e143f6e4f6
Signed-off-by: Satya Krishna Pindiproli <satyak@codeaurora.org>
Ram Chandrasekar [Fri, 24 Jun 2016 22:46:31 +0000 (16:46 -0600)]
ARM: dts: msm: Update thermal sensor for GPU in MSMCobalt
Temperature sensor 13 tracks the GPU temperature closely. Update the
sensor alias for gpu to point to tsens 13 in MSMCobalt.
CRs-Fixed:
1034178
Change-Id: I8a644440eca0bc8996e777b76670f2aead601732
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Xiaojun Sang [Fri, 24 Jun 2016 05:49:05 +0000 (13:49 +0800)]
ARM: dts: msm: add HDMI support for 8996 mtp
add HDMI node for 8996 mtp to enable audio over HDMI.
CRs-Fixed:
1028336
Change-Id: I1aade4b197b1705ac116db66168f73253b6ea04d
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Manish Dewangan [Thu, 5 May 2016 06:57:40 +0000 (12:27 +0530)]
ASoC: msm: add support for packed 24 bit
Changes to support packed 24 bit (SNDRV_PCM_FORMAT_S24_3LE).
CRs-Fixed:
1011048
Change-Id: I5c49091d6bbff98ed8665446fffdba08446073cd
Signed-off-by: Manish Dewangan <manish@codeaurora.org>
Manish Dewangan [Thu, 5 May 2016 06:56:15 +0000 (12:26 +0530)]
ASoC: wcd9335: add support for packed 24 bit
Changes to support packed 24 bit (SNDRV_PCM_FORMAT_S24_3LE).
CRs-Fixed:
1011048
Change-Id: If81f3053629dc4f80a08392f392c7be735ad33c2
Signed-off-by: Manish Dewangan <manish@codeaurora.org>
Manish Dewangan [Fri, 22 Apr 2016 07:14:39 +0000 (12:44 +0530)]
ASoC: msm: qdspv2: add support for MULTI_CHANNEL_PCM_V3 command
Driver changes to use ASM_MEDIA_FMT_MULTI_CHANNEL_PCM_V3 command.
This command supports playback/record of both 32 bit
(24 bit data in 32 bit word) and 24 bit packed. Update platform
drivers to use this for SNDRV_PCM_FORMAT_S24_LE record and playback.
CRs-Fixed:
1011048
Change-Id: I6f98bf3402a737bc21daff33b13b137850a690ea
Signed-off-by: Manish Dewangan <manish@codeaurora.org>
Ghanim Fodi [Sun, 26 Jun 2016 12:23:48 +0000 (15:23 +0300)]
msm: ipa3: Do not use APPS pipes for IPA kernel-test
IPA Endpoint 16 is the one assigned to APPS for WAN data.
This pipe is connected when modem is up. Kernel-tests
framework should not use it for testing purposes as this
pipe is already allocated for APPS. Update the code
to use another IPA Endpoint.
Change-Id: Ia0ed2ad9041353def1b3055d394281bca2893f88
CRs-fixed:
1034319
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
Fenglin Wu [Mon, 20 Jun 2016 02:55:12 +0000 (10:55 +0800)]
ARM: dts: msm: Change LAB precharge time to 500us for PMI8994
Set LAB's precharge time to max 500us to optimize the precharge
behavior.
CRs-Fixed:
1028321
Change-Id: I13eaca8f50080457b95f4c88f9987df6ba0f05c5
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Skylar Chang [Mon, 27 Jun 2016 21:10:12 +0000 (14:10 -0700)]
msm: ipa: change default low watermark for rx buffers
Change the threshold for resubmitting RX buffers to IPA in case
of allocation errors to a bigger number than 0.
In some corner cases a packet from IPA to AP might be larger than
the side of 1 buffer, which can result in IPA stall if threshold
is 0.
CRs-Fixed:
1027726
Change-Id: Ic841de25597c2cd4ce007823f9b9727e858a73cb
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Vinayak Menon [Fri, 24 Jun 2016 09:16:49 +0000 (14:46 +0530)]
arm: dma-mapping: return NULL on remap error
Currently arm_dma_remap returns the offset value when it fails
because of reasons like unavailability of vmalloc space. This
is wrong as the caller expects NULL on failure, and can result
in kernel panic on dereferencing the returned pointer.
Change-Id: Ic851efecd1b5ff1c5e3105f28f392307857e63e3
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Archana Sathyakumar [Fri, 24 Jun 2016 22:19:37 +0000 (16:19 -0600)]
lpm-levels: Fix cpu idle trace and stats event
In the event that the cpu needs to be rescheduled for another task
before it enters psci sleep, the stats and trace exit events are
considered without the enter events. Fix this issue by moving enter
events before the cpu gets scheduled.
Change-Id: I8e477c434d218960b48aab4e61cacf99476b607f
Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
Dibyendu Roy [Tue, 21 Jun 2016 08:04:28 +0000 (13:34 +0530)]
Bluetooth: Replace %p with %pK
The %pK restrictions are used to eliminate exposing kernel addresses.
When kptr_restrict is set to "0" there are no restrictions. When
kptr_restrict is set to "1", kernel pointers printed using the %pK
format specifier will be replaced with 0's unless the user has
CAP_SYSLOG. When kptr_restrict is set to "2", kernel pointers printed
using %pK will be replaced with 0's regardless of privileges.
Change-Id: Iacd8f7b7cdafed3a111507d3da899be9261ff09f
Signed-off-by: Dibyendu Roy <dibyen@codeaurora.org>
Harry Yang [Fri, 24 Jun 2016 00:37:21 +0000 (17:37 -0700)]
qcom-charger: qpnp-smb2: Remove unnecessary watchdog interrupts
Watchdog interrupts bark and snarl get triggered frequently, causing
flood messages when enabled in debug_mask. However, neither irq is
essentially being used in charger driver.
Remove both interrupts by setting their irq handlers to NULL, and
skipping irq registration in case of NULL handlers.
CRs-Fixed:
1033724
Change-Id: I9414f3238d1568ec29973a7ec74054c779a7a196
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Nicholas Troast [Fri, 3 Jun 2016 00:39:48 +0000 (17:39 -0700)]
regulator: rpm-smd-regulator: implement set_load
A recent change to regulator framework replaced the
regulator_set_optimum_mode API with regulator_set_load.
The regulator_set_load API does the following for regulators which have
not implemented set_load().
- determines the most optimal mode for the given load by calling
get_optimum_mode()
- gets the current mode by calling get_mode()
- calls set_mode() if the modes are different and expects the mode to be
committed to the hardware
The rpm-smd-regulator's get_optimum_mode() remembers the load and uses that
for the upcoming get_mode() call. This causes the framework to never call
the set_mode API, thereby causing rpm-smd-regulator to never send the load
to the RPM.
The set_load op was introduced for hardware which does not support the
set_mode op. This is convenient since the RPM sets the mode according to
the aggregated load requirements. In addition the RPM also supports forcing
certain modes which fits well with the set_mode op.
Implement the set_load op to send the aggregated load vote to RPM, and
repurpose the set_mode op to send the aggregated mode vote to RPM.
Remove the get_optimum_mode op since it is no longer required with this
change.
Repurposing of set_mode should not impact consumers since it has the same
effect as before. Instead of sending a load vote which would cause the RPM
to select the desired mode the mode will be sent directly.
Furthermore, the hpm-min-load device tree property is no longer required
since the mode is no longer set based on the hpm-min-load threshold.
Remove it.
Change-Id: I75cf0b4cfc7a6aec3e6d79da9172ce37ec9d91c1
CRs-Fixed:
1023326
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Mahesh Sivasubramanian [Thu, 26 May 2016 20:46:34 +0000 (14:46 -0600)]
defconfig: arm64: msmcortex: Enable RPM stats/logs
RPM stat/logs provide stats about system sleep modes.
Change-Id: I10dc1bdb2fcfe216cdcf147eab936c2f92b5217a
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Mahesh Sivasubramanian [Thu, 26 May 2016 20:46:34 +0000 (14:46 -0600)]
defconfig: arm64: msm: Enable RPM stats/logs
RPM stat/logs provide stats about system sleep modes.
Change-Id: Idf7b30586d5e3c34929b348628f90e5d88f2a9ff
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Anil Kumar Mamidala [Tue, 19 Apr 2016 07:46:38 +0000 (13:16 +0530)]
lpm_levels: Avoid race by preventing hotplug during lpm probe
When cluster enters a low power mode, the mode entered is stored
in last_level. During LPM driver probe last_level is initialized
to default level, if a core in that cluster is online.
If all the cores in the cluster are hotplugged after initializing
the last_level and before the per cluster data structures are
initialized, cluster enters low power mode but does not update
last_level as the data structures are not available. In this case
when a core in this cluster is coming online and last_level indicates
default level, assumes cluster did not enter any low power mode,
the update of flags to reflect the cores as active for this cluster
does not happen. This makes driver to select system level low power
mode as if this cluster is in low power mode eventhough it is out
of low power mode.
To avoid this race, prevent cores hotplug during lpm probe.
Change-Id: I1d0c51c52e54ab30239b2fca11040f134315fe61
Signed-off-by: Anil Kumar Mamidala <amami@codeaurora.org>
Arun Menon [Sat, 9 May 2015 23:09:05 +0000 (16:09 -0700)]
msm: vidc: Add missing qmenu entries for MPEG ctrls
V4l2 control framework mandates a qmenu entry for each control item.
Validate_new() function accesses the qmenu entry for control item,
and any missing qmenu entries causes a crash within this function.
This patch fixes those crashes.
CRs-Fixed:
1031156
Change-Id: Ie507b1de9ce08221678a730146164d6e970aac8a
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
Ben Romberger [Tue, 26 Jan 2016 01:05:14 +0000 (17:05 -0800)]
misc: qcom: qdsp6v2: Return flush errors to user space
Return errors from the flush function including
the caller of the flush ioctl.
CRs-fixed:
1027784
Change-Id: I7ec578b42f50b6ce2f2738193c622c8a2f01ecd8
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
Helen Zeng [Thu, 16 Jul 2015 22:52:13 +0000 (15:52 -0700)]
ASoC: msm: qdsp6v2: Support host pcm feature based on new VSIDs
With single voice architecture, two new VSIDs are created to
support multimode voice call. Update host pcm driver to support
new VSIDs.
Change-Id: I42e33db7f3dca47c30b7dc5af59848eb6beef330
Signed-off-by: Helen Zeng <xiaoyunz@codeaurora.org>
Oleg Perelet [Wed, 18 May 2016 22:38:55 +0000 (15:38 -0700)]
msm: kgsl: Create sysfs entry to control GPU clock throttling.
Create sysfs entry to control GPU clock throttling. When 0 is
written - all sources of clock throlling - ie LM, BCL, IDLE
are disabled.
CRs-Fixed: 973565
Change-Id: Iad588eb94861bd6b223715cc05354e3c39db9b24
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
Siddartha Mohanadoss [Fri, 17 Jun 2016 00:22:48 +0000 (17:22 -0700)]
hwmon: qpnp-adc-voltage: Add optional VADC property
Add option to select whether a fresh calibration
needs to be performed when performing the channel measurement.
If the property is not present the default value of
using calibration measurement collected from a timer
will be used. For most cases using a measurement collected
from a timer interval should suffice and the default value
can be used.
Change-Id: I632a9466f04d5d0712de436fc3e1251f7e2e7ad2
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Ping Li [Tue, 14 Jun 2016 22:39:02 +0000 (15:39 -0700)]
msm: mdss: Add memory retention support for MDP LUT clock
A new MDP LUT clock is added to msmcobalt, add code to set
the corresponding mdss_mdp_lut_cbcr register to support MDP
memory retention on msmcobalt.
Change-Id: Icf0890a6f2d3c44e426bd834b3c7943cc6766bae
Signed-off-by: Ping Li <pingli@codeaurora.org>
Ping Li [Thu, 16 Jun 2016 23:57:00 +0000 (16:57 -0700)]
ARM: dts: msm: Add MDP LUT clock to msmcobalt
A new clock mdss_mdp_lut_clk has been added to mdss on msmcobalt,
this change adds this clock to the list of clocks for mdss mdp.
Change-Id: I94d0965c5e431613e37e2369d0f0572e083d0acd
Signed-off-by: Ping Li <pingli@codeaurora.org>
Osvaldo Banuelos [Fri, 24 Jun 2016 01:01:10 +0000 (18:01 -0700)]
ARM: dts: msm: remove OSM cluster PLL setup sequence for msmcobalt
The OSM driver need not execute the Agera PLL setup sequences
now that the bootloaders are handling such requirement. Thus,
remove the qcom,osm-pll-setup flag from the OSM device node.
CRs-Fixed:
1033726
Change-Id: Icffa6b8e29c1a13c08c11980b9bfd70b25efd56c
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Satya Durga Srinivasu Prabhala [Wed, 22 Jun 2016 17:28:54 +0000 (10:28 -0700)]
arm64: defconfig: msm: enable MODULE_SIG for msm chipsets
MODULE_SIG is needed to check modules for valid signatures upon load.
CRs-Fixed:
1018761
Change-Id: I2d35c6d47221d5b043c7cbe6ad8bee178d14ef8d
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Satya Durga Srinivasu Prabhala [Thu, 23 Jun 2016 18:16:24 +0000 (11:16 -0700)]
arm64: defconfig: msm: sync up with Kbuild defaults
defconfigs got out of sync, sync them up.
CRs-Fixed:
1033538
Change-Id: I73e43ad042ab0dc2e148d149d09652d37297514b
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Puja Gupta [Tue, 7 Jun 2016 18:24:44 +0000 (11:24 -0700)]
ARM: dts: msm: Remove voting on vdd_pll regulator for MSMCOBALT
Remove voting on PLL regualtor for modem pil since it is not
required for MSMCOBALT. We already vote on XO.
CRs-Fixed:
1025447
Change-Id: I9f478194a1a6147a8312e232c6ca3fd1eeb01682
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
Puja Gupta [Fri, 17 Jun 2016 23:27:23 +0000 (16:27 -0700)]
soc: qcom: pil: Make vdd_pll optional property for modem
Since 'qcom,vdd_pll' is optional property, change the flow so that pil
doesn't return if it is not present.
CRs-Fixed:
1025447
Change-Id: I530bbeb89f769afb188f28bcdc0230d32feed3dd
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
Mohan Pallaka [Mon, 20 Jun 2016 23:49:38 +0000 (16:49 -0700)]
ARM: dts: msm: update pinctrl for gpio89 on msmcobalt
Update msm gpio 89 pin control settings to pull down
in suspend to save power.
Change-Id: Ibd46ae4d6bebd40637a78a551984b4c16a693d79
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Ryan Hsu [Tue, 7 Jul 2015 01:20:22 +0000 (18:20 -0700)]
cfg80211: Bypass checkin the CHAN_RADAR if DFS_OFFLOAD is enabled
When WIPHY_FLAG_DFS_OFFLOAD is defined, driver would take care the
DFS related operation, hence the Kernel needs to ignore the DFS
states checking.
CRs-fixed:
1032889
Change-Id: I02fa5e3e25427c0ca474455fa2d2be9eb6ea4bd9
Signed-off-by: Ryan Hsu <ryanhsu@codeaurora.org>
Osvaldo Banuelos [Mon, 18 Apr 2016 23:28:08 +0000 (16:28 -0700)]
clk: msm: osm: add panic handler to dump status registers
Add a panic handler to dump the OS performance state,
program counter OSM watchdog registers, and the APM status
register when the device crashes due to a kernel panic.
These are critical registers that are useful for debug.
CRs-Fixed:
1033031
Change-Id: I2bbf6884cf83457bfb7e5369bb97614bd4beb150
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Shiraz Hashim [Tue, 30 Jun 2015 03:44:46 +0000 (09:14 +0530)]
arm: mm: consider only lowmem regions while remap
Consider only those memory blocks with lowmem while
remapping into 4KB regions using CONFIG_FORCE_PAGES
feature.
Change-Id: Ie209fce6c310f911d8cf02d977e226660684a6ab
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
Shiraz Hashim [Wed, 21 May 2014 04:05:08 +0000 (09:35 +0530)]
arm: mm: fix pte allocation with CONFIG_FORCE_PAGES feature
CONFIG_FORCE_PAGES introduces a debug option to mark free
pages as read only in order to trigger a fault if any code
attempts to write to a page on the buddy list.
In order to achieve this it splits all section mappings in
to PAGE_SIZE pages during boot. While doing this split, it
wrongly allocates a pte (of page size) for each pmd. Linux
however in armv7 short descriptor format, uses same second
level pte for 2 consecutive pmds offset by the actual second
level table size. Refer comments in kernel file
arch/arm/include/asm/pgtable-2level.h for details.
Fix this by allocating pte for a section mapped pmd while
providing required offset if pte already exists.
Change-Id: Iadbaa5e71e4b220208a7275bf039a2a413349e42
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
Susheel Khiani [Fri, 4 Sep 2015 09:54:58 +0000 (15:24 +0530)]
Kconfig: Add menu choice option to reclaim virtual memory
Add menu choice options for reclaiming virtual
memory belonging to any subsystem expected to have
a lifetime of the entire system. By default virtual
memory is not reclaimed.
Change-Id: I1b8a1492062bb9532700122878618989e5148647
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Laura Abbott [Tue, 15 Apr 2014 02:42:04 +0000 (19:42 -0700)]
arm: Allow remapping lowmem as 4K pages
Lowmem is currently mapped with sections (1MB/2MB) whenever
possible due to TLB performance boosts. Sections cannot easily
be changed at runtime however which makes implementing certain
features annoying. Add an option to map lowmem with 4K patches.
This is intended to be used as a debugging feature and should
NOT be used for performance testing.
Change-Id: I9612a99b8e05a022f5ba7e568f21307cf66b5667
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Chris Lew [Wed, 20 Apr 2016 15:34:16 +0000 (08:34 -0700)]
diag: Add support for multi connection logging
This change adds support to route On-Device logging and
USB logging traffic per peripheral. A peripherals'
traffic can go to either endpoint but not both. The
mux layer has a peripheral state and the mode switching
logic has multi mode support.
CRs-Fixed:
1004236
Change-Id: I54fef744bdf08a346e4aef22c1280e928cdaf5d2
Signed-off-by: Chris Lew <clew@codeaurora.org>
Hemant Kumar [Mon, 2 May 2016 18:27:21 +0000 (11:27 -0700)]
usb: gadget: mtp: Increase RX transfer length to 1M
The test results indicate that larger transfers improve write speeds.
The Rx request transfer length is now 16K bytes. Increase the Rx
transfer length from 16K to 1MB to get good throughputs.
Change-Id: I3c64e6b96d569b4dc61805a53a0835db9142d55e
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Nicholas Troast [Fri, 3 Jun 2016 00:38:53 +0000 (17:38 -0700)]
regulator: Add snapshot of DT documentation for rpm-smd-regulator driver
This DT bindings documentation snapshot is taken as of msm-3.18
'commit
00df358f2e6a8 ("regulator: rpm-smd-regulator: introduce BoB
regulator type")'.
CRs-Fixed:
1023326
Change-Id: Icc20967019996616a4eb2ebba6df47e7bc7188d7
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Abhijit Kulkarni [Mon, 20 Jun 2016 16:43:03 +0000 (09:43 -0700)]
msm: mdss: fix multi-rect validation properties
Fix issues with multi-rect to allow the multi-rects on the same
z-order. In multi-rect use cases the rect 0 of the pipes have higher
priority than rect 1. The change checks the priority of rect on the
right mixer with the priority of rect on the pipe staged on left mixer.
CRs-Fixed:
1023723
Change-Id: Ifd1df8ee04238db0338a7dd70eb5097af2d0eb62
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
Alan Kwong [Fri, 17 Jun 2016 01:08:57 +0000 (21:08 -0400)]
ARM: dts: msm: Enable v4l2 rotator node on msm8996
Enable sde v4l2 rotator node on 8996.
This replaces mdss rotator node.
Reserve dma 0/1, writeback mixers, writeback 0/1, and control 5
for rotator driver.
Disable WFD as it shares context bank with rotator.
CRs-Fixed:
1030443
Change-Id: Ie3970f29c7f1800c4457dc71a3f36a54e1cbdb91
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
Alan Kwong [Fri, 17 Jun 2016 14:11:29 +0000 (10:11 -0400)]
msm: mdss: Add dereference check for xlog vbif dump
Bypass vbif dump for ununsed vbif by checking for
null pointer dereference of io base.
Change-Id: Ic7204921fc82d5aea31c58fcbb668b296794b1c1
CRs-Fixed:
1030443
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
Ashish Jain [Mon, 20 Jun 2016 12:39:07 +0000 (18:09 +0530)]
ASoC: msm: qdsp6v2: DAP: Add check to validate data length
Validate input data length to ensure only relevant data
is copied.
CRs-Fixed:
1027585
Change-Id: I67eb4f162f944bbf4d9e55fb8fe93759e6b8ff91
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
Mel Gorman [Wed, 15 Jun 2016 23:44:14 +0000 (09:44 +1000)]
mm, sl[au]b: add __GFP_ATOMIC to the GFP reclaim mask
Commit
d0164adc89f6 ("mm, page_alloc: distinguish between being unable to
sleep, unwilling to sleep and avoiding waking kswapd") modified __GFP_WAIT
to explicitly identify the difference between atomic callers and those
that were unwilling to sleep. Later the definition was removed entirely.
The GFP_RECLAIM_MASK is the set of flags that affect watermark checking
and reclaim behaviour but __GFP_ATOMIC was never added. Without it, atomic
users of the slab allocator strip the __GFP_ATOMIC flag and cannot access
the page allocator atomic reserves. This patch addresses the problem.
The user-visible impact depends on the workload but potentially atomic
allocations unnecessarily fail without this path.
Change-Id: Ieac0932d146f7fd992db9fd834b0e9aa3822f891
Link: http://lkml.kernel.org/r/20160610093832.GK2527@techsingularity.net
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Reported-by: Marcin Wojtas <mw@semihalf.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: <stable@vger.kernel.org> [4.4+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Git-Commit:
843f65ccbb2273430b57ae135ccd26dddee05be7
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Subhash Jadavani [Fri, 10 Jun 2016 19:33:18 +0000 (12:33 -0700)]
scsi: ufs-debugfs: add error state
This change adds support to allow user space query if low level UFS driver
has encountered any error or not, this state can be read/cleared via
debugfs.
Change-Id: I867a4621315108aff17be852cfaadcfa945566a7
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Osvaldo Banuelos [Wed, 22 Jun 2016 21:33:29 +0000 (14:33 -0700)]
ARM: dts: msm: add CPR panic register configuration for msmcobalt
Specify the panic register configuration in the VDD_APC0
and VDD_APC1 CPR device nodes. This enables the CPR panic
handler to dump the values of the specified registers during
a kernel panic.
CRs-Fixed:
1033060
Change-Id: Ifdd03f27ed1135acd4470d891e1b5aca4a11dd65
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Osvaldo Banuelos [Wed, 22 Jun 2016 21:51:47 +0000 (14:51 -0700)]
regulator: cpr3-util: init panic notifier for CPRh controllers
Call cpr3_panic_notifier_init() when cpr3_parse_common_ctrl_data()
is called for CPRh controllers. This allows dumping registers during
a kernel panic when CPRh controller devices specify panic register
configuration.
CRs-Fixed:
1033060
Change-Id: I437fe28725d5c1ed06fe8b9735b04bbd84e92db1
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Tirupathi Reddy [Wed, 23 Mar 2016 11:33:05 +0000 (17:03 +0530)]
regulator: cpr3: Add panic handler to dump register contents
Add panic handler to dump a few critical CPR registers when device
crashes due to kernel panic errors.
CRs-Fixed:
1004533
Change-Id: Id01b4f959c134af48c509ade61c7ec46401b4e70
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
Dhoat Harpal [Tue, 21 Jun 2016 09:05:50 +0000 (14:35 +0530)]
soc: qcom: smem: Renaming smem item SMEM_SMEM_STATIC_LOG_EVENTS
SMEM_SMEM_STATIC_LOG_EVENTS is currently unused as its usecase has
been deprecated for a long time. Reallocate the ID to
SMEM_CHARGER_BATTERY_INFO.
CRs-Fixed:
1032131
Change-Id: I35a8307001ac14e3ade733d5f41d6231fe63ebd0
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
Deepak Katragadda [Thu, 16 Jun 2016 21:11:10 +0000 (14:11 -0700)]
clk: msm: Set the GMEM GX clamp before disabling the GPU_GX GDSC
The GMEM GX clamp should be set to the active state before
turning off the gdsc_gpu_gx.
CRs-Fixed:
1027772
Change-Id: I5bb97734a2402e763836250c3ce6f7fc308c20a6
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Rajendra Nayak [Mon, 18 Apr 2016 06:10:43 +0000 (11:40 +0530)]
clk: qcom: alpha-pll: Add support for hwfsm ops
Add support to enable/disable the alpha pll using hwfsm
Also add support for initial configuration (needs to be split)
Change-Id: Ifc2fe0539b943e850681143da76da27274203ed2
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Stephen Boyd [Tue, 1 Dec 2015 01:31:39 +0000 (17:31 -0800)]
clk: qcom: Add Alpha PLL support
Add support for configuring rates of, enabling, and disabling
Alpha PLLs. This is sufficient for the types of PLLs found in
the global and multimedia clock controllers.
Change-Id: I0d26e8f6d225cc3669f3a9e3c37b45e49e139879
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Srini Kandagatla [Mon, 16 May 2016 14:05:00 +0000 (15:05 +0100)]
fixup rpm clks on 8996
Change-Id: Ia19aa0ebc209322955da1d22f5eb73c9cd7af908
(cherry picked from commit
6c72267db866b9841312defdf81b100db77a0e71)
Git-commit:
6c72267db866b9841312defdf81b100db77a0e71
Git-repo: https://git.linaro.org/landing-teams/working/qualcomm/kernel.git
Signed-off-by: Srini Kandagatla <srinivas.kandagatla@hackbox.linaro.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Rajendra Nayak [Mon, 14 Dec 2015 06:17:10 +0000 (11:47 +0530)]
clk: qcom: rpmcc: Add rpm clock data for msm8996
Add all RPM clock data for msm8996 family of devices
ToDo: Adapt to changes needed for RPM over GLINK against
RPM over SMD that the driver currently supports
Change-Id: Ib095af601a4f03d866cf94c8e277d04630abb42b
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Georgi Djakov [Thu, 14 Apr 2016 14:34:48 +0000 (17:34 +0300)]
clk: qcom: Add support for RPM Clocks
This adds initial support for clocks controlled by the Resource
Power Manager (RPM) processor on some Qualcomm SoCs, which use
the qcom_rpm driver to communicate with RPM.
Such platforms are apq8064 and msm8960.
Change-Id: I1a73355bc9117c34589a25cf58446cad13ceb6e3
(cherry picked from commit
06d998a24c68be94685af38e8becfda3c8bf757b)
Git-commit:
06d998a24c68be94685af38e8becfda3c8bf757b
Git-repo: https://git.linaro.org/landing-teams/working/qualcomm/kernel.git
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Georgi Djakov [Thu, 14 Apr 2016 14:34:47 +0000 (17:34 +0300)]
clk: qcom: Add support for SMD-RPM Clocks
This adds initial support for clocks controlled by the Resource
Power Manager (RPM) processor on some Qualcomm SoCs, which use
the qcom_smd_rpm driver to communicate with RPM.
Such platforms are msm8916, apq8084 and msm8974.
The RPM is a dedicated hardware engine for managing the shared
SoC resources in order to keep the lowest power profile. It
communicates with other hardware subsystems via shared memory
and accepts clock requests, aggregates the requests and turns
the clocks on/off or scales them on demand.
This driver is based on the codeaurora.org driver:
https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c
Change-Id: I8d2882de9410a992a8045caedc7ab71e3c3e45b2
(cherry picked from commit
69edeaf51c07c24e06b433762b3ada7b3d786315)
Git-commit:
69edeaf51c07c24e06b433762b3ada7b3d786315
Git-repo: https://git.linaro.org/landing-teams/working/qualcomm/kernel.git
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>