OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agodrm/msm/sde: expose 10 bit pixel format capabilities
abeykun [Tue, 20 Dec 2016 18:06:09 +0000 (13:06 -0500)]
drm/msm/sde: expose 10 bit pixel format capabilities

Patch adds RGB 10bit both linear and compressed, P010 linear and
and TP10 compressed pixel formats to plane and writeback capabilities.

Change-Id: Ib5a0b2dacbc1ddc47c069b4348c0d1b9fbd7701e
Signed-off-by: Alexander Beykun <abeykun@codeaurora.org>
7 years agodrm/msm/sde: size check fix for NV12 buffer
Alexander Beykun [Wed, 19 Apr 2017 21:08:35 +0000 (17:08 -0400)]
drm/msm/sde: size check fix for NV12 buffer

Currently for NV12 linear/compressed format if the same gem
object assigned to both planes, total size becomes twice more
than actually allocated. In that case kernel cannot detect
case where meta data planes not allocated for NV12 compressed
buffer and smmu fault happens. Current patch sums sizes only
for different gem objects allowing kernel to detect insufficient
memory allocation for NV12 case.

Change-Id: I0d9f49b8b310f0dff1fb787b4ba821a6d4a68140
Signed-off-by: Alexander Beykun <abeykun@codeaurora.org>
7 years agodrm/msm/sde: move pixel format flags to bitmap
abeykun [Tue, 4 Oct 2016 15:34:15 +0000 (11:34 -0400)]
drm/msm/sde: move pixel format flags to bitmap

Patch changes type of pixel format flags from u32 to bitmap.

Change-Id: I117f3737d78d22b9bd6d78abdb8e96f52fc4e874
Signed-off-by: Alexander Beykun <abeykun@codeaurora.org>
7 years agodrm/msm/sde: add tp10 compressed format support
abeykun [Fri, 26 Aug 2016 15:31:44 +0000 (11:31 -0400)]
drm/msm/sde: add tp10 compressed format support

Add MOD_QCOM_TIGHT modifier on top of DRM_FORMAT_NV12
base pixel format and update plane size calculation
to support compressed tp10 buffers.

Change-Id: I12eb9fecfd34d488eda92f6217b6ca51e466c6f6
Signed-off-by: Alexander Beykun <abeykun@codeaurora.org>
7 years agodrm/msm/sde: add p010 format support in sde
abeykun [Fri, 26 Aug 2016 14:48:09 +0000 (10:48 -0400)]
drm/msm/sde: add p010 format support in sde

Add MOD_QCOM_DX modifier on top of DRM_FORMAT_NV12
base format and update plane size calculation to support
linear and compressed p010 buffers.

Change-Id: I93bd9557e5c4a4a038891f24730edbbec1dba262
Signed-off-by: Alexander Beykun <abeykun@codeaurora.org>
7 years agoMerge "ath10k: Add change interface handler"
Linux Build Service Account [Fri, 23 Jun 2017 19:09:25 +0000 (12:09 -0700)]
Merge "ath10k: Add change interface handler"

7 years agoMerge "qpnp-smb2: configure DRP mode after interrupt request"
Linux Build Service Account [Fri, 23 Jun 2017 19:09:24 +0000 (12:09 -0700)]
Merge "qpnp-smb2: configure DRP mode after interrupt request"

7 years agoMerge "arm/arm64: Export save_stack_trace_tsk()"
Linux Build Service Account [Fri, 23 Jun 2017 19:09:23 +0000 (12:09 -0700)]
Merge "arm/arm64: Export save_stack_trace_tsk()"

7 years agoMerge "ath10k: wait for vdev delete response from firmware"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:57 +0000 (05:56 -0700)]
Merge "ath10k: wait for vdev delete response from firmware"

7 years agoMerge "sound: usb: Add quirk to issue SET_CUR volume on 2nd channel"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:56 +0000 (05:56 -0700)]
Merge "sound: usb: Add quirk to issue SET_CUR volume on 2nd channel"

7 years agoMerge "msm: mdss: dp: fix no display issue on second connection"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:55 +0000 (05:56 -0700)]
Merge "msm: mdss: dp: fix no display issue on second connection"

7 years agoMerge "mdss: dp: check if sink device is connected before DP ON sequence"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:54 +0000 (05:56 -0700)]
Merge "mdss: dp: check if sink device is connected before DP ON sequence"

7 years agoMerge "msm: sde: Remove output fence object after user request completed"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:52 +0000 (05:56 -0700)]
Merge "msm: sde: Remove output fence object after user request completed"

7 years agoMerge "msm: mdss: Change IOMMU map sequence during splash cleanup"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:41 +0000 (05:56 -0700)]
Merge "msm: mdss: Change IOMMU map sequence during splash cleanup"

7 years agoMerge "msm: sde: Convert workq to kernel thread in SDE rotator"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:40 +0000 (05:56 -0700)]
Merge "msm: sde: Convert workq to kernel thread in SDE rotator"

7 years agoMerge "smb-lib: add support for float charger reporting"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:39 +0000 (05:56 -0700)]
Merge "smb-lib: add support for float charger reporting"

7 years agoMerge "power: power_supply_sysfs: Add support for Floating charger"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:38 +0000 (05:56 -0700)]
Merge "power: power_supply_sysfs: Add support for Floating charger"

7 years agoMerge "msm:ipa: Fix to kasan use-after-free issue"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:37 +0000 (05:56 -0700)]
Merge "msm:ipa: Fix to kasan use-after-free issue"

7 years agoMerge "btfm: provide a way to query wcn3990 status"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:36 +0000 (05:56 -0700)]
Merge "btfm: provide a way to query wcn3990 status"

7 years agoMerge "scsi: ufs: Fix initialization of pointer"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:21 +0000 (05:56 -0700)]
Merge "scsi: ufs: Fix initialization of pointer"

7 years agoqpnp-smb2: configure DRP mode after interrupt request
Ashay Jaiswal [Wed, 21 Jun 2017 08:41:41 +0000 (14:11 +0530)]
qpnp-smb2: configure DRP mode after interrupt request

During hardware initialization charger is configured in
DRP mode from force UFP mode and after mode configuration
hardware takes ~300/400 msec for UFP/DFP detection. In case
if the delay between moving to DRP mode and software enabling
interrupts is more than hardware detection delay then software
will miss the detection interrupt. Fix this by moving DRP
configuration after interrupt request this ensures software will
receive interrupt once hardware detection completes.

CRs-Fixed: 2065296
Change-Id: I55c59ed558e8db40a7b1af7638832da1f9547222
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agoMerge "drm: msm: add support for a custom hotplug event"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:18 +0000 (23:41 -0700)]
Merge "drm: msm: add support for a custom hotplug event"

7 years agoMerge "soc: qcom: sleepstate: Enable/Disable IPCRTR wakelocks"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:17 +0000 (23:41 -0700)]
Merge "soc: qcom: sleepstate: Enable/Disable IPCRTR wakelocks"

7 years agoMerge "thermal: qpnp-adc-tm: Fix shutdown path for ADC_TM"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:16 +0000 (23:41 -0700)]
Merge "thermal: qpnp-adc-tm: Fix shutdown path for ADC_TM"

7 years agoMerge "Merge branch 'android-4.4@e76c0fa' into branch 'msm-4.4'"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:15 +0000 (23:41 -0700)]
Merge "Merge branch 'android-4.4@e76c0fa' into branch 'msm-4.4'"

7 years agoMerge "drm/msm: add PLL_ENABLE property to support clock recovery"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:11 +0000 (23:41 -0700)]
Merge "drm/msm: add PLL_ENABLE property to support clock recovery"

7 years agoMerge "ath10k: Add interface combinations for wcn3990"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:10 +0000 (23:41 -0700)]
Merge "ath10k: Add interface combinations for wcn3990"

7 years agoMerge "ASoC: msm: qdsp6v2: Remove size checks when finding ADM cal"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:08 +0000 (23:41 -0700)]
Merge "ASoC: msm: qdsp6v2: Remove size checks when finding ADM cal"

7 years agoMerge "ARM: dts: msm: Update temperature threshold limits for EA for 8998/660/630"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:07 +0000 (23:41 -0700)]
Merge "ARM: dts: msm: Update temperature threshold limits for EA for 8998/660/630"

7 years agoMerge "msm: vidc: Scale clocks with inst load during dcvs setup period"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:06 +0000 (23:41 -0700)]
Merge "msm: vidc: Scale clocks with inst load during dcvs setup period"

7 years agoMerge "qcom: scm: Remove inputs printing from scm_call2_atomic"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:05 +0000 (23:41 -0700)]
Merge "qcom: scm: Remove inputs printing from scm_call2_atomic"

7 years agoMerge "usb: core: Add support to handle multi config audio device"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:04 +0000 (23:41 -0700)]
Merge "usb: core: Add support to handle multi config audio device"

7 years agoMerge "qseecom: use strnlen in qseecom_start_app"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:02 +0000 (23:41 -0700)]
Merge "qseecom: use strnlen in qseecom_start_app"

7 years agoMerge "power: qcom: qpnp-fg-gen3: add missing break in switch statement"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:02 +0000 (23:41 -0700)]
Merge "power: qcom: qpnp-fg-gen3: add missing break in switch statement"

7 years agoMerge "soc: qcom: glink: Move tx_info allocation in beginning"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:01 +0000 (23:41 -0700)]
Merge "soc: qcom: glink: Move tx_info allocation in beginning"

7 years agoMerge "ARM: dts: msm: Remove HDMI hotplug feature for msm8996 ADP"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:00 +0000 (23:41 -0700)]
Merge "ARM: dts: msm: Remove HDMI hotplug feature for msm8996 ADP"

7 years agoMerge "drm/msm: gracefully handle NULL return from setup_pagetable()"
Linux Build Service Account [Fri, 23 Jun 2017 06:40:59 +0000 (23:40 -0700)]
Merge "drm/msm: gracefully handle NULL return from setup_pagetable()"

7 years agoath10k: Add change interface handler
Rakesh Pillai [Wed, 21 Jun 2017 18:55:24 +0000 (00:25 +0530)]
ath10k: Add change interface handler

Change interface handler is not registered with mac80211.
The change interface handler is needed to run p2p go/cli
on the same interface as p2p control interface.

Add change interface handler for ath10k.

CRs-Fixed: 2063870
Change-Id: Ia06850a938b9d5e89d970792e3f0a776693a5f25
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
7 years agoath10k: wait for vdev delete response from firmware
Rakesh Pillai [Wed, 21 Jun 2017 19:12:42 +0000 (00:42 +0530)]
ath10k: wait for vdev delete response from firmware

When we add an interface immediately after removing
the interface the vdev deletion in firmware might not
have been completed. We need to synchronize the vdev creation
with the firmware.

Wait for vdev delete response from firmware when we
remove an interface.

CRs-Fixed: 2065345
Change-Id: Id045087b03d5c5e6451f79b9c1177aca26ed34a2
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
7 years agosound: usb: Add quirk to issue SET_CUR volume on 2nd channel
Ajay Agarwal [Thu, 22 Jun 2017 05:39:33 +0000 (11:09 +0530)]
sound: usb: Add quirk to issue SET_CUR volume on 2nd channel

Some audio devices with two channels require the host
to issue SET_CUR command on the Volume control on
both the channels in order to function (playback or
record). Currently, the Linux Host driver issues SET_CUR
only for the 1st channel. Hence, add the quirk for
concerned devices for SET_CUR on 2nd channel.

Change-Id: I6f0bbcdfd3a8b3ccb33a1d56c252c701849a442f
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
7 years agosoc: qcom: sleepstate: Enable/Disable IPCRTR wakelocks
Ramakrishnan Ganesh [Fri, 26 May 2017 19:39:38 +0000 (12:39 -0700)]
soc: qcom: sleepstate: Enable/Disable IPCRTR wakelocks

The acquiring of wakelock prevents the system from entering
suspend for high frequency non-wakeup sensor requests. With
the change IPCRTR now does not acquire a wakelock while cpu
is out of suspend. This allows the cpu to enter suspend.
The wakelocks are enabled in the suspend path so that future
wakeup capable sensor events gets handled without issues.
The wakelocks are disabled post resume from suspend.
This change affects only the data on the SLPI edge.

Change-Id: Iae3dafb735bfb0d3000487f2fa2216d68e9a026f
Signed-off-by: Ramakrishnan Ganesh <ramakris@codeaurora.org>
7 years agodrm: msm: add support for a custom hotplug event
Tatenda Chipeperekwa [Thu, 1 Jun 2017 23:35:59 +0000 (16:35 -0700)]
drm: msm: add support for a custom hotplug event

Add support for a custom hotplug event that is triggered when the
status of the connector has changed. The event string of the
custom event will be in the following format:
"name=<connector name> status=<connector status>"
For example, when the DisplayPort connector has its status
updated to connected then the event string that is used as part
of the hotplug event will be as follows:
"name=DP-1 status=connected"
If the connector name is not known or is invalid at the time that
the event is triggered then the name will be reported as "unknown".

Change-Id: I5d6164d1e8e651cb05527733d68fa86fefb9e6ce
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
7 years agoMerge "Revert "msm: kgsl: Offload mementry destroy work to separate thread""
Linux Build Service Account [Thu, 22 Jun 2017 21:00:22 +0000 (14:00 -0700)]
Merge "Revert "msm: kgsl: Offload mementry destroy work to separate thread""

7 years agoMerge "sched: avoid migrating when softint on tgt cpu should be short"
Linux Build Service Account [Thu, 22 Jun 2017 21:00:21 +0000 (14:00 -0700)]
Merge "sched: avoid migrating when softint on tgt cpu should be short"

7 years agoMerge "arm64: dma-mapping: fix aliasing issues with non-CMA alloc"
Linux Build Service Account [Thu, 22 Jun 2017 21:00:20 +0000 (14:00 -0700)]
Merge "arm64: dma-mapping: fix aliasing issues with non-CMA alloc"

7 years agoMerge "mmc: sdhci-msm: Don't turnoff Vcc during initialization"
Linux Build Service Account [Thu, 22 Jun 2017 21:00:19 +0000 (14:00 -0700)]
Merge "mmc: sdhci-msm: Don't turnoff Vcc during initialization"

7 years agoMerge "power: smb-lib: Add support to detect weak charger"
Linux Build Service Account [Thu, 22 Jun 2017 21:00:18 +0000 (14:00 -0700)]
Merge "power: smb-lib: Add support to detect weak charger"

7 years agoMerge "soc: qcom: glink: Move tx_wakeup_worker to rx tasklet"
Linux Build Service Account [Thu, 22 Jun 2017 21:00:17 +0000 (14:00 -0700)]
Merge "soc: qcom: glink: Move tx_wakeup_worker to rx tasklet"

7 years agoMerge "diag: Update msg mask tables for new SSID"
Linux Build Service Account [Thu, 22 Jun 2017 21:00:15 +0000 (14:00 -0700)]
Merge "diag: Update msg mask tables for new SSID"

7 years agoMerge "drm/msm: Move memptrs to msm_gpu and reorganize"
Linux Build Service Account [Thu, 22 Jun 2017 21:00:12 +0000 (14:00 -0700)]
Merge "drm/msm: Move memptrs to msm_gpu and reorganize"

7 years agoarm/arm64: Export save_stack_trace_tsk()
Dustin Brown [Tue, 13 Jun 2017 20:54:38 +0000 (13:54 -0700)]
arm/arm64: Export save_stack_trace_tsk()

The kernel watchdog is a great debugging tool for finding tasks that
consume a disproportionate amount of CPU time in contiguous chunks. One
can imagine building a similar watchdog for arbitrary driver threads
using save_stack_trace_tsk() and print_stack_trace(). However, this is
not viable for dynamically loaded driver modules on ARM platforms
because save_stack_trace_tsk() is not exported for those architectures.
Export save_stack_trace_tsk() for the ARM64 architecture to align with
x86 and support various debugging use cases such as arbitrary driver
thread watchdog timers.

Change-Id: I61e9d2afc4703a786fa6dcaf82fe46c0ed250045
CRs-Fixed: 2061326
Signed-off-by: Dustin Brown <dustinb@codeaurora.org>
7 years agoMerge "icnss: fix the memory and kernel info leak due to the race condition"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:35 +0000 (07:40 -0700)]
Merge "icnss: fix the memory and kernel info leak due to the race condition"

7 years agoMerge "msm: kgsl: convert some workqueues to use kthreads."
Linux Build Service Account [Thu, 22 Jun 2017 14:40:34 +0000 (07:40 -0700)]
Merge "msm: kgsl: convert some workqueues to use kthreads."

7 years agoMerge "power: smb-lib: Rearrange BOOST_BACK voting logic"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:33 +0000 (07:40 -0700)]
Merge "power: smb-lib: Rearrange BOOST_BACK voting logic"

7 years agoMerge "msm: vidc: Recompute extradata address of buffers with ref 2"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:32 +0000 (07:40 -0700)]
Merge "msm: vidc: Recompute extradata address of buffers with ref 2"

7 years agoMerge "msm: vidc: Renaming the AU-Delimiter params/extens"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:31 +0000 (07:40 -0700)]
Merge "msm: vidc: Renaming the AU-Delimiter params/extens"

7 years agoMerge "msm: camera: validate num_streams in stream_cfg_cmd before using it"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:30 +0000 (07:40 -0700)]
Merge "msm: camera: validate num_streams in stream_cfg_cmd before using it"

7 years agoMerge "ARM: dts: msm: Update sensor device node for SDM660 QRD"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:29 +0000 (07:40 -0700)]
Merge "ARM: dts: msm: Update sensor device node for SDM660 QRD"

7 years agoMerge "ath10k: Increase peer delete response wait to 500msec"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:28 +0000 (07:40 -0700)]
Merge "ath10k: Increase peer delete response wait to 500msec"

7 years agoMerge "msm:camera: correct stats query out of boundary"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:27 +0000 (07:40 -0700)]
Merge "msm:camera: correct stats query out of boundary"

7 years agoMerge "clk: qcom: osm: Initialize ACD when the cluster is online"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:26 +0000 (07:40 -0700)]
Merge "clk: qcom: osm: Initialize ACD when the cluster is online"

7 years agoMerge "ais: refine some code style issues"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:25 +0000 (07:40 -0700)]
Merge "ais: refine some code style issues"

7 years agoMerge "ARM: dts: msm: override initial pwrlevel for MSM8996ProAU"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:24 +0000 (07:40 -0700)]
Merge "ARM: dts: msm: override initial pwrlevel for MSM8996ProAU"

7 years agoMerge "Merge branch 'android-4.4@6fc0573' into branch 'msm-4.4'"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:23 +0000 (07:40 -0700)]
Merge "Merge branch 'android-4.4@6fc0573' into branch 'msm-4.4'"

7 years agoMerge "wil6210: protect against invalid length of tx management frame"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:22 +0000 (07:40 -0700)]
Merge "wil6210: protect against invalid length of tx management frame"

7 years agoMerge "msm: camera: Add error check for cmd in IOCTL."
Linux Build Service Account [Thu, 22 Jun 2017 14:40:20 +0000 (07:40 -0700)]
Merge "msm: camera: Add error check for cmd in IOCTL."

7 years agoMerge "drivers: soc: qcom: rpm_stats: Add mutex lock for shared data"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:19 +0000 (07:40 -0700)]
Merge "drivers: soc: qcom: rpm_stats: Add mutex lock for shared data"

7 years agoMerge "msm: camera: fix untrusted pointer for power down setting"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:18 +0000 (07:40 -0700)]
Merge "msm: camera: fix untrusted pointer for power down setting"

7 years agoMerge "msm: ipa3: fix compatibility with ipa_nat driver"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:17 +0000 (07:40 -0700)]
Merge "msm: ipa3: fix compatibility with ipa_nat driver"

7 years agoMerge "msm: sps: Fix race condition in SPS debugfs APIs"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:17 +0000 (07:40 -0700)]
Merge "msm: sps: Fix race condition in SPS debugfs APIs"

7 years agoMerge "msm: camera: fix untrusted pointer for power down setting"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:16 +0000 (07:40 -0700)]
Merge "msm: camera: fix untrusted pointer for power down setting"

7 years agoMerge "msm: camera: Use mutex lock to avoid race condition"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:15 +0000 (07:40 -0700)]
Merge "msm: camera: Use mutex lock to avoid race condition"

7 years agoarm64: dma-mapping: fix aliasing issues with non-CMA alloc
Vinayak Menon [Wed, 21 Jun 2017 05:47:39 +0000 (11:17 +0530)]
arm64: dma-mapping: fix aliasing issues with non-CMA alloc

Cache flush and clearing of logical mapping is done right now
only when the allocation is from CMA, for allocation requests
with DMA_ATTR_STRONGLY_ORDERED or DMA_ATTR_NO_KERNEL_MAPPING
set. Extend this to non-CMA allocations too, to avoid cache
aliasing issues.

Change-Id: I133d34d79665ee7159fe384121e933d7768748c2
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
7 years agoRevert "msm: kgsl: Offload mementry destroy work to separate thread"
Hareesh Gundu [Fri, 16 Jun 2017 11:36:57 +0000 (17:06 +0530)]
Revert "msm: kgsl: Offload mementry destroy work to separate thread"

This reverts commit 281fcb5e184b9d1074dd404016cebacce12a8664.

To address the issue with the OOMkiller causing to kill the
foreground application.

Change-Id: Ie4c078d706fdf1c13ad45840f72b414ddc37c1d0
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Signed-off-by: Venkateswara Rao Tadikonda <vtadik@codeaurora.org>
7 years agothermal: qpnp-adc-tm: Fix shutdown path for ADC_TM
Siddartha Mohanadoss [Fri, 16 Jun 2017 04:15:15 +0000 (21:15 -0700)]
thermal: qpnp-adc-tm: Fix shutdown path for ADC_TM

Update ADC_TM shutdown path for VADC HC peripheral.

Change-Id: I3d524c6189402e39bf1911288ab4691f5df84066
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
7 years agoicnss: fix the memory and kernel info leak due to the race condition
Sarada Prasanna Garnayak [Thu, 8 Jun 2017 10:04:13 +0000 (15:34 +0530)]
icnss: fix the memory and kernel info leak due to the race condition

The icnss register read/write debugfs entry can be  accessed by
multiple user space thread. Memory allocation and deallocation
in the register read/write file operation leads to potential memory
leak during concurrency access of debugfs device file.

Add protection to avoid the memory leak and kernel information
leak due to the race condition in the register read/write ops.

CRs-Fixed: 2012572
Change-Id: I22c6af9a396c0df4e68f75702fc68a5dff5af032
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
7 years agomsm: kgsl: convert some workqueues to use kthreads.
Tim Murray [Mon, 20 Feb 2017 10:29:32 +0000 (15:59 +0530)]
msm: kgsl: convert some workqueues to use kthreads.

adreno_dispatch_work and _kgsl_event_worker are both low-latency
low-runtime functions that are in the critical path of GPU
rendering. Moving them out of workqueues and into a dedicated FIFO
kthread avoids significant jitter.

bug 30342017

Git-commit: 1a7a93bd33f48a369de29f6f2b56251127bf6ab4
Git-repo: https://android.googlesource.com/kernel/msm

Change-Id: I83562f488c34c2ab001c8ea79e7f09b633c658bd
Signed-off-by: Tim Murray <timmurray@google.com>
Signed-off-by: Abhilash Kumar <krabhi@codeaurora.org>
7 years agommc: sdhci-msm: Don't turnoff Vcc during initialization
Veerabhadrarao Badiganti [Wed, 21 Jun 2017 13:57:32 +0000 (19:27 +0530)]
mmc: sdhci-msm: Don't turnoff Vcc during initialization

As per emmc specification, device should be notified either with
power-off or sleep notification before turning off the Vcc.
Failing to do so might affect the device longevity.

In mmc driver initialization phase even before device probing
gets completed, Vcc is getting turned off without these notifications.
Since it can't send commands at this stage, So just ensure that Vcc
is not turned off till initialization gets completed.

Change-Id: I0bbf0077357d66c888147be40a0c5d312b9ce063
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
7 years agodrm/msm: add PLL_ENABLE property to support clock recovery
Ray Zhang [Tue, 13 Jun 2017 07:54:33 +0000 (15:54 +0800)]
drm/msm: add PLL_ENABLE property to support clock recovery

PLL_ENABLE property is used to enable or disable the PLL
update function. With this property PLL update function
only works when PLL_ENABLE is set, and all changes done
to hardware will be discarded once PLL_ENABLE is cleared.

CRs-Fixed: 2042852
Change-Id: Ia321918382b8622101cff566049284810833f63e
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
7 years agosoc: qcom: glink: Move tx_wakeup_worker to rx tasklet
Chris Lew [Thu, 11 May 2017 23:54:10 +0000 (16:54 -0700)]
soc: qcom: glink: Move tx_wakeup_worker to rx tasklet

Do tx wakeup worker functionality in rx worker tasklet instead
of scheduling the work to be done in worker context to improve
performance.

CRs-Fixed: 2050701
Change-Id: Iba620e7e264805ed02a35603da1fb6c985de7d43
Signed-off-by: Chris Lew <clew@codeaurora.org>
7 years agopower: smb-lib: Add support to detect weak charger
Ashay Jaiswal [Wed, 14 Jun 2017 10:34:45 +0000 (16:04 +0530)]
power: smb-lib: Add support to detect weak charger

A weak charger might trigger switcher_power_ok interrupt storm
which gets incorrectly detected as a boost_back condition and
input gets suspended. Add a logic to distinguish a weak charger
and the boost_back condition by first reducing the ICL current
to a lower value (500mA by default) on detecting a
switcher_power_ok storm. If the switcher_ok storm disappears
then its indeed a weak charger and if the storm continues its
possibly a boost_back condition.

Change-Id: I46b406e403aa16a502e6da149b180545848fc906
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agopower: smb-lib: Rearrange BOOST_BACK voting logic
Anirudh Ghayal [Fri, 26 May 2017 04:11:25 +0000 (09:41 +0530)]
power: smb-lib: Rearrange BOOST_BACK voting logic

The BOOST_BACK USB-ICL voter needs to be removed in the
following conditions -

1. VBUS falling path during PD hard-reset
2. typeC removal
3. False boost-back detected

For (1) and (2) - remove the boost_back vote in the usbin_handler
and typec_removal path. For (3) add a worker which removes the
boost_back vote after the boost-back condition is detected. The
delay is sufficient to recover from both a valid and an incorrectly
detected boost-back condition.

CRs-Fixed: 2051908
Change-Id: I9d1d04f392bb6040b0565510ff7d1032bb036de2
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
7 years agoath10k: Add interface combinations for wcn3990
Rakesh Pillai [Fri, 14 Apr 2017 05:52:33 +0000 (11:22 +0530)]
ath10k: Add interface combinations for wcn3990

Interface combinations were not present for wnc3990.
Add interface combinations for wcn3990.

CRs-Fixed: 2063866
Change-Id: I20a4db54c87c91a154ca63125a06ff78958b12cd
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
7 years agoARM: dts: msm: Update temperature threshold limits for EA for 8998/660/630
Naresh Malladi [Mon, 19 Jun 2017 11:36:21 +0000 (17:06 +0530)]
ARM: dts: msm: Update temperature threshold limits for EA for 8998/660/630

Current limits are causing frequent wakeups at lower temperature.
Update higher and lower limits such that msm-core energy-aware driver
will not get too many notifications to avoid unnecessary wakeups.

Change-Id: I608aad0616d2f4e98c9d06ac1ccead9b3444817a
Signed-off-by: Naresh Malladi <namall@codeaurora.org>
7 years agomsm: camera: validate num_streams in stream_cfg_cmd before using it
Terence Ho [Wed, 14 Jun 2017 20:05:57 +0000 (16:05 -0400)]
msm: camera: validate num_streams in stream_cfg_cmd before using it

stream_cfg_cmd->num_streams is from userspace,
need to check it against MSM_ISP_STATS_MAX before using it.

CRs-Fixed: 2029867
Change-Id: I02a71b983947981806470454654d712bcc732077
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
7 years agoath10k: Increase peer delete response wait to 500msec
Rakesh Pillai [Tue, 20 Jun 2017 07:31:21 +0000 (13:01 +0530)]
ath10k: Increase peer delete response wait to 500msec

Peer creation in firmware fails if last peer deletion is still
in progress. Need to wait for peer delete response from firmware
after deleting peer from host driver.

Increase the peer delete response wait time to 500msec.

CRs-Fixed: 2063832
Change-Id: I1c1c2500ae7f8ff1448f6b726d30dbbe3334957c
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
7 years agoARM: dts: msm: Update sensor device node for SDM660 QRD
Depeng Shao [Thu, 8 Jun 2017 08:50:33 +0000 (16:50 +0800)]
ARM: dts: msm: Update sensor device node for SDM660 QRD

Update main and aux camera sensor dvdd configuration
to enable the vreg and ldo together.

Change-Id: Iacc79799d1c06a3385a8cfd9ef80d707f8fa8d69
Signed-off-by: Depeng Shao <depengs@codeaurora.org>
7 years agosmb-lib: add support for float charger reporting
Ashay Jaiswal [Wed, 21 Jun 2017 06:38:38 +0000 (12:08 +0530)]
smb-lib: add support for float charger reporting

Report adapter type as USB_FLOAT if charger hardware detects a
floating charger this will allow USB driver to try/start
communication over Tx/Rx line during compliance testing.

Change-Id: I1d1e91e99806423a3e995876e9db4582ed0f1b08
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agopower: power_supply_sysfs: Add support for Floating charger
Ashay Jaiswal [Wed, 21 Jun 2017 06:27:35 +0000 (11:57 +0530)]
power: power_supply_sysfs: Add support for Floating charger

Add support to register a Floating type charger.

Change-Id: Ib65eff52a42d639a90f162488337a554deab4bfa
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agomsm:camera: correct stats query out of boundary
Fei Zhang [Tue, 20 Jun 2017 06:37:50 +0000 (14:37 +0800)]
msm:camera: correct stats query out of boundary

Fix a potential out of boundary query of stats info.

CRs-Fixed: 2041066
Change-Id: I76d4aa8c8ddd523fde007bfb6fa387a17930c2ba
Signed-off-by: Fei Zhang <feizhang@codeaurora.org>
7 years agobtfm: provide a way to query wcn3990 status
Satish Kodishala [Thu, 18 May 2017 13:49:30 +0000 (19:19 +0530)]
btfm: provide a way to query wcn3990 status

provide a way to query wcn3990 status. Audio hal
uses this to cleanup its stack when BT is turned off
or SCO is disconnected during SCO devices selection.

CRs-Fixed: 2061191
Change-Id: I3c10559c6ca34692c7f147b5cc2f0101b0bfbbf9
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
7 years agoqcom: scm: Remove inputs printing from scm_call2_atomic
Prasad Sodagudi [Sat, 17 Jun 2017 19:40:35 +0000 (12:40 -0700)]
qcom: scm: Remove inputs printing from scm_call2_atomic

'Commit 394c5c6ca08ad9 ("qcom: scm: remove printing
input arguments")' removed inputs printing in error
case from scm_call2 API only. So remove inputs
printing from scm_call2_atomic API too.

Change-Id: I21bb8e1b58ba03cc3e3d8ca7e4d4ab062677a0b0
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
7 years agoais: refine some code style issues
Andy Sun [Wed, 14 Jun 2017 08:19:58 +0000 (16:19 +0800)]
ais: refine some code style issues

1. function/variable static declare;
2. dereference of noderef expression;
3. cast removes address space of expression;
4. using plain integer as NULL pointer;

Change-Id: If11a29aca93380de68a323880d55597bf320470f
Signed-off-by: Andy Sun <bins@codeaurora.org>
7 years agousb: core: Add support to handle multi config audio device
Hemant Kumar [Thu, 8 Jun 2017 02:08:33 +0000 (19:08 -0700)]
usb: core: Add support to handle multi config audio device

A USB audio class 3.0 based device may express different audio interface
associations representing the same underlying hardware by using multiple
USB device configuration descriptors. Using BOS configuration summary
descriptor host software can choose which configuration to set. This is
done by going over list of configuration summary descriptors and selecting
the first available configuration supporting BADD subclass of UAC 3.0
protocol.

Change-Id: I548b362437deb525f952d4450cfae7420a524c65
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
7 years agoqseecom: use strnlen in qseecom_start_app
Zhen Kong [Fri, 16 Jun 2017 18:55:07 +0000 (11:55 -0700)]
qseecom: use strnlen in qseecom_start_app

The appname received by qseecom_start_app() can be non-null terminated
string beyond the max size check. Change strlen to strnlen.

CRs-fixed: 2062061
Change-Id: I845d244336b5c81cedb2153d1303585f16819d58
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
7 years agomsm: sde: Convert workq to kernel thread in SDE rotator
Benjamin Chan [Wed, 9 Nov 2016 02:38:10 +0000 (21:38 -0500)]
msm: sde: Convert workq to kernel thread in SDE rotator

Fix performance issue in SDE rotator by coverting workq into kernel
thread. workq priority is not high enough and can be easily preempted.
For sde rotator being used for realtime deadline usecase, it is
necessary to move up the priority of the worker thread, and we need to
move into kernel thread to handle the works.

Change-Id: Id77e80cb69162326a3894a41bec295bb9bd7f5c1
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
7 years agoMerge branch 'android-4.4@e76c0fa' into branch 'msm-4.4'
Blagovest Kolenichev [Thu, 15 Jun 2017 14:41:05 +0000 (07:41 -0700)]
Merge branch 'android-4.4@e76c0fa' into branch 'msm-4.4'

* refs/heads/tmp-e76c0fa
  Linux 4.4.72
  arm64: ensure extension of smp_store_release value
  arm64: armv8_deprecated: ensure extension of addr
  usercopy: Adjust tests to deal with SMAP/PAN
  RDMA/qib,hfi1: Fix MR reference count leak on write with immediate
  arm64: entry: improve data abort handling of tagged pointers
  arm64: hw_breakpoint: fix watchpoint matching for tagged pointers
  Make __xfs_xattr_put_listen preperly report errors.
  NFSv4: Don't perform cached access checks before we've OPENed the file
  NFS: Ensure we revalidate attributes before using execute_ok()
  mm: consider memblock reservations for deferred memory initialization sizing
  net: better skb->sender_cpu and skb->napi_id cohabitation
  serial: sh-sci: Fix panic when serial console and DMA are enabled
  tty: Drop krefs for interrupted tty lock
  drivers: char: mem: Fix wraparound check to allow mappings up to the end
  ASoC: Fix use-after-free at card unregistration
  ALSA: timer: Fix missing queue indices reset at SNDRV_TIMER_IOCTL_SELECT
  ALSA: timer: Fix race between read and ioctl
  drm/nouveau/tmr: fully separate alarm execution/pending lists
  drm/vmwgfx: Make sure backup_handle is always valid
  drm/vmwgfx: limit the number of mip levels in vmw_gb_surface_define_ioctl()
  drm/vmwgfx: Handle vmalloc() failure in vmw_local_fifo_reserve()
  perf/core: Drop kernel samples even though :u is specified
  powerpc/hotplug-mem: Fix missing endian conversion of aa_index
  powerpc/numa: Fix percpu allocations to be NUMA aware
  powerpc/eeh: Avoid use after free in eeh_handle_special_event()
  scsi: qla2xxx: don't disable a not previously enabled PCI device
  KVM: arm/arm64: Handle possible NULL stage2 pud when ageing pages
  btrfs: fix memory leak in update_space_info failure path
  btrfs: use correct types for page indices in btrfs_page_exists_in_range
  cxl: Fix error path on bad ioctl
  ufs_getfrag_block(): we only grab ->truncate_mutex on block creation path
  ufs_extend_tail(): fix the braino in calling conventions of ufs_new_fragments()
  ufs: set correct ->s_maxsize
  ufs: restore maintaining ->i_blocks
  fix ufs_isblockset()
  ufs: restore proper tail allocation
  fs: add i_blocksize()
  cpuset: consider dying css as offline
  Input: elantech - add Fujitsu Lifebook E546/E557 to force crc_enabled
  drm/msm: Expose our reservation object when exporting a dmabuf.
  target: Re-add check to reject control WRITEs with overflow data
  cpufreq: cpufreq_register_driver() should return -ENODEV if init fails
  stackprotector: Increase the per-task stack canary's random range from 32 bits to 64 bits on 64-bit platforms
  random: properly align get_random_int_hash
  drivers: char: random: add get_random_long()
  iio: proximity: as3935: fix AS3935_INT mask
  iio: light: ltr501 Fix interchanged als/ps register field
  staging/lustre/lov: remove set_fs() call from lov_getstripe()
  usb: chipidea: debug: check before accessing ci_role
  usb: chipidea: udc: fix NULL pointer dereference if udc_start failed
  usb: gadget: f_mass_storage: Serialize wake and sleep execution
  ext4: fix fdatasync(2) after extent manipulation operations
  ext4: keep existing extra fields when inode expands
  ext4: fix SEEK_HOLE
  xen-netfront: cast grant table reference first to type int
  xen-netfront: do not cast grant table reference to signed short
  xen/privcmd: Support correctly 64KB page granularity when mapping memory
  dmaengine: ep93xx: Always start from BASE0
  dmaengine: usb-dmac: Fix DMAOR AE bit definition
  KVM: async_pf: avoid async pf injection when in guest mode
  arm: KVM: Allow unaligned accesses at HYP
  KVM: cpuid: Fix read/write out-of-bounds vulnerability in cpuid emulation
  kvm: async_pf: fix rcu_irq_enter() with irqs enabled
  nfsd: Fix up the "supattr_exclcreat" attributes
  nfsd4: fix null dereference on replay
  drm/amdgpu/ci: disable mclk switching for high refresh rates (v2)
  crypto: gcm - wait for crypto op not signal safe
  KEYS: fix freeing uninitialized memory in key_update()
  KEYS: fix dereferencing NULL payload with nonzero length
  ptrace: Properly initialize ptracer_cred on fork
  serial: ifx6x60: fix use-after-free on module unload
  arch/sparc: support NR_CPUS = 4096
  sparc64: delete old wrap code
  sparc64: new context wrap
  sparc64: add per-cpu mm of secondary contexts
  sparc64: redefine first version
  sparc64: combine activate_mm and switch_mm
  sparc64: reset mm cpumask after wrap
  sparc: Machine description indices can vary
  sparc64: mm: fix copy_tsb to correctly copy huge page TSBs
  net: bridge: start hello timer only if device is up
  net: ethoc: enable NAPI before poll may be scheduled
  net: ping: do not abuse udp_poll()
  ipv6: Fix leak in ipv6_gso_segment().
  vxlan: fix use-after-free on deletion
  tcp: disallow cwnd undo when switching congestion control
  cxgb4: avoid enabling napi twice to the same queue
  ipv6: xfrm: Handle errors reported by xfrm6_find_1stfragopt()
  bnx2x: Fix Multi-Cos
  ANDROID: uid_sys_stats: check previous uid_entry before call find_or_register_uid
  ANDROID: sdcardfs: d_splice_alias can return error values

Change-Id: I829ebf1a9271dcf0462c537e7bfcbcfde322f336
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
7 years agomsm: camera: Add error check for cmd in IOCTL.
Terence Ho [Wed, 14 Jun 2017 19:49:25 +0000 (15:49 -0400)]
msm: camera: Add error check for cmd in IOCTL.

Return EINVAL if cmd is not v4l2 PRIVATE_IOCTL_CMD.

CRs-Fixed: 2016416
Change-Id: I6758bc9d6b159b2e2e4eba5a9d9a3882de320041
Signed-off-by: Terence Ho <terenceh@codeaurora.org>
7 years agopower: qcom: qpnp-fg-gen3: add missing break in switch statement
Nicholas Troast [Tue, 20 Jun 2017 16:33:21 +0000 (09:33 -0700)]
power: qcom: qpnp-fg-gen3: add missing break in switch statement

A break is missing in a switch statement. Add it.

Change-Id: Ib298194957ff2cc1aaba5bd4335afe9d0f9cf6f5
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agosoc: qcom: glink: Move tx_info allocation in beginning
Dhoat Harpal [Fri, 12 May 2017 16:01:47 +0000 (21:31 +0530)]
soc: qcom: glink: Move tx_info allocation in beginning

TX_info is allocated after pop remote intent, this can cause problem
when there is no memory for allocation then glink has to push back the
intent, which again needs memory.

Tx_info allocation is moved before op remote intent.

CRs-Fixed: 2063427
Change-Id: I4f174c4b0143454596ac8f7a1c639c853b98a2ce
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>