summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-22thermal-core: Fix invalid sensor request not accounted correctlyAnji Jonnala
Add NULL check for sensor name before using it in sensor_get_id and return NULL explicitly when sensor id is not valid in get_sensor of thermal core. Change-Id: I4200a5691183aa2d40ef8ed64554f0beb8ce6d0d Signed-off-by: Anji Jonnala <anjir@codeaurora.org>
2016-03-22thermal: Add Support for enabling and disabling tsens tripRam Chandrasekar
Add new API to enable or disable the kernel client's trip threshold request. The enable or disable trip threshold requests from different kernel clients and userspace client will activate/deactivate the corresponding clients threshold request. Modify thermal sys framework to include only the active thresholds from clients to determine the current trip thresholds for tsens. CRs-Fixed: 561775 Change-Id: I304ac00daa8a0a1a68b60153c29ee6cb5c3507b1 Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org> [joshc: drop msm_thermal chunk] Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
2016-03-22thermal: Fix sensor thresholds not accounted correctlyPraveen Chidambaram
Sensor threshold min and max are calculated to be binding around the current temp, but they fail if there no thresholds available with the min < curr_temp and the max > curr_temp. Fix negative temperatures handling. Change-Id: I124d2a9249f705d41469b8e0efffe2dfdf05e292 Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
2016-03-22thermal: thermal-core: Change temp type from unsigned to intSiddartha Mohanadoss
Negative temperature values can be set by thermal clients to the TSENS driver. Having unsgined long type prevents clients using the set_trip_temp() thermal api to set negative temperature values. On msm-3.4 kernel this api had support to set negative temperature. Change the type to support the negative temperature. Change-Id: I987aed5a291b76d8360a9256cad0ff0c1adb06c8 Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-03-22thermal: Add sensor API to allow any driver to set thresholdsPraveen Chidambaram
Sensor API allow drivers to set min or max thresholds and get notified when the corresponding sensor crosses these thresholds. The sensor API, uses the THERMAL_TRIP_CONFIGURABLE_HI and THERMAL_TRIP_CONFIGURABLE_LOW, to set the threshold. The existing sysfs interfaces will not be affected by the newly added API. Change-Id: I85d2ae132fc3b7b6d157faf0a7390e31fdc7e6da Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org> Conflicts: include/linux/thermal.h
2016-03-22thermal: thermal_sys: Add support for configurable trip points.Siddartha Mohanadoss
Add functionality for configurable hi, low and critical low. Change the trip point attributes to allow userspace clients with root access to set temperature for configurable hi and low temperature. Change-Id: I25c9c3bcfd58e44da5369187d1095559062f1860 Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org> Conflicts: drivers/thermal/thermal_core.c
2016-03-22thermal: tsens: TSENS driver fixupsSiddartha Mohanadoss
Add TSENS Thermal driver. Include support to activate a trip type and mode. This snapshot is taken as of msm-3.14 commit 3bc54cf86b (Merge "msm: camera: Add dummy sub module in sensor pipeline") Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org> Conflicts: drivers/thermal/Kconfig drivers/thermal/Makefile include/linux/thermal.h Change-Id: Ie8a089afc0cf9e45ac000dff425a3e6206c1b9b1
2016-03-22defconfig: arm: msm: Enable memshare config flagMohit Aggarwal
Memshare driver is required to provide memory from HLOS to clients present on Modem. Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2016-03-22memshare: Release the memory only if no allocation is doneKatish Paran
Currently, memshare relies on the system monitor only for releasing memory for the allocated clients. It may happen that XPU is still intact on the modem side while driver tries to release the memory. This patch ensures that memory release only happens if XPU is released. Change-Id: I45716c0abe6bc08559854782ff73a332e148a7cb Signed-off-by: Katish Paran <kparan@codeaurora.org>
2016-03-22memshare: Port and add snapshot of changes from msm-3.10Mohit Aggarwal
Port the memshare driver and apply the following memshare driver changes taken from msm-3.10 kernel branch as of msm-3.10 commit 4493220f memshare: Boot time allocation and handling multiple clients 2ae4997a memshare: Donot re-allocate the memory for the clients 059dcd59 memshare: Do not overwrite the response for the failure case ed6d183f memshare: Change the compatible property field for child node b473fc4e2 memshare: Free the memory after XPU unlocking is done 95c114c39 memshare: Add query size api support for clients 60f310d4e memshare: Change dma attribute to DMA_ATTR_NO_KERNEL_MAPPING 73075545 memshare: Remove local connection status variable 98dd2908 memshare: Place error check to prevent out of bound access Change-Id: Iecf0a9828efd1d56c309a2af882c13ce36e7fc06 Signed-off-by: Katish Paran <kparan@codeaurora.org> Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
2016-03-22defconfig: msm: Enable CONFIG_UIO and CONFIG_MSM_SHAREDMEMRohit Vaswani
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2016-03-22uio: msm_sharedmem: Use proper format to print phys_addr_tPrasad Sodagudi
Use proper printk format specifier to print phys_addr_t type variable. Change-Id: I7c55e44e813d8d41e1ead03280044c8542a24922 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2016-03-22uio: msm_sharedmem: Add support for HYP callNikhilesh Reddy
Add support for HYP call to setup the sharedmem permissions for the MPSS client. Change-Id: I3b48ae962865d8d0a0ea6e3fbb8e21278b59c690 Signed-off-by: Nikhilesh Reddy <reddyn@codeaurora.org>
2016-03-22uio: Add snapshot of MSM sharedmem driverNikhilesh Reddy
This is a snapshot of the MSM sharedmem driver as of msm-3.14 commit: 149717c082aab8168283b7e0c23d8bd5a45b1999 ( uio: msm_sharedmem: Add custom mmap ) The following changes are included: 02d55287 uio: msm_sharedmem: Restrict debugfs write to root. de961fc7 uio: msm_sharedmem: Return ENOMEM if the shared mem addr is zero. b974ce64 uio: msm_sharedmem: Add addtional information to debugfs c46af547 uio: msm_sharedmem: Add support for dynamic shared memory allocation Change-Id: I49902f018bde1d59d41027b7e46268cc17231a3e Signed-off-by: Nikhilesh Reddy <reddyn@codeaurora.org>
2016-03-22defconfig: arm64: msm: Enable kernel QMI InterfaceKarthikeyan Ramasubramanian
The kernel QMI interface permits QMI communication to/from kernel drivers. Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22soc: qcom: Add snapshot of QMIKarthikeyan Ramasubramanian
This snapshot is taken as of msm-3.18 commit e70ad0cd (Promotion of kernel.lnx.3.18-151201.) Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22defconfig: arm64: msm: Enable IPC Router G-Link TransportKarthikeyan Ramasubramanian
The IPC Router G-Link Transport permits IPC Router communication over G-Link to the other processors in the SoC. Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22soc: qcom: Add snapshot of ipc_router_glink_xprtKarthikeyan Ramasubramanian
This snapshot is taken as of msm-3.18 commit e70ad0cd (Promotion of kernel.lnx.3.18-151201.) Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22soc: qcom: Add snapshot of ipc_router_mhi_xprtKarthikeyan Ramasubramanian
This snapshot is taken as of msm-3.18 commit e70ad0cd (Promotion of kernel.lnx.3.18-151201.) Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22soc: qcom: Add snapshot of ipc_router_hsic_xprtKarthikeyan Ramasubramanian
This snapshot is taken as of msm-3.18 commit e70ad0cd (Promotion of kernel.lnx.3.18-151201.) Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22soc: qcom: Add snapshot of ipc_router_smd_xprtKarthikeyan Ramasubramanian
This snapshot is taken as of msm-3.18 commit e70ad0cd (Promotion of kernel.lnx.3.18-151201.) Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22defconfig: arm64: msm: Enable IPC Router, IPC Router SecurityKarthikeyan Ramasubramanian
IPC Router is a peer-to-peer, message oriented router that supports name service and limited multihop routing for interprocessor messages in the SoC. Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22net: ipc_router: Use iov_iter accessor functionsKarthikeyan Ramasubramanian
The networking module uses iov_iter library to manage the vector buffers from user-space. Use iov_iter accessor functions to copy the data from/to the user-space vector buffers. Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22net: ipc_router: Fix to handle the socket framework updatesKarthikeyan Ramasubramanian
Update the function signature of sendmsg and recvmsg operations. Pass the kernel socket flag to the updated socket object allocation function. Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22net: ipc_router: Remove including unused header fileKarthikeyan Ramasubramanian
qmi_encdec.h header file is no longer required in IPC Router. Remove including that header file. Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22net: ipc_router: Add snapshot of IPC RouterKarthikeyan Ramasubramanian
This snapshot is taken as of msm-3.18 commit e70ad0cd (Promotion of kernel.lnx.3.18-151201.) Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22defconfig: arm64: msm: Enable IPC LoggingKarthikeyan Ramasubramanian
IPC Logging is a low latency and minimal overhead logging framework used by many interprocessor communication drivers such as GLink. Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22trace: ipc_logging: Use virtual counterKarthikeyan Ramasubramanian
Using the physical counter leads to a kernel BUG_ON(). Update the IPC Logging Driver to use virtual counter. Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22trace: Add snapshot of ipc_logging driverKarthikeyan Ramasubramanian
This snapshot is taken as of msm-3.18 commit e70ad0cd (Promotion of kernel.lnx.3.18-151201.) Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22defconfig: arm64: msm: Enable SMEM logKarthikeyan Ramasubramanian
The SMEM log allows certain log events to be synchronized between multiple processors in the SoC. Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22soc: qcom: Add snapshot of SMEM_LOG DriverKarthikeyan Ramasubramanian
This snapshot is taken as of msm-3.18 commit e70ad0cd (Promotion of kernel.lnx.3.18-151201.) Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-03-22defconfig: msm-perf: Bring it up-to-date with missing features during upgradeRohit Vaswani
Also run savedefconfig to remove any diff on both defconfigs. Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2016-03-22defconfig: Enable CONFIG_SYNC for AndroidRohit Vaswani
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
2016-03-22ion: msm: fix Makefile dependenciesJeremy Gebben
ion_cma_heap.o, ion_cma_secure_heap.o, and ion_system_secure_heap.o all call functions which are only available if CONFIG_MSM_ION is enabled. Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
2016-03-22uapi: scsi: add missing header dependenciesJeremy Gebben
Add #include dependencies to pick up definitions of __u32 and HZ. Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
2016-03-22uapi: fix export of msm_ion.hJeremy Gebben
Make this file be exported via symlink like the rest of the android staging uapi headers. Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
2016-03-22msm: secure_buffer: fix stub functionsJeremy Gebben
All of these need to be 'static inline' to avoid multiple definition problems when MSM_SECURE_BUFFER=n. Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
2016-03-22defconfig: arm64: Add msmcortex defconfigsAbhimanyu Kapur
Add defconfig for supporting msmcobalt debug, perf and other similar targets. Change-Id: I3a55fea53cbfe65131fc4ccd505bc684cda9b2fa Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
2016-03-22smp: Allow booting a specific subset of CPUsStepan Moskovchenko
In a heterogenous multiprocessor system, specifying the 'maxcpus' parameter on the kernel command line does not provide sufficient control over which CPUs are brought online at kernel boot time, since CPUs may have nonuniform performance characteristics. Thus, we introduce a 'boot_cpus' command line argument, allowing the user to explicitly specify the list of CPUs that shall be brought online during kernel boot. Change-Id: I5f119e23202660941fa7be8c4e6dd91a82365451 Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> [abhimany: resolve trivial merge conflicts] Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
2016-03-22arm64: Split out MSM8996 from generic ARCH_QCOM platform KconfigAbhimanyu Kapur
Add support for CONFIG_MSM89986 and split it out from generic ARCH_QCOM platform. Change-Id: Ibc287ffb76e5599ba63449534b264e4f31c98ec6 Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
2016-03-22pinctrl: qcom: Snapshot pinctrl driver for msmcobaltAbhimanyu Kapur
Snapshot pinctrl driver and corresponding makefiles and Kconfig from msm-3.18@b6a638f8795ee77ca ("Merge "msm: mdss: add support to send dcs cmds by left port only in video mode") Change-Id: I129bb9bd4b7edd252550e6851332867be6fa0423 Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
2016-03-22ARM: dts: qcom: Snapshot all device tree files for MSMCOBALTAbhimanyu Kapur
Snapshot all device tree files from msm-3.18@b6a638f8795ee77ca ("Merge "msm: mdss: add support to send dcs cmds by left port only in video mode") Change-Id: I631047dffa019c6d2ee731ead328d332f1c7f3b8 Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
2016-03-22Revert "defconfig: arm64: msm: Enable USB DWC3 and PHY drivers"Rohit Vaswani
This reverts commit 52bfd76cadb4bcc4371ea83429d9de0dab981eb7.
2016-03-22defconfig: enable subsystem restart, MSM_PIL_GENERIC and PIL_MSS_QDSP6V5David Keitel
Enable subsystem restart and relevant PIL drivers to allow secure peripheral image loading and QDSP6V5 loading to work. Change-Id: I899382d04e6a348cde2d46e9e0e6f3faadab2c5d Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-22defconfig: disable EFIDavid Keitel
Change-Id: I26d6398478a8cbdcc56c93f501b70b9f9f2924e8 Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-22soc: qcom: subsys-pil-tz: initialize DMA opsDavid Keitel
Initialize the DMA operations for the MDT data DMA allocation. Change-Id: If8eae5e91b4145be8d9e5eeeb28c14cda88e617f Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-22soc: qcom: add snapshot of PIL, SSR and SYSMON drivers/librariesDavid Keitel
This is a snapshot of PIL, SSR and SYSMON drivers and libraries as of msm-3.18 commit 5cef33a285e91869cebe40a25e6294ae1e5fc9cc (Merge "ASoC: msm: Update the AFE clock API support") Change-Id: Ibebddee32b15fbcb5b18cceac43769d3309e609c Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-03-22firmware_class: Don't fail request_firmware if we're not using a bufferVikram Mulukutla
A check that the intermediate firmware actually contains data is performed before returning from request_firmware. Perform this check only if we're actually using the intermediate buffer. Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2016-03-22firmware_class: Add an additional path to fw_path listDeepak Katragadda
Add an additional path, /firmware/image to the list of fw paths that request_firmware looks into for the firmware images. Change-Id: I4b9164f222bf0a8546072de97838bf9d49dd8252 Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-03-22firmware_class: Change print levels for some warningsDeepak Katragadda
Currently, when _request_firmware() fails to find the firmware from the default /lib location, a couple of error messages are printed denoting the same. Change the print level for these messages from dev_warn to dev_dbg as it is fairly common to have the user-space helper loading the firmware for us. Change-Id: I5e06b3785f58e85eda45d32130b9acbc75cd2c0a Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org> [vmulukut: adjusted for upstream changes] Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>