Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
Merge tag 'LA.UM.7.6.r1-05900-89xx.0' of https://source.codeaurora.or…
Browse files Browse the repository at this point in the history
…g/quic/la/kernel/msm-3.18 into pie

"LA.UM.7.6.r1-05900-89xx.0"

Signed-off-by: dracarys18 <karthihegde010@gmail.com>
  • Loading branch information
dracarys18 committed Sep 1, 2019
2 parents 8f8134f + ff78610 commit 3eed9cb
Show file tree
Hide file tree
Showing 186 changed files with 322 additions and 60,621 deletions.
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/qcom/apq8009w-nowgr-memory.dtsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2016,2019 The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
Expand Down
6 changes: 2 additions & 4 deletions arch/arm64/configs/msm-auto-perf_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,8 @@ CONFIG_SOC_CAMERA_PLATFORM=y
CONFIG_MSM_VIDC_V4L2=y
CONFIG_MSM_VIDC_VMEM=y
CONFIG_MSM_VIDC_GOVERNORS=y
CONFIG_MSM_AIS=y
CONFIG_MSM_AIS_DEBUG=y
CONFIG_MSM_AIS_CAMERA_SENSOR=y
CONFIG_RADIO_SILABS=y
# CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set
CONFIG_VIDEO_ADV7481=y
CONFIG_MSM_KGSL=y
CONFIG_FB=y
CONFIG_FB_MSM=y
Expand Down Expand Up @@ -459,6 +455,8 @@ CONFIG_MMC_SDHCI_PLTFM=y
CONFIG_MMC_SDHCI_MSM=y
CONFIG_MMC_SDHCI_MSM_ICE=y
CONFIG_MMC_CQ_HCI=y
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=y
CONFIG_LEDS_QPNP=y
CONFIG_LEDS_QPNP_FLASH=y
CONFIG_LEDS_QPNP_WLED=y
Expand Down
6 changes: 2 additions & 4 deletions arch/arm64/configs/msm-auto_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,8 @@ CONFIG_SOC_CAMERA_PLATFORM=y
CONFIG_MSM_VIDC_V4L2=y
CONFIG_MSM_VIDC_VMEM=y
CONFIG_MSM_VIDC_GOVERNORS=y
CONFIG_MSM_AIS=y
CONFIG_MSM_AIS_DEBUG=y
CONFIG_MSM_AIS_CAMERA_SENSOR=y
CONFIG_RADIO_SILABS=y
# CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set
CONFIG_VIDEO_ADV7481=y
CONFIG_MSM_KGSL=y
CONFIG_FB=y
CONFIG_FB_MSM=y
Expand Down Expand Up @@ -459,6 +455,8 @@ CONFIG_MMC_SDHCI_PLTFM=y
CONFIG_MMC_SDHCI_MSM=y
CONFIG_MMC_SDHCI_MSM_ICE=y
CONFIG_MMC_CQ_HCI=y
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=y
CONFIG_LEDS_QPNP=y
CONFIG_LEDS_QPNP_FLASH=y
CONFIG_LEDS_QPNP_WLED=y
Expand Down
10 changes: 5 additions & 5 deletions drivers/char/diag/diag_dci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1966,9 +1966,9 @@ int diag_process_dci_transaction(unsigned char *buf, int len)
uint8_t *event_mask_ptr;
struct diag_dci_client_tbl *dci_entry = NULL;

if (!temp) {
pr_err("diag: Invalid buffer in %s\n", __func__);
return -ENOMEM;
if (!temp || len < sizeof(int)) {
pr_err("diag: Invalid input in %s\n", __func__);
return -EINVAL;
}

/* This is Pkt request/response transaction */
Expand Down Expand Up @@ -2023,7 +2023,7 @@ int diag_process_dci_transaction(unsigned char *buf, int len)
count = 0; /* iterator for extracting log codes */

while (count < num_codes) {
if (read_len >= USER_SPACE_DATA) {
if (read_len + sizeof(uint16_t) > len) {
pr_err("diag: dci: Invalid length for log type in %s",
__func__);
mutex_unlock(&driver->dci_mutex);
Expand Down Expand Up @@ -2136,7 +2136,7 @@ int diag_process_dci_transaction(unsigned char *buf, int len)
pr_debug("diag: head of dci event mask %pK\n", event_mask_ptr);
count = 0; /* iterator for extracting log codes */
while (count < num_codes) {
if (read_len >= USER_SPACE_DATA) {
if (read_len + sizeof(int) > len) {
pr_err("diag: dci: Invalid length for event type in %s",
__func__);
mutex_unlock(&driver->dci_mutex);
Expand Down
4 changes: 2 additions & 2 deletions drivers/char/diag/diag_dci.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2016, 2019 The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
Expand All @@ -25,7 +25,7 @@
#define DISABLE_LOG_MASK 0
#define MAX_EVENT_SIZE 512
#define DCI_CLIENT_INDEX_INVALID -1
#define DCI_LOG_CON_MIN_LEN 14
#define DCI_LOG_CON_MIN_LEN 16
#define DCI_EVENT_CON_MIN_LEN 16

#define DCI_BUF_PRIMARY 1
Expand Down
15 changes: 14 additions & 1 deletion drivers/gpu/msm/adreno_snapshot.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
Expand Down Expand Up @@ -70,6 +70,19 @@ void kgsl_snapshot_push_object(struct kgsl_process_private *process,
for (index = 0; index < objbufptr; index++) {
if (objbuf[index].gpuaddr == gpuaddr &&
objbuf[index].entry->priv == process) {
/*
* Check if newly requested size is within the
* allocated range or not, otherwise continue
* with previous size.
*/
if (!kgsl_gpuaddr_in_memdesc(
&objbuf[index].entry->memdesc,
gpuaddr, dwords << 2)) {
KGSL_CORE_ERR(
"snapshot: IB 0x%016llx size is not within the memdesc range\n",
gpuaddr);
return;
}

objbuf[index].size = max_t(uint64_t,
objbuf[index].size,
Expand Down
7 changes: 0 additions & 7 deletions drivers/media/i2c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,10 @@ obj-$(CONFIG_VIDEO_ADV7343) += adv7343.o
obj-$(CONFIG_VIDEO_ADV7393) += adv7393.o
obj-$(CONFIG_VIDEO_ADV7604) += adv7604.o
obj-$(CONFIG_VIDEO_ADV7842) += adv7842.o
ifeq ($(CONFIG_MSM_AIS),y)
ccflags-y += -Idrivers/media/platform/msm/ais
ccflags-y += -Idrivers/media/platform/msm/ais/common
ccflags-y += -Idrivers/media/platform/msm/ais/sensor/io
ccflags-y += -Idrivers/media/platform/msm/ais/sensor/cci
else
ccflags-y += -Idrivers/media/platform/msm/camera_v2
ccflags-y += -Idrivers/media/platform/msm/camera_v2/common
ccflags-y += -Idrivers/media/platform/msm/camera_v2/sensor/io
ccflags-y += -Idrivers/media/platform/msm/camera_v2/sensor/cci
endif
obj-$(CONFIG_VIDEO_ADV7481) += adv7481.o
obj-$(CONFIG_VIDEO_AD9389B) += ad9389b.o
obj-$(CONFIG_VIDEO_ADV7511) += adv7511.o
Expand Down
1 change: 0 additions & 1 deletion drivers/media/platform/msm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ if MSMB_CAMERA
source "drivers/media/platform/msm/camera_v2/Kconfig"
endif # MSMB_CAMERA

source "drivers/media/platform/msm/ais/Kconfig"
source "drivers/media/platform/msm/dvb/Kconfig"
source "drivers/media/platform/msm/broadcast/Kconfig"
source "drivers/media/platform/msm/sde/Kconfig"
3 changes: 1 addition & 2 deletions drivers/media/platform/msm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ obj-$(CONFIG_MSM_VIDC_V4L2) += vidc/
obj-y += broadcast/
obj-$(CONFIG_DVB_MPQ) += dvb/
obj-$(CONFIG_MSMB_CAMERA) += camera_v2/
obj-$(CONFIG_MSM_AIS) += ais/
obj-y += sde/
obj-y += sde/
85 changes: 0 additions & 85 deletions drivers/media/platform/msm/ais/Kconfig

This file was deleted.

24 changes: 0 additions & 24 deletions drivers/media/platform/msm/ais/Makefile

This file was deleted.

3 changes: 0 additions & 3 deletions drivers/media/platform/msm/ais/camera/Makefile

This file was deleted.

Loading

0 comments on commit 3eed9cb

Please sign in to comment.