Skip to content

Commit

Permalink
Updates from Void
Browse files Browse the repository at this point in the history
  • Loading branch information
mountaser committed Jul 31, 2018
2 parents b04b6e0 + a96dfc7 commit 2dd7735
Show file tree
Hide file tree
Showing 67 changed files with 864 additions and 381 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION = 3
PATCHLEVEL = 18
SUBLEVEL = 116
SUBLEVEL = 117
EXTRAVERSION =
NAME = Diseased Newt

Expand Down Expand Up @@ -618,6 +618,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,)
KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation)
KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow)
KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context)
KBUILD_CFLAGS += $(call cc-disable-warning, attribute-alias)
KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
KBUILD_AFLAGS += $(call cc-option,-fno-PIE)
KBUILD_CFLAGS += $(call cc-disable-warning,maybe-uninitialized,)
Expand Down
2 changes: 1 addition & 1 deletion arch/arc/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ typedef unsigned long pgtable_t;
#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)

/* Default Permissions for stack/heaps pages (Non Executable) */
#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE)
#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)

#define WANT_PAGE_VIRTUAL 1

Expand Down
2 changes: 1 addition & 1 deletion arch/arc/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,

/* Decode a PTE containing swap "identifier "into constituents */
#define __swp_type(pte_lookalike) (((pte_lookalike).val) & 0x1f)
#define __swp_offset(pte_lookalike) ((pte_lookalike).val << 13)
#define __swp_offset(pte_lookalike) ((pte_lookalike).val >> 13)

/* NOPs, to keep generic kernel happy */
#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
Expand Down
10 changes: 5 additions & 5 deletions arch/arm/boot/dts/qcom/mdm9650.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -1058,8 +1058,8 @@
qcom,limit-temp = <60>;
qcom,temp-hysteresis = <10>;
qcom,freq-step = <2>;
qcom,vdd-restriction-temp = <5>;
qcom,vdd-restriction-temp-hysteresis = <10>;
qcom,vdd-restriction-temp = <10>;
qcom,vdd-restriction-temp-hysteresis = <15>;
vdd-dig-supply = <&pmd9650_s5_floor_level>;
qcom,disable-cx-phase-ctrl;
qcom,disable-gfx-phase-ctrl;
Expand All @@ -1069,9 +1069,9 @@

qcom,vdd-dig-rstr{
qcom,vdd-rstr-reg = "vdd-dig";
qcom,levels = <RPM_SMD_REGULATOR_LEVEL_NOM
RPM_SMD_REGULATOR_LEVEL_TURBO
RPM_SMD_REGULATOR_LEVEL_TURBO>;
qcom,levels = <RPM_SMD_REGULATOR_LEVEL_TURBO_NO_CPR
RPM_SMD_REGULATOR_LEVEL_BINNING
RPM_SMD_REGULATOR_LEVEL_BINNING>;
qcom,min-level = <RPM_SMD_REGULATOR_LEVEL_RETENTION>;
};
};
Expand Down
10 changes: 10 additions & 0 deletions arch/arm/boot/dts/qcom/sdx20.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,16 @@
/delete-node/ qcom,spm@b009000;
/delete-node/ qcom,mpm@601b8;
/delete-node/ qcom,lpm-levels;

qcom,msm-thermal {
qcom,vdd-restriction-temp = <5>;
qcom,vdd-restriction-temp-hysteresis = <10>;
qcom,vdd-dig-rstr{
qcom,levels = <RPM_SMD_REGULATOR_LEVEL_NOM
RPM_SMD_REGULATOR_LEVEL_BINNING
RPM_SMD_REGULATOR_LEVEL_BINNING>;
};
};
};

&clock_gcc {
Expand Down
26 changes: 2 additions & 24 deletions arch/arm/configs/mdm-perf_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_PARTITION_ADVANCED=y
CONFIG_ARCH_MSM=y
CONFIG_ARCH_MDM9640=y
CONFIG_ARCH_MDM9650=y
CONFIG_PCI_MSM=y
CONFIG_PREEMPT=y
Expand Down Expand Up @@ -205,7 +204,7 @@ CONFIG_TUN=y
# CONFIG_NET_VENDOR_CIRRUS is not set
# CONFIG_NET_VENDOR_FARADAY is not set
# CONFIG_NET_VENDOR_INTEL is not set
CONFIG_KS8851=y
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MICROCHIP is not set
CONFIG_ECM_IPA=y
CONFIG_RNDIS_IPA=y
Expand Down Expand Up @@ -238,7 +237,6 @@ CONFIG_INPUT_EVDEV=y
CONFIG_INPUT_MISC=y
CONFIG_INPUT_UINPUT=y
CONFIG_INPUT_GPIO=m
CONFIG_SERIO_LIBPS2=y
# CONFIG_LEGACY_PTYS is not set
CONFIG_SERIAL_MSM_HS=y
CONFIG_SERIAL_MSM_HSL=y
Expand Down Expand Up @@ -282,32 +280,14 @@ CONFIG_SOUND=y
CONFIG_SND=y
CONFIG_SND_SOC=y
CONFIG_SND_SOC_MDM9650=y
CONFIG_UHID=y
CONFIG_HID_APPLE=y
CONFIG_HID_ELECOM=y
CONFIG_HID_MAGICMOUSE=y
CONFIG_HID_MICROSOFT=y
CONFIG_HID_MULTITOUCH=y
# CONFIG_HID_GENERIC is not set
CONFIG_USB=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_MSM=y
CONFIG_USB_EHCI_MSM_HSIC=y
CONFIG_USB_ACM=y
CONFIG_USB_STORAGE=y
CONFIG_USB_STORAGE_DEBUG=y
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_USBAT=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_STORAGE_ALAUDA=y
CONFIG_USB_STORAGE_ONETOUCH=y
CONFIG_USB_STORAGE_KARMA=y
CONFIG_USB_STORAGE_CYPRESS_ATACB=y
CONFIG_USB_DWC3=y
CONFIG_USB_EHSET_TEST_FIXTURE=y
CONFIG_NOP_USB_XCEIV=y
Expand Down Expand Up @@ -399,8 +379,6 @@ CONFIG_DEVFREQ_SPDM=y
CONFIG_IIO=y
CONFIG_IIO_BUFFER=y
CONFIG_IIO_BUFFER_CB=y
CONFIG_IIO_ST_ACCEL_3AXIS=y
CONFIG_IIO_ST_GYRO_3AXIS=y
CONFIG_SENSORS_BMI160_IIO=y
CONFIG_SENSORS_BMI160_IIO_RING=y
CONFIG_ENABLE_ACC_GYRO_BUFFERING=y
Expand Down
26 changes: 2 additions & 24 deletions arch/arm/configs/mdm_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ CONFIG_TUN=y
# CONFIG_NET_VENDOR_CIRRUS is not set
# CONFIG_NET_VENDOR_FARADAY is not set
# CONFIG_NET_VENDOR_INTEL is not set
CONFIG_KS8851=y
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MICROCHIP is not set
CONFIG_ECM_IPA=y
CONFIG_RNDIS_IPA=y
Expand Down Expand Up @@ -238,7 +238,6 @@ CONFIG_INPUT_EVDEV=y
CONFIG_INPUT_MISC=y
CONFIG_INPUT_UINPUT=y
CONFIG_INPUT_GPIO=m
CONFIG_SERIO_LIBPS2=y
# CONFIG_LEGACY_PTYS is not set
CONFIG_SERIAL_MSM_HS=y
CONFIG_SERIAL_MSM_HSL=y
Expand All @@ -259,7 +258,6 @@ CONFIG_SPI_SPIDEV=m
CONFIG_PPS_CLIENT_GPIO=y
CONFIG_PTP_1588_CLOCK=y
CONFIG_PINCTRL_MDM9607=y
CONFIG_PINCTRL_MDM9640=y
CONFIG_PINCTRL_MDM9650=y
CONFIG_DEBUG_GPIO=y
CONFIG_GPIO_SYSFS=y
Expand Down Expand Up @@ -289,32 +287,14 @@ CONFIG_SOUND=y
CONFIG_SND=y
CONFIG_SND_SOC=y
CONFIG_SND_SOC_MDM9650=y
CONFIG_UHID=y
CONFIG_HID_APPLE=y
CONFIG_HID_ELECOM=y
CONFIG_HID_MAGICMOUSE=y
CONFIG_HID_MICROSOFT=y
CONFIG_HID_MULTITOUCH=y
# CONFIG_HID_GENERIC is not set
CONFIG_USB=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_MSM=y
CONFIG_USB_EHCI_MSM_HSIC=y
CONFIG_USB_ACM=y
CONFIG_USB_STORAGE=y
CONFIG_USB_STORAGE_DEBUG=y
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_USBAT=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_STORAGE_ALAUDA=y
CONFIG_USB_STORAGE_ONETOUCH=y
CONFIG_USB_STORAGE_KARMA=y
CONFIG_USB_STORAGE_CYPRESS_ATACB=y
CONFIG_USB_DWC3=y
CONFIG_USB_EHSET_TEST_FIXTURE=y
CONFIG_NOP_USB_XCEIV=y
Expand Down Expand Up @@ -411,8 +391,6 @@ CONFIG_DEVFREQ_SPDM=y
CONFIG_IIO=y
CONFIG_IIO_BUFFER=y
CONFIG_IIO_BUFFER_CB=y
CONFIG_IIO_ST_ACCEL_3AXIS=y
CONFIG_IIO_ST_GYRO_3AXIS=y
CONFIG_SENSORS_BMI160_IIO=y
CONFIG_SENSORS_BMI160_IIO_RING=y
CONFIG_ENABLE_ACC_GYRO_BUFFERING=y
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ extern int __put_user_8(void *, unsigned long long);
({ \
unsigned long __limit = current_thread_info()->addr_limit - 1; \
const typeof(*(p)) __user *__tmp_p = (p); \
register const typeof(*(p)) __r2 asm("r2") = (x); \
register typeof(*(p)) __r2 asm("r2") = (x); \
register const typeof(*(p)) __user *__p asm("r0") = __tmp_p; \
register unsigned long __l asm("r1") = __limit; \
register int __e asm("r0"); \
Expand Down
3 changes: 0 additions & 3 deletions arch/x86/kernel/cpu/mcheck/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -2240,9 +2240,6 @@ static ssize_t store_int_with_restart(struct device *s,
if (check_interval == old_check_interval)
return ret;

if (check_interval < 1)
check_interval = 1;

mutex_lock(&mce_sysfs_mutex);
mce_restart();
mutex_unlock(&mce_sysfs_mutex);
Expand Down
7 changes: 4 additions & 3 deletions drivers/char/adsprpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1843,8 +1843,7 @@ static int fastrpc_file_free(struct fastrpc_file *fl)
spin_unlock(&fl->apps->hlock);

if (!fl->sctx) {
kfree(fl);
return 0;
goto bail;
}

(void)fastrpc_release_current_dsp_process(fl);
Expand All @@ -1856,6 +1855,9 @@ static int fastrpc_file_free(struct fastrpc_file *fl)
if (fl->ssrcount == fl->apps->channel[cid].ssrcount)
kref_put_mutex(&fl->apps->channel[cid].kref,
fastrpc_channel_close, &fl->apps->smd_mutex);

bail:
mutex_destroy(&fl->map_mutex);
kfree(fl);
return 0;
}
Expand Down Expand Up @@ -2009,7 +2011,6 @@ static int fastrpc_device_release(struct inode *inode, struct file *file)
}
me->pending_free++;
mutex_unlock(&me->flfree_mutex);
mutex_destroy(&fl->map_mutex);
file->private_data = NULL;
}
bail:
Expand Down
13 changes: 11 additions & 2 deletions drivers/char/diag/diag_masks.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,11 @@ static void diag_send_log_mask_update(uint8_t peripheral, int equip_id)
}
mask_info->update_buf = temp;
mask_info->update_buf_len = header_len + mask_size;
buf = temp;
}

memcpy(buf, &ctrl_pkt, header_len);
if (mask_size > 0)
if (mask_size > 0 && mask_size <= LOG_MASK_SIZE)
memcpy(buf + header_len, mask->ptr, mask_size);
mutex_unlock(&mask->lock);

Expand Down Expand Up @@ -255,9 +256,16 @@ static void diag_send_event_mask_update(uint8_t peripheral)
} else {
mask_info->update_buf = temp;
mask_info->update_buf_len = temp_len;
buf = temp;
}
}
memcpy(buf + sizeof(header), mask_info->ptr, num_bytes);
if (num_bytes > 0 && num_bytes < mask_info->mask_len)
memcpy(buf + sizeof(header), mask_info->ptr, num_bytes);
else {
pr_err("diag: num_bytes(%d) is not satisfying length condition\n",
num_bytes);
goto err;
}
write_len += num_bytes;
break;
default:
Expand Down Expand Up @@ -360,6 +368,7 @@ static void diag_send_msg_mask_update(uint8_t peripheral, int first, int last)
} else {
mask_info->update_buf = temp;
mask_info->update_buf_len = temp_len;
buf = temp;
pr_debug("diag: In %s, successfully reallocated msg_mask update buffer to len: %d\n",
__func__, mask_info->update_buf_len);
}
Expand Down
1 change: 1 addition & 0 deletions drivers/clk/msm/clock-a7.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ static int of_get_fmax_vdd_class(struct platform_device *pdev, struct clk *c,
devm_kfree(&pdev->dev, array);
vdd->num_levels = prop_len;
vdd->cur_level = prop_len;
vdd->use_max_uV = true;
c->num_fmax = prop_len;
return 0;
}
Expand Down
5 changes: 5 additions & 0 deletions drivers/clk/msm/clock-gcc-9650.c
Original file line number Diff line number Diff line change
Expand Up @@ -1734,6 +1734,11 @@ static int msm_gcc_9650_probe(struct platform_device *pdev)
if (ret)
return ret;

if (of_device_is_compatible(pdev->dev.of_node, "qcom,gcc-9650")) {
vdd_dig.use_max_uV = true;
vdd_dig_ao.use_max_uV = true;
}

for_sdx20 = of_device_is_compatible(pdev->dev.of_node,
"qcom,gcc-sdx20");

Expand Down
Loading

0 comments on commit 2dd7735

Please sign in to comment.