Commit graph

599589 commits

Author SHA1 Message Date
Linux Build Service Account
ef6cdc4600 Merge "ARM: dts: msm: remove USB3 device in msm8996-ivi-lv-mt vplatform" 2018-06-01 06:35:14 -07:00
Yong Ding
8c4608db93 ARM: dts: msm: remove USB3 device in msm8996-ivi-lv-mt vplatform
In the latest multiple GVMs(Guest Virtual Machines)
environment, USB3 is expected to be used by LA GVM with
the passthrough mode. So it is necessary to remove its
access from LV GVM, or there will be conflict.

Change-Id: I8409a81a636ca38e64b8e00e25170c064549dc61
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-05-31 19:18:48 -07:00
Linux Build Service Account
15dfd16651 Merge "defconfig: msm: Enable CONFIG_CGROUP_DEBUG" 2018-05-31 16:44:26 -07:00
Linux Build Service Account
c0a42ee0ed Merge "adv7481: Add support for AVI Infoframe" 2018-05-31 05:11:45 -07:00
Linux Build Service Account
cbeccf228a Merge "soc: qcom: scm_qcpe: Close hab socket on error" 2018-05-31 05:11:44 -07:00
Linux Build Service Account
2272788153 Merge "selinux: KASAN: slab-out-of-bounds in xattr_getsecurity" 2018-05-31 05:11:43 -07:00
Linux Build Service Account
92fbf2a482 Merge "defconfig: msm: Disable config EXT2_FS and EXT3_FS for sdm660" 2018-05-31 05:11:42 -07:00
Linux Build Service Account
dad9612b1f Merge "soc: qcom: boot_stats: Fix compilation issue" 2018-05-31 05:11:41 -07:00
Linux Build Service Account
155d32a6a7 Merge "ARM: dts: msm: Add support for new speed bin for SDM660" 2018-05-31 05:11:40 -07:00
Linux Build Service Account
95be57e783 Merge "clk: qcom: Add support for 585MHz GPU frequency" 2018-05-31 05:11:39 -07:00
Linux Build Service Account
9b371fc84d Merge "audit: Checks valid value of audit_signals and tsk->audit_context" 2018-05-31 05:11:33 -07:00
Linux Build Service Account
e4a7e7dbaa Merge "defconfig: Sync automotive gvm defconfig with metal defconfig" 2018-05-31 05:11:29 -07:00
Linux Build Service Account
1d5d6eea84 Merge "defconfig: reduce HZ value from 250 to 100" 2018-05-31 05:11:20 -07:00
Srinivasarao P
66249baab2 defconfig: msm: Enable CONFIG_CGROUP_DEBUG
Enable CONFIG_CGROUP_DEBUG to address the compatibility issue with
AOSP.

Change-Id: I30aa2341535bc53982034e7f8ef430137c102177
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2018-05-31 15:51:23 +05:30
Sachin Grover
e42662afef selinux: KASAN: slab-out-of-bounds in xattr_getsecurity
Call trace:
 [<ffffff9203a8d7a8>] dump_backtrace+0x0/0x428
 [<ffffff9203a8dbf8>] show_stack+0x28/0x38
 [<ffffff920409bfb8>] dump_stack+0xd4/0x124
 [<ffffff9203d187e8>] print_address_description+0x68/0x258
 [<ffffff9203d18c00>] kasan_report.part.2+0x228/0x2f0
 [<ffffff9203d1927c>] kasan_report+0x5c/0x70
 [<ffffff9203d1776c>] check_memory_region+0x12c/0x1c0
 [<ffffff9203d17cdc>] memcpy+0x34/0x68
 [<ffffff9203d75348>] xattr_getsecurity+0xe0/0x160
 [<ffffff9203d75490>] vfs_getxattr+0xc8/0x120
 [<ffffff9203d75d68>] getxattr+0x100/0x2c8
 [<ffffff9203d76fb4>] SyS_fgetxattr+0x64/0xa0
 [<ffffff9203a83f70>] el0_svc_naked+0x24/0x28

If user get root access and calls security.selinux setxattr() with an
embedded NUL on a file and then if some process performs a getxattr()
on that file with a length greater than the actual length of the string,
it would result in a panic.

To fix this, add the actual length of the string to the security context
instead of the length passed by the userspace process.

Change-Id: Ie0b8bfc7c96bc12282b955fb3adf41b3c2d011cd
Signed-off-by: Sachin Grover <sgrover@codeaurora.org>
2018-05-30 21:25:04 -07:00
Suprith Malligere Shankaregowda
1fb990c0b3 adv7481: Add support for AVI Infoframe
AVI Infoframe provides the aspect ratio and video
identification code information. Add support to read
this from ADV7481 registers and to return it to user space
through an ioctl call.

Change-Id: Ia64fbc736b548633b34a9bd96f7a78700afb3db5
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
2018-05-30 21:21:40 -07:00
Linux Build Service Account
07c1b26257 Merge "mmc: card: Update multi_cmd_ioctl path to support cmdq" 2018-05-30 21:10:30 -07:00
Linux Build Service Account
7f1e39e00b Merge "drm: sde: Check commit's validity when starting splash handoff" 2018-05-30 10:21:00 -07:00
Amit Blay
9d0080999d soc: qcom: scm_qcpe: Close hab socket on error
Close the open hab socket after receiving an error status from
the hab.

Change-Id: Ia56c7ce49d0e61661c9f133d35540e48f3707e01
Signed-off-by: Amit Blay <ablay@codeaurora.org>
2018-05-30 18:08:45 +03:00
Taniya Das
129e694595 ARM: dts: msm: Add support for new speed bin for SDM660
New cpu speed bin of 4 is added to support 1.9/1.8GHz.

Change-Id: Ic0dffc7c46e82748bf9f40de7f478ec073142dd1
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2018-05-30 15:03:27 +05:30
Taniya Das
22f07893c9 clk: qcom: Add support for 585MHz GPU frequency
On SDM660 there is a new frequency requirement of 585MHz, so add support
for the same.

Change-Id: I9b55b18d6befdc8f5a7d9dac6bcb832eda338497
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2018-05-30 15:03:18 +05:30
Zhiqiang Tu
e54fbdbc40 soc: qcom: boot_stats: Fix compilation issue
Fix the multiple definition issue of msm_timer_get_sclk_ticks
when CONFIG_MSM_BOOT_STATS is disabled.

Change-Id: Id2c263c48cec038be4354894fa57b203a5f764c6
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2018-05-30 16:51:56 +08:00
Chetan C R
ad60f0e735 audit: Checks valid value of audit_signals and tsk->audit_context
There can be a case when current task's audit context
may be NULL or even if it is not NULL, it can have
invalid non-zero value of dummy variable and also
we should audit the signal only if we have non-zero
value of audit_signals.

Issue has been seen during power on/off tests. So
better to add explicit check on these variables.

Change-Id: I2f3e17d933fca8e3b8f4013f44f942f11c68f440
Signed-off-by: Chetan C R <cravin@codeaurora.org>
2018-05-29 21:58:34 -07:00
Lei wang
beafa8ecff defconfig: Sync automotive gvm defconfig with metal defconfig
Sync automotive gvm defconfig with metal, cleanup some unused config

Change-Id: Ic0f6f5e1d274692886da237f52c13b587e43a779
Signed-off-by: Lei wang <leiwan@codeaurora.org>
2018-05-29 19:28:32 -07:00
Linux Build Service Account
fc98b97cd8 Merge "msm: kgsl: Don't dump GPMU registers on non GPMU devices" 2018-05-29 13:57:06 -07:00
Linux Build Service Account
addd4dab16 Merge "ASoC: msm: add boot marker for mi2s and auto sound card" 2018-05-29 05:07:37 -07:00
Veerabhadrarao Badiganti
d4a088792f mmc: card: Update multi_cmd_ioctl path to support cmdq
Halt cmdq in multi_cmd_ioctl path before processing IOCTL
commands and un-halt it once it has done with IOCTL processing.

Without this change, the mmc driver would try to process legacy
commands when host & card are in cmdq mode which may result
in unexpected interrupt / illegal command errors.

Change-Id: I254a1a752f770ffd03331c4856aa9f54867092dc
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2018-05-29 10:40:41 +05:30
Linux Build Service Account
5cb5749cd7 Merge "defconfig: msm: enable lpass resource mgr for msm8996-auto" 2018-05-27 09:11:15 -07:00
Linux Build Service Account
2115d78a54 Merge "ARM: dts: msm: add lpass resource mgr on automotive msm8996" 2018-05-27 09:11:14 -07:00
Linux Build Service Account
fd10e25d18 Merge "defconfig: msm: enable Sensor DSP framework" 2018-05-27 09:11:11 -07:00
Linux Build Service Account
b746664418 Merge "msm: ipa: fix to not allow NAT DMA command without device initialization" 2018-05-27 02:06:57 -07:00
Linux Build Service Account
10f17193d7 Merge "defconfig: msmcortex: Enable INET_UDP_DIAG" 2018-05-26 13:26:54 -07:00
Linux Build Service Account
d9f6f32dae Merge "defconfig: sdm660: Enable INET_UDP_DIAG" 2018-05-26 13:26:53 -07:00
Linux Build Service Account
7879aadfcc Merge "asoc: msm8998: Add configuration for adaptive bitrate." 2018-05-26 13:26:51 -07:00
Mohammed Javid
333b7dec60 msm: ipa: fix to not allow NAT DMA command without device initialization
Without NAT device initialization sending NAT DMA
commands leads to XPU violation. Added checks to
verify device initialized or not before sending DMA
command.

Change-Id: I7440abc14a81e1621573f0e2808a410d60b2458d
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2018-05-26 23:56:08 +05:30
Linux Build Service Account
4df80cc49c Merge "Merge android-4.4.132 (46155cc) into msm-4.4" 2018-05-25 08:58:07 -07:00
Linux Build Service Account
32645e12c3 Merge "defconfig: msm-auto: Enable PASR driver for msm8996" 2018-05-25 08:58:03 -07:00
Linux Build Service Account
2583029971 Merge "soc: qcom: pasr: Add MSM PASR driver" 2018-05-25 08:58:01 -07:00
Linux Build Service Account
2d58063eb8 Merge "usb: Use DECLARE_USB_FUNCTION() for initializing USB QDSS function driver" 2018-05-25 00:09:43 -07:00
Linux Build Service Account
c1b445a451 Merge "power: qpnp-fg-gen3: Restore recharge SOC only when not in JEITA" 2018-05-25 00:09:42 -07:00
Linux Build Service Account
0828ba03db Merge "ARM: dts: msm: remove leakage on ldo26 for msm8996" 2018-05-25 00:09:39 -07:00
Ankit Jain
6e6e586a5f defconfig: msm: Disable config EXT2_FS and EXT3_FS for sdm660
This change disables the unspported fs configs.

Change-Id: Ie15080148425d193e5e252529e0100b6d5b29bc3
Signed-off-by: Ankit Jain <jankit@codeaurora.org>
2018-05-25 10:31:25 +05:30
Mayank Rana
5ddd6eca57 usb: Use DECLARE_USB_FUNCTION() for initializing USB QDSS function driver
USB QDSS function driver is already registered as module and having init
and exit APIs. DECLARE_USB_FUNCTION_INIT() adds additional module entries
for USB QDSS function driver. This results into seeing error as
"usb_qdss_init: failed to register diag -17" when usb_function_register()
is called 2nd time. Hence fix this issue by using DECLARE_USB_FUNCTION()
instead of DECLARE_USB_FUNCTION_INIT() API.

Change-Id: I37da484eaa44e60e331d18fa720289a2dff8ad50
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2018-05-24 17:02:00 -07:00
Subbaraman Narayanamurthy
9c572ce8ee power: qpnp-fg-gen3: Restore recharge SOC only when not in JEITA
Currently, recharge SOC is adjusted (lowered) based on the SOC
where charging terminates. It is restored back to the original
threshold when the charge termination condition goes away. This
works fine in most cases. However there are certain conditions
where the charger fluctuates between fast and taper regions along
with the charge termination status.

Handle this by checking if battery is out of JEITA as well before
restoring back the original recharge SOC threshold.

CRs-Fixed: 2213369
Change-Id: Ic64151ddbbff09c26d6ebfcd3e6d4e70e0be8c9d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2018-05-24 13:14:29 -07:00
Linux Build Service Account
45c4f7d22f Merge "ASoC: msm: Modify buf size check to prevent OOB error" 2018-05-24 02:46:45 -07:00
Linux Build Service Account
25405b771e Merge "drm/msm : check buffer size before writing to user buffer" 2018-05-24 02:46:44 -07:00
Linux Build Service Account
8696c16cbb Merge "drm/msm/sde: fix array overflow" 2018-05-24 02:46:43 -07:00
Linux Build Service Account
3ff5bbb593 Merge "fb: msm_dba: disable timing generator correctly during suspend" 2018-05-24 02:46:42 -07:00
Linux Build Service Account
f485daa540 Merge "ARM: dts: msm: remove modem region reserved on APQ8096 ADP" 2018-05-24 02:46:41 -07:00
Linux Build Service Account
2ed9c4ea73 Merge "msm: camera: Fix for Possible information leak issue" 2018-05-24 02:46:40 -07:00