Commit graph

603497 commits

Author SHA1 Message Date
Hemant Kumar
ceed3cc4a1 usb: gadget: Fix double free of device descriptor pointers
Upon driver unbind usb_free_all_descriptors() function frees all
speed descriptor pointers without setting them to NULL. In case
gadget speed changes (i.e from super speed plus to super speed)
after driver unbind only upto super speed descriptor pointers get
populated. Super speed plus desc still holds the stale (already
freed) pointer. As a result next composition switch results into
double free of super speed plus descriptor. Fix this issue by
setting all descriptor pointers to NULL after freeing them in
usb_free_all_descriptors(). Also clean up gsi_unbind() which is
setting up descriptor pointers to NULL already.

Change-Id: I4f28294c165bb3b5dc9feb4f22d819f527ad4d50
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2018-12-04 14:00:44 +05:30
Parai Wang
7daef91bee ARM: dts: msm: Add msm la recovery vm device tree on msm8996 vplatform
This patch is to add a new device tree specific for ivi-android
recovery gvm.
For the vplatform gvm, the recovery GVM can't share the same DTB with
the functional GVM, the vmid of msm-hab node must be 3. And this DTS
is also added for future customization of recovery kernel, for example
for security purpose, those not used kernel drivers by recovery GVM
should be disabled.

Change-Id: I7fd3c8dc5c77bbb66bdca63dcc119c5d72c3e331
Signed-off-by: Parai Wang <fpwang@codeaurora.org>
2018-11-26 22:23:15 -08:00
Linux Build Service Account
58a9174f20 Merge "msm: ipa4: Fix to disable the napi when rmnet ipa interface going down" 2018-11-26 12:29:59 -08:00
Linux Build Service Account
3f5661678a Merge "msm: mdss: serialize dynamic fps and dynamic bit clock updates" 2018-11-26 03:44:57 -08:00
Mohammed
6784876c00 msm: ipa4: Fix to disable the napi when rmnet ipa interface going down
Because of napi not disabled during rmnet ipa interface going down,
when interface coming up napi will be in wrong state, it leads to
device assert. Added changed to disable napi for the rmnet_ipa
interface when the interface goes down.

Change-Id: Ia6c7cd6fe9f60c58ffd178dbbf877ab3b38a2f4b
Acked-by: Praveen Kurapati <pkurapat@qti.qualcomm.com>
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2018-11-26 01:48:43 -08:00
Linux Build Service Account
7260e48be9 Merge "msm: ais: fix off-by-one overflow in msm_isp_get_bufq" 2018-11-23 08:15:36 -08:00
Linux Build Service Account
f76f39c28b Merge "soc: qcom: Implement early domain handoff driver" 2018-11-23 08:15:34 -08:00
Vivek Kumar
59b22dae44 soc: qcom: Implement early domain handoff driver
Early domain in LK runs in parallel with kernel
with some memory and cpu core(s) reserved for it.
LK updates the status of early services on a shared
memory location. In Kernel, this driver provides
new APIs to check any early service's status and to
communicate with them. It hot adds the reserved
cpu(s) and frees lk text once all early services end.

Change-Id: I0b29b1886abea3280543d76492044c8946d7690e
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
2018-11-23 01:10:49 -08:00
Linux Build Service Account
4f1b473a1a Merge "hibernation: msm: arm64: avoid swap image header corruption" 2018-11-23 01:10:00 -08:00
Linux Build Service Account
446c44cf31 Merge "msm: ADSPRPC: debugfs global and dsp file changes." 2018-11-22 15:19:49 -08:00
Linux Build Service Account
b9d2af1601 Merge "ASoC: msm: Extend ec ref channel with TDM_RX ports" 2018-11-22 08:33:29 -08:00
Mohammed Nayeem Ur Rahman
e05db0f1c9 msm: ADSPRPC: debugfs global and dsp file changes.
Changes the naming convention and adds
PID as suffix to the debugfs files.

Adds debugfs file data in the tabular format and also
creates global file in /sys/kernel/debug/adsprpc directory.

Change-Id: I25f3f7ea59dd39c9d44d99c8503f431f10072c33
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>
2018-11-22 05:18:50 -08:00
Venkata Rao Kakani
98f28a19f7 hibernation: msm: arm64: avoid swap image header corruption
Avoid swap image header corruption based on golden_image boot
argument.

Change-Id: If15408b79cf4ff1d04af9a0abb9bfac603a3e569
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2018-11-22 15:07:57 +05:30
Linux Build Service Account
201b38a555 Merge "soc: qcom: subsystem_notif_virt: Only initialize work for virtual systems" 2018-11-21 15:54:30 -08:00
Linux Build Service Account
6b11a3742a Merge "drivers: soc: boot_markers: Add bootmarkers for early camera" 2018-11-21 08:50:18 -08:00
Anant Goel
36e8e9585f soc: qcom: subsystem_notif_virt: Only initialize work for virtual systems
A function is assigned to a work struct only when the subsystem
is a virtual subsystem.

Change-Id: Icdb3ddba4509d3727ecb634ccc6108c3b3b2a05d
Signed-off-by: Anant Goel <anantg@codeaurora.org>
2018-11-20 22:28:35 -08:00
Linux Build Service Account
d1d0a3d96f Merge "msm: kgsl: Log context type in case of GPU faults" 2018-11-20 09:40:02 -08:00
Linux Build Service Account
397f5ff6d2 Merge "ARM: dts: msm: Support USB host suspend for msm8996 CV2X" 2018-11-20 09:40:01 -08:00
Linux Build Service Account
a738d2a852 Merge "usb: misc: diag_ipc_bridge: Add support for 90F0 and 90EF PIDs" 2018-11-20 09:40:00 -08:00
Linux Build Service Account
ebf8cd530b Merge "usbnet: allow mini-drivers to consume L2 headers" 2018-11-20 02:25:26 -08:00
Linux Build Service Account
ee74cee88f Merge "include: Add device table definition for MHI drivers" 2018-11-20 02:25:25 -08:00
Linux Build Service Account
a6253cc1ad Merge "msm: camera: isp: Fix frame drop pattern" 2018-11-20 02:25:24 -08:00
Linux Build Service Account
ff7554df6b Merge "ASoC: Fix UBSAN warning at snd_soc_get/put_volsw_sx()" 2018-11-20 02:25:23 -08:00
Linux Build Service Account
902c515ab3 Merge "ARM: dts: msm: remove uart node on vplatform for multi mode" 2018-11-20 02:25:21 -08:00
Bjørn Mork
2e641b848a usbnet: allow mini-drivers to consume L2 headers
Assume the minidriver has taken care of all L2 header parsing
if it sets skb->protocol.  This allows the minidriver to
support non-ethernet L2 headers, and even operate without
any L2 header at all.

Change-Id: Ied7fc3752673a68e5bb22a623cc3fc59c1f1e0ff
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 81e0ce79f2919dbd5f025894d29aa806af8695c7
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[gustavos@codeaurora.org: fix checkpatch warning]
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2018-11-19 13:02:17 -08:00
Gustavo Solaira
a772e4964b include: Add device table definition for MHI drivers
Add driver definition used by MHI core to enable
device drivers that use the MHI bus.

Change-Id: I2740dd7687dff0312fd679dbac146d21d9cbc8fe
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2018-11-19 13:02:16 -08:00
Gustavo Solaira
332c11dd05 net: socket: Add AF_QIPCRTR protocol definition
Add definition to enable QRTR based sockets.

Change-Id: Ic5b070462a103abcc5820fadb7b6bdc40946f1e5
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2018-11-19 13:02:16 -08:00
E V Ravi
c221ed7c66 drivers: soc: boot_markers: Add bootmarkers for early camera
Create bootmarkers inorder to get bootloader early camera start time
from the RAM area

Change-Id: I6635f4bbae958c73cceae9bb4b33db339838f303
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2018-11-18 23:08:25 -08:00
Meera Gande
4d55203327 msm: camera: isp: Fix frame drop pattern
In few scenarios, the request frame may get
delayed and current and request frame id may
become same. While user space is informed to
delay a frame in such scenarios, the pattern
shouldn't get reset.

Change-Id: I63f1301fbbe7cba024a686cbd783af25232f1293
Signed-off-by: Meera Gande <mgande@codeaurora.org>
2018-11-18 22:21:33 -08:00
Rohit kumar
10a33754bc ASoC: Fix UBSAN warning at snd_soc_get/put_volsw_sx()
In functions snd_soc_get_volsw_sx() or snd_soc_put_volsw_sx(),
if the result of (min + max) is negative, then fls() returns
signed integer with value as 32. This leads to signed integer
overflow as complete operation is considered as signed integer.

UBSAN: Undefined behaviour in sound/soc/soc-ops.c:382:50
signed integer overflow:
-2147483648 - 1 cannot be represented in type 'int'
Call trace:
[<ffffff852f746fe4>] __dump_stack lib/dump_stack.c:15 [inline]
[<ffffff852f746fe4>] dump_stack+0xec/0x158 lib/dump_stack.c:51
[<ffffff852f7b5f3c>] ubsan_epilogue+0x18/0x50 lib/ubsan.c:164
[<ffffff852f7b6840>] handle_overflow+0xf8/0x130 lib/ubsan.c:195
[<ffffff852f7b68f0>] __ubsan_handle_sub_overflow+0x34/0x44 lib/ubsan.c:211
[<ffffff85307971a0>] snd_soc_get_volsw_sx+0x1a8/0x1f8 sound/soc/soc-ops.c:382

Typecast the operation to unsigned int to fix the issue.

Change-Id: I40d070b1357f016eb1622146180e4abb340e5d00
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Git-commit: ae7d1247d8673ebfd686b17e759d4be391165368
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2018-11-18 21:15:42 -08:00
Gustavo Solaira
cd53384d7c usb: misc: diag_ipc_bridge: Add support for 90F0 and 90EF PIDs
Add support for creation of diag traffic channel in case
the connected device has 0x05C6 VID and 0x90EF or 0x90F0
PIDs.

Change-Id: I418e7267226b1b36385315499cde1dd25ca0c58e
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2018-11-18 19:55:34 -08:00
Linux Build Service Account
84da71b286 Merge "cnss2: Handle USB disconnect scenario" 2018-11-17 08:16:28 -08:00
Linux Build Service Account
d03f522a8f Merge "ARM: dts: msm: enable kpti on msm8996 and msm8996pro" 2018-11-17 08:16:18 -08:00
Linux Build Service Account
6844af58b6 Merge "Merge android-4.4.163 (0ca3fca) into msm-4.4" 2018-11-17 08:16:06 -08:00
Gustavo Solaira
4e2ce18306 ARM: dts: msm: Support USB host suspend for msm8996 CV2X
Add support for USB HS host suspend for msm8996
CV2X boards.

Change-Id: If9508037ec87548c6432fad8cd971d075de4c933
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2018-11-16 15:04:23 -08:00
Linux Build Service Account
d063c1378b Merge "msm: camera: isp: Reset request queue at stop" 2018-11-16 11:07:39 -08:00
Linux Build Service Account
3a918f6a4e Merge "msm: vidc: do not set video state to DEINIT very early" 2018-11-16 11:07:37 -08:00
E V Ravi
77d8951c4e msm: ais: fix off-by-one overflow in msm_isp_get_bufq
In msm_isp_get_bufq, if bufq_index == buf_mgr->num_buf_q,
it will pass the check, leading to off-by-one overflow
(exceed the length of array by one element).

Change-Id: Iccf02b68314e770ad9fae41973cad6ff7700b822
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2018-11-16 18:13:51 +05:30
Rajasekaran Kalidoss
e548e6fd44 cnss2: Handle USB disconnect scenario
Clean up cnss during a USB disconnect scenario
and call driver_ops remove if wlan driver is
registered with CNSS.

Change-Id: I72e6e42609724c9c5e0e07f381d2455d2631cc22
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
2018-11-16 02:42:41 -08:00
Linux Build Service Account
a606521723 Merge "msm: camera: initialize qos_request object" 2018-11-15 22:59:42 -08:00
Linux Build Service Account
45acec4542 Merge "msm: camera: isp: Fix drop frame due to reg update miss" 2018-11-15 22:59:36 -08:00
Linux Build Service Account
c535555586 Merge "msm: camera: isp: Handle frame drop due to delay " 2018-11-15 22:59:23 -08:00
Linux Build Service Account
1ba0161c4d Merge "af_key: unconditionally clone on broadcast" 2018-11-15 22:59:19 -08:00
Linux Build Service Account
f548507177 Merge "diag: Add new F3 mask and update event mask for diag logging" 2018-11-15 22:59:12 -08:00
Linux Build Service Account
337ccc42e2 Merge "arm64: msm: dts: enable sdhci in guest" 2018-11-15 22:59:10 -08:00
Linux Build Service Account
37b1261366 Merge "cnss2: cnss_bus_get_wake_irq should return int" 2018-11-15 22:59:07 -08:00
Linux Build Service Account
3fcf84534d Merge "drm: msm: sde: fix incorrect function pointer check" 2018-11-15 22:59:04 -08:00
Linux Build Service Account
3b3474037b Merge "usb: gadget: Don't override config->MaxPower if specified" 2018-11-15 22:59:03 -08:00
Linux Build Service Account
7ce352665f Merge "ARM: dts: msm: Add support for FHD+ video mode panel on sdm630" 2018-11-15 22:59:01 -08:00
Linux Build Service Account
8fae8eaa4f Merge "ais: cam_soc_api: Moved the Debug statement to the if-condition" 2018-11-15 22:58:59 -08:00