Commit graph

603215 commits

Author SHA1 Message Date
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
e2a4721cfa Merge "ARM: dts: msm: Add pcie-ep device for msm8996" 2018-11-06 22:09:07 -08:00
Linux Build Service Account
cbb5bff2a0 Merge "cnss2: call remove driver_ops in cnss_wlan_unregister" 2018-11-06 22:09:05 -08:00
Linux Build Service Account
3e15f887cf Merge "ARM: dts: msm: Add support for APQ8096A" 2018-11-06 09:07:19 -08:00
Linux Build Service Account
38b693f401 Merge "soc: qcom: glink_smem_native_xprt: init in_ssr before IRQ eanbled." 2018-11-06 02:05:32 -08:00
Linux Build Service Account
8952000791 Merge "soc: qcom: hab: refine hab virtual channel's resource free" 2018-11-06 02:05:30 -08:00
Linux Build Service Account
e8e7047a8a Merge "soc: qcom: socinfo: Add support for APQ8096A" 2018-11-06 02:05:29 -08:00
Linux Build Service Account
0ac5501f23 Merge "ASoC: change mask in snd_soc_get/put_volsw_sx to unsigned int" 2018-11-06 02:05:28 -08:00
Linux Build Service Account
462513774f Merge "pps: DR_SYNC pulse needs to be connected to Linux PPS driver" 2018-11-06 02:05:21 -08:00
Linux Build Service Account
cbdfa9f566 Merge "ARCH: arm: defconfig: BMI160 and IAM20680 sensor enablement" 2018-11-06 02:05:19 -08:00
Arun KS
d26af6deeb ARM: dts: msm: Add support for APQ8096A
Add msm-id to support APQ8096A

Change-Id: I3b71d5cca6f4d1447b150dbe783073862755f80a
Signed-off-by: Arun KS <arunks@codeaurora.org>
2018-11-06 11:41:54 +05:30
Linux Build Service Account
300a22811b Merge "msm: ais: Fix arbitrary kernel write" 2018-11-05 19:37:45 -08:00
Linux Build Service Account
071995902d Merge "soc: hab: fix uninitialized variable and relocate vchan refcnt" 2018-11-04 18:35:39 -08:00
Yong Ding
cf41f3e0d3 soc: qcom: hab: refine hab virtual channel's resource free
Whenever a vchan is locally closed in hab_vchan_close or hab_free,
4 actions should be taken immediately, including,
 - remove it from the local hab context
 - mark its local closed flag
 - notify remote side and unblock local blocking calls over it
 - decrease the refcnt on the vchan

Change-Id: I3fbde9464f6405b6dadac248768a5fd857a29128
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-11-01 17:37:29 +08:00
Banajit Goswami
7a4ab19b31 ASoC: change mask in snd_soc_get/put_volsw_sx to unsigned int
If the result of (min + max) is negative in functions
snd_soc_get_volsw_sx() or snd_soc_put_volsw_sx(), there
will be an overflow for the variable 'mask'.
   UBSAN: Undefined behaviour in sound/soc/soc-ops.c:382:6
   signed integer overflow:
   -2147483648 - 1 cannot be represented in type 'int'

Fix this by updating the variable type of 'mask' to unsigned int.

Change-Id: Ia34f397fad5b93c0e2ffacae60e051ad20c20bdf
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-10-30 22:04:08 -07:00
Arun KS
d2be5dd424 soc: qcom: socinfo: Add support for APQ8096A
Add CPU ID to the socinfo table needed to support
APQ8096A Automotive SoC.

Change-Id: I621faa171c867b36fa541961772a841333917861
Signed-off-by: Arun KS <arunks@codeaurora.org>
2018-10-31 09:57:48 +05:30
Rajasekaran Kalidoss
7a18627fbf cnss2: call remove driver_ops in cnss_wlan_unregister
rmmod of wlan triggers cnss_wlan_unregister. wlan driver_ops
remove should be called for QCN7605 standalone and
composite devices to finish the rmmod path.

Change-Id: I0047eb65b68b7e81b9b9c9fd79825a0d3f27c640
Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
2018-10-30 01:46:39 -07:00
Yajun Li
67b38b0496 soc: hab: Fix a memory leakage when unexport
When the remote vchan is closed and unexport happens
in local at the same time, function hab_get_vchan_fromvcid
will return null in hab unexport, which will cause memory leak.

Change-Id: I8dac4f4154f24734dc2a11aa73f726cd705cc291
Signed-off-by: Yajun Li <yajunl@codeaurora.org>
2018-10-30 16:27:47 +08:00
Yajun Li
32782582c3 soc: hab: fix uninitialized variable and relocate vchan refcnt
Init hab msg pointer to avoid accessing an uninitialized
pointer.

The format specifier "%p" can leak kernel addresses. Use
"%pK" instead.

Check the status of the pfn_table, because of wrong pagetable
coming from the corresponding hab client unexpectedly.

Change-Id: Ic8c6ba0243d27007d014165f2869a5775a96c09d
Signed-off-by: Yajun Li <yajunl@codeaurora.org>
2018-10-30 15:54:26 +08:00
Linux Build Service Account
0773fb50d4 Merge "ASoC: msm: PP event handling support for loopback driver" into msm-4.4 2018-10-29 11:11:00 -07:00
Amandeep Singh
d10f17c39d Revert "msm-4.4: dts: mhi: Added and enabled mhi support"
This reverts commit 7475bc3d16.

Change-Id: Ia9f495862c4e10fb2b0f162160538f12c08de872
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2018-10-29 07:25:23 -07:00
Amandeep Singh
7475bc3d16 msm-4.4: dts: mhi: Added and enabled mhi support
Added and enabled mhi node in the dts for msm8996 auto.

Change-Id: I3932f4e51844437172b0f9e71731b42de9d5b4c4
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
2018-10-29 07:16:12 -07:00
Madhanraj Chelladurai
363aa31036 pps: DR_SYNC pulse needs to be connected to Linux PPS driver
DR_SYNC pulse needs to be connected to Linux PPS driver for
GNSS driver to receive pps_event. DR_SYNC pulse is generated
by GSS firmware in modem, GNSS driver needs to receive
pps_event of this pulse to get the kernel timestamp to
synchronize time/data to finer quality.

Change-Id: I1c686fcf6306e890cc0a5c3296cdcaff49282e2f
CRs-Fixed: 1068214
Signed-off-by: Madhanraj Chelladurai <mchellad@codeaurora.org>
2018-10-29 04:09:45 -07:00
puneet
a552ff86f3 ARCH: arm: defconfig: BMI160 and IAM20680 sensor enablement
Enabled the bmi160 & iam20680 sensor code compilation

Change-Id: I69db96c17eb361f96beab3053c3bca22cd2a38c8
Signed-off-by: puneet <puneet@codeaurora.org>
2018-10-29 04:04:20 -07:00
puneet
01b30f1206 drivers: iio: imu: enabled bmi and iam sensor compilation
Did makefile changes to allow the sensor driver compilation

Change-Id: I435597d950fe789faffbf65e278bcafa8b4ca184
Signed-off-by: puneet <puneet@codeaurora.org>
2018-10-29 04:03:37 -07:00
Linux Build Service Account
cff9fccb67 Merge "defconfig: Enable CONFIG_BUG_ON_DATA_CORRUPTION" 2018-10-28 22:24:47 -07:00
Linux Build Service Account
cc0e91494c Merge "icnss: NULL terminate the fw build timestamp string" 2018-10-28 07:23:30 -07:00
Linux Build Service Account
86e17dc33a Merge "msm: mdss: Fix potential null pointer dereference" 2018-10-27 12:48:38 -07:00
Linux Build Service Account
edcc07ba51 Merge "drm/msm/sde: ignore scaler v2 data if not enabled" 2018-10-27 12:48:37 -07:00
Linux Build Service Account
e4a7383ace Merge "ARM: dts: msm: update dload type imem offset for MSM8998" 2018-10-26 22:43:01 -07:00
Linux Build Service Account
66e452d86e Merge "clk/msm: fix HDMI PHY registers as per latest programming guide" 2018-10-26 22:42:58 -07:00
Yuanyuan Liu
f6c8e3c802 icnss: NULL terminate the fw build timestamp string
If fw build timestamp passed by QMI is a non-NULL terminated string,
it might result in a out-of-bounds read in icnss_get_soc_info. Hence,
manually NULL terminate the string.

Change-Id: I252196cd12784d841b29303c42591efc59da64f1
CRs-Fixed: 2322317
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2018-10-26 16:52:18 -07:00
Linux Build Service Account
7f2f2979f9 Merge "msm:ipa:Prevent rt rule deletion if rt rule id is invalid" 2018-10-26 07:44:34 -07:00
Linux Build Service Account
5eee6c6d86 Merge "ion: remove unsafe function ion_handle_get_by_id()" 2018-10-26 07:44:32 -07:00
Linux Build Service Account
e3ef3fd986 Merge "drivers/misc: ignore minimum encryption level change for stream type 1" 2018-10-26 00:09:46 -07:00
Linux Build Service Account
3e4e8be646 Merge "drm/msm: configure AV mute before disabling encryption" 2018-10-26 00:09:44 -07:00
Srinivasarao P
745b79d02b defconfig: Enable CONFIG_BUG_ON_DATA_CORRUPTION
This config will be useful to debug data corruptions without
losing context.

Change-Id: Ic4e3f65f6edffd15c2252393035ee6702e44e13b
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2018-10-26 12:34:58 +05:30
Swetha Chikkaboraiah
8c2b7e3164 ARM: dts: msm: update dload type imem offset for MSM8998
Dload type imem offset is corrected for MSM8998, so that
correct imem address is updated.

Change-Id: I519603641753ec39d86fbf923bd80afcd6b1345d
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
2018-10-25 22:40:47 -07:00
Linux Build Service Account
0fd6f3e2ec Merge "Merge android-4.4.162 (3eb8e73) into msm-4.4" 2018-10-25 13:30:25 -07:00
Abhinav Kumar
fa4c68df8e clk/msm: fix HDMI PHY registers as per latest programming guide
HDMI PHY registers for MSM8998 chipset are not programmed as
per the latest hardware programming guide for the chipset.
This can affect HDMI electrical compliance test cases due
to low signal strength.

Fix up the HDMI PHY driver to use the latest values for the
PHY registers.

Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
Change-Id: I96dd6ffaf127940d34af898c5a2982209a6fc83c
2018-10-25 12:46:52 -07:00
Srinivasarao P
52ad8f0aff ion: remove unsafe function ion_handle_get_by_id()
The function ion_handle_get_by_id() is called from function
msm_ion_custom_ioctl(), so we retained it even though it got
deleted in commit 2c155709e4
("staging: android: ion: fix ION_IOC_{MAP,SHARE} use-after-free").

This can lead to same use-after-free scenario with
ION_IOC_{CLEAN_CACHES,INV_CACHES,CLEAN_INV_CACHES} so removing
this unsafe function and holding client->lock for entire operation.

Change-Id: I536cfa69465ad692794500e3b31ac137d04940ff
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2018-10-25 15:44:19 +05:30
Linux Build Service Account
a36b6328ef Merge "soc: qcom: Remove smp2p test support" 2018-10-24 13:57:42 -07:00
Yimin Peng
bff5aad709 ARM: dts: msm: Add pcie-ep device for msm8996
With the pcie-ep device, pcie0 can work in endpoint mode.
But it's disabled by default for the function conflict with
pcie0 in host mode.

Change-Id: Ia39edf8dd8fc2a1b3ed79db13aa6f85065ebf7b0
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
2018-10-24 17:32:21 +08:00
Yimin Peng
ef6d23ad26 msm: ep_pcie: add PCIe endpoint driver for 8996AU
The MSM PCIE core is enabled in endpoint mode and handles the
link from PCIE root complex on host side.

Change-Id: I5a23ea1a41fede2d57850ff032bf2b1a92d02463
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
2018-10-24 17:11:18 +08:00
Mohammed Javid
9ff2be3d72 msm:ipa:Prevent rt rule deletion if rt rule id is invalid
Currently RT is deleted even if rt rule or header proc ctx
is invalid. Add check to prevent it.

Change-Id: Ic37ff9a33fab2b3c0d6393e43452e4b62a91d932
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2018-10-24 02:00:57 -07:00
E V Ravi
6bf50d959e msm: ais: Fix arbitrary kernel write
In 64 bit kernel and 32 bit userspace,ioctl_ptr from
kernel space, should NOT call the copy_from_user.
In 64 bit kernel and 64 bit userspace,ioctl_ptr from
user space, use the copy_from_user to copy data.
use the is_compat_task to distinguish two condition

Change-Id: Ib420168bbae1b7f950a1124f3e54b48d434952ca
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2018-10-24 12:56:41 +05:30
Clarence Ip
ce46ccdb6d drm/msm/sde: ignore scaler v2 data if not enabled
The incoming scaler v2 user data isn't guaranteed to be
valid if the 'enable' field is set to zero, so ignore
the entire structure unless the enable is explicitly set
to a non-zero value.

CRs-Fixed: 2052501
Change-Id: Ieeb24122a5caffcd7361007e52219cee94e33eee
Signed-off-by: Clarence Ip <cip@codeaurora.org>
2018-10-23 18:57:56 -07:00
Linux Build Service Account
8d602672c3 Merge "soc: qcom: hab: add rx queue empty check after getting the lock" 2018-10-23 16:29:38 -07:00
Linux Build Service Account
d8bc349f54 Merge "msm: ipa: Check ep empty before reset" 2018-10-23 06:53:28 -07:00
Hardik Arya
b4137f3261 soc: qcom: Remove smp2p test support
Smp2p test code is used internally to test the
functionality of drivers and has no real use case
in end product.

Change-Id: I7a50c077bb71068188b5411424c5782b3d0edbb7
Signed-off-by: Hardik Arya <harya@codeaurora.org>
2018-10-23 06:08:40 -07:00