OSDN Git Service
Taniya Das [Mon, 23 Apr 2018 03:59:58 +0000 (09:29 +0530)]
clk: qcom: Retrieve pre_div from freq_tbl for shared RCG
There could be cases where a simultaneous clk_disable and clk_set_rate on
the same rcg could result in a wrong recalc rate. So for shared rcgs
get the pre_div value based on the current frequency from the frequency
table.
Change-Id: I575855a3a054bb405f54e1ae0d5feba755aada18
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Linux Build Service Account [Thu, 19 Apr 2018 09:49:35 +0000 (02:49 -0700)]
Merge "ARM: dts: msm: update icnss device node for sdm660 and sdm630"
Linux Build Service Account [Thu, 19 Apr 2018 09:49:33 +0000 (02:49 -0700)]
Merge "defconfig: msm: Enable SMD packet driver for msm8996-auto"
Linux Build Service Account [Wed, 18 Apr 2018 22:10:16 +0000 (15:10 -0700)]
Merge "clk: qcom: Update DSI PLL settings as per latest recommendation"
Linux Build Service Account [Wed, 18 Apr 2018 22:10:15 +0000 (15:10 -0700)]
Merge "usb: phy-msm-susb-qmp: power down phy upon disconnect notification"
Linux Build Service Account [Wed, 18 Apr 2018 11:50:58 +0000 (04:50 -0700)]
Merge "ARM: dts: msm: enable secure smmu domain on msm8996"
Linux Build Service Account [Wed, 18 Apr 2018 11:50:57 +0000 (04:50 -0700)]
Merge "mmc: card: Service RPMB requests with priority over other requests"
Linux Build Service Account [Wed, 18 Apr 2018 11:50:56 +0000 (04:50 -0700)]
Merge "voice_svc: Avoid double free in voice_svc driver"
Linux Build Service Account [Wed, 18 Apr 2018 11:50:54 +0000 (04:50 -0700)]
Merge "init/main: Put kernel end place_marker"
Linux Build Service Account [Wed, 18 Apr 2018 11:50:53 +0000 (04:50 -0700)]
Merge "mmc: card: Call blk_requeue_request() with queue-lock held"
Linux Build Service Account [Wed, 18 Apr 2018 11:50:52 +0000 (04:50 -0700)]
Merge "v4l2-core: Remove unhelpful warnings"
Sarada Prasanna Garnayak [Tue, 17 Apr 2018 07:33:16 +0000 (13:03 +0530)]
ARM: dts: msm: update icnss device node for sdm660 and sdm630
Invalid min and max voltage configuration for the vdd-0.8-cx-mx
voltage regulator is causing smmu error after WLAN hardware reset.
To fix the above issue update the icnss wlan module vdd-0.8-cx-mx
regulator min and max voltage configuration value.
CRs-Fixed:
2175145
Change-Id: I293d1d3802c5a0bd3ba7244422ed46d16ef940b0
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
Arun Kumar Neelakantam [Tue, 17 Apr 2018 09:14:50 +0000 (14:44 +0530)]
defconfig: msm: Enable SMD packet driver for msm8996-auto
SMD packet driver provide access to SMD resources from the
user space through device nodes.
CRs-Fixed:
2223967
Change-Id: I3d458493994f877bfc0bf252ad9e1d5f5e180138
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Linux Build Service Account [Tue, 17 Apr 2018 05:39:43 +0000 (22:39 -0700)]
Merge "mm-camera2:isp2: Release buffer lock after use"
Linux Build Service Account [Tue, 17 Apr 2018 05:39:42 +0000 (22:39 -0700)]
Merge "ARM: dts: msm: Update client-id for sde_kms_hyp"
Linux Build Service Account [Tue, 17 Apr 2018 05:39:40 +0000 (22:39 -0700)]
Merge "soc: qcom: scm: Support single HAB id for QCPE"
Vivek Kumar [Fri, 13 Apr 2018 06:40:32 +0000 (12:10 +0530)]
init/main: Put kernel end place_marker
Put kernel end place_marker for all targets.
This saves the kernel end time for targets which
enable MSM_BOOT_TIME_MARKER.
Change-Id: Iad635e971bdd341328d40681b7acf8a6f43f288d
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
Veerabhadrarao Badiganti [Fri, 16 Mar 2018 08:10:35 +0000 (13:40 +0530)]
mmc: card: Call blk_requeue_request() with queue-lock held
blk_requeue_request() must be called with queue lock held.
If it is called without this lock then there is a chance that block-
queue would be accessed simultaneously by more than one entity (say,
request completion & re-queue) and both can mess-up the queue
pointers which can result in unexpected results.
Change-Id: If81711ecf65a185f4c8dc19b8568621460c93db8
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Veerabhadrarao Badiganti [Mon, 9 Oct 2017 17:19:49 +0000 (22:49 +0530)]
mmc: card: Service RPMB requests with priority over other requests
RPMB requests are initiated from TZ and TZ gets blocked from servicing
other tasks/requests till it completes RPMB request. Delays in
servicing RPMB request may result in system-level stability/performance
issues.
Below is the issue observed:
1. TZ rpmb API is called to update TA rollback information. TZ forwards
the request to HLOS mmc driver via rpmb-service.
2. mmc driver services the rpmb requests only after finishing the
outstanding IO requests.
3. As part of handling an IO requests, mmc driver makes ICE call
for getting encryption keys, which in-turn makes call to TZ.
4. Since ICE driver finds TZ is busy/blocked it returns ice request
with -EBUSY error.
5. The failed requests with -EBUSY error would re-queued back.
6. The IO requests keep getting failed and keep getting re-queued
and mmc driver never gets a chance to service rpmb requests.
7. This results in a deadlock senario.
So RPMB requests need to be serviced immediately.
If there is any outstanding RPMB request, then mmc driver should stop
pulling any more new requests. The moment its done with serving
ongoing requests, It should start processing RPMB request.
Change-Id: I2d0f98a11716ef946551cc1a967e70a38e91d6ac
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Meera Gande [Fri, 13 Apr 2018 10:49:34 +0000 (16:19 +0530)]
mm-camera2:isp2: Release buffer lock after use
At start axi stream, we are acquiring the
buffer lock and releasing after completing
the stream configuration operations. In case
of live snapshot,this is causing the buffer
operations to halt and leading to sof freeze.
Change-Id: I7f57c8befc85c105a5690ac71e0276f42b9f1929
Signed-off-by: Meera Gande <mgande@codeaurora.org>
Linux Build Service Account [Mon, 16 Apr 2018 05:22:34 +0000 (22:22 -0700)]
Merge "soc: qcom: boot_stats: Fix place_marker API"
Linux Build Service Account [Mon, 16 Apr 2018 05:22:33 +0000 (22:22 -0700)]
Merge "ath10k: deinit wow config in driver unload"
Rahul Sharma [Fri, 6 Apr 2018 07:05:05 +0000 (12:35 +0530)]
ARM: dts: msm: enable secure smmu domain on msm8996
Enable secure context bank of smmu domain to facilitate the
secure display usecases.
Change-Id: I2dea0b7d7a57558070a3f9b726d8e2d3d541521b
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
Vivek Kumar [Tue, 10 Apr 2018 14:03:44 +0000 (19:33 +0530)]
ARM: dts: msm: Update client-id for sde_kms_hyp
Update Client-id for sde_kms_hyp node in LA-GVM.
This is required for MTMD feature.
Change-Id: I97c4c55b94173f4cc08d739974a11b9dd3a80ea3
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
Amit Blay [Sun, 15 Apr 2018 14:07:20 +0000 (17:07 +0300)]
soc: qcom: scm: Support single HAB id for QCPE
All guest VMs use the same HAB id for communication
with QCPE.
Change-Id: I01ed16376730276f13a734b82d387b1d30d14434
Signed-off-by: Amit Blay <ablay@codeaurora.org>
Linux Build Service Account [Sun, 15 Apr 2018 08:27:55 +0000 (01:27 -0700)]
Merge "defconfig: sdm660: Enable cnss_genl driver compilation"
Linux Build Service Account [Sun, 15 Apr 2018 08:27:42 +0000 (01:27 -0700)]
Merge "defconfig: msmcortex_mediabox : Enable docker"
Linux Build Service Account [Sun, 15 Apr 2018 08:27:40 +0000 (01:27 -0700)]
Merge "defconfig: Add USB pass-through related defconfig"
Linux Build Service Account [Sat, 14 Apr 2018 20:44:49 +0000 (13:44 -0700)]
Merge "ARM: dts: msm: Enable PMIC-GPIO clients for msm8996 GVM"
Linux Build Service Account [Sat, 14 Apr 2018 20:44:48 +0000 (13:44 -0700)]
Merge "ARM: dts: msm: Add USB devices for msm8996 GVM"
Srinivas Dasari [Tue, 24 Oct 2017 09:27:50 +0000 (14:57 +0530)]
defconfig: sdm660: Enable cnss_genl driver compilation
cnss_genl driver creates a netlink family and multicast groups
to facilitate communication between WLAN driver and userspace.
Define flag CONFIG_CNSS_GENL and set to 'y'(yes) to enable
compilation of the cnss_genl driver inorder to use the same
Change-Id: Ideb929ad36fd0dde38a10741a6bc288fa1949d8e
Signed-off-by: Srinivas Dasari <dasaris@codeaurora.org>
CRs-Fixed:
2124466
Linux Build Service Account [Fri, 13 Apr 2018 11:52:24 +0000 (04:52 -0700)]
Merge "defconfig: msm-auto: Make hotplug section size as 256 MB"
Linux Build Service Account [Fri, 13 Apr 2018 11:52:22 +0000 (04:52 -0700)]
Merge "net: ipc_router: Fix buffer overflow during memcpy"
Linux Build Service Account [Fri, 13 Apr 2018 11:52:21 +0000 (04:52 -0700)]
Merge "msm: camera: Framedrop notification"
Linux Build Service Account [Fri, 13 Apr 2018 11:52:19 +0000 (04:52 -0700)]
Merge "ANDROID: fuse: Add null terminator to path in canonical path to avoid issue"
Linux Build Service Account [Fri, 13 Apr 2018 11:52:17 +0000 (04:52 -0700)]
Merge "msm: ais: jpegdma: Fix for ASAN issues in jpegdma module"
Linux Build Service Account [Fri, 13 Apr 2018 11:52:15 +0000 (04:52 -0700)]
Merge "leds: qpnp-flash-v2: Fix HW_STROBE configuration"
Rashi Bindra [Thu, 12 Apr 2018 14:01:33 +0000 (19:31 +0530)]
clk: qcom: Update DSI PLL settings as per latest recommendation
Changes to update DSI PLL settings as per latest recommendation.
Change-Id: Ie864ced700f21b6a94afb9de2d2c55f6ef9c7bd5
Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
Vivek Kumar [Fri, 13 Apr 2018 06:34:49 +0000 (12:04 +0530)]
soc: qcom: boot_stats: Fix place_marker API
Fix place_marker function definition when MSM_BOOT_TIMER_MARKER is
disabled.
Change-Id: I201ea0a2b78e310016f847c615254f6ee8273b6f
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
Vivek Kumar [Fri, 6 Apr 2018 08:23:24 +0000 (13:53 +0530)]
defconfig: Add USB pass-through related defconfig
defconfigs which are required for USB Passthrough
in LA-GVM are enabled.
Change-Id: I20805eb4ff082e69ac47ea16165004935e3a7b4a
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
Linux Build Service Account [Fri, 13 Apr 2018 01:21:56 +0000 (18:21 -0700)]
Merge "ANDROID: uid_sys_stats: Replace tasklist lock with RCU in uid_cputime_show"
Linux Build Service Account [Fri, 13 Apr 2018 01:21:54 +0000 (18:21 -0700)]
Merge "ARM: dts: msm: Allow pm_suspend in host mode for msm8996 Auto CDP"
Linux Build Service Account [Fri, 13 Apr 2018 01:21:51 +0000 (18:21 -0700)]
Merge "clk: msm: Fix signal interrupt issue for virtual clock"
Linux Build Service Account [Fri, 13 Apr 2018 01:21:49 +0000 (18:21 -0700)]
Merge "sdcardfs: Fix sdcardfs to stop creating cases-sensitive duplicate entries."
Linux Build Service Account [Fri, 13 Apr 2018 01:21:48 +0000 (18:21 -0700)]
Merge "f2fs: Set GF_NOFS in read_cache_page_gfp while doing f2fs_quota_read"
Mohamed Moussa [Wed, 11 Apr 2018 22:48:07 +0000 (15:48 -0700)]
defconfig: msmcortex_mediabox : Enable docker
Enable necessary config flags for Docker
Change-Id: I32eb4ffa2cf2d2023df117bcdee96c98fa00ee53
Signed-off-by: Mohamed Moussa <mmouss@codeaurora.org>
Vivek Kumar [Tue, 10 Apr 2018 14:11:56 +0000 (19:41 +0530)]
ARM: dts: msm: Enable PMIC-GPIO clients for msm8996 GVM
Enable PMIC-GPIO clients in la-dts file which are on SMPI bus
for msm8996 GVM.These clients use virtual spmi-arb driver.
Change-Id: I6e6da2ac77a0fffea548e777b5dba9239cf76a18
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
Vivek Kumar [Tue, 10 Apr 2018 13:58:16 +0000 (19:28 +0530)]
ARM: dts: msm: Enable blsp_uart node for msm8996 GVM
Enable blsp_uart device node for uart-passthrough in
la-gvm specific DT file for msm8996 GVM.
Change-Id: I3907e982573f3052e56fcfdd19c76822d336aa14
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
Vivek Kumar [Thu, 12 Apr 2018 01:22:19 +0000 (06:52 +0530)]
ARM: dts: msm: Add USB devices for msm8996 GVM
Add USB device for android in USB specific DT file.
Enable required devices for USB pass-through in LA
specific DT file for msm8996 GVM.
Change-Id: Ic007607dcfb2dd8ee9839ad58d451b6a98c5fb06
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
Sarada Prasanna Garnayak [Wed, 21 Mar 2018 15:40:28 +0000 (21:10 +0530)]
ath10k: deinit wow config in driver unload
The mac80211 support user configured wowlan enable/disable
feature using wlan utils, If the wowlan feature is not enabled
by user the mac80211 subsystem fallback to core stop instead
of wow suspend during system suspend even the wlan firmware
support wowlan feature.
So in driver load init wow and set the wlan device as a wakeup
capable device and deinit wow in driver unload.
CRs-Fixed:
2218083
Change-Id: I5ac5b6e0118f8a3dd01cfbdd706f56fa33b3e101
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
Linux Build Service Account [Thu, 12 Apr 2018 02:18:42 +0000 (19:18 -0700)]
Merge "USB: f_accessory: Check dev pointer before decoding ctrl request"
Linux Build Service Account [Thu, 12 Apr 2018 02:18:41 +0000 (19:18 -0700)]
Merge "ath10k: enable neighbor solicitation offload in wow suspend"
Linux Build Service Account [Thu, 12 Apr 2018 02:18:40 +0000 (19:18 -0700)]
Merge "ARM: dts: msm: add qrng for gvm on msm8996"
Linux Build Service Account [Thu, 12 Apr 2018 02:18:39 +0000 (19:18 -0700)]
Merge "ais: report csid error event to user"
Vivek Kumar [Thu, 12 Apr 2018 00:49:51 +0000 (06:19 +0530)]
usb: msm: Add missing android-usb related documentation
This change adds the missing documentation related to
device tree bindings for android-usb functionality.
Change-Id: Iee24c0a6a333792983a5bea00adaa9a697ab70e3
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
Shiju Mathew [Tue, 3 Apr 2018 14:43:32 +0000 (10:43 -0400)]
v4l2-core: Remove unhelpful warnings
This warning is causing unnecessary triage for any test reports.
Change-Id: Iec47d217264e1b98b1fbe62c0ba9ef47aa41af9c
Signed-off-by: Shiju Mathew <shijum@codeaurora.org>
Arun KS [Tue, 10 Apr 2018 04:30:20 +0000 (10:00 +0530)]
defconfig: msm-auto: Make hotplug section size as 256 MB
On Mojave board, hotplug-able memory size is 256 MB. This depends
on DDR configuration. Configure HOTPLUG_SIZE_BITS to match this.
Change-Id: I014be9240f665cb1754fe701b4d57cf898b5f693
Signed-off-by: Arun KS <arunks@codeaurora.org>
Aditya Bavanari [Fri, 6 Apr 2018 12:45:43 +0000 (18:15 +0530)]
voice_svc: Avoid double free in voice_svc driver
voice_svc_dev is allocated as a device managed resource
and need not be freed since it is freed automatically.
Remove the logic to free voice_svc_dev in probe failure
and remove functions to avoid double free.
CRs-Fixed:
2204285
Change-Id: If4f9ca840b00448b987f5ce443f66b0923b01969
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Zhiqiang Tu [Wed, 11 Apr 2018 01:32:09 +0000 (09:32 +0800)]
clk: msm: Fix signal interrupt issue for virtual clock
Virtual clock operations returned error when received signal.
Uninterruptible flag is added in receiving response to avoid
being interrupted by signal.
Change-Id: Id3b5b56432751ec5b49c36a028444c0360fe811f
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
Yong Ding [Wed, 28 Mar 2018 02:22:29 +0000 (10:22 +0800)]
soc: qcom: hab: add the uninterruptible receive support
In the blocking mode of habmm_socket_recv(), it is an
interruptible wait by default. Here, the uninterruptible
version is added.
Change-Id: Iba9ee10afb3f2529a99a9c90f6fc0cb56fb9cb08
Signed-off-by: Yong Ding <yongding@codeaurora.org>
Ritesh Harjani [Wed, 14 Mar 2018 10:16:37 +0000 (15:46 +0530)]
f2fs: Set GF_NOFS in read_cache_page_gfp while doing f2fs_quota_read
Quota code itself is serializing the operations by taking mutex_lock.
It seems a below race can happen if GF_NOFS is not used in f2fs_quota_read
__switch_to+0x88
__schedule+0x5b0
schedule+0x78
schedule_preempt_disabled+0x20
__mutex_lock_slowpath+0xdc //mutex owner is itself
mutex_lock+0x2c
dquot_commit+0x30 //mutex_lock(&dqopt->dqio_mutex);
dqput+0xe0
__dquot_drop+0x80
dquot_drop+0x48
f2fs_evict_inode+0x218
evict+0xa8
dispose_list+0x3c
prune_icache_sb+0x58
super_cache_scan+0xf4
do_shrink_slab+0x208
shrink_slab.part.40+0xac
shrink_zone+0x1b0
do_try_to_free_pages+0x25c
try_to_free_pages+0x164
__alloc_pages_nodemask+0x534
do_read_cache_page+0x6c
read_cache_page+0x14
f2fs_quota_read+0xa4
read_blk+0x54
find_tree_dqentry+0xe4
find_tree_dqentry+0xb8
find_tree_dqentry+0xb8
find_tree_dqentry+0xb8
qtree_read_dquot+0x68
v2_read_dquot+0x24
dquot_acquire+0x5c // mutex_lock(&dqopt->dqio_mutex);
dqget+0x238
__dquot_initialize+0xd4
dquot_initialize+0x10
dquot_file_open+0x34
f2fs_file_open+0x6c
do_dentry_open+0x1e4
vfs_open+0x6c
path_openat+0xa20
do_filp_open+0x4c
do_sys_open+0x178
Change-Id: I6cc8417ad00426fd93bb42841e20217c0e44103a
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
Arun KS [Mon, 19 Mar 2018 09:34:03 +0000 (15:04 +0530)]
arm64: Make section size configurable for hotplug
On arm64, currently section size is hard-coded to 1G.
Make this configurable if hotplug is enabled to support
more finer granularity for hotplug-able memory.
Change-Id: I5327ead37069176f4ba34657133fab303fb15b82
Signed-off-by: Arun KS <arunks@codeaurora.org>
Vijayavardhan Vennapusa [Wed, 4 Apr 2018 05:32:28 +0000 (11:02 +0530)]
USB: f_accessory: Check dev pointer before decoding ctrl request
In case of poweroff charging mode, accessory function instance
is not created and due to this, _acc_dev will be NULL. If target
is connected to Accessory dock in poweroff charging mode, there
is a chance dev pointer is accessed, which is NULL. Hence add a
check before processing control request and return error if it is
NULL.
Change-Id: I4f1deb9d764b8c0bd1d7837cbc43a2933167f568
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Sarada Prasanna Garnayak [Fri, 5 Jan 2018 10:43:20 +0000 (16:13 +0530)]
ath10k: enable neighbor solicitation offload in wow suspend
In IPV6 the neighbor solicitations are used by nodes to determine
the link layer address of a neighbor and neighbor advertisements
are used by nodes to respond to a neighbor solicitation message.
During WOW suspend offload the neighbor solicitation packet handling
method to WLAN firmware, this adds support to prevent the device
wakeup by neighbor solicitation packet.
CRs-Fixed:
2217590
Change-Id: I5d860e6651b7c62223d9d00886fc386dcf647cab
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
Parai Wang [Mon, 9 Apr 2018 07:53:29 +0000 (15:53 +0800)]
ARM: dts: msm: add qrng for gvm on msm8996
Add device node qualcomm hardware random generator, so that to provide
real random number if qrng is enabled.
This is for security purpose for the application.
Change-Id: Ib359b39ec5c32cb05ed1e38c1ad377657e5c47ae
Signed-off-by: Parai Wang <fpwang@codeaurora.org>
Ritesh Harjani [Mon, 19 Mar 2018 10:19:54 +0000 (15:49 +0530)]
sdcardfs: Fix sdcardfs to stop creating cases-sensitive duplicate entries.
sdcardfs_name_match gets a 'name' argument from the underlying FS.
This need not be null terminated string.
So in sdcardfs_name_match -> qstr_case_eq -> we should use
str_n_case_eq.
This happens because few of the entries in lower level FS may not be
NULL terminated and may have some garbage characters passed while
doing sdcardfs_name_match.
For e.g.
# dmesg |grep Download
[ 103.646386] sdcardfs_name_match: q1->name=.nomedia, q1->len=8,
q2->name=Download\x17\x80\x03, q2->len=8
[ 104.021340] sdcardfs_name_match: q1->name=.nomedia, q1->len=8,
q2->name=Download\x17\x80\x03, q2->len=8
[ 105.196864] sdcardfs_name_match: q1->name=.nomedia, q1->len=8,
q2->name=Download\x17\x80\x03, q2->len=8
[ 109.113521] sdcardfs_name_match: q1->name=logs, q1->len=4,
q2->name=Download\x17\x80\x03, q2->len=8
Now when we try to create a directory with different case for a such
files. SDCARDFS creates a entry if it could not find the underlying
entry in it's dcache.
To reproduce:-
1. bootup the device wait for some time after sdcardfs mounting to
complete.
2. cd /storage/emulated/0
3. echo 3 > /proc/sys/vm/drop_caches
4. mkdir download
We now start seeing two entries with name.
Download & download.
Change-Id: I976d92a220a607dd8cdb96c01c2041c5c2bc3326
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
Archana Sriram [Mon, 26 Mar 2018 07:44:04 +0000 (13:14 +0530)]
msm: kgsl: Enhance reading lm_sequence in _execute_reg_sequence()
Modified conditional checks to read lm_sequence so as to avoid
the possibility of pointer overflow.
CRs-Fixed:
2212443
Change-Id: I72b30e35996c40f23fc81739e27724b1188f1c05
Signed-off-by: Archana Sriram <apsrir@codeaurora.org>
annamraj [Fri, 6 Apr 2018 14:09:07 +0000 (19:39 +0530)]
msm: camera: Framedrop notification
Notify the frame drop using ioctl
VIDIOC_MSM_BUF_MNGR_BUF_ERROR
Change-Id: Ide54d98fd05e19f5e2d7e88b6b65e151aa257334
Signed-off-by: annamraj <annamraj@codeaurora.org>
Ritesh Harjani [Mon, 19 Mar 2018 10:33:09 +0000 (16:03 +0530)]
ANDROID: fuse: Add null terminator to path in canonical path to avoid issue
page allocated in fuse_dentry_canonical_path to be handled in
fuse_dev_do_write is allocated using __get_free_pages(GFP_KERNEL).
This may not return a page with data filled with 0. Now this
page may not have a null terminator at all.
If this happens and userspace fuse daemon screws up by passing a string
to kernel which is not NULL terminated (or did not fill anything),
then inside fuse driver in kernel when we try to do
strlen(fuse_dev_write->kern_path->getname_kernel)
on that page data -> it may give us issue with kernel paging request.
Unable to handle kernel paging request at virtual address
------------[ cut here ]------------
<..>
PC is at strlen+0x10/0x90
LR is at getname_kernel+0x2c/0xf4
<..>
strlen+0x10/0x90
kern_path+0x28/0x4c
fuse_dev_do_write+0x5b8/0x694
fuse_dev_write+0x74/0x94
do_iter_readv_writev+0x80/0xb8
do_readv_writev+0xec/0x1cc
vfs_writev+0x54/0x64
SyS_writev+0x64/0xe4
el0_svc_naked+0x24/0x28
To avoid this we should ensure in case of FUSE_CANONICAL_PATH,
the page is null terminated.
Change-Id: I33ca7cc76b4472eaa982c67bb20685df451121f5
Bug:
75984715
[Daniel - small edit, using args size ]
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Git-Repo: https://source.codeaurora.org/quic/la/kernel/msm-4.9/commit/?h=aosp-new/android-4.9&id=
4fb542f2aa1414cea5686efcf72a411b7213c375
Git-Commit:
4fb542f2aa1414cea5686efcf72a411b7213c375
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
Suprith Malligere Shankaregowda [Fri, 23 Mar 2018 08:43:28 +0000 (14:13 +0530)]
msm: ais: jpegdma: Fix for ASAN issues in jpegdma module
Adding Lock mechanism to avoid concurrency issues between reqbufs
and streamoff calls.
Change-Id: Ic915d346d0aa60d71007a359760a6a573734b6e5
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
Linux Build Service Account [Sun, 8 Apr 2018 14:55:03 +0000 (07:55 -0700)]
Merge "clk: msm: osm: Update maximum number of bytes to read from buffer"
Linux Build Service Account [Sun, 8 Apr 2018 02:52:38 +0000 (19:52 -0700)]
Merge "qseecom: fix issues when processing blocked listener request"
Linux Build Service Account [Sun, 8 Apr 2018 02:52:37 +0000 (19:52 -0700)]
Merge "qseecom: block system signals when waiting for listener available"
Linux Build Service Account [Sun, 8 Apr 2018 02:52:36 +0000 (19:52 -0700)]
Merge "Revert "msm: vidc: Add support for decoder STOP command""
Linux Build Service Account [Sun, 8 Apr 2018 02:52:35 +0000 (19:52 -0700)]
Merge "ASoC: msm: qdsp6v2: add 24b capture support for tert mi2s"
Linux Build Service Account [Sun, 8 Apr 2018 02:52:33 +0000 (19:52 -0700)]
Merge "[drm/sde] fix uninitialized src/dst size in sde plane"
Zhen Kong [Sat, 3 Feb 2018 01:21:04 +0000 (17:21 -0800)]
qseecom: fix issues when processing blocked listener request
When processing blocked listener request, ptr_app's app_blocked
flag should be set to prevent it being unloaded at this time;
Besides, need to check unblock request's scm_call response result
to see if it is blocked again; and removed redundant codes.
Change-Id: I2d72a88e9e600d6b7e944ae978b9d89a7b6db242
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Zhen Kong [Sat, 3 Feb 2018 01:21:04 +0000 (17:21 -0800)]
qseecom: block system signals when waiting for listener available
Make change to block system signals when qseecom is waiting for
a blocked listener becomes available. This will prevent qseecom
being waken up by power collapse and returning to kernel, which
may cause XPU violation as TA req/resp buffer is still XPU protected
at this time
Change-Id: Ie5ea16f11ad653937236de042afb1bb5710123e6
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Camus Wong [Wed, 4 Apr 2018 15:13:02 +0000 (11:13 -0400)]
[drm/sde] fix uninitialized src/dst size in sde plane
SDE plane src/dst size is uninitialized and programmed to hw when
only color format is changed. This change will only configure hw
when src/dst size is calculated.
Change-Id: I5953f899a2c503b1d8f2577c28a67711b9ed9a67
Signed-off-by: Camus Wong <camusw@codeaurora.org>
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
Linux Build Service Account [Fri, 6 Apr 2018 01:47:25 +0000 (18:47 -0700)]
Merge "diag: Allocate DCI memory using vzalloc instead of kzalloc"
Linux Build Service Account [Fri, 6 Apr 2018 01:47:24 +0000 (18:47 -0700)]
Merge "icnss: Consider recovery as FW down"
Linux Build Service Account [Fri, 6 Apr 2018 01:47:23 +0000 (18:47 -0700)]
Merge "msm: ipa2: Fix IPA kernel NULL pointer dereference"
Linux Build Service Account [Fri, 6 Apr 2018 01:47:21 +0000 (18:47 -0700)]
Merge "fbdev: msm: check buffer size before writing to user buffer"
Linux Build Service Account [Fri, 6 Apr 2018 01:47:20 +0000 (18:47 -0700)]
Merge "xhci: plat: Avoid xhci_resume if skip_resume flag is set"
Andy Sun [Thu, 29 Mar 2018 08:17:05 +0000 (16:17 +0800)]
ais: report csid error event to user
Enable CSID error interrupts, and sending the error status
to user mode components as v4l2 event.
Change-Id: I62a08a88ebc39e1192136ba1c9179f709f5439f5
Signed-off-by: Andy Sun <bins@codeaurora.org>
Sanjay Singh [Wed, 4 Apr 2018 11:01:12 +0000 (16:31 +0530)]
Revert "msm: vidc: Add support for decoder STOP command"
This reverts commit
84d22be9dca ("msm: vidc: Add support for decoder
STOP command")
There is regression for Video playback with this commit. Therefore,
it needs to be reverted.
Change-Id: Ibc4ca31c48e148063de60f59ea90d693d5657163
Signed-off-by: Sanjay Singh <sisanj@codeaurora.org>
Taniya Das [Thu, 5 Apr 2018 05:29:40 +0000 (10:59 +0530)]
clk: msm: osm: Update maximum number of bytes to read from buffer
Currently the number of maximum bytes to be copied from buffer is
incorrectly using the size of buffer. Replace to use the count
which is the maximum number of bytes to be read.
Change-Id: I797c4dc0af626e347dfef43a754d0c469585ba55
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Mohammed Javid [Mon, 12 Mar 2018 08:50:49 +0000 (14:20 +0530)]
msm: ipa2: Fix IPA kernel NULL pointer dereference
Add changes to fix IPA kernel NULL pointer dereference issue
Change-Id: I090d900688f13bc80616e7a3c49f7e1d6cf1be0b
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Sameer Thalappil [Thu, 5 Apr 2018 01:20:16 +0000 (18:20 -0700)]
icnss: Consider recovery as FW down
When WLAN driver encounters FW timeout scenarios, it may check if the
FW is down by calling icnss_is_fw_down() API. Recovery should also be
considered as FW down, as FW has not completely recovered and ready
for WLAN communication.
Change-Id: I4c9e15aacc5605dca823e2cfcbf6f87152aaa78e
CRs-Fixed:
2218795
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
Harsh Sahu [Fri, 23 Mar 2018 07:15:52 +0000 (00:15 -0700)]
fbdev: msm: check buffer size before writing to user buffer
Check the number of bytes to copy against the size of the
user buffer before copy to user to avoid buffer overflow.
Change-Id: Icdd3d4e755deca19fa431e903620bd9e4c701c89
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
Linux Build Service Account [Wed, 4 Apr 2018 18:24:27 +0000 (11:24 -0700)]
Merge "slimbus: Avoid uninitialized variable access"
Linux Build Service Account [Wed, 4 Apr 2018 18:24:25 +0000 (11:24 -0700)]
Merge "msm: mdss: Fix for wrong length in copy_to_user"
Kiran Gunda [Tue, 27 Mar 2018 13:05:00 +0000 (18:35 +0530)]
leds: qpnp-flash-v2: Fix HW_STROBE configuration
As per the hardware recommendation, configure the LED1 to
HW_STROBE mode when LED2 or LED3 is configured in HW_STROBE
mode. This enables hardware strobe option working for LED2/3
channels.
CRs-Fixed:
2213325
Change-Id: I1ceaa7477b8d0c18e03fbdea9d5347d0e75fc0f0
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Kiran Gunda [Tue, 27 Mar 2018 09:24:29 +0000 (14:54 +0530)]
leds: qpnp-flash-v2: Add support for multi-strobe
Multi-strobe option is used to enable/disable the LEDs
back-to-back without disabling the module in the HW_STROBE mode.
Hence, enable the multi-strobe option if the LED is configured
in HW_STROBE mode.
Change-Id: I3e16254c6dcb4c4ae0b295cd7eea4e8ee8e1c2c7
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Linux Build Service Account [Tue, 3 Apr 2018 21:37:37 +0000 (14:37 -0700)]
Merge "ARM: dts: msm: remove modem region reserved on APQ8096 ADP"
Linux Build Service Account [Tue, 3 Apr 2018 21:37:35 +0000 (14:37 -0700)]
Merge "usb: gsi: Don't disable endpoints as part of flow control"
Linux Build Service Account [Tue, 3 Apr 2018 21:37:32 +0000 (14:37 -0700)]
Merge "wcnss: update the regulator parsing and config method"
Linux Build Service Account [Tue, 3 Apr 2018 21:37:31 +0000 (14:37 -0700)]
Merge "input: touchscreen: Fix uninitialized variable usage in Atmel driver"
Linux Build Service Account [Tue, 3 Apr 2018 21:37:29 +0000 (14:37 -0700)]
Merge "msm: sde: check buffer size before writing to user buffer"
Linux Build Service Account [Tue, 3 Apr 2018 21:37:27 +0000 (14:37 -0700)]
Merge "u_ctrl_qti: Increase MAX_QTI_PKT_SIZE to 8K"