Commit graph

595053 commits

Author SHA1 Message Date
Linux Build Service Account
328319f28a Merge "icnss: Check for FW_READY state before sending uevent in PD notifier" 2017-11-05 22:32:52 -08:00
Linux Build Service Account
2dedf76547 Merge "ath: Disable non-20 mhz 2G world regulatory channels" 2017-11-05 22:32:51 -08:00
Linux Build Service Account
99b30615eb Merge "diag: Handle data ready notification properly" 2017-11-05 22:32:50 -08:00
Linux Build Service Account
b6f12218b5 Merge "power: qpnp-fg-gen3: Fine tune the monotonic SOC calculation" 2017-11-05 22:32:49 -08:00
Linux Build Service Account
697888e330 Merge "defconfig: Enable DFS support for ath10k" 2017-11-05 22:32:48 -08:00
Linux Build Service Account
aa00b1c16d Merge "clk: qcom: Add support for 430MHz for gpu clock on sdm660" 2017-11-05 22:32:47 -08:00
Linux Build Service Account
efa374d7b2 Merge "SoC: msm: Support SEC_MI2S_RX" 2017-11-05 22:32:45 -08:00
Linux Build Service Account
0a9e5f9137 Merge "leds: qpnp-wled: Fix configuration for AMOLED mode" 2017-11-05 22:32:43 -08:00
Linux Build Service Account
67dcc348d7 Merge "leds: qpnp-wled: Disable module permanently when OVP fault persists" 2017-11-05 22:32:43 -08:00
Linux Build Service Account
c6846de733 Merge "leds: qpnp-wled: Configure WLED1_CTRL_SWITCHING_FREQUENCY selectively" 2017-11-05 22:32:42 -08:00
Ritesh Harjani
4f633c283f defconfig: sdm660: Enable sdcardfs
This enables sdcardfs for sdm660.

Change-Id: I5621743809caf9a3bbe1deda38681b9c9bcccb99
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
2017-11-05 19:24:46 -08:00
Linux Build Service Account
7777cc93db Merge "power: qpnp-fg-gen3: Skip the status_change work if suspended" 2017-11-03 21:45:05 -07:00
Linux Build Service Account
96bbdb7e76 Merge "memblock: Fix memblock_overlaps_memory()" 2017-11-03 21:45:03 -07:00
Yue Ma
c10f99af82 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>
2017-11-03 10:28:20 -07:00
Yue Ma
f76f50c672 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>
2017-11-03 10:27:53 -07:00
Dhoat Harpal
091090e84f 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>
2017-11-03 21:48:35 +05:30
Lior David
3d38ac71cc 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>
2017-11-03 09:08:23 -07:00
Lior David
6e5a9b3250 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>
2017-11-03 09:06:54 -07:00
Lior David
5c9c0841e5 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>
2017-11-03 09:05:20 -07:00
Lior David
59bd12d370 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>
2017-11-03 09:02:13 -07:00
Linux Build Service Account
fc86e52281 Merge "Merge android-4.4@89074de (v4.4.94) into msm-4.4" 2017-11-03 07:04:47 -07:00
Linux Build Service Account
3c586a777b Merge "serial: msm_serial_hs: Do not accept Rx Data till the Rx pipe connect" 2017-11-03 07:04:46 -07:00
Hareesh Gundu
ad76dbd362 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>
2017-11-03 06:36:14 -07:00
Dhoat Harpal
e237404021 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>
2017-11-03 16:46:18 +05:30
Ritesh Harjani
ea65e36e9d defconfig: msmcortex: Enable sdcardfs
This patch enables sdcardfs for msmcortex.

Change-Id: Icf3105c0080a35c2ead663decf4340647ac64b67
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
2017-11-03 04:11:26 -07:00
Liangwei Dong
ca76249c74 net🛜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
2017-11-03 02:32:30 -04:00
Anirudh Ghayal
fa88f5e4cb 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>
2017-11-03 08:28:01 +05:30
Satyajit Desai
d0f8d1f850 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>
2017-11-02 15:30:59 -07:00
Mohammed Javid
34db235e95 msm: ipa: Fix to use GFP_DMA flag
IPAv2 hardware works with 32 bit addressing,
so allocate a kernel memory using GFP_DMA flag
which is processed by IPA hardware.

Change-Id: I6f35e7f2179dc48f718221f6a3d228aca67c4154
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2017-11-02 19:10:22 +05:30
Rahul Sharma
960078448f 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>
2017-11-02 14:11:13 +05:30
Anurag Chouhan
fd554860f0 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>
2017-11-01 23:50:26 -07:00
Avaneesh Kumar Dwivedi
48d5f82d0e 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>
2017-11-02 11:40:33 +05:30
Avaneesh Kumar Dwivedi
d438970a05 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>
2017-11-02 11:39:55 +05:30
Vijayavardhan Vennapusa
43c0d001bc USB: configfs: Don't send DISCONNECT uevent during unbind
Windows XP host takes upto 6 seconds to enumerate RNDIS composition when
RNDIS (tethering) is enabled while in MTP/PTP composition. This results in
Userpsace Tethering enable timeout (1 second) causing RNDIS enumeration
failure and falls back to default composition. Workaround the issue by not
sending disconnect event to userspace on composition switch (MTP/PTP to
RNDIS). Send the disconnect event from USB bus reset so that userspace
enable timer starts from bus reset.

Change-Id: I2d1fcaa0704e369204fbba4eceb8ba9b1c525b41
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-11-01 22:13:23 -07:00
Tirupathi Reddy
be462176df regulator: qpnp: fix voltage min/max constraints check
Fix voltage range selection logic used for voltage min/max
constraints check.

CRs-Fixed: 2136747
Change-Id: I80ab9ca583fda625ae2d9bd9e0c176a4b8c343db
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-11-02 09:36:36 +05:30
Linux Build Service Account
11734d0451 Merge "drm/msm/sde: add mutex to the sde resource manager" 2017-11-01 20:34:04 -07:00
Linux Build Service Account
e8c140a99b Merge "ARM: dts: msm: enable one adv7533 instance on apq8096 lite board" 2017-11-01 20:34:03 -07:00
Young Hwan Kwak
70e0fba783 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>
2017-11-02 09:44:10 +08:00
Rajeev Kumar Sirasanagandla
b85f32555a 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>
2017-11-01 16:24:42 +05:30
Vatsal Bucha
fe5ee69774 ASoC: msm: qdsp6v2: Remove excess logs in compress driver
Excess logs are printed in msm_compr_pointer during ADSP SSR.
This causes failure of some interrupts to occur which
results in SSR failure. Logs can be reduced by applying ratelimit.

CRs-Fixed: 2128011
Change-Id: I9a6a5e0fed17154e201bce0d7fa2de91b6ec159d
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-11-01 00:01:14 -07:00
Linux Build Service Account
aedf62a2ba Merge "block: Fix oops in locked_inode_to_wb_and_lock_list()" 2017-10-31 16:54:18 -07:00
Linux Build Service Account
5954c32915 Merge "block: Fix bdi assignment to bdev inode when racing with disk delete" 2017-10-31 16:54:18 -07:00
Linux Build Service Account
d4cc718065 Merge "diag: Remove AXI prefetch related padding" 2017-10-31 16:54:17 -07:00
Linux Build Service Account
df3eaf90e3 Merge "ARM: 8701/1: fix sparse flags for build on 64bit machines" 2017-10-31 16:54:16 -07:00
Linux Build Service Account
5327b0ab71 Merge "msm: mdss: add support for dma scheduling for dsi v2.1" 2017-10-31 16:54:14 -07:00
Ashish Garg
0d030ecce2 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>
2017-10-31 10:32:59 -07:00
Sameer Thalappil
9fccd743a2 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>
2017-10-31 10:19:55 -07:00
Subash Abhinov Kasiviswanathan
a445520d5d net: rmnet_data: Support recycling frames to real device
For deaggregation, the real device receives a large linear skb and
passes it on to rmnet. rmnet creates new skbs from this large frame.

If the real device supports recycling, it does not need to allocate
the large skbs during packet reception and can instead reuse them.

CRs-Fixed: 2140499
Change-Id: I4f3c67bafe1918dc1a96690305d00cc8c625a9b7
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2017-10-31 10:59:13 -06:00
Vatsal Bucha
b16d5c5553 ARM: dts: msm: Fix tavil codec reset issue on sdm660
sdm660-mtp has only tavil as codec.If tasha codec is also
enabled then it results in enumeration of device twice
which results in kernel crash sometimes.
This can be avoided if we disable tasha codec from dts.
Similarly sdm660-qrd has only tasha as codec.

CRs-Fixed: 2124709
Change-Id: I66812186d2e769681f00f1ba9a87a3588b04eaf9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-10-31 05:23:45 -07:00
Luc Van Oostenryck II
38aaac21e6 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>
2017-10-30 16:11:46 -07:00