OSDN Git Service
Hareesh Gundu [Thu, 18 Aug 2016 12:23:30 +0000 (17:53 +0530)]
msm: kgsl: Get GPU snapshot if wait for global timestamp timeout
If the wait for global fails due to timeout then nothing after this
point is likely to work very well. Get GPU snapshot in addition to
BUG_ON(), to analyze the GPU fault.
CRs-Fixed:
1053780
Change-Id: I29930120a72a08533c859002f646af93e67c754f
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Linux Build Service Account [Thu, 6 Oct 2016 19:26:19 +0000 (12:26 -0700)]
Merge "ARM: dts: msm: add a new panel driver for MSMCOBALT QRD SKUK board"
Linux Build Service Account [Thu, 6 Oct 2016 19:26:18 +0000 (12:26 -0700)]
Merge "msm: mdss: add sysfs node to disable panel"
Linux Build Service Account [Thu, 6 Oct 2016 19:26:18 +0000 (12:26 -0700)]
Merge "ion: use %pK instead of %p which respects kptr_restrict sysctl"
Linux Build Service Account [Thu, 6 Oct 2016 19:26:11 +0000 (12:26 -0700)]
Merge "ASoC: soc: change audio drivers to use %pK"
Linux Build Service Account [Thu, 6 Oct 2016 19:26:10 +0000 (12:26 -0700)]
Merge "usb: pd: Return different errors in devm_usbpd_get_by_phandle()"
Linux Build Service Account [Thu, 6 Oct 2016 19:26:09 +0000 (12:26 -0700)]
Merge "msm: kgsl: Add facility to BUG_ON for a gpu fault"
Linux Build Service Account [Thu, 6 Oct 2016 19:26:08 +0000 (12:26 -0700)]
Merge "ion: ion_system_heap: SetPagePrivate when splitting secure pages"
Linux Build Service Account [Thu, 6 Oct 2016 19:26:07 +0000 (12:26 -0700)]
Merge "ASoC: msmcobalt: Add support for TDM"
Linux Build Service Account [Thu, 6 Oct 2016 19:26:03 +0000 (12:26 -0700)]
Merge "ASoC: wcd934x-dsp-cntl: add support for subsystem restart"
Linux Build Service Account [Thu, 6 Oct 2016 19:26:02 +0000 (12:26 -0700)]
Merge "ASoC: wcd-dsp-mgr: set status before broadcasting post events"
Linux Build Service Account [Thu, 6 Oct 2016 19:26:01 +0000 (12:26 -0700)]
Merge "iommu: msm: add EXPORT_SYMBOL for msm_dma_unmap_all_for_dev"
Linux Build Service Account [Thu, 6 Oct 2016 19:26:00 +0000 (12:26 -0700)]
Merge "msm: ipa: Fix ipa ready cb return value"
Linux Build Service Account [Thu, 6 Oct 2016 19:26:00 +0000 (12:26 -0700)]
Merge "scsi: ufs_test: fix use after free issue"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:59 +0000 (12:25 -0700)]
Merge "msm: camera: Fix KW issues in sensor code"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:58 +0000 (12:25 -0700)]
Merge "msm: camera: isp: Fix for sleeping function call inside spinlock"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:49 +0000 (12:25 -0700)]
Merge "ARM: dts: msm: Fill FD clock rates array for msmcobalt"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:48 +0000 (12:25 -0700)]
Merge "ASoC: msm: qdsp6v2: Remove 48khz constraint"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:47 +0000 (12:25 -0700)]
Merge "msm: sde: fix wrong chroma stride for h2v1/h1v2 formats"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:46 +0000 (12:25 -0700)]
Merge "ARM: dts: msm: connect MADINPUT with MCLK on msmcobalt"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:44 +0000 (12:25 -0700)]
Merge "ASoC: wcd-mbhc: increase hs_vref to 1.6v for wcd9335 codec"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:44 +0000 (12:25 -0700)]
Merge "diag: Do not wait for the intent availability indefinetly"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:43 +0000 (12:25 -0700)]
Merge "ARM: dts: msm: set clock rate before enabling in msmcobalt"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:42 +0000 (12:25 -0700)]
Merge "usb: xhci: clean up command queue on HC halt failure as well"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:40 +0000 (12:25 -0700)]
Merge "iommu/io-pgtable-arm: Support SMMU coherent page tables"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:39 +0000 (12:25 -0700)]
Merge "lib: spinlock: Change MSM_WATCHDOG_V2 to QCOM_WATCHDOG_V2"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:39 +0000 (12:25 -0700)]
Merge "defconfig: enable ext4 encryption for msm8996 and msmcobalt"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:38 +0000 (12:25 -0700)]
Merge "fuse: Grab the fc->lock for inode updates in passthrough"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:37 +0000 (12:25 -0700)]
Merge "iommu: Fix compilation error without CONFIG_IOMMU_API"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:36 +0000 (12:25 -0700)]
Merge "ARM: dts: msm: Update the max voltage for in msmcobalt"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:35 +0000 (12:25 -0700)]
Merge "power: qcom: ea: Fix uninitialized temperature and cpu variable"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:34 +0000 (12:25 -0700)]
Merge "ARM: dts: msm: change PCIe2 to vote for nominal on msm8996"
Linux Build Service Account [Thu, 6 Oct 2016 19:25:33 +0000 (12:25 -0700)]
Merge "ARM: dts: msm: change CX handle for all PCIe nodes on msm8996"
Linux Build Service Account [Thu, 6 Oct 2016 14:14:28 +0000 (07:14 -0700)]
Merge "msm: mdss: fix 32-bit compilation errors in MDSS PP/interfaces"
Padmanabhan Komanduru [Thu, 1 Sep 2016 07:23:18 +0000 (12:53 +0530)]
msm: mdss: fix 32-bit compilation errors in MDSS PP/interfaces
Add required changes to fix 32-bit compilation issues in
MDSS PP and DP/HDMI interface drivers.
Change-Id: I0b342c0307b257cb8c66fcae73dd94d0fb3122db
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Linux Build Service Account [Thu, 6 Oct 2016 08:07:20 +0000 (01:07 -0700)]
Merge "arm/arm64: Kconfig: Add support to use the CLK_QCOM for MSMfalcon"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:19 +0000 (01:07 -0700)]
Merge "hwmon: qpnp-adc-common: Clamp voltage value"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:19 +0000 (01:07 -0700)]
Merge "iio: rradc: Remove scaled support for battery thermistor"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:18 +0000 (01:07 -0700)]
Merge "ARM: dts: msm: Configure bimc-bwmon4 only for msmcobaltv2"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:17 +0000 (01:07 -0700)]
Merge "sched: Fix a division by zero bug in scale_exec_time()"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:16 +0000 (01:07 -0700)]
Merge "ARM: dts: msm: Vote for 681 MHz DDR for Fmax of all CPU speed bins"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:15 +0000 (01:07 -0700)]
Merge "clk: qcom: Add support for RPM clocks for MSMfalcon"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:14 +0000 (01:07 -0700)]
Merge "clk: qcom: Add support for gfx clock to ping pong PLLs"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:13 +0000 (01:07 -0700)]
Merge "usb: gadget: f_qc_rndis: Add support for configfs"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:13 +0000 (01:07 -0700)]
Merge "usb: gadget: f_qc_rndis: Add RNDIS support using IPA over BAM2BAM"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:12 +0000 (01:07 -0700)]
Merge "ASoC: msm: qdsp6v2: Update device mapping for 7 channel"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:11 +0000 (01:07 -0700)]
Merge "ARM: dts: msm: add ref_clk entries needed for DisplayPort"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:10 +0000 (01:07 -0700)]
Merge "msm: mdss: increase SMMU mapping range for all context banks"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:09 +0000 (01:07 -0700)]
Merge "defconfig: enable secure touch option for Synaptics 2.0 for msmcobalt"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:05 +0000 (01:07 -0700)]
Merge "msm: camera: isp: Fix overflow recovery"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:04 +0000 (01:07 -0700)]
Merge "defconfig: msm: disable RMI4 dev module"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:03 +0000 (01:07 -0700)]
Merge "icnss: Ignore PD down if WLAN FW doesn't exists"
Linux Build Service Account [Thu, 6 Oct 2016 08:07:03 +0000 (01:07 -0700)]
Merge "icnss: Handle graceful Modem shutdown"
Linux Build Service Account [Thu, 6 Oct 2016 08:06:56 +0000 (01:06 -0700)]
Merge "qpnp-smb2: smb-lib: expose step charging via battery psy properties"
Linux Build Service Account [Thu, 6 Oct 2016 08:06:55 +0000 (01:06 -0700)]
Merge "msm: sps: correct device base address for register dumping"
Linux Build Service Account [Thu, 6 Oct 2016 08:06:54 +0000 (01:06 -0700)]
Merge "ARM: dts: msm: Add Temperature sensor support for msmtriton"
Linux Build Service Account [Thu, 6 Oct 2016 08:06:54 +0000 (01:06 -0700)]
Merge "thermal: tsens: Enable TSENS for msmtriton"
Taniya Das [Fri, 30 Sep 2016 05:37:37 +0000 (11:07 +0530)]
arm/arm64: Kconfig: Add support to use the CLK_QCOM for MSMfalcon
MSMfalcon requires to use COMMON_CLK and COMMON_CLK_QCOM as the clock
framework. Fix the following for CLK_QCOM
- Add new configs for common clock framework.
- Remove compilation of audio-ext for COMMON_CLK.
- Remove ARCH hamster and cobalt from falcon defconfig.
- Remove ARCH falcon from cobalt defconfig.
Change-Id: I560d62f9698ddf73848186a6740632735d574b0f
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Linux Build Service Account [Thu, 6 Oct 2016 02:29:28 +0000 (19:29 -0700)]
Merge "soc: qcom: Use syncronization while freeing the qmi_client data"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:27 +0000 (19:29 -0700)]
Merge "Revert "scsi: ufs: gate ref_clk during aggressive clk gating""
Linux Build Service Account [Thu, 6 Oct 2016 02:29:27 +0000 (19:29 -0700)]
Merge "msm: sensor: validate the i2c table index before use"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:26 +0000 (19:29 -0700)]
Merge "ARM: dts: msm: Update VMEM bw for msmcobalt"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:25 +0000 (19:29 -0700)]
Merge "power: bcl: Listen to battery power supply notification for soc"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:24 +0000 (19:29 -0700)]
Merge "sched: Fix integer overflow in sched_update_nr_prod()"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:24 +0000 (19:29 -0700)]
Merge "msm: kgsl: Reschedule idle work in case transition to idle state fails"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:23 +0000 (19:29 -0700)]
Merge "clk: msm: clock-osm: Fix for programming the APM threshold on MSMCOBALT"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:22 +0000 (19:29 -0700)]
Merge "clk: msm: clock-osm: Fix check to write to the LLM OVERRIDE register"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:21 +0000 (19:29 -0700)]
Merge "rmnet_data: Changing format specifier to %pK"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:21 +0000 (19:29 -0700)]
Merge "defconfig: add the iommu options on msmfalcon"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:20 +0000 (19:29 -0700)]
Merge "coresight: hwtracing: fix dangling pointer issues"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:19 +0000 (19:29 -0700)]
Merge "input: synaptics_dsx: allocate heap memory for temp buf"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:19 +0000 (19:29 -0700)]
Merge "sched: Add a device tree property to specify the sched boost type"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:18 +0000 (19:29 -0700)]
Merge "wil6210: extract firmware version from file header"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:17 +0000 (19:29 -0700)]
Merge "arm: topology: Allow specifying the CPU efficiency from device tree"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:16 +0000 (19:29 -0700)]
Merge "ARM: dts: msm: add support for qdss nodes on msmfalcon"
Linux Build Service Account [Thu, 6 Oct 2016 02:29:14 +0000 (19:29 -0700)]
Merge "RFC: FROMLIST: cgroup: reduce read locked section of cgroup_threadgroup_rwsem during fork"
Gaurav Kohli [Wed, 5 Oct 2016 07:04:02 +0000 (12:34 +0530)]
soc: qcom: Use syncronization while freeing the qmi_client data
Potential use after free possibility when trying to access qmi client
data in the ssr notification and root pd_down notification handling.
CRs-Fixed:
1074483
Change-Id: I5390810861dbc1da368757df2b20e5daa35bd081
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
Venkat Gopalakrishnan [Wed, 5 Oct 2016 21:23:55 +0000 (14:23 -0700)]
Revert "scsi: ufs: gate ref_clk during aggressive clk gating"
This reverts commit
ca91fa16a7af ("scsi: ufs: gate ref_clk during
aggressive clk gating").
Reverting this change as its causing stability issues.
Change-Id: Ia04d33d84b5622179f7a496daee5584d4e2dde91
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Harry Yang [Wed, 31 Aug 2016 23:14:29 +0000 (16:14 -0700)]
qpnp-smb2: smb-lib: expose step charging via battery psy properties
Allow for easy track of step charging. Show step charging
status (enable/disable) and phases.
CRs-Fixed:
1052854
Change-Id: I525fcedda71c4928c61825faeea519355675457a
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Nicholas Troast [Wed, 3 Aug 2016 16:49:36 +0000 (09:49 -0700)]
qcom-charger: add storm watch to qpnp-smb2 and smb138x-charger
Interrupts are subject to storming in bad or unexpected circumstances.
Add the necessary structures to detect interrupt storms using storm watch.
Change-Id: Id3491b6f8927cb1ae7cbc8260defa697ca555765
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Nicholas Troast [Tue, 19 Jan 2016 20:34:45 +0000 (12:34 -0800)]
qcom-charger: add support to watch storm of events
Storm watch provides a simple API for tracking the occurrence of event
storms.
An event storm is defined as a cluster of events where there are
X events with no more than Y milliseconds between them, where X and Y
are configurable per event.
Querying whether a storm has occurred marks a new event.
Change-Id: Idf4bb1421d0dbec295f92f84174cd4bbc6130250
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Harry Yang [Wed, 21 Sep 2016 21:56:06 +0000 (14:56 -0700)]
qcom-charger: Fix CC settings for PD session
CC_OUT is the signal/status to the PD that indicates which of
the CC line is active. When its low CC1 is active and when
high CC2 is active.
During Source -> Sink Power Role Swap, CC_OUT is reset default
low (CC1 = CC) when SW sets the UFP/SNK_EN_CMD bit, losing the
plug orientation info and causing USB PD message error if CC2
was the CC pin.
Fix this by ensuring that s/w overrides the CC_OUT signal to
reflect the actual one, in preparation for a possible upcoming
power
CRs-Fixed:
1050738
Change-Id: I5877666c39ac9cad713a5802521527dd8552440c
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Ashwanth Goli [Fri, 26 Aug 2016 09:33:49 +0000 (15:03 +0530)]
rmnet_data: Changing format specifier to %pK
Using %pK instead of %p to hide kernel pointers
based on kptr_restrict.
Change-Id: I065cff2a9e092d74d0e8c35da6551fab3805e83e
Signed-off-by: Ashwanth Goli <ashwanth@codeaurora.org>
Charan Teja Reddy [Thu, 15 Sep 2016 09:32:44 +0000 (02:32 -0700)]
defconfig: add the iommu options on msmfalcon
Add the IOMMU config options that are used for the correct operation of
IOMMU driver on msmfalcon.
Change-Id: Ia6c446eca8a42800e781dfdaf46eab7bd44c126f
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Charan Teja Reddy [Tue, 13 Sep 2016 12:16:41 +0000 (17:46 +0530)]
coresight: hwtracing: fix dangling pointer issues
Fix the dangling pointer issues on CoreSight that can cause the kernel
panic.
Change-Id: Ic20405cf2f64c6bc38e994780577b7da42cf6aba
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Deepak Kumar [Mon, 19 Sep 2016 15:03:22 +0000 (20:33 +0530)]
msm: kgsl: Reschedule idle work in case transition to idle state fails
Reschedule the idle work in case transition to idle state is rejected
because the GPU is busy. This change avoids the condition where
transition to NAP state gets rejected due to a pending IRQ which is
currently getting served by IRQ handler because of which GPU remains
in active state even when GPU is idle.
Change-Id: I472a30b6a0e83cdd6957ed12eaa39d0c7731fcb5
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
Rohit Gupta [Tue, 4 Oct 2016 21:36:18 +0000 (14:36 -0700)]
ARM: dts: msm: Configure bimc-bwmon4 only for msmcobaltv2
The bimc-bwmon4 hardware module is only available on msmcobalt-v2.
Therefore move the bimc-bwmon4 setting to msmcobalt-v2 DT so
that msmcobalt-v1 can continue to use bimc-bwmon3 to measure DDR
bandwidth.
Change-Id: If6a44d83a4088e34eda3604ffa770b46653989f5
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Bhalchandra Gajare [Wed, 5 Oct 2016 00:55:08 +0000 (17:55 -0700)]
ASoC: wcd-dsp-mgr: set status before broadcasting post events
During image download, the status is set after post download events
are broadcasted. This could possibly lead to race condition if other
drivers requested to boot the dsp before the status was set. Change
makes sure the wdsp status is set prior to broadcasting post download
events to avoid possible race conditions.
CRs-fixed:
1071949
Change-Id: If3ec6202b4729b24ee839c3a8aa4edf2482d6e59
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Rohit Gupta [Sat, 1 Oct 2016 01:11:27 +0000 (18:11 -0700)]
ARM: dts: msm: Vote for 681 MHz DDR for Fmax of all CPU speed bins
Change the mapping table of mincpubw to vote for 681MHz at the Fmax
of the lower speed bins of the CPUs.
Change-Id: Ie8b9abaceaa8585ab5b132076772b9c7ca71cbfe
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Deepak Katragadda [Mon, 3 Oct 2016 22:08:06 +0000 (15:08 -0700)]
clk: msm: clock-osm: Fix for programming the APM threshold on MSMCOBALT
The clock driver does not currently use the secure API to write the
APM threshold value. This leads to the value being always left as 0.
Fix the write.
CRs-Fixed:
1074198
Change-Id: I61d8f930f7fe8c3539803a1e9b942095df0b0f86
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Ram Chandrasekar [Mon, 3 Oct 2016 19:37:55 +0000 (13:37 -0600)]
power: bcl: Listen to battery power supply notification for soc
BCL gets the state of charge(soc) from the BMS power supply, which will
not capture the HLOS overidden soc value. This can create a scenario
where the mitigation will not be released if the soc value is
overridden in HLOS.
Use the battery supply notification, which can get the state of charge
value from the BMS or the HLOS overridden soc value if present.
Change-Id: I66d1ba1c6c3a942a80d3cee24746b00541fde3bc
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Harry Yang [Fri, 16 Sep 2016 18:14:49 +0000 (11:14 -0700)]
qpnp-smb2: introduce workaround bit mask
Add a bit mask to enable workarounds only if they are needed for a
particular hardware revision.
Change-Id: Ibd9a896ff6746a48ddab249d7c8ab762ed3c2fbe
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Bhalchandra Gajare [Tue, 27 Sep 2016 05:17:15 +0000 (22:17 -0700)]
ASoC: wcd934x-dsp-cntl: add support for subsystem restart
When the codec DSP is crashed / unresponsive, in order to recover
from the crash, it is required to shutdown and restart the DSP.
Add support for subsystem restart feature to recover from crashes.
CRs-fixed:
1071949
Change-Id: Ibe1918cbf525c41d8fa82fc772b3afe20cac6eb7
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Bhalchandra Gajare [Tue, 27 Sep 2016 05:12:46 +0000 (22:12 -0700)]
ASoC: wcd-spi: fix clock disable
Currently, the clock request is performed during init and the clock
is kept on assuming that there will be code download event followed
by init. This assumption may not always be true and might cause the
clock to be enabled when it is really not needed. Change fixes clock
disable such that clock is disabled right after init and re-enabled
again if code download event is raised.
CRs-fixed:
1071949
Change-Id: Icc415e911653012726e5b81b4fc09199560d5691
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Bhalchandra Gajare [Tue, 27 Sep 2016 04:49:12 +0000 (21:49 -0700)]
ASoC: wcd-dsp-mgr: add support for subsystem restart
It is possible that wcd codec DSP can crash or become unresponsive.
During such case, an error interrupt is generated by the codec. Add
support in manager driver to handle this interrupt and perform
subsystem restart to shutdown and reboot the DSP so that the DSP
can be recovered from the crash.
CRs-fixed:
1071949
Change-Id: I4662b5120bf7f731e399a27d8a613e2f3b648b00
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Deepak Katragadda [Fri, 30 Sep 2016 23:51:50 +0000 (16:51 -0700)]
clk: msm: clock-osm: Fix check to write to the LLM OVERRIDE register
On MSMCOBALT v2, the qcom,llm-sw-overr flag is no longer needed.
This causes an issue where the corresponding array in code is not
filled up but the check to make the writes to the llm register
still succeeds. This leads to us writing 0 to the register
erroneously multiple times. Fix this check.
CRs-Fixed:
1074141
Change-Id: I2dd529a78d06ac08a34546df39cb01ad4c6cb3d5
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Bhalchandra Gajare [Wed, 21 Sep 2016 21:45:07 +0000 (14:45 -0700)]
ASoC: wcd934x-dsp-cntl: add ramdump support
Add support to collect the codec memory dumps when any fatal
interrupt is raised from the DSP indicating the DSP is either
unresponsive/crashed. The memory dumps are only collected if
the debugfs node 'ramdump_enable' is set to true since ramdump
collection is debug only support.
Change-Id: I805ec63d125770b869cac892db8cf56f45510d6d
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Bhalchandra Gajare [Wed, 21 Sep 2016 21:42:23 +0000 (14:42 -0700)]
ASoC: wcd-spi: add support to read requested section of memory
It is possible that the manager driver may try to read codec memory
section through the wcd-spi driver. Add support in the wcd-spi driver
to handle the WDSP_EVENT_READ_SECTION event and perform reading of
the requested memory section.
Change-Id: If7fb228dc15cb47079c8a791443c4d12c29eeb9c
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Bhalchandra Gajare [Wed, 21 Sep 2016 21:36:20 +0000 (14:36 -0700)]
ASoC: wcd-dsp-mgr: add support for collecting memory dumps
The codec driver is notified through interrupt whenever the
DSP in codec is unresponsive/crashed. In such cases, collecting
dumps of the codec memory is useful in debugging the issues.
Change adds support in the wcd dsp manager driver to collect
the memory dumps upon notification of error interrupt.
Change-Id: Ib91cd4fc1476ee1a9ec448cde1a083070443f726
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Bhalchandra Gajare [Sat, 17 Sep 2016 01:55:28 +0000 (18:55 -0700)]
ASoC: wcd-dsp-mgr: add argument to the interrupt handler callback
Currently, when manager driver interrupt handler callback is called,
there is no way for the caller to provide any data information along
with the type of interrupt. Change adds argument to the interrupt
handler so that callers can use this to pass agreed data when an
interrupt occurs.
Change-Id: I1c049227875a802491e21998c13c0bcd8eab7de6
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>