Commit graph

595592 commits

Author SHA1 Message Date
Guchun Chen
0932f23cdb drm: msm: dsi: fix local variable not initialized issue
Local variable in function should be initialized before using it.

Change-Id: I061b10913182ed11b7a8cdb1baab900ac7e10ea6
CRs-Fixed: 2202957
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
2018-03-13 12:06:23 +08:00
Linux Build Service Account
1707cb3ff1 Merge "msm: camera: Prevent buffer overread in write_logsync." 2018-01-09 15:40:52 -08:00
Linux Build Service Account
413d1c29b6 Merge "drm: add picture aspect ratio flags" 2018-01-09 15:40:42 -08:00
Linux Build Service Account
814ce2f505 Merge "ARM: dts: msm: Add support for FHD+ Video Mode Panel on SDM660" 2018-01-09 15:40:41 -08:00
Linux Build Service Account
fcf826264c Merge "sched: Restore previous implementation of check_for_migration()" 2018-01-09 15:40:39 -08:00
Linux Build Service Account
20ab01289c Merge "sched: core: Exclude isolated cpus in sched_getaffinity cpumask" 2018-01-09 15:40:38 -08:00
Linux Build Service Account
335cf65347 Merge "sched: Update tracepoint to include task info" 2018-01-09 15:40:35 -08:00
Linux Build Service Account
05389087c3 Merge "ARM: dts: msm: Add cnss sdio dsrc on msm8996 vplatform" 2018-01-09 15:40:34 -08:00
Linux Build Service Account
d093470650 Merge "defconfig: msm: enable tv tuner driver for MSM8996" 2018-01-09 15:40:32 -08:00
Linux Build Service Account
3808c1b2e9 Merge "ath10k: Define wlan hardware param for pdev suspend option" 2018-01-09 15:40:30 -08:00
Linux Build Service Account
b04efc88ff Merge "UPSTREAM: ALSA: timer: Call notifier in the same spinlock" 2018-01-09 15:40:29 -08:00
Linux Build Service Account
8be6297f82 Merge "sched: Fix spinlock recursion in sched_exit()" 2018-01-09 15:40:27 -08:00
Linux Build Service Account
30bcab60e7 Merge "drm/msm/sde: clear blend stages of all mixers" 2018-01-09 15:40:26 -08:00
Linux Build Service Account
9c7f12cde2 Merge "soc: qcom: glink: Modify glink logging in tx_common" 2018-01-09 15:40:25 -08:00
Linux Build Service Account
57f58180d9 Merge "soc: qcom: glink_pkt: Exit if device handle is NULL" 2018-01-09 15:40:23 -08:00
Linux Build Service Account
bdc7048a1b Merge "usb: gadget: Update default class subclass and protocol for rndis" 2018-01-09 15:40:22 -08:00
Linux Build Service Account
6464572edc Merge "ASoC: msm: qdsp6v2: Update audio effects driver to support Instance ID" 2018-01-09 15:40:14 -08:00
Linux Build Service Account
d59545e5cb Merge "cnss2: Make WLAN host driver unregister work uninterruptible" 2018-01-09 15:40:12 -08:00
Linux Build Service Account
14aa89ff45 Merge "cnss2: Ignore recovery if driver state is not proper" 2018-01-09 15:40:11 -08:00
Linux Build Service Account
fa18c55b4d Merge "soc: qcom: hab: add some more logs" 2018-01-09 15:40:00 -08:00
Trishansh Bhardwaj
1240d01e09 msm: camera: Prevent buffer overread in write_logsync.
If userspace issues write with string of length 21 or more then
there is a chance that kernel will overread lbuf array.
This change makes sure that lbuf is NULL terminated.

Change-Id: I9ad6d5a607b2ff1f293512be9746ee554b076b10
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
2018-01-09 01:04:35 -08:00
Shashank Sharma
dfd7f4cba2 drm: add picture aspect ratio flags
This patch adds drm flag bits for aspect ratio information

Currently drm flag bits don't have field for mode's picture
aspect ratio. This field will help the driver to pick mode with
right aspect ratio, and help in setting right VIC field in avi
infoframes.

V2: Addressed review comments from Sean
- Changed PAR-> PIC_AR
V3: Rebase
V3: Added r-b by Jose

Change-Id: I40cd7fc8393166b710a5f1faaea6e7dac59af65b
Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
Reviewed-by: Jim Bride <jim.bride@linux.intel.com>
Reviewed-by: Jose Abreu <Jose.Abreu@synopsys.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1476705880-15600-2-git-send-email-shashank.sharma@intel.com
Git-commit: 876f43c073d79ad3f14a4cebd1aea1f39fc4daf5
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[nbahrani@codeaurora.org: resolve merge conflicts by changing
 the mask bits to 27:24 instead of 22:19]
Signed-off-by: Navid Bahrani <nbahrani@codeaurora.org>
2018-01-08 11:40:09 -08:00
Rashi Bindra
d6718c4e1b ARM: dts: msm: Add support for FHD+ Video Mode Panel on SDM660
Add changes to add panel init sequence, on/off commands and other
panel properties for FHD+ Video Mode Panel.

Change-Id: Iedabdec64ea6d5882a4078c0e5d831d0547314c3
Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
2018-01-08 13:11:15 +05:30
Lingutla Chandrasekhar
24a7d0a621 sched: core: Exclude isolated cpus in sched_getaffinity cpumask
User space tasks will have the same semantics for hotplug and isolation.
Currently the sched_getaffinity() include isolated CPU on which user
space tasks are forbidden to run. So fix this by excluding isolated cpus
while returning cpu mask for user space tasks in sched_getaffinity().

Change-Id: Ib6a8ca864754f73bbaf809c3ceaef5f91d567ca9
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2018-01-05 11:49:48 +05:30
Pavankumar Kondeti
6d5adb1849 sched: Restore previous implementation of check_for_migration()
commit 3bda2b55b4 ("Merge android-4.4.96 (aed4c54) into msm-4.4")
replaced HMP scheduler check_for_migration() implementation with
EAS scheduler implementation. This breaks HMP scheduler upmgiration
functionality. Fix this by restoring the previous implementation.

Change-Id: I3221f3efe42e1e43f8009cfa52c11afbb9d9c5b3
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2018-01-05 11:02:30 +05:30
Puja Gupta
f9e96dfcb8 sched: Update tracepoint to include task info
Update sched_get_task_cpu_cycles trace to include pid and name of the
task to help with debug better.

Change-Id: Ic307ebcf0a44c94bf0a2aa1a02b8aeff39010b29
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2018-01-05 09:15:54 +05:30
Puja Gupta
6e92713cba sched: Fix possible overflow in cpu_cycles_to_freq()
Truncating period to u32 could lead to incorrect results. Make it u64
instead.

Change-Id: I5224a943e64bc6d64b6c8e614a01f798a6cdc796
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2018-01-05 09:15:54 +05:30
Rahul Sharma
ac9816e954 defconfig: msm: enable tv tuner driver for MSM8996
Enable tv tuner driver on MSM8996 auto defconfig
and MSM8996 perf defconfig.

Change-Id: I3791c7a375f80d1e5d159c631abc1f10235971de
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2018-01-04 07:50:51 -08:00
Rahul Sharma
a0ae1ce94a ARM: dts: msm: Add tv-tuner profile for MSM8996 ADP
Add device node and profile to support tv tuner device.

Change-Id: I1940c81fda91b26cc148e01b9f0b970cfc490656
Suggested-by: Suprith Shankaregowda <c_suprit@qti.qualcomm.com>
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2018-01-04 16:17:20 +05:30
Ke Huang
8fffa5cd47 ARM: dts: msm: Add cnss sdio dsrc on msm8996 vplatform
HQX.3.0 requires sdio dsrc support on mem8996 vplatform, so add
cnss_sdio and dsrc_vreg in this device tree for this support.

Change-Id: Ieb9e9a41ea77a41a633f11d82d2ab0fa0d08bf22
Signed-off-by: Ke Huang <keh@codeaurora.org>
2018-01-04 17:40:50 +08:00
Sarada Prasanna Garnayak
ed5017695e ath10k: Define wlan hardware param for pdev suspend option
The pdev suspend configuration in the WLAN firmware is specific
to the hardware version and bus interface. Add hardware param
for each wlan hardware version and use the hardware param value
during wlan pdev suspend to avoid the power leakage during
system suspend.

CRs-Fixed: 2164529
Change-Id: I020eaa43977d5726765dda1616715f519ad6e443
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2018-01-04 01:11:12 -08:00
Takashi Iwai
4255cc0675 UPSTREAM: ALSA: timer: Call notifier in the same spinlock
snd_timer_notify1() is called outside the spinlock and it retakes the
lock after the unlock.  This is rather racy, and it's safer to move
snd_timer_notify() call inside the main spinlock

The patch also contains a slight refactoring / cleanup of the code.
Now all start/stop/continue/pause look more symmetric and a bit better
readable.

Bug: 37240993
Git-commit: fe9cd48f4b3273dc1c9e52567edb4e77dafa45d8
Git-repo: https://android.googlesource.com/kernel/msm.git
Change-Id: Ib90099f88c8b04928a8cdd2808cd9e16da6d519c
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Siqi Lin <siqilin@google.com>
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
2018-01-04 10:52:59 +05:30
Abhinav Kumar
19e1a4c6c4 drm/msm/sde: clear blend stages of all mixers
Currently the blending stages of all the mixers is not
cleared when switching mixer configurations or configuring
solid fill mode.

As a result stale pipes remain connected when switching
mixer configurations causing smmu faults.

Fix the logic to clear the blend stages of all the mixers.

Change-Id: I1a3c5a020d6bc04657cb5357a2cd60c1a53ce4c7
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2018-01-03 15:00:47 -08:00
Dhoat Harpal
5916f7a1f2 soc: qcom: glink: Modify glink logging in tx_common
Glink log in tx_common uses context based logging after
wait_for_completion_timeout. This can lead to use after free
scenerio, since transport of context can be freed during wait time.

Use glink error logging.

CRs-Fixed: 2164929
Change-Id: If66bcb7cba1772c2648c143f43a3b88af0799844
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2018-01-03 02:59:31 -08:00
Dhoat Harpal
89472d6d9f soc: qcom: glink_pkt: Exit if device handle is NULL
In notify_state_worker function, device handle is restored, if
it is NULL. This leads to use after free in glink_queue_rx_intent.

Do not restore device handle.

CRs-Fixed: 2162377
Change-Id: Ie1a60309889001bb38aa7975b40c7de6e9a09c7a
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2018-01-03 02:59:13 -08:00
Linux Build Service Account
55cc722ec6 Merge "usb: f_gsi: Use required RNDIS IAD descriptors with full speed descriptors" 2018-01-02 12:25:52 -08:00
Yue Ma
a5a8c690cf cnss2: Make WLAN host driver unregister work uninterruptible
Same as driver register work, driver unregister work event wait may
be woken up by signal and then exit. This is not expected for WLAN
host driver unregister and it should wait till timeout happens.
Change the work event wait to be uninterruptible.

Change-Id: I8d4af27e2f1f04c38917655e937fe8816504d860
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2018-01-02 11:10:51 -08:00
Yue Ma
fcc777aeeb cnss2: Ignore recovery if driver state is not proper
If WLAN host driver has already been unloaded, there is no need
to handle recovery. Add the check to make sure it exits from the
recovery.

Change-Id: Ia97c4cfe4b80ed8e046d041903842655bb915714
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2018-01-02 11:09:59 -08:00
Mayank Rana
189b4c8d28 usb: f_gsi: Use required RNDIS IAD descriptors with full speed descriptors
gsi_eth_fs_function is array of pointers to set of RNDIS interface
related descriptors. gsi_eth_fs_function's first descriptor is
pointing itself instead of required RNDIS IAD descriptor. This
results into out-of-bound read access while copying these set of
descriptors with usb_copy_descriptors() API. Fix this issue by
using required RNDIS IAD descriptor here.

Change-Id: Ic604221febc43eb8a22d8de99fb8cead74e13b41
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2018-01-02 02:46:14 -08:00
Linux Build Service Account
dc37d46038 Merge "msm: ipa: Remove unwanted gsi debug register reads" 2018-01-02 02:07:55 -08:00
Linux Build Service Account
41762e76cb Merge "msm: adsprpc: Use unsigned integer for length values" 2018-01-02 02:07:54 -08:00
Linux Build Service Account
eb1480ce5a Merge "ARM: dts: msm: Disable iommu test device on msm8996 vplatform" 2017-12-30 20:50:21 -08:00
Linux Build Service Account
e24ebad931 Merge "msm: ipa: Fix the handling of default IPA header" 2017-12-30 20:50:20 -08:00
Linux Build Service Account
a0befb254e Merge "arm64: SW PAN: Update saved ttbr0 value on enter_lazy_tlb" 2017-12-30 20:50:17 -08:00
Linux Build Service Account
a4f5f7d5ee Merge "arm64: SW PAN: Point saved ttbr0 at the zero page when switching to init_mm" 2017-12-30 20:50:16 -08:00
Linux Build Service Account
55ba1585b7 Merge "Merge android-4.4.97 (46d256d) into msm-4.4" 2017-12-30 20:50:15 -08:00
Linux Build Service Account
56d2bd6ac9 Merge "TvTuner: Add support for TV tuner driver" 2017-12-30 20:50:13 -08:00
Linux Build Service Account
978eecc4fe Merge "ARM: dts: msm: Increase CAN reset time on msm8996 CV2X boards" 2017-12-30 20:50:12 -08:00
Linux Build Service Account
72e2c8a11d Merge "ARM: dts: msm: Add option to ethernet node on msm8996 CV2X" 2017-12-30 20:50:10 -08:00
Linux Build Service Account
5381dac339 Merge "gpio: usbdetect: Avoid threaded IRQ handling if no change in ID" 2017-12-30 20:50:09 -08:00