OSDN Git Service
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>
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>
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>
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>
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>
Linux Build Service Account [Fri, 23 Jun 2017 19:09:25 +0000 (12:09 -0700)]
Merge "ath10k: Add change interface handler"
Linux Build Service Account [Fri, 23 Jun 2017 19:09:24 +0000 (12:09 -0700)]
Merge "qpnp-smb2: configure DRP mode after interrupt request"
Linux Build Service Account [Fri, 23 Jun 2017 19:09:23 +0000 (12:09 -0700)]
Merge "arm/arm64: Export save_stack_trace_tsk()"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:57 +0000 (05:56 -0700)]
Merge "ath10k: wait for vdev delete response from firmware"
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"
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"
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"
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"
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"
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"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:39 +0000 (05:56 -0700)]
Merge "smb-lib: add support for float charger reporting"
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"
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"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:36 +0000 (05:56 -0700)]
Merge "btfm: provide a way to query wcn3990 status"
Linux Build Service Account [Fri, 23 Jun 2017 12:56:21 +0000 (05:56 -0700)]
Merge "scsi: ufs: Fix initialization of pointer"
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>
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"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:17 +0000 (23:41 -0700)]
Merge "soc: qcom: sleepstate: Enable/Disable IPCRTR wakelocks"
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"
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'"
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"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:10 +0000 (23:41 -0700)]
Merge "ath10k: Add interface combinations for wcn3990"
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"
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"
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"
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"
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"
Linux Build Service Account [Fri, 23 Jun 2017 06:41:02 +0000 (23:41 -0700)]
Merge "qseecom: use strnlen in qseecom_start_app"
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"
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"
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"
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()"
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>
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>
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>
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>
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>
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""
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"
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"
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"
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"
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"
Linux Build Service Account [Thu, 22 Jun 2017 21:00:15 +0000 (14:00 -0700)]
Merge "diag: Update msg mask tables for new SSID"
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"
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>
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"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:34 +0000 (07:40 -0700)]
Merge "msm: kgsl: convert some workqueues to use kthreads."
Linux Build Service Account [Thu, 22 Jun 2017 14:40:33 +0000 (07:40 -0700)]
Merge "power: smb-lib: Rearrange BOOST_BACK voting logic"
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"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:31 +0000 (07:40 -0700)]
Merge "msm: vidc: Renaming the AU-Delimiter params/extens"
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"
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"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:28 +0000 (07:40 -0700)]
Merge "ath10k: Increase peer delete response wait to 500msec"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:27 +0000 (07:40 -0700)]
Merge "msm:camera: correct stats query out of boundary"
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"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:25 +0000 (07:40 -0700)]
Merge "ais: refine some code style issues"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:24 +0000 (07:40 -0700)]
Merge "ARM: dts: msm: override initial pwrlevel for MSM8996ProAU"
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'"
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"
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."
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"
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"
Linux Build Service Account [Thu, 22 Jun 2017 14:40:17 +0000 (07:40 -0700)]
Merge "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: sps: Fix race condition in SPS debugfs APIs"
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"
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"
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>