OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agosoc: qcom: hab: add dts parsing into hab driver
Yong Ding [Thu, 11 Jan 2018 09:51:45 +0000 (17:51 +0800)]
soc: qcom: hab: add dts parsing into hab driver

HAB driver can parse its relevant entries from device
tree, and get necessary info, like its local vmid,
physical channel groups, and etc.

Change-Id: Iab0501a442bd3c89dd4b348570108dbe5ab0adca
Signed-off-by: Yong Ding <yongding@codeaurora.org>
6 years agoMerge "msm: camera: Prevent buffer overread in write_logsync."
Linux Build Service Account [Tue, 9 Jan 2018 23:40:52 +0000 (15:40 -0800)]
Merge "msm: camera: Prevent buffer overread in write_logsync."

6 years agoMerge "drm: add picture aspect ratio flags"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:42 +0000 (15:40 -0800)]
Merge "drm: add picture aspect ratio flags"

6 years agoMerge "ARM: dts: msm: Add support for FHD+ Video Mode Panel on SDM660"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:41 +0000 (15:40 -0800)]
Merge "ARM: dts: msm: Add support for FHD+ Video Mode Panel on SDM660"

6 years agoMerge "sched: Restore previous implementation of check_for_migration()"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:40 +0000 (15:40 -0800)]
Merge "sched: Restore previous implementation of check_for_migration()"

6 years agoMerge "sched: core: Exclude isolated cpus in sched_getaffinity cpumask"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:38 +0000 (15:40 -0800)]
Merge "sched: core: Exclude isolated cpus in sched_getaffinity cpumask"

6 years agoMerge "sched: Update tracepoint to include task info"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:36 +0000 (15:40 -0800)]
Merge "sched: Update tracepoint to include task info"

6 years agoMerge "ARM: dts: msm: Add cnss sdio dsrc on msm8996 vplatform"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:34 +0000 (15:40 -0800)]
Merge "ARM: dts: msm: Add cnss sdio dsrc on msm8996 vplatform"

6 years agoMerge "defconfig: msm: enable tv tuner driver for MSM8996"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:32 +0000 (15:40 -0800)]
Merge "defconfig: msm: enable tv tuner driver for MSM8996"

6 years agoMerge "ath10k: Define wlan hardware param for pdev suspend option"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:31 +0000 (15:40 -0800)]
Merge "ath10k: Define wlan hardware param for pdev suspend option"

6 years agoMerge "UPSTREAM: ALSA: timer: Call notifier in the same spinlock"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:29 +0000 (15:40 -0800)]
Merge "UPSTREAM: ALSA: timer: Call notifier in the same spinlock"

6 years agoMerge "sched: Fix spinlock recursion in sched_exit()"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:28 +0000 (15:40 -0800)]
Merge "sched: Fix spinlock recursion in sched_exit()"

6 years agoMerge "drm/msm/sde: clear blend stages of all mixers"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:26 +0000 (15:40 -0800)]
Merge "drm/msm/sde: clear blend stages of all mixers"

6 years agoMerge "soc: qcom: glink: Modify glink logging in tx_common"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:25 +0000 (15:40 -0800)]
Merge "soc: qcom: glink: Modify glink logging in tx_common"

6 years agoMerge "soc: qcom: glink_pkt: Exit if device handle is NULL"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:24 +0000 (15:40 -0800)]
Merge "soc: qcom: glink_pkt: Exit if device handle is NULL"

6 years agoMerge "usb: gadget: Update default class subclass and protocol for rndis"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:22 +0000 (15:40 -0800)]
Merge "usb: gadget: Update default class subclass and protocol for rndis"

6 years agoMerge "ASoC: msm: qdsp6v2: Update audio effects driver to support Instance ID"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:14 +0000 (15:40 -0800)]
Merge "ASoC: msm: qdsp6v2: Update audio effects driver to support Instance ID"

6 years agoMerge "cnss2: Make WLAN host driver unregister work uninterruptible"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:12 +0000 (15:40 -0800)]
Merge "cnss2: Make WLAN host driver unregister work uninterruptible"

6 years agoMerge "cnss2: Ignore recovery if driver state is not proper"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:11 +0000 (15:40 -0800)]
Merge "cnss2: Ignore recovery if driver state is not proper"

6 years agoMerge "soc: qcom: hab: add some more logs"
Linux Build Service Account [Tue, 9 Jan 2018 23:40:00 +0000 (15:40 -0800)]
Merge "soc: qcom: hab: add some more logs"

6 years agomsm: camera: Prevent buffer overread in write_logsync.
Trishansh Bhardwaj [Fri, 22 Dec 2017 06:23:26 +0000 (11:53 +0530)]
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>
6 years agodrm: add picture aspect ratio flags
Shashank Sharma [Mon, 17 Oct 2016 12:04:37 +0000 (17:34 +0530)]
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>
6 years agoARM: dts: msm: Add support for FHD+ Video Mode Panel on SDM660
Rashi Bindra [Wed, 27 Dec 2017 06:38:56 +0000 (12:08 +0530)]
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>
6 years agosched: core: Exclude isolated cpus in sched_getaffinity cpumask
Lingutla Chandrasekhar [Fri, 22 Dec 2017 11:52:25 +0000 (17:22 +0530)]
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>
6 years agosched: Restore previous implementation of check_for_migration()
Pavankumar Kondeti [Fri, 5 Jan 2018 04:51:34 +0000 (10:21 +0530)]
sched: Restore previous implementation of check_for_migration()

commit 3bda2b55b41d ("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>
6 years agosched: Update tracepoint to include task info
Puja Gupta [Thu, 16 Nov 2017 22:18:04 +0000 (14:18 -0800)]
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>
6 years agosched: Fix possible overflow in cpu_cycles_to_freq()
Puja Gupta [Thu, 16 Nov 2017 21:39:33 +0000 (13:39 -0800)]
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>
6 years agodefconfig: msm: enable tv tuner driver for MSM8996
Rahul Sharma [Fri, 24 Nov 2017 10:56:24 +0000 (16:26 +0530)]
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>
6 years agoARM: dts: msm: Add tv-tuner profile for MSM8996 ADP
Rahul Sharma [Thu, 9 Nov 2017 11:32:09 +0000 (17:02 +0530)]
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>
6 years agoARM: dts: msm: Add cnss sdio dsrc on msm8996 vplatform
Ke Huang [Thu, 4 Jan 2018 02:36:59 +0000 (10:36 +0800)]
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>
6 years agoath10k: Define wlan hardware param for pdev suspend option
Sarada Prasanna Garnayak [Wed, 27 Dec 2017 10:45:24 +0000 (16:15 +0530)]
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>
6 years agoUPSTREAM: ALSA: timer: Call notifier in the same spinlock
Takashi Iwai [Wed, 10 Feb 2016 11:47:03 +0000 (12:47 +0100)]
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>
6 years agodrm/msm/sde: clear blend stages of all mixers
Abhinav Kumar [Fri, 22 Dec 2017 08:02:08 +0000 (00:02 -0800)]
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>
6 years agosoc: qcom: glink: Modify glink logging in tx_common
Dhoat Harpal [Thu, 28 Dec 2017 10:33:16 +0000 (16:03 +0530)]
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>
6 years agosoc: qcom: glink_pkt: Exit if device handle is NULL
Dhoat Harpal [Thu, 28 Dec 2017 16:31:51 +0000 (22:01 +0530)]
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>
6 years agoMerge "usb: f_gsi: Use required RNDIS IAD descriptors with full speed descriptors"
Linux Build Service Account [Tue, 2 Jan 2018 20:25:52 +0000 (12:25 -0800)]
Merge "usb: f_gsi: Use required RNDIS IAD descriptors with full speed descriptors"

6 years agocnss2: Make WLAN host driver unregister work uninterruptible
Yue Ma [Wed, 13 Dec 2017 23:26:21 +0000 (15:26 -0800)]
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>
6 years agocnss2: Ignore recovery if driver state is not proper
Yue Ma [Tue, 12 Dec 2017 00:11:52 +0000 (16:11 -0800)]
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>
6 years agousb: f_gsi: Use required RNDIS IAD descriptors with full speed descriptors
Mayank Rana [Fri, 10 Nov 2017 22:20:32 +0000 (14:20 -0800)]
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>
6 years agoMerge "msm: ipa: Remove unwanted gsi debug register reads"
Linux Build Service Account [Tue, 2 Jan 2018 10:07:55 +0000 (02:07 -0800)]
Merge "msm: ipa: Remove unwanted gsi debug register reads"

6 years agoMerge "msm: adsprpc: Use unsigned integer for length values"
Linux Build Service Account [Tue, 2 Jan 2018 10:07:54 +0000 (02:07 -0800)]
Merge "msm: adsprpc: Use unsigned integer for length values"

6 years agoMerge "ARM: dts: msm: Disable iommu test device on msm8996 vplatform"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:21 +0000 (20:50 -0800)]
Merge "ARM: dts: msm: Disable iommu test device on msm8996 vplatform"

6 years agoMerge "msm: ipa: Fix the handling of default IPA header"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:20 +0000 (20:50 -0800)]
Merge "msm: ipa: Fix the handling of default IPA header"

6 years agoMerge "arm64: SW PAN: Update saved ttbr0 value on enter_lazy_tlb"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:17 +0000 (20:50 -0800)]
Merge "arm64: SW PAN: Update saved ttbr0 value on enter_lazy_tlb"

6 years agoMerge "arm64: SW PAN: Point saved ttbr0 at the zero page when switching to init_mm"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:17 +0000 (20:50 -0800)]
Merge "arm64: SW PAN: Point saved ttbr0 at the zero page when switching to init_mm"

6 years agoMerge "Merge android-4.4.97 (46d256d) into msm-4.4"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:15 +0000 (20:50 -0800)]
Merge "Merge android-4.4.97 (46d256d) into msm-4.4"

6 years agoMerge "TvTuner: Add support for TV tuner driver"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:13 +0000 (20:50 -0800)]
Merge "TvTuner: Add support for TV tuner driver"

6 years agoMerge "ARM: dts: msm: Increase CAN reset time on msm8996 CV2X boards"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:12 +0000 (20:50 -0800)]
Merge "ARM: dts: msm: Increase CAN reset time on msm8996 CV2X boards"

6 years agoMerge "ARM: dts: msm: Add option to ethernet node on msm8996 CV2X"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:11 +0000 (20:50 -0800)]
Merge "ARM: dts: msm: Add option to ethernet node on msm8996 CV2X"

6 years agoMerge "gpio: usbdetect: Avoid threaded IRQ handling if no change in ID"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:10 +0000 (20:50 -0800)]
Merge "gpio: usbdetect: Avoid threaded IRQ handling if no change in ID"

6 years agoMerge "msm: jpegdma: Fix for ASAN issues in jpegdma module"
Linux Build Service Account [Sun, 31 Dec 2017 04:50:08 +0000 (20:50 -0800)]
Merge "msm: jpegdma: Fix for ASAN issues in jpegdma module"

6 years agosched: Fix spinlock recursion in sched_exit()
Pavankumar Kondeti [Sat, 30 Dec 2017 05:46:45 +0000 (11:16 +0530)]
sched: Fix spinlock recursion in sched_exit()

The exiting task's prev_window and curr_window arrays are freed
with rq->lock acquired. The kfree() may wakeup kswapd and if
kswapd wakeup needs the same rq->lock, we hit a deadlock. Fix
this issue by freeing these arrays after releasing the lock.
Since the task is already marked as exiting under lock, delaying
the freeing of the current and window arrays will not have
any side effect.

Change-Id: I3282d91ba715765e38177b9d66be32aaed989303
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
6 years agoARM: dts: msm: Disable iommu test device on msm8996 vplatform
Zhiqiang Tu [Mon, 25 Dec 2017 08:02:41 +0000 (16:02 +0800)]
ARM: dts: msm: Disable iommu test device on msm8996 vplatform

Disable iommu test device since guest os has no permission
to operate cpp_fd_smmu.

Change-Id: I9641d7ceb91f5c1bf4ee2307540730689dce7b98
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
6 years agomsm: ipa: Fix the handling of default IPA header
Ghanim Fodi [Tue, 19 Dec 2017 17:15:19 +0000 (19:15 +0200)]
msm: ipa: Fix the handling of default IPA header

Default IPA header is added or deleted from the driver
directly and not by user space application. This change
prevents adding/deleting it from user application which
may cause inconsistencies in the driver. Also the change
fixes the header reset function to skip on the correct
default header.

Change-Id: Ic813433655411f1447db8b0c15efdf64038d8c26
CRs-fixed: 2151146
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
6 years agoarm64: SW PAN: Update saved ttbr0 value on enter_lazy_tlb
Will Deacon [Wed, 6 Dec 2017 10:51:12 +0000 (10:51 +0000)]
arm64: SW PAN: Update saved ttbr0 value on enter_lazy_tlb

enter_lazy_tlb is called when a kernel thread rides on the back of
another mm, due to a context switch or an explicit call to unuse_mm
where a call to switch_mm is elided.

In these cases, it's important to keep the saved ttbr value up to date
with the active mm, otherwise we can end up with a stale value which
points to a potentially freed page table.

This patch implements enter_lazy_tlb for arm64, so that the saved ttbr0
is kept up-to-date with the active mm for kernel threads.

Change-Id: I6e5c50542ff2645c46e8801685f7a43e6773c3d2
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Vinayak Menon <vinmenon@codeaurora.org>
Cc: <stable@vger.kernel.org>
Fixes: 39bc88e5e38e9b21 ("arm64: Disable TTBR0_EL1 during normal kernel execution")
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Reported-by: Vinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Git-commit: d96cc49bff5a7735576cc6f6f111f875d101cec8
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
6 years agoarm64: SW PAN: Point saved ttbr0 at the zero page when switching to init_mm
Will Deacon [Wed, 6 Dec 2017 10:42:10 +0000 (10:42 +0000)]
arm64: SW PAN: Point saved ttbr0 at the zero page when switching to init_mm

update_saved_ttbr0 mandates that mm->pgd is not swapper, since swapper
contains kernel mappings and should never be installed into ttbr0. However,
this means that callers must avoid passing the init_mm to update_saved_ttbr0
which in turn can cause the saved ttbr0 value to be out-of-date in the context
of the idle thread. For example, EFI runtime services may leave the saved ttbr0
pointing at the EFI page table, and kernel threads may end up with stale
references to freed page tables.

This patch changes update_saved_ttbr0 so that the init_mm points the saved
ttbr0 value to the empty zero page, which always exists and never contains
valid translations. EFI and switch can then call into update_saved_ttbr0
unconditionally.

Change-Id: I664095969fbd4d0b546f30aa4c312769e708d6de
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Vinayak Menon <vinmenon@codeaurora.org>
Cc: <stable@vger.kernel.org>
Fixes: 39bc88e5e38e9b21 ("arm64: Disable TTBR0_EL1 during normal kernel execution")
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Reported-by: Vinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Git-commit: 0adbdfde8cfc9415aeed2a4955d2d17b3bd9bf13
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
6 years agogpio: usbdetect: Avoid threaded IRQ handling if no change in ID
Ajay Agarwal [Mon, 11 Dec 2017 08:39:17 +0000 (14:09 +0530)]
gpio: usbdetect: Avoid threaded IRQ handling if no change in ID

It is observed that the hard ID IRQ is enabled when the
threaded IRQ handler for the same is still running. In that
case, there are two issues. The ID LOW IRQ can come
consecutively which will increase the disable count of
vbus_irq. Then ID HIGH IRQ will not enable the vbus_irq and
peripheral mode detection will not work anymore. The second
issue is that ID HIGH IRQ is fired just before ID LOW IRQ.
This will mark usb->id_state from HIGH to LOW even while
threaded IRQ is running which will lead to host not getting
stopped and peripheral mode not working.

Fix both issues by maintaning a local copy of ID IRQ in
threaded IRQ handler and comparing it with previous ID state.
If same, then bail out.

Change-Id: If5da1f91ece9d1751d7002e64bab0e145623a92e
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agomsm: ipa: Remove unwanted gsi debug register reads
Michael Adisumarta [Tue, 19 Dec 2017 02:12:35 +0000 (18:12 -0800)]
msm: ipa: Remove unwanted gsi debug register reads

This changes removes the unwanted gsi dedug register reads, to which
IPA driver dont have access to.

Change-Id: I6efb1045275a9bdb238e6184ec676013ab1678bc
Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
6 years agoTvTuner: Add support for TV tuner driver
Rahul Sharma [Wed, 22 Nov 2017 13:03:04 +0000 (18:33 +0530)]
TvTuner: Add support for TV tuner driver

Add new dummy tv tuner driver and its documentation.
Update Makefile, Kconfig and add new tuner id type to msm_ba.h

Change-Id: I14f822ad9fdf85ea7509067d536c49fd24cf1609
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agoADV7481: Query lane_count and settle_count from device tree
Rahul Sharma [Tue, 14 Nov 2017 10:29:46 +0000 (15:59 +0530)]
ADV7481: Query lane_count and settle_count from device tree

Get lane count and settle count from device tree.
Add VIDIOC_G_CSI_PARAMS ioctl to pass lane count
and settle count values to userspace.

Change-Id: Ic0e0b7b402908c9970fd1771cf9bf19627f5a5d8
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agomsm: adsprpc: Use unsigned integer for length values
Tharun Kumar Merugu [Fri, 22 Dec 2017 12:26:46 +0000 (17:56 +0530)]
msm: adsprpc: Use unsigned integer for length values

As the length datatype is signed, supplying a negative number
can have undesired consequences. Always use unsigned integer
types for length values.

Change-Id: Ifde2f0d35129014b976507f7723a319c53fabddf
Acked-by: Thyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
6 years agosoc: qcom: hab: add some more logs
Yong Ding [Mon, 18 Dec 2017 10:20:44 +0000 (18:20 +0800)]
soc: qcom: hab: add some more logs

With this, it becomes clear to know it is HAB's log and
which line of which function shows the log. Moreover, it
is helpful for issue debugging with those prepared logs.

Change-Id: I9641e779f592a5be7750885228cac6374880c301
Signed-off-by: Yong Ding <yongding@codeaurora.org>
6 years agoMerge "ASoC: msm: qdsp6v2: Add common items needed for Instance ID"
Linux Build Service Account [Fri, 22 Dec 2017 05:18:19 +0000 (21:18 -0800)]
Merge "ASoC: msm: qdsp6v2: Add common items needed for Instance ID"

6 years agoARM: dts: msm: Increase CAN reset time on msm8996 CV2X boards
Gustavo Solaira [Wed, 20 Dec 2017 05:14:26 +0000 (21:14 -0800)]
ARM: dts: msm: Increase CAN reset time on msm8996 CV2X boards

Increase the CAN controller reset time to 200ms on msm8996
CV2X boards. This is the time we expect the CAN micro-controller
will take to complete its boot up process.

Change-Id: Ib70a8ac6eb296558a42eb7d34b73a384c7b7e8c8
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
6 years agoMerge "soc: qcom: pil: Align size of MBA and DP image to 4k"
Linux Build Service Account [Thu, 21 Dec 2017 16:50:05 +0000 (08:50 -0800)]
Merge "soc: qcom: pil: Align size of MBA and DP image to 4k"

6 years agoMerge "power: qpnp-fg-gen3: Improve ESR accuracy at cold temperature with Qnovo"
Linux Build Service Account [Thu, 21 Dec 2017 16:50:04 +0000 (08:50 -0800)]
Merge "power: qpnp-fg-gen3: Improve ESR accuracy at cold temperature with Qnovo"

6 years agosoc: qcom: pil: Align size of MBA and DP image to 4k
Kyle Yan [Thu, 11 May 2017 18:15:31 +0000 (11:15 -0700)]
soc: qcom: pil: Align size of MBA and DP image to 4k

Image address and size must be aligned to 4k as the SMMU works on a
4k granularity.

Change-Id: I4780aa67f09796ec0a8dd5b62da0e9a99c50e596
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
6 years agoMerge "leds: qpnp-flash-v2: Return error code separately during current prediction"
Linux Build Service Account [Thu, 21 Dec 2017 06:30:16 +0000 (22:30 -0800)]
Merge "leds: qpnp-flash-v2: Return error code separately during current prediction"

6 years agoMerge "icnss: Do not send uevent when driver is unloading"
Linux Build Service Account [Thu, 21 Dec 2017 06:30:15 +0000 (22:30 -0800)]
Merge "icnss: Do not send uevent when driver is unloading"

6 years agoMerge "ARM: dts: msm: Enable LDO26 for CDP targets"
Linux Build Service Account [Thu, 21 Dec 2017 06:30:14 +0000 (22:30 -0800)]
Merge "ARM: dts: msm: Enable LDO26 for CDP targets"

6 years agoMerge "usb: gadget: ffs: change gfp_flags to GFP_ATOMIC"
Linux Build Service Account [Thu, 21 Dec 2017 06:30:13 +0000 (22:30 -0800)]
Merge "usb: gadget: ffs: change gfp_flags to GFP_ATOMIC"

6 years agoASoC: msm: qdsp6v2: Update audio effects driver to support Instance ID
Aditya Bavanari [Mon, 17 Apr 2017 23:29:27 +0000 (16:29 -0700)]
ASoC: msm: qdsp6v2: Update audio effects driver to support Instance ID

Add support to set and get audio effects module params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.
Use common pack and set param functions to set and
get parameters to DSP instead of handling them at an
individual module level.

CRs-Fixed: 2151551
Change-Id: I62342d434fc5bd58c06d22913683d7d0fd602da9
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
6 years agoASoC: msm: qdsp6v2: Update ASM driver to support Instance ID
Aditya Bavanari [Thu, 29 Jun 2017 22:33:43 +0000 (15:33 -0700)]
ASoC: msm: qdsp6v2: Update ASM driver to support Instance ID

Add support to set and get ASM module params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.
Use common pack and set param functions to set and
get parameters to DSP instead of handling them at an
individual module level.

CRs_Fixed: 2151551
Change-Id: I48a0f0f856d8b8b59b7e7361fae63283e0f87948
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
6 years agoASoC: msm: qdsp6v2: Update dap driver to support Instance ID
Aditya Bavanari [Wed, 5 Jul 2017 22:23:35 +0000 (15:23 -0700)]
ASoC: msm: qdsp6v2: Update dap driver to support Instance ID

Add support to set and get dap modules params with
Instance ID support for both Dolby and DS2.
Maintain support for non Instance ID set and get param
structures as well. Use common pack and set param
functions to set and get parameters to DSP instead of
handling them at an individual module level.

CRs-Fixed: 2151551
Change-Id: Ic2722cf5d686a7b10c682ca7866f7900da9d0cdb
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
6 years agoASoC: msm: qdsp6v2: Update ADM driver to support Instance ID
Aditya Bavanari [Wed, 19 Apr 2017 21:38:30 +0000 (14:38 -0700)]
ASoC: msm: qdsp6v2: Update ADM driver to support Instance ID

Add support to set and get ADM module params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.
Use common pack and set param functions to set and
get parameters to DSP instead of handling them at an
individual module level.

CRs-Fixed: 2151551
Change-Id: Ida9591e96501a2edbffe080eb8531c860bde8539
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
6 years agoASoC: msm: qdsp6v2: Update rtac driver to support Instance ID
Aditya Bavanari [Fri, 23 Jun 2017 21:51:55 +0000 (14:51 -0700)]
ASoC: msm: qdsp6v2: Update rtac driver to support Instance ID

Add support to set and get rtac params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.
Use common pack and set param functions to set and
get parameters to DSP instead of handling them at an
individual module level.

CRs-Fixed: 2151551
Change-Id: Ic07cb109b9e469dccf510f89ba9917e8c9eccbd8
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
6 years agoASoC: msm: qdsp6v2: Update AFE driver to support Instance ID
Aditya Bavanari [Tue, 25 Apr 2017 20:35:56 +0000 (13:35 -0700)]
ASoC: msm: qdsp6v2: Update AFE driver to support Instance ID

Add support to set and get AFE module params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.
Use common pack and set param functions to set and
get parameters to DSP instead of handling them at an
individual module level.

CRs-Fixed: 2151551
Change-Id: I9f2cc097a0f1a99a4639bb0cd636500b41a41b1b
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
6 years agoASoC: msm: qdsp6v2: Update voice driver to support Instance ID
Aditya Bavanari [Fri, 21 Apr 2017 17:17:44 +0000 (10:17 -0700)]
ASoC: msm: qdsp6v2: Update voice driver to support Instance ID

Add support to set and get voice module params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.
Use common pack and set param functions to set and
get parameters to DSP instead of handling them at an
individual module level.

CRs-Fixed: 2151551
Change-Id: If18c89ef6e0e98419d271923387eae10d45cb7f3
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
6 years agoASoC: msm: qdsp6v2: Update LSM driver to support Instance ID
Aditya Bavanari [Fri, 14 Apr 2017 19:52:20 +0000 (12:52 -0700)]
ASoC: msm: qdsp6v2: Update LSM driver to support Instance ID

Add support to set and get LSM module params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.

CRs-Fixed: 2151551
Change-Id: I138cceb5165443da899e7c152fd6c8a05a6efe98
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
6 years agoASoC: msm: qdsp6v2: Add common items needed for Instance ID
Aditya Bavanari [Mon, 25 Sep 2017 19:51:30 +0000 (12:51 -0700)]
ASoC: msm: qdsp6v2: Add common items needed for Instance ID

Add common headers and functions needed to support instance ID.

CRs-Fixed: 2151551
Change-Id: I8a167be29cdb5c365ac957530789007e90a91a97
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
6 years agousb: gadget: Update default class subclass and protocol for rndis
Vijayavardhan Vennapusa [Thu, 21 Dec 2017 05:29:51 +0000 (10:59 +0530)]
usb: gadget: Update default class subclass and protocol for rndis

This allows Host to load NDIS 6.0 driver for RNDIS over ethernet.
Design objectives of NDIS 6.0 is to enhance driver performance
and scalability. Observing higher peak tput (308Mbps --> 480Mbps)
for FTP transfer on live network. It resolves the data stall that
is being caused by the sudden transfer abort coming from the NDIS
5.0 Host driver.

Change-Id: I062d07ff3bd63b8a610166cf77714424055d962c
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
6 years agopower: qpnp-fg-gen3: Improve ESR accuracy at cold temperature with Qnovo
Subbaraman Narayanamurthy [Fri, 1 Dec 2017 18:54:40 +0000 (10:54 -0800)]
power: qpnp-fg-gen3: Improve ESR accuracy at cold temperature with Qnovo

When the battery is in cold temperature for a certain amount of
time and device is charged with Qnovo enabled charging, ESR pulse
will fire less frequently. This along with ESR pulses not getting
qualified can cause the ESR to be less accurate. To improve ESR
accuracy, add change to apply relaxed filter coefficients once
the battery temperature starts ramping up after hitting a lower
threshold of say 6 C after charging begins.

CRs-Fixed: 2151708
Change-Id: Iff6c2ffbab1f327dfefcf1550213c37df4a8ad42
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
6 years agoMerge "defconfig: msm8998: Enable kernel AIO support"
Linux Build Service Account [Wed, 20 Dec 2017 20:37:48 +0000 (12:37 -0800)]
Merge "defconfig: msm8998: Enable kernel AIO support"

6 years agoMerge "msm: ipa: add new IP filtering bitmaps"
Linux Build Service Account [Wed, 20 Dec 2017 20:37:47 +0000 (12:37 -0800)]
Merge "msm: ipa: add new IP filtering bitmaps"

6 years agoMerge "msm: ipa: Change error value for set quota"
Linux Build Service Account [Wed, 20 Dec 2017 20:37:46 +0000 (12:37 -0800)]
Merge "msm: ipa: Change error value for set quota"

6 years agoMerge "ARM: dts: msm: Remove blsp1_uart2 on msm8996 telematics vplatform"
Linux Build Service Account [Wed, 20 Dec 2017 20:37:45 +0000 (12:37 -0800)]
Merge "ARM: dts: msm: Remove blsp1_uart2 on msm8996 telematics vplatform"

6 years agoicnss: Do not send uevent when driver is unloading
Yuanyuan Liu [Sat, 16 Dec 2017 00:20:37 +0000 (16:20 -0800)]
icnss: Do not send uevent when driver is unloading

If modem crashed during wlan driver unloading, icnss driver
will call driver uevent callback to send FW down uevent when
it receives BEFORE_SHUTDOWN notification. If wlan driver is
de-initialized just before the callback is called, kernel will
panic as driver's context is freed. This can be avoid by not
sending uevent when wlan host driver is unloading. Instead,
icnss driver will provide an API to host driver to check if
WLAN FW is down or not.

CRs-Fixed: 2161425
Change-Id: I569fd85366522606ececeda74df85c51b9b2fc28
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
6 years agoARM: dts: msm: Enable LDO26 for CDP targets
Rahul Sharma [Tue, 19 Dec 2017 06:42:40 +0000 (12:12 +0530)]
ARM: dts: msm: Enable LDO26 for CDP targets

Camera bridge chip is not getting detected on CDP for automotive platform.
Defined and added regulator LDO26 which needs to be turned on for the chip
to be detected.

Change-Id: I0400bf1430d588852d4143e7b28f33927614ee90
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
6 years agodefconfig: msm8998: Enable kernel AIO support
Vijayavardhan Vennapusa [Fri, 15 Dec 2017 07:11:15 +0000 (12:41 +0530)]
defconfig: msm8998: Enable kernel AIO support

New Android versions are using kernel AIO functionality for adb &
MTP interfaces for better performance. Hence enable CONFIG_AIO to
support same.

Change-Id: I8bfd6c631642f60390ee656e10d666766749f7b3
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
6 years agoMerge "msm: Array bounds check for buffer index"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:53 +0000 (22:27 -0800)]
Merge "msm: Array bounds check for buffer index"

6 years agoMerge "ARM: dts: msm: update route map for sdm660 internal codec"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:52 +0000 (22:27 -0800)]
Merge "ARM: dts: msm: update route map for sdm660 internal codec"

6 years agoMerge "ALSA: pcm: use lock to protect substream runtime resource"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:50 +0000 (22:27 -0800)]
Merge "ALSA: pcm: use lock to protect substream runtime resource"

6 years agoMerge "ALSA: pcm: remove unused variable from snd_pcm_info()"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:48 +0000 (22:27 -0800)]
Merge "ALSA: pcm: remove unused variable from snd_pcm_info()"

6 years agoMerge "ASoC: apr: Add validity check to APR port"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:47 +0000 (22:27 -0800)]
Merge "ASoC: apr: Add validity check to APR port"

6 years agoMerge "ASoC: msm: qdsp6v2: Set freed pointers to NULL"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:46 +0000 (22:27 -0800)]
Merge "ASoC: msm: qdsp6v2: Set freed pointers to NULL"

6 years agoMerge "ARM: dts: msm: add support for TDM interfaces on msm8996 MTP"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:43 +0000 (22:27 -0800)]
Merge "ARM: dts: msm: add support for TDM interfaces on msm8996 MTP"

6 years agoMerge "ASoC: sdm660_cdc: Fix pop noise when device switch"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:42 +0000 (22:27 -0800)]
Merge "ASoC: sdm660_cdc:  Fix pop noise when device switch"

6 years agoMerge "soc: qcom: glink_smem_native_xport: Send blocked signal command"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:41 +0000 (22:27 -0800)]
Merge "soc: qcom: glink_smem_native_xport: Send blocked signal command"

6 years agoMerge "ARM: dts: msm: Remove spi_9 and i2c_8 in msm8996 ivi vplatform"
Linux Build Service Account [Wed, 20 Dec 2017 06:27:40 +0000 (22:27 -0800)]
Merge "ARM: dts: msm: Remove spi_9 and i2c_8 in msm8996 ivi vplatform"

6 years agousb: gadget: ffs: change gfp_flags to GFP_ATOMIC
Liangliang Lu [Wed, 20 Dec 2017 03:13:00 +0000 (11:13 +0800)]
usb: gadget: ffs: change gfp_flags to GFP_ATOMIC

usb_ep_alloc_request() may sleep with current flag
GFP_KERNEL, but it is in atomic context, change
flag to GFP_ATOMIC to fix this issue.

Change-Id: Ic43a25f0a504d7fed104e636a9a614a4398820ab
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>