Commit graph

594099 commits

Author SHA1 Message Date
Linux Build Service Account
cc41ba8493 Merge "drm/sde: fix smmu fault while running DRM test" 2017-10-09 07:36:56 -07:00
Ashish Garg
5cf73b4ac4 msm: mdss: read active line count before triggering ESD read
In the current implementation before triggering ESD read,
DSI SW waits for extra time to skip display blanking period.
Add an additional check for active line count to ensure that
ESD read is always triggered during display active region only.

Change-Id: I5893daf7cdfb8c1d0a0e962eb2e37d7cd053a6a5
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2017-10-09 16:51:17 +05:30
Hardik Arya
7f2bebe85e diag: Flush mdlog table entries while reallocation of data buffer
Currently there is a possibility of accessing freed up buffer
address after reallocation due to availability of old address
in mdlog entry table. The patch flushes table entries before
reallocating data buffer. Additional case of entries cleanup
during erroneous buffer free avoiding further buffer corruption.

CRs-Fixed: 2063721
Change-Id: I8424598ad34b809414518a1f7f5b1737ebe51e53
Signed-off-by: Hardik Arya <harya@codeaurora.org>
2017-10-09 13:18:13 +05:30
Linux Build Service Account
6604cb543e Merge "wil6210: potential buffer overflow in wmi_evt_aoa_meas" 2017-10-07 09:46:46 -07:00
Linux Build Service Account
9dd28a9153 Merge "usb: gadget: CCID: Add support for SuperSpeed enumeration" 2017-10-07 01:38:03 -07:00
Linux Build Service Account
38b84c7081 Merge "msm: kgsl: Avoid cache ops on secure memory" 2017-10-07 01:38:01 -07:00
Linux Build Service Account
ee582d5f26 Merge "drm/msm: reset HDCP 2.2 sink support during disconnect" 2017-10-07 01:38:00 -07:00
Linux Build Service Account
ed2c8ee369 Merge "cnss2: Remove utils" 2017-10-07 01:37:59 -07:00
Lior David
62d33b113c wil6210: potential buffer overflow in wmi_evt_aoa_meas
The code in wmi_evt_aoa_meas can potentially overflow a data
buffer if the len parameter is smaller than
offsetof(struct wmi_aoa_meas_event, meas_data). Add protection
against this case.

Change-Id: I3f86f231e0c6b5ac54abbb9865cba0cbbd8d0448
Signed-off-by: Lior David <liord@codeaurora.org>
2017-10-07 00:15:50 -07:00
Prateek Sood
12d8cc1e35 locking/osq_lock: Fix osq_lock queue corruption
Fix ordering of link creation between node->prev and prev->next in
osq_lock(). A case in which the status of optimistic spin queue is
CPU6->CPU2 in which CPU6 has acquired the lock.

        tail
          v
  ,-. <- ,-.
  |6|    |2|
  `-' -> `-'

At this point if CPU0 comes in to acquire osq_lock, it will update the
tail count.

  CPU2			CPU0
  ----------------------------------

				       tail
				         v
			  ,-. <- ,-.    ,-.
			  |6|    |2|    |0|
			  `-' -> `-'    `-'

After tail count update if CPU2 starts to unqueue itself from
optimistic spin queue, it will find an updated tail count with CPU0 and
update CPU2 node->next to NULL in osq_wait_next().

  unqueue-A

	       tail
	         v
  ,-. <- ,-.    ,-.
  |6|    |2|    |0|
  `-'    `-'    `-'

  unqueue-B

  ->tail != curr && !node->next

If reordering of following stores happen then prev->next where prev
being CPU2 would be updated to point to CPU0 node:

				       tail
				         v
			  ,-. <- ,-.    ,-.
			  |6|    |2|    |0|
			  `-'    `-' -> `-'

  osq_wait_next()
    node->next <- 0
    xchg(node->next, NULL)

	       tail
	         v
  ,-. <- ,-.    ,-.
  |6|    |2|    |0|
  `-'    `-'    `-'

  unqueue-C

At this point if next instruction
	WRITE_ONCE(next->prev, prev);
in CPU2 path is committed before the update of CPU0 node->prev = prev then
CPU0 node->prev will point to CPU6 node.

	       tail
    v----------. v
  ,-. <- ,-.    ,-.
  |6|    |2|    |0|
  `-'    `-'    `-'
     `----------^

At this point if CPU0 path's node->prev = prev is committed resulting
in change of CPU0 prev back to CPU2 node. CPU2 node->next is NULL
currently,

				       tail
			                 v
			  ,-. <- ,-. <- ,-.
			  |6|    |2|    |0|
			  `-'    `-'    `-'
			     `----------^

so if CPU0 gets into unqueue path of osq_lock it will keep spinning
in infinite loop as condition prev->next == node will never be true.

Change-Id: I5f473433ae2e10308fa7b27680bf98530fe65b0d
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
[ Added pictures, rewrote comments. ]
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: sramana@codeaurora.org
Link: http://lkml.kernel.org/r/1500040076-27626-1-git-send-email-prsood@codeaurora.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Git-commit: 50972fe78f24f1cd0b9d7bbf1f87d2be9e4f412e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
2017-10-06 22:41:40 -07:00
Akshay Chandrashekhar Kalghatgi
23fdc17933 msm: vidc: Support ioctl VIDIOC_ENUM_FRAMESIZES
Changed ioctl VIDIOC_ENUM_FRAMESIZES behavior in conformance with
V4L2 specification to be able to query based on pixel format.

Change-Id: Ia5803341070d14335cbb939108575f835471a857
Signed-off-by: Akshay Chandrashekhar Kalghatgi <akalghat@codeaurora.org>
2017-10-06 14:10:52 -07:00
Linux Build Service Account
479d36e015 Merge "dwc3: msm: Notify -ETIMEDOUT always in case of floating charger" 2017-10-06 13:42:30 -07:00
Linux Build Service Account
df42ac7d5c Merge "msm: camera: Fix framedrop pattern and period" 2017-10-06 13:42:29 -07:00
Linux Build Service Account
2ba44c1ce1 Merge "iommu: fix smmu_secure_pool access list after free issue" 2017-10-06 13:42:28 -07:00
Linux Build Service Account
e119670334 Merge "msm: ipa: Add support for UL Firewall" 2017-10-06 13:42:27 -07:00
Linux Build Service Account
cf8e7e3850 Merge "msm: mhi_rmnet: set ifalias to unidentified_net_dev on error from MHI" 2017-10-06 13:42:26 -07:00
Linux Build Service Account
8480d22d5b Merge "msm: ipa: Add support for per client lan statistics" 2017-10-06 03:11:22 -07:00
Linux Build Service Account
4715598d50 Merge "mmc: block: Return error in case of partition switch failure" 2017-10-06 03:11:21 -07:00
Linux Build Service Account
a28133826a Merge "mmc: core: Ignore bus resume flags when card removal event is detected" 2017-10-06 03:11:20 -07:00
Linux Build Service Account
0a7f7fc4b8 Merge "usb: pd: Add support to send PD 3.0 extended messages" 2017-10-06 03:11:18 -07:00
Linux Build Service Account
b5d3c2dbdb Merge "usb: pd: Add support to handle alert message for PD 3.0" 2017-10-06 03:11:17 -07:00
Linux Build Service Account
6d8c211107 Merge "usb: pd: Add support for PD revision 3.0 control messages" 2017-10-06 03:11:16 -07:00
Ramesh V
9decd5f9f7 msm: camera: Fix framedrop pattern and period
In reset_framedrop function configure period
based on pattern to avoid overflow in fastaec mode.

Change-Id: Iddf19fb8a293a2c72682c65ee8fe6f3b7ea2b223
Signed-off-by: Ramesh V <ramev@codeaurora.org>
2017-10-06 01:27:05 -07:00
Utkarsh Saxena
7a88708da9 msm: ipa: Add support for UL Firewall
For UL firewall v6 rules are sent to IPA Q6 in case of
whitelisting to allow only specific connections and drop
the rest of the connections.

Add a support to handle UL firewall request, response and
indication in rmnet ipa driver.

Change-Id: I74a80dce2e16bd8a2c22f12ae3a3f50807c4784e
Acked-by: Abhishek Choubey <abchoube@qti.qualcomm.com>
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-10-05 23:02:46 -07:00
Vijayavardhan Vennapusa
c05883d268 usb: gadget: CCID: Add support for SuperSpeed enumeration
Currently CCID function supports only upto HighSpeed
enumeration. Add descriptors for SuperSpeed mode
and bind them to enable SuperSpeed enumeration of
USB CCID function.

Change-Id: I1908a9aa2daec7d1d361cb996e82cd1a0700f7cc
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-10-06 11:24:04 +05:30
Sayali Lokhande
0eb1e72abb mmc: block: Return error in case of partition switch failure
If some error occurs in mmc_blk_cmdq_part_switch() function,
the error is not being passed to higher layers to inform the
failure. Instead it returns zero even though no request is
completed with success. This change returns error to higher
layers in case of any failures in mmc_blk_cmdq_part_switch.

Change-Id: Icd1d2d9bc6bb5bd16bc24706fb20603cc33cee40
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
2017-10-05 21:42:06 -07:00
Mayank Rana
a0465d9a02 usb: f_qdss: Use QDSS string descriptor with QDSS interface descriptor
QDSS Data and QDSS Ctrl related string descriptors are defined but those
are not being advertised to Host. Hence update USB QDSS interface
descriptor with USB QDSS string descriptor. This helps some of host side
application to detect enuermated QDSS interface and allows IO with it.

Change-Id: I1ff141f1b52d867d70ecc8f23ac065639999c0f9
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2017-10-05 16:58:02 -07:00
Linux Build Service Account
a599fe22fa Merge "crypto: ice: Sanitize the ice device return address." 2017-10-05 16:10:24 -07:00
Linux Build Service Account
5f039db7fc Merge "power: qpnp-fg-gen3: Handle notifications from parallel charger" 2017-10-05 16:10:23 -07:00
Linux Build Service Account
cf40205652 Merge "ARM: dts: msm: Add AFE clock version for primary auxpcm" 2017-10-05 16:10:22 -07:00
Linux Build Service Account
9a8f29ce40 Merge "ASoC: codecs: Fix pop noise in HPH plus LO4 concurrent usecase" 2017-10-05 16:10:21 -07:00
Linux Build Service Account
eecaf2b6d2 Merge "ASoC: msm: qdsp6v2: initialize L/R/C gain for both mono/stereo playback" 2017-10-05 16:10:20 -07:00
Linux Build Service Account
54a4a46266 Merge "soc: qcom: fix out of bounds read issue" 2017-10-05 16:10:19 -07:00
Linux Build Service Account
b54d3c5299 Merge "ASoC: wcd-dsp-mgr: Add range check before getting component" 2017-10-05 16:10:18 -07:00
Linux Build Service Account
152153c221 Merge "ASoC: msm-lsm-client: cleanup ioctl functions" 2017-10-05 16:10:17 -07:00
Linux Build Service Account
50a7aac435 Merge "Revert "osq_lock: fix osq_lock queue corruption"" 2017-10-05 16:10:16 -07:00
Linux Build Service Account
b4a52c84e3 Merge "msm: camera: Check if regulator is null before enabling" 2017-10-05 16:10:15 -07:00
Linux Build Service Account
f165bb6da1 Merge "defconfig: msm: enable DRM driver for msm8996" 2017-10-05 16:10:14 -07:00
Linux Build Service Account
afb24a199c Merge "drm/msm: null check before initializing a submitqueue" 2017-10-05 16:10:12 -07:00
Linux Build Service Account
81d3ca7153 Merge "ARM: dts: msm: use sde terminology for DRM based nodes" 2017-10-05 16:10:12 -07:00
Linux Build Service Account
120b98faf4 Merge "drm/msm: avoid loading gpu components if qcom_kgsl present" 2017-10-05 16:10:11 -07:00
Linux Build Service Account
85efa92bb8 Merge "drm/msm: remove the right vlbank event from the event list" 2017-10-05 16:10:09 -07:00
Linux Build Service Account
3b503081f5 Merge "drm/msm/sde: update release & retire fence timeline" 2017-10-05 16:10:09 -07:00
Linux Build Service Account
5d64261f21 Merge "step-chg-jeita: run only when charging" 2017-10-05 16:10:08 -07:00
Linux Build Service Account
e10b471b51 Merge "FROMLIST: binder: fix memory corruption in binder_transaction binder" 2017-10-05 16:10:07 -07:00
Linux Build Service Account
9e61cad143 Merge "sched: Make resched_cpu() unconditional" 2017-10-05 16:10:06 -07:00
Linux Build Service Account
9b952ff615 Merge "rcu: Stop disabling interrupts in scheduler fastpaths" 2017-10-05 16:10:04 -07:00
Linux Build Service Account
f5684568b9 Merge "iio: qcom-rradc: Disable continuous mode when read fails" 2017-10-05 16:10:03 -07:00
Linux Build Service Account
9a6c530f34 Merge "defconfig: msm-auto: Enbale CONFIG_SLUB_DEBUG_ON" 2017-10-05 16:10:02 -07:00
Linux Build Service Account
699891bf07 Merge "ARM: dts: msm: change smb138x_parallel_slave node name" 2017-10-05 16:10:01 -07:00