OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoMerge "ARM: dts: msm: Change QDSS pipe index to 3 for SDM660"
Linux Build Service Account [Tue, 7 Nov 2017 23:40:01 +0000 (15:40 -0800)]
Merge "ARM: dts: msm: Change QDSS pipe index to 3 for SDM660"

6 years agoMerge "msm: isp: Soft reset ISP before second pass"
Linux Build Service Account [Tue, 7 Nov 2017 09:41:18 +0000 (01:41 -0800)]
Merge "msm: isp: Soft reset ISP before second pass"

6 years agoMerge "ARM: dts: msm: Remove the virtual plane implementation on msm8996"
Linux Build Service Account [Tue, 7 Nov 2017 09:41:17 +0000 (01:41 -0800)]
Merge "ARM: dts: msm: Remove the virtual plane implementation on msm8996"

6 years agoARM: dts: msm: Change QDSS pipe index to 3 for SDM660
Vijayavardhan Vennapusa [Tue, 7 Nov 2017 05:40:13 +0000 (11:10 +0530)]
ARM: dts: msm: Change QDSS pipe index to 3 for SDM660

Currently same pipe index is used for both QDSS and DPL pipes for SDM660.
This causes QDSS not working in composition 90DB having both QDSS and DPL
interfaces. Hence fix it by changing QDSS pipe index to 3 so that both
QDSS and DPL works fine with 90DB composition on SDM660.

Change-Id: I7c799716cff7321985fcb88a8073737343a932f5
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
6 years agoMerge "ARM: dts: msm: Remove GPIO pins that are unused on Mojave"
Linux Build Service Account [Mon, 6 Nov 2017 19:49:31 +0000 (11:49 -0800)]
Merge "ARM: dts: msm: Remove GPIO pins that are unused on Mojave"

6 years agoMerge "soc: qcom: pil: Fix error handling during PIL driver probe"
Linux Build Service Account [Mon, 6 Nov 2017 19:49:30 +0000 (11:49 -0800)]
Merge "soc: qcom: pil: Fix error handling during PIL driver probe"

6 years agoMerge "net:wireless:cnss2: Fix driver loading failure"
Linux Build Service Account [Mon, 6 Nov 2017 19:49:29 +0000 (11:49 -0800)]
Merge "net:wireless:cnss2: Fix driver loading failure"

6 years agoARM: dts: msm: Remove GPIO pins that are unused on Mojave
Rahul Sharma [Wed, 18 Oct 2017 10:13:13 +0000 (15:43 +0530)]
ARM: dts: msm: Remove GPIO pins that are unused on Mojave

cam_snapshot and cam_focus GPIO pins are unused on Mojave,
thus remove them from DT. Those pins are used for ADV7481
on Mojave.

Change-Id: I8c0026a215fdc2cf1aa94eb763f82258229435c8
Suggested-by: Resmi Rajendran <resmir@qti.qualcomm.com>
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoARM: dts: msm: Remove the virtual plane implementation on msm8996
Camus Wong [Wed, 1 Nov 2017 16:32:04 +0000 (12:32 -0400)]
ARM: dts: msm: Remove the virtual plane implementation on msm8996

Virtual plane limited the usage of plane on assigned display only.
It is against the implementation in strategy manager in SDM, which
assume any plane can be used by any display.

Change-Id: Iddcb94d888dfa1ec7685f2964116b4296a0e9a7f
Signed-off-by: Camus Wong <camusw@codeaurora.org>
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoMerge "soc: qcom: Add support for QDSS bridge driver"
Linux Build Service Account [Mon, 6 Nov 2017 06:33:10 +0000 (22:33 -0800)]
Merge "soc: qcom: Add support for QDSS bridge driver"

6 years agoMerge "defconfig: sdm660: Enable sdcardfs"
Linux Build Service Account [Mon, 6 Nov 2017 06:33:08 +0000 (22:33 -0800)]
Merge "defconfig: sdm660: Enable sdcardfs"

6 years agoMerge "soc: qcom: glink_smem_native_xport: Add readback to write index"
Linux Build Service Account [Mon, 6 Nov 2017 06:33:07 +0000 (22:33 -0800)]
Merge "soc: qcom: glink_smem_native_xport: Add readback to write index"

6 years agoMerge "msm: kgsl: Add property to determine commands timeout"
Linux Build Service Account [Mon, 6 Nov 2017 06:33:06 +0000 (22:33 -0800)]
Merge "msm: kgsl: Add property to determine commands timeout"

6 years agoMerge "soc: qcom: glink_ssr: Use do_cleanup_data from pkt_priv"
Linux Build Service Account [Mon, 6 Nov 2017 06:33:05 +0000 (22:33 -0800)]
Merge "soc: qcom: glink_ssr: Use do_cleanup_data from pkt_priv"

6 years agoMerge "cnss2: Add device pointer to all external APIs"
Linux Build Service Account [Mon, 6 Nov 2017 06:33:03 +0000 (22:33 -0800)]
Merge "cnss2: Add device pointer to all external APIs"

6 years agoMerge "wil6210: missing length check in wil_cfg80211_mgmt_tx"
Linux Build Service Account [Mon, 6 Nov 2017 06:33:00 +0000 (22:33 -0800)]
Merge "wil6210: missing length check in wil_cfg80211_mgmt_tx"

6 years agoMerge "ARM: dts: msm: Add GPU maximum frequency 430Mhz support for SDM636"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:59 +0000 (22:32 -0800)]
Merge "ARM: dts: msm: Add GPU maximum frequency 430Mhz support for SDM636"

6 years agoMerge "defconfig: msmcortex: Enable sdcardfs"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:58 +0000 (22:32 -0800)]
Merge "defconfig: msmcortex: Enable sdcardfs"

6 years agoMerge "spi: core: Extract of_spi_parse_dt()"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:57 +0000 (22:32 -0800)]
Merge "spi: core: Extract of_spi_parse_dt()"

6 years agoMerge "ARM: dts: msm: Add base register property for lpass and turing for sdm660"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:55 +0000 (22:32 -0800)]
Merge "ARM: dts: msm: Add base register property for lpass and turing for sdm660"

6 years agoMerge "msm: kgsl: Print Vulkan memory types as well"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:54 +0000 (22:32 -0800)]
Merge "msm: kgsl: Print Vulkan memory types as well"

6 years agoMerge "defconfig: msm: enable DRM driver for msm8996"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:53 +0000 (22:32 -0800)]
Merge "defconfig: msm: enable DRM driver for msm8996"

6 years agoMerge "icnss: Check for FW_READY state before sending uevent in PD notifier"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:52 +0000 (22:32 -0800)]
Merge "icnss: Check for FW_READY state before sending uevent in PD notifier"

6 years agoMerge "ath: Disable non-20 mhz 2G world regulatory channels"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:51 +0000 (22:32 -0800)]
Merge "ath: Disable non-20 mhz 2G world regulatory channels"

6 years agoMerge "diag: Handle data ready notification properly"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:50 +0000 (22:32 -0800)]
Merge "diag: Handle data ready notification properly"

6 years agoMerge "power: qpnp-fg-gen3: Fine tune the monotonic SOC calculation"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:49 +0000 (22:32 -0800)]
Merge "power: qpnp-fg-gen3: Fine tune the monotonic SOC calculation"

6 years agoMerge "defconfig: Enable DFS support for ath10k"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:48 +0000 (22:32 -0800)]
Merge "defconfig: Enable DFS support for ath10k"

6 years agoMerge "clk: qcom: Add support for 430MHz for gpu clock on sdm660"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:47 +0000 (22:32 -0800)]
Merge "clk: qcom: Add support for 430MHz for gpu clock on sdm660"

6 years agoMerge "SoC: msm: Support SEC_MI2S_RX"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:45 +0000 (22:32 -0800)]
Merge "SoC: msm: Support SEC_MI2S_RX"

6 years agoMerge "leds: qpnp-wled: Fix configuration for AMOLED mode"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:44 +0000 (22:32 -0800)]
Merge "leds: qpnp-wled: Fix configuration for AMOLED mode"

6 years agoMerge "leds: qpnp-wled: Disable module permanently when OVP fault persists"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:43 +0000 (22:32 -0800)]
Merge "leds: qpnp-wled: Disable module permanently when OVP fault persists"

6 years agoMerge "leds: qpnp-wled: Configure WLED1_CTRL_SWITCHING_FREQUENCY selectively"
Linux Build Service Account [Mon, 6 Nov 2017 06:32:42 +0000 (22:32 -0800)]
Merge "leds: qpnp-wled: Configure WLED1_CTRL_SWITCHING_FREQUENCY selectively"

6 years agodefconfig: sdm660: Enable sdcardfs
Ritesh Harjani [Wed, 18 Oct 2017 08:35:58 +0000 (14:05 +0530)]
defconfig: sdm660: Enable sdcardfs

This enables sdcardfs for sdm660.

Change-Id: I5621743809caf9a3bbe1deda38681b9c9bcccb99
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
6 years agoMerge "power: qpnp-fg-gen3: Skip the status_change work if suspended"
Linux Build Service Account [Sat, 4 Nov 2017 04:45:05 +0000 (21:45 -0700)]
Merge "power: qpnp-fg-gen3: Skip the status_change work if suspended"

6 years agoMerge "memblock: Fix memblock_overlaps_memory()"
Linux Build Service Account [Sat, 4 Nov 2017 04:45:04 +0000 (21:45 -0700)]
Merge "memblock: Fix memblock_overlaps_memory()"

6 years agocnss2: Add device pointer to all external APIs
Yue Ma [Mon, 30 Oct 2017 18:31:08 +0000 (11:31 -0700)]
cnss2: Add device pointer to all external APIs

Add device pointer to all external APIs so that platform driver is
able to support multiple devices/instances at the same time.

Change-Id: I09dfb146da30d3fd6514dc79dc31cd239a03afa8
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agocnss2: Remove deprecated API
Yue Ma [Mon, 30 Oct 2017 18:30:11 +0000 (11:30 -0700)]
cnss2: Remove deprecated API

cnss_set_driver_status() is no longer needed by WLAN host driver.
Hence remove it from platform driver.

Change-Id: I31a3174bdded924a9279a40ece05a835277e4626
Signed-off-by: Yue Ma <yuem@codeaurora.org>
6 years agosoc: qcom: glink_smem_native_xport: Add readback to write index
Dhoat Harpal [Thu, 21 Sep 2017 16:42:14 +0000 (22:12 +0530)]
soc: qcom: glink_smem_native_xport: Add readback to write index

Writing data to DDR is not ensured to be completed even with addition
of data memory barrier. It is possible that CPU receive that write
instruction is completed but in reality data can be stuck in intermediate
buffer.

Readback of write index is added to ensure that remote side is sent
interrupt only after data is written on DDR.

CRs-Fixed: 2136645
Change-Id: I32c4967daf71991621b57421167e0ac8d38ce065
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
6 years agowil6210: missing length check in wil_cfg80211_mgmt_tx
Lior David [Tue, 17 Oct 2017 12:44:26 +0000 (15:44 +0300)]
wil6210: missing length check in wil_cfg80211_mgmt_tx

Add a length check in wil_cfg80211_mgmt_tx to detect unsigned integer
overflow.

Change-Id: I37f988481433a2e1238831980715aef32aa89a85
Signed-off-by: Lior David <liord@codeaurora.org>
6 years agowil6210: missing length check in wmi_set_ie
Lior David [Tue, 17 Oct 2017 11:18:17 +0000 (14:18 +0300)]
wil6210: missing length check in wmi_set_ie

Add a length check in wmi_set_ie to detect unsigned integer
overflow.

Change-Id: Id1ec6a6218f3fe6e00cc3f9a8e674f8f843273f2
Signed-off-by: Lior David <liord@codeaurora.org>
6 years agowil6210: add block size checks during FW load
Lior David [Tue, 17 Oct 2017 08:13:36 +0000 (11:13 +0300)]
wil6210: add block size checks during FW load

When loading FW from file add block size checks to ensure a
corrupted FW file will not cause the driver to write outside
the device memory.

Change-Id: I6d7342cd33b2c47b701bcca4ee3cd84febbc56a2
Signed-off-by: Lior David <liord@codeaurora.org>
6 years agowil6210: fix length check in __wmi_send
Lior David [Mon, 16 Oct 2017 17:39:31 +0000 (20:39 +0300)]
wil6210: fix length check in __wmi_send

The current length check:
sizeof(cmd) + len > r->entry_size
will allow very large values of len (> U16_MAX - sizeof(cmd))
and can cause a buffer overflow. Fix the check to cover this case.
In addition, ensure the mailbox entry_size is not too small,
since this can also bypass the above check.

Change-Id: Iecb4f53ef05da0e015bc954b57b0e40debb7c8b7
Signed-off-by: Lior David <liord@codeaurora.org>
6 years agoMerge "Merge android-4.4@89074de (v4.4.94) into msm-4.4"
Linux Build Service Account [Fri, 3 Nov 2017 14:04:48 +0000 (07:04 -0700)]
Merge "Merge android-4.4@89074de (v4.4.94) into msm-4.4"

6 years agoMerge "serial: msm_serial_hs: Do not accept Rx Data till the Rx pipe connect"
Linux Build Service Account [Fri, 3 Nov 2017 14:04:47 +0000 (07:04 -0700)]
Merge "serial: msm_serial_hs: Do not accept Rx Data till the Rx pipe connect"

6 years agoARM: dts: msm: Add GPU maximum frequency 430Mhz support for SDM636
Hareesh Gundu [Mon, 30 Oct 2017 05:35:13 +0000 (11:05 +0530)]
ARM: dts: msm: Add GPU maximum frequency 430Mhz support for SDM636

SDM636 inherits all SDM660 GPU properties, but it will support
GPU max frequency 430Mhz and DDR max frequency 1353Mhz.

Change-Id: I7f88e5d187df2880757ceb6676e75f3cfe5d9218
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
6 years agosoc: qcom: glink_ssr: Use do_cleanup_data from pkt_priv
Dhoat Harpal [Mon, 30 Oct 2017 16:21:01 +0000 (21:51 +0530)]
soc: qcom: glink_ssr: Use do_cleanup_data from pkt_priv

do_cleanup_data pointer is created for every SSR notification and
stored in cb_data. It is possible that the stored pointer can be
overwritten if two peripherals SSR happens at the same time.

Use do_cleanup_data pointer directly in pkt_priv, instead of
dereferencing from cb_data.

CRs-Fixed: 2121529
Change-Id: Ife68cdc460c0628623dea6827632b8acd8d1d955
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
6 years agodefconfig: msmcortex: Enable sdcardfs
Ritesh Harjani [Wed, 18 Oct 2017 08:24:53 +0000 (13:54 +0530)]
defconfig: msmcortex: Enable sdcardfs

This patch enables sdcardfs for msmcortex.

Change-Id: Icf3105c0080a35c2ead663decf4340647ac64b67
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
6 years agonet:wireless:cnss2: Fix driver loading failure
Liangwei Dong [Thu, 26 Oct 2017 10:47:52 +0000 (06:47 -0400)]
net:wireless:cnss2: Fix driver loading failure

When driver loading and registering to cnss,
the interruptible wait in cnss_driver_event_post
could be woken up by signal. In this driver
register failure case, the __hdd_module_init
will release all the driver resource.
But the cnss_driver_event_work is still probing
the driver normally in the same time. The driver
state mismatch will cause crash.

Fixed by using non interruptible wait for driver
register

Change-Id: I6e99e83f1f3312e0b7d74e432ce90ff23631bc19
Signed-off-by: Liangwei Dong <liangwei@codeaurora.org>
CRs-Fixed: 2134631

6 years agopower: qpnp-fg-gen3: Skip the status_change work if suspended
Anirudh Ghayal [Wed, 18 Oct 2017 06:06:22 +0000 (11:36 +0530)]
power: qpnp-fg-gen3: Skip the status_change work if suspended

There is a scenario where the status change work can hold
a mutex lock for ~1.5 seconds which can race with the FG resume
callback. Avoid this condition by adding a state variable
to track the suspend/resume state and skip executing the
status change work while suspended.

CRs-Fixed: 2101514
Change-Id: Ib5300a5dfce30c4c6bcc8d8428b664c184a83fb4
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
6 years agosoc: qcom: Add support for QDSS bridge driver
Satyajit Desai [Fri, 18 Aug 2017 18:44:59 +0000 (11:44 -0700)]
soc: qcom: Add support for QDSS bridge driver

Add support to route QDSS data received from MDM via MHI
to USB. The driver will help route diag traffic over the
QDSS sub-system to USB on APPS side. It acts as a bridge
between PCIE MHI and USB interface.

Change-Id: I98bea976638ce3f80785d8f40e2a936fc62397eb
Signed-off-by: Satyajit Desai <sadesai@codeaurora.org>
6 years agodefconfig: msm: enable DRM driver for msm8996
Rahul Sharma [Thu, 2 Nov 2017 08:37:07 +0000 (14:07 +0530)]
defconfig: msm: enable DRM driver for msm8996

This change disables FB driver and enable DRM display driver
on msm8996 auto defconfig.

Change-Id: Ic214b70dd47379464220e4f801c2ab38753c9a10
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoicnss: Check for FW_READY state before sending uevent in PD notifier
Anurag Chouhan [Fri, 27 Oct 2017 11:01:38 +0000 (16:31 +0530)]
icnss: Check for FW_READY state before sending uevent in PD notifier

The existing state check will create a corner case that when FW
crashed during driver probe, platform driver won't send early
uevent notification to host driver, which create a small window where
host can communicate with FW when FW is crashed. This case can be
covered by checking FW_READY state instead.

CRs-Fixed: 2122702
Change-Id: I0bde9cb5a526ccd9fe81cd38bd4c27cf2e95042b
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
6 years agoARM: dts: msm: Add base register property for lpass and turing for sdm660
Avaneesh Kumar Dwivedi [Thu, 5 Oct 2017 13:12:17 +0000 (18:42 +0530)]
ARM: dts: msm: Add base register property for lpass and turing for sdm660

Add base register property in respective pil nodes to iomap them
during probe of the subsystem pil driver.

Change-Id: I961ab80f1caf84ab63d649c3a1545b89fed56c0b
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
6 years agosoc: qcom: pil: Log the TZ NMI caused subsystem crash on err fatal
Avaneesh Kumar Dwivedi [Thu, 5 Oct 2017 12:28:38 +0000 (17:58 +0530)]
soc: qcom: pil: Log the TZ NMI caused subsystem crash on err fatal

Check NMI STATUS register and dump the log if the err fatal caused
on subsystem is due to TZ NMI.

Change-Id: I8ac4190aca60aeedcd41fd06e2f7dd053edd0f30
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
6 years agoMerge "drm/msm/sde: add mutex to the sde resource manager"
Linux Build Service Account [Thu, 2 Nov 2017 03:34:05 +0000 (20:34 -0700)]
Merge "drm/msm/sde: add mutex to the sde resource manager"

6 years agoMerge "ARM: dts: msm: enable one adv7533 instance on apq8096 lite board"
Linux Build Service Account [Thu, 2 Nov 2017 03:34:04 +0000 (20:34 -0700)]
Merge "ARM: dts: msm: enable one adv7533 instance on apq8096 lite board"

6 years agomsm: kgsl: Print Vulkan memory types as well
Young Hwan Kwak [Thu, 7 Sep 2017 08:29:27 +0000 (16:29 +0800)]
msm: kgsl: Print Vulkan memory types as well

Vulkan memory types are added into UMD.
Print Vulkan memory type as an int value.

CRs-Fixed: 2119633
Change-Id: Idf5d58a6a02dbef6ef8cf6663e7819d221bf3e11
Signed-off-by: Young Hwan Kwak <ykwak@codeaurora.org>
6 years agoath: Disable non-20 mhz 2G world regulatory channels
Rajeev Kumar Sirasanagandla [Tue, 31 Oct 2017 17:47:34 +0000 (23:17 +0530)]
ath: Disable non-20 mhz 2G world regulatory channels

The minimum bandwidth supported is 5 MHZ. Kernel API
wiphy_apply_custom_regulatory can enable channels 12/13
with BW 5/10 even for reg rule 2402-2472. Circumvent the issue
by doing a check in the driver.

CRs-Fixed: 2136273
Change-Id: I296e45d142c38a83c90deb743e992eb1a7743feb
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
6 years agoMerge "block: Fix oops in locked_inode_to_wb_and_lock_list()"
Linux Build Service Account [Tue, 31 Oct 2017 23:54:19 +0000 (16:54 -0700)]
Merge "block: Fix oops in locked_inode_to_wb_and_lock_list()"

6 years agoMerge "block: Fix bdi assignment to bdev inode when racing with disk delete"
Linux Build Service Account [Tue, 31 Oct 2017 23:54:18 +0000 (16:54 -0700)]
Merge "block: Fix bdi assignment to bdev inode when racing with disk delete"

6 years agoMerge "diag: Remove AXI prefetch related padding"
Linux Build Service Account [Tue, 31 Oct 2017 23:54:17 +0000 (16:54 -0700)]
Merge "diag: Remove AXI prefetch related padding"

6 years agoMerge "ARM: 8701/1: fix sparse flags for build on 64bit machines"
Linux Build Service Account [Tue, 31 Oct 2017 23:54:16 +0000 (16:54 -0700)]
Merge "ARM: 8701/1: fix sparse flags for build on 64bit machines"

6 years agoMerge "msm: mdss: add support for dma scheduling for dsi v2.1"
Linux Build Service Account [Tue, 31 Oct 2017 23:54:15 +0000 (16:54 -0700)]
Merge "msm: mdss: add support for dma scheduling for dsi v2.1"

6 years agomsm: mdss: add support for dma scheduling for dsi v2.1
Ashish Garg [Mon, 16 Oct 2017 10:48:26 +0000 (16:18 +0530)]
msm: mdss: add support for dma scheduling for dsi v2.1

Dsi controller v2.1 and above supports scheduling of dma
commands. Schedule dsi cmds at the starting of blanking
region to avoid sending of commands in active region
resulting in dsi overflow errors.

Change-Id: I658b7d7008eb9071148820c0ea949ae9ba593ed9
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
6 years agoicnss: Do not assert if reboot requested during PDR
Sameer Thalappil [Mon, 30 Oct 2017 18:17:01 +0000 (11:17 -0700)]
icnss: Do not assert if reboot requested during PDR

When icnss driver sees a PD down, and if the recovery is already in
progress, it forces an assert in debug builds. That is to detect any
Modem failures during PDR or to catch any instance of recursive PDRs.
When system goes thru a reboot or shutdown, and if the recovery is in
progress then avoid calling this assert.

CRs-Fixed: 2135071
Change-Id: I28f5c79a4cd8b83f60a62111535b11c2fba6000b
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
6 years agoARM: 8701/1: fix sparse flags for build on 64bit machines
Luc Van Oostenryck II [Mon, 2 Oct 2017 19:33:35 +0000 (20:33 +0100)]
ARM: 8701/1: fix sparse flags for build on 64bit machines

By default sparse uses the characteristics of the build
machine to infer things like the wordsize.
This is fine when doing native builds but for ARM it's,
I suspect, very rarely the case and if the build are done
on a 64bit machine we get a bunch of warnings like:
  'cast truncates bits from constant value (... becomes ...)'

Fix this by adding the -m32 flags for sparse.

Change-Id: I9045e5b77578d03e328a4a6af297e84356c02cf8
Reported-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Git-commit: 6042b8c7c08cad7a8bdc0456c619ae941962b40a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
6 years agoMerge "leds: qpnp-flash: Fix Use-after-free(UAF) for debugfs"
Linux Build Service Account [Mon, 30 Oct 2017 22:13:51 +0000 (15:13 -0700)]
Merge "leds: qpnp-flash: Fix Use-after-free(UAF) for debugfs"

6 years agoMerge "ASoC: wcd9xxx: restrict debugfs permission"
Linux Build Service Account [Mon, 30 Oct 2017 12:26:21 +0000 (05:26 -0700)]
Merge "ASoC: wcd9xxx: restrict debugfs permission"

6 years agoMerge "ASoC: sdm660_cdc: Fix pop noise issue at DMIC"
Linux Build Service Account [Mon, 30 Oct 2017 12:26:20 +0000 (05:26 -0700)]
Merge "ASoC: sdm660_cdc: Fix pop noise issue at DMIC"

6 years agodrm/msm/sde: add mutex to the sde resource manager
Lloyd Atkinson [Wed, 26 Apr 2017 15:33:55 +0000 (08:33 -0700)]
drm/msm/sde: add mutex to the sde resource manager

Fix serialization of access to the SDE resource manager by
adding mutex protection to its external APIs.

Change-Id: I469a1c7b37d4a2f115443bdc308d0236d786fc68
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Lihui Wen <lwen@codeaurora.org>
6 years agomsm: kgsl: Add property to determine commands timeout
Sunil Khatri [Mon, 30 Oct 2017 09:42:02 +0000 (15:12 +0530)]
msm: kgsl: Add property to determine commands timeout

Add the property to determine the current command timeout
value which is used by the clients via KGSL IOCTL.

Change-Id: Ifd6b373d211ebd78dc3a8032ede073258487d689
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
6 years agodefconfig: Enable DFS support for ath10k
Surabhi Vishnoi [Fri, 6 Oct 2017 09:42:54 +0000 (15:12 +0530)]
defconfig: Enable DFS support for ath10k

DFS support is disabled for ath10k driver.

Enable the DFS support for ath10k in the defconfig and perf defconfig.

CRs-Fixed: 2124757
Change-Id: Iccecd2226fd13034b12a8978b68f9535178ed430
Signed-off-by: Surabhi Vishnoi <svishnoi@codeaurora.org>
6 years agoclk: qcom: Add support for 430MHz for gpu clock on sdm660
Odelu Kukatla [Thu, 5 Oct 2017 05:16:03 +0000 (10:46 +0530)]
clk: qcom: Add support for 430MHz for gpu clock on sdm660

GPU clock requires to support 430MHz, so add the support
for the same on sdm660.

Change-Id: Ief238fbe521a10f8096ac44844f5abe013649f81
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
6 years agoARM: dts: msm: enable one adv7533 instance on apq8096 lite board
Guchun Chen [Wed, 25 Oct 2017 11:16:17 +0000 (19:16 +0800)]
ARM: dts: msm: enable one adv7533 instance on apq8096 lite board

Apq8096 lite board has one DSI-HDMI display through adv7533 bridge chip,
so enable this bridge chip node.

Change-Id: I3539889b70b5a14d6acd09d13e387bdce11d59b1
CRs-Fixed: 2113147
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
6 years agoMerge "security: Extend SELinux to support CAN sockets"
Linux Build Service Account [Mon, 30 Oct 2017 03:59:53 +0000 (20:59 -0700)]
Merge "security: Extend SELinux to support CAN sockets"

6 years agoleds: qpnp-flash: Fix Use-after-free(UAF) for debugfs
Ankit Sharma [Sat, 28 Oct 2017 08:59:02 +0000 (14:29 +0530)]
leds: qpnp-flash: Fix Use-after-free(UAF) for debugfs

Fix UAF where two threads can open and close the same file. Second
open will cause the private data for the first file to be overwritten.
When the first file is closed and the private data is freed, this makes
the now-shared private data OOB for the second thread.

CRs-Fixed: 1109763
Change-Id: I1c4618d5be99e140abf0f3ea0d7f485897db5ab2
Signed-off-by: Ankit Sharma <ansharma@codeaurora.org>
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
6 years agopower: qpnp-fg-gen3: Fine tune the monotonic SOC calculation
Subbaraman Narayanamurthy [Sat, 28 Oct 2017 03:02:54 +0000 (20:02 -0700)]
power: qpnp-fg-gen3: Fine tune the monotonic SOC calculation

Currently, all the values of raw monotonic SOC (0-255) gets
rounded off to 0-100. This can show up monotonic SOC hitting 0%
earlier when the SOC hadn't really hit zero yet. Improve the
SOC round off calculation so that 0 and 100 % can be shown when
it reaches the exact point.

Change-Id: I5bd9ebc8667a5beed9e1e97ff492aa1350f4d0f7
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
6 years agoMerge android-4.4@89074de (v4.4.94) into msm-4.4
Blagovest Kolenichev [Fri, 27 Oct 2017 17:56:12 +0000 (10:56 -0700)]
Merge android-4.4@89074de (v4.4.94) into msm-4.4

* refs/heads/tmp-89074de
  Linux 4.4.94
  Revert "tty: goldfish: Fix a parameter of a call to free_irq"
  cpufreq: CPPC: add ACPI_PROCESSOR dependency
  nfsd/callback: Cleanup callback cred on shutdown
  target/iscsi: Fix unsolicited data seq_end_offset calculation
  uapi: fix linux/mroute6.h userspace compilation errors
  uapi: fix linux/rds.h userspace compilation errors
  ceph: clean up unsafe d_parent accesses in build_dentry_path
  i2c: at91: ensure state is restored after suspending
  net: mvpp2: release reference to txq_cpu[] entry after unmapping
  scsi: scsi_dh_emc: return success in clariion_std_inquiry()
  slub: do not merge cache if slub_debug contains a never-merge flag
  ocfs2/dlmglue: prepare tracking logic to avoid recursive cluster lock
  crypto: xts - Add ECB dependency
  net/mlx4_core: Fix VF overwrite of module param which disables DMFS on new probed PFs
  sparc64: Migrate hvcons irq to panicked cpu
  md/linear: shutup lockdep warnning
  f2fs: do not wait for writeback in write_begin
  Btrfs: send, fix failure to rename top level inode due to name collision
  iio: adc: xilinx: Fix error handling
  netfilter: nf_ct_expect: Change __nf_ct_expect_check() return value.
  net/mlx4_en: fix overflow in mlx4_en_init_timestamp()
  mac80211: fix power saving clients handling in iwlwifi
  mac80211_hwsim: check HWSIM_ATTR_RADIO_NAME length
  irqchip/crossbar: Fix incorrect type of local variables
  watchdog: kempld: fix gcc-4.3 build
  locking/lockdep: Add nest_lock integrity test
  Revert "bsg-lib: don't free job in bsg_prepare_job"
  tipc: use only positive error codes in messages
  net: Set sk_prot_creator when cloning sockets to the right proto
  packet: only test po->has_vnet_hdr once in packet_snd
  packet: in packet_do_bind, test fanout with bind_lock held
  tun: bail out from tun_get_user() if the skb is empty
  l2tp: fix race condition in l2tp_tunnel_delete
  l2tp: Avoid schedule while atomic in exit_net
  vti: fix use after free in vti_tunnel_xmit/vti6_tnl_xmit
  isdn/i4l: fetch the ppp_write buffer in one shot
  bpf: one perf event close won't free bpf program attached by another perf event
  packet: hold bind lock when rebinding to fanout hook
  net: emac: Fix napi poll list corruption
  ip6_gre: skb_push ipv6hdr before packing the header in ip6gre_header
  udpv6: Fix the checksum computation when HW checksum does not apply
  bpf/verifier: reject BPF_ALU64|BPF_END
  sctp: potential read out of bounds in sctp_ulpevent_type_enabled()
  MIPS: Fix minimum alignment requirement of IRQ stack
  drm/dp/mst: save vcpi with payloads
  percpu: make this_cpu_generic_read() atomic w.r.t. interrupts
  trace: sched: Fix util_avg_walt in sched_load_avg_cpu trace
  sched/fair: remove erroneous RCU_LOCKDEP_WARN from start_cpu()
  sched: EAS/WALT: finish accounting prior to task_tick
  cpufreq: sched: update capacity request upon tick always
  sched/fair: prevent meaningless active migration
  sched: walt: Leverage existing helper APIs to apply invariance

Conflicts:
kernel/sched/core.c
kernel/sched/fair.c
kernel/sched/sched.h

Change-Id: I0effac90fb6a4db559479bfa2fefa31c41200ce9
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
6 years agosched: restore discarded ifdef CONFIG_SCHED_WALT code
Blagovest Kolenichev [Fri, 27 Oct 2017 12:38:12 +0000 (05:38 -0700)]
sched: restore discarded ifdef CONFIG_SCHED_WALT code

Code closed in ifdef CONFIG_SCHED_WALT blocks is not used in
msm-4.4 builds, hence in order to be as much as closer to
upstream and subsequently to have less merge conflicts in the
future, let's restore this code.

Restore below CONFIG_SCHED_WALT changes in file [1]:

  3c5c4e9 trace/sched: add rq utilization signal for WALT
  3a29814 sched: fix wrong truncation of walt_avg
  efb86bd sched: Introduce Window Assisted Load Tracking (WALT)

[1] include/trace/events/sched.h

The above changes were discarded during android-4.4 merging
into msm-4.4 starting from change 1758716.

Change-Id: I1dfe59689ee5f1207e0951a8362a497a8c67c6a7
Signed-off-by: Blagovest Kolenichev <bkolenichev@codeaurora.org>
6 years agoMerge "ARM: dts: msm: Refactor device tree of msm8996 virtual platform"
Linux Build Service Account [Fri, 27 Oct 2017 15:52:16 +0000 (08:52 -0700)]
Merge "ARM: dts: msm: Refactor device tree of msm8996 virtual platform"

6 years agoMerge "rtc: Disable alarm irq if alarm time is in the past"
Linux Build Service Account [Fri, 27 Oct 2017 15:52:15 +0000 (08:52 -0700)]
Merge "rtc: Disable alarm irq if alarm time is in the past"

6 years agoMerge "drm/msm: add SRM support for HDCP 2.2"
Linux Build Service Account [Fri, 27 Oct 2017 15:52:14 +0000 (08:52 -0700)]
Merge "drm/msm: add SRM support for HDCP 2.2"

6 years agosoc: qcom: pil: Fix error handling during PIL driver probe
Jitendra Sharma [Wed, 25 Oct 2017 10:46:36 +0000 (16:16 +0530)]
soc: qcom: pil: Fix error handling during PIL driver probe

During probe function of the Linux PIL kernel driver
Initialization of various resources are done.
This fix is for acquired resource cleanup, in case of error.

Change-Id: I0b3511cff7e2917fe83bddfc15086e939f5c2abc
Signed-off-by: Jitendra Sharma <shajit@codeaurora.org>
6 years agortc: Disable alarm irq if alarm time is in the past
Mao Jinlong [Thu, 12 Oct 2017 03:27:10 +0000 (11:27 +0800)]
rtc: Disable alarm irq if alarm time is in the past

If device is boot up by rtc alarm, the alarm irq will still be
enabled and the alarm time is smaller than current rtc time before
any alarm is set or canceled. If device is powered off now, it will
boot up automatically as the alarm irq is enabled.

So disable alarm irq if alarm is enabled and alarm time is in the
past.

CRs-Fixed: 2109666
Change-Id: Ie60bd1222a400cd45a6c5a385faa70190fbe7e3c
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
6 years agoARM: dts: msm: Refactor device tree of msm8996 virtual platform
Zhiqiang Tu [Wed, 18 Oct 2017 03:08:38 +0000 (11:08 +0800)]
ARM: dts: msm: Refactor device tree of msm8996 virtual platform

Refactor device tree to support multiple targets on virtual platform.

Change-Id: Id4a3519afd63b77510d824979fc71309ff6ac481
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
6 years agoMerge "uapi: Export msm_ipc.h"
Linux Build Service Account [Thu, 26 Oct 2017 21:47:35 +0000 (14:47 -0700)]
Merge "uapi: Export msm_ipc.h"

6 years agoMerge "defconfig: arm64: fsm: Add configs for FSM platforms"
Linux Build Service Account [Thu, 26 Oct 2017 21:47:34 +0000 (14:47 -0700)]
Merge "defconfig: arm64: fsm: Add configs for FSM platforms"

6 years agoMerge "soc: qcom: glink: Add downvote of transport during SSR"
Linux Build Service Account [Thu, 26 Oct 2017 21:47:33 +0000 (14:47 -0700)]
Merge "soc: qcom: glink: Add downvote of transport during SSR"

6 years agoMerge "Merge android-4.4@d6fbbe5 (v4.4.93) into msm-4.4"
Linux Build Service Account [Thu, 26 Oct 2017 14:35:30 +0000 (07:35 -0700)]
Merge "Merge android-4.4@d6fbbe5 (v4.4.93) into msm-4.4"

6 years agoMerge "ath10k: Add radar detect width for wcn3990 interface combination"
Linux Build Service Account [Thu, 26 Oct 2017 14:35:29 +0000 (07:35 -0700)]
Merge "ath10k: Add radar detect width for wcn3990 interface combination"

6 years agoMerge "drm/msm: clear deep color bits in the HDMI controller"
Linux Build Service Account [Thu, 26 Oct 2017 14:35:28 +0000 (07:35 -0700)]
Merge "drm/msm: clear deep color bits in the HDMI controller"

6 years agoMerge "drm/msm: reset sink hdr capabilities during bridge disable"
Linux Build Service Account [Thu, 26 Oct 2017 14:35:27 +0000 (07:35 -0700)]
Merge "drm/msm: reset sink hdr capabilities during bridge disable"

6 years agoMerge "usb: gadget: Add check gadget function bind or not"
Linux Build Service Account [Thu, 26 Oct 2017 14:35:26 +0000 (07:35 -0700)]
Merge "usb: gadget: Add check gadget function bind or not"

6 years agosoc: qcom: glink: Add downvote of transport during SSR
Dhoat Harpal [Tue, 17 Oct 2017 14:24:17 +0000 (19:54 +0530)]
soc: qcom: glink: Add downvote of transport during SSR

During SSR, down vote transport of xprt is not called.
This leads to transport not being able to go to idle state.

Downvote of transport is called in SSR path.

CRs-Fixed: 2131780
Change-Id: Ic374073187aab95b700aa3f795787819f34d3c3c
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
6 years agoSoC: msm: Support SEC_MI2S_RX
Hugh Guan [Mon, 4 Sep 2017 08:03:54 +0000 (16:03 +0800)]
SoC: msm: Support SEC_MI2S_RX

Support SEC_MI2S_RX dai link and export kcontrols to update
Bit Format configuration.

CRs-fixed: 2112037
Change-Id: Ic70b501d900a3f0dab2608fda0f1573cb59c7d35
Signed-off-by: Hugh Guan <hhguan@codeaurora.org>
6 years agoMerge "defconfig: msm: Enable USB video class support on msm-4.4 kernel"
Linux Build Service Account [Wed, 25 Oct 2017 22:58:59 +0000 (15:58 -0700)]
Merge "defconfig: msm: Enable USB video class support on msm-4.4 kernel"

6 years agoMerge "Merge android-4.4@73a2b70 (v4.4.92) into msm-4.4"
Linux Build Service Account [Wed, 25 Oct 2017 22:58:58 +0000 (15:58 -0700)]
Merge "Merge android-4.4@73a2b70 (v4.4.92) into msm-4.4"

6 years agoMerge "ARM: dts: msm: modify interrupt flag for wled device on PMI8994"
Linux Build Service Account [Wed, 25 Oct 2017 22:58:57 +0000 (15:58 -0700)]
Merge "ARM: dts: msm: modify interrupt flag for wled device on PMI8994"

6 years agodefconfig: msm: Enable USB video class support on msm-4.4 kernel
vpalvai [Sat, 21 Oct 2017 00:36:28 +0000 (17:36 -0700)]
defconfig: msm: Enable USB video class support on msm-4.4 kernel

Enable USB video class for USB camera support on
msm8996-auto devices

Change-Id: I2a385cf4c935d5bc2a4c1171f185baf30322ed1d
Signed-off-by: vpalvai <vpalvai@codeaurora.org>
6 years agoMerge "ath10k: increase the allowed num of tx pending pkts"
Linux Build Service Account [Wed, 25 Oct 2017 14:26:51 +0000 (07:26 -0700)]
Merge "ath10k: increase the allowed num of tx pending pkts"