OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
5 years agocgroup: Fix deadlock in cpu hotplug path
Prateek Sood [Tue, 19 Dec 2017 10:41:54 +0000 (16:11 +0530)]
cgroup: Fix deadlock in cpu hotplug path

Deadlock during cgroup migration from cpu hotplug path when a task T is
being moved from source to destination cgroup.

kworker/0:0
cpuset_hotplug_workfn()
   cpuset_hotplug_update_tasks()
      hotplug_update_tasks_legacy()
        remove_tasks_in_empty_cpuset()
          cgroup_transfer_tasks() // stuck in iterator loop
            cgroup_migrate()
              cgroup_migrate_add_task()

In cgroup_migrate_add_task() it checks for PF_EXITING flag of task T.
Task T will not migrate to destination cgroup. css_task_iter_start()
will keep pointing to task T in loop waiting for task T cg_list node
to be removed.

Task T
do_exit()
  exit_signals() // sets PF_EXITING
  exit_task_namespaces()
    switch_task_namespaces()
      free_nsproxy()
        put_mnt_ns()
          drop_collected_mounts()
            namespace_unlock()
              synchronize_rcu()
                _synchronize_rcu_expedited()
                  schedule_work() // on cpu0 low priority worker pool
                  wait_event() // waiting for work item to execute

Task T inserted a work item in the worklist of cpu0 low priority
worker pool. It is waiting for expedited grace period work item
to execute. This work item will only be executed once kworker/0:0
complete execution of cpuset_hotplug_workfn().

kworker/0:0 ==> Task T ==>kworker/0:0

In case of PF_EXITING task being migrated from source to destination
cgroup, migrate next available task in source cgroup.

Change-Id: I706aeff24c336c660b5a9b3e5a409c5769968960
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
5 years agodrm/msm: add DRM_IOCTL_MSM_RMFB2
Lloyd Atkinson [Mon, 30 Jan 2017 22:30:55 +0000 (17:30 -0500)]
drm/msm: add DRM_IOCTL_MSM_RMFB2

Add new remove framebuffer ioctl that simply unreferences the
given framebuffer instead of triggering a shutdown of the CRTC
if the buffer is in active use. This allows the user space to
proactively unref the buffer without triggering an unwanted
shutdown.

Change-Id: Iac06985d069989b28affcf620d4e3feba6d07644
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Yunyun Cao <yunyunc@codeaurora.org>
5 years agomsm:ipa3: fix the header table gap issue
Skylar Chang [Thu, 10 May 2018 22:44:56 +0000 (15:44 -0700)]
msm:ipa3: fix the header table gap issue

Move those deleted entries to the free
list to avoid the gap in hdr tbl list.

Change-Id: I5f5b6ec845e6b7e52c7079c2a3200a8290616951
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
5 years agomsm: ipa: fix the ipa-hw rules not clean
Skylar Chang [Thu, 3 May 2018 09:18:34 +0000 (02:18 -0700)]
msm: ipa: fix the ipa-hw rules not clean

After getting reset ioctl from user-space
module, the caches in ipa-driver are clean
however ipa-hw still has it. The fix is
to commit those caches in ipa-hw.

Change-Id: Iee0009b2bf3cdff2979d1fdba629c86a7c5afe21
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
5 years agoMerge "soc: qcom: pil: Disable a clock to maintain clock state across modem SSR"
Linux Build Service Account [Fri, 10 Aug 2018 18:08:40 +0000 (11:08 -0700)]
Merge "soc: qcom: pil: Disable a clock to maintain clock state across modem SSR"

5 years agoMerge "diag: Add NULL checks for the mask and mask pointer"
Linux Build Service Account [Fri, 10 Aug 2018 18:08:38 +0000 (11:08 -0700)]
Merge "diag: Add NULL checks for the mask and mask pointer"

5 years agoMerge "soc: qcom: pil: Remove a register read as it causes an unclocked access"
Linux Build Service Account [Fri, 10 Aug 2018 18:08:37 +0000 (11:08 -0700)]
Merge "soc: qcom: pil: Remove a register read as it causes an unclocked access"

5 years agosoc: qcom: pil: Disable a clock to maintain clock state across modem SSR
Anant Goel [Tue, 31 Jul 2018 23:38:34 +0000 (16:38 -0700)]
soc: qcom: pil: Disable a clock to maintain clock state across modem SSR

A disable and unprepare is called on a clock which is voted for, but never
unvoted for. By disabling and unpreparing this clock, the clock state is
maintained the same across modem restarts.

Change-Id: I4d6cb219ac718de4b7bad593d7f7aa9fd67b1cef
Signed-off-by: Anant Goel <anantg@codeaurora.org>
5 years agodiag: Add NULL checks for the mask and mask pointer
Manoj Prabhu B [Wed, 18 Jul 2018 09:50:43 +0000 (15:20 +0530)]
diag: Add NULL checks for the mask and mask pointer

The chances of accessing uninitialized mask is prevented
by adding null pointer checks for the mask structure and its
member pointer.

Change-Id: Ibf0467228794b773fc2537d34f1da6719bbb975a
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
5 years agoMerge "sched: walt: fix out-of-bounds access"
Linux Build Service Account [Fri, 10 Aug 2018 02:19:43 +0000 (19:19 -0700)]
Merge "sched: walt: fix out-of-bounds access"

5 years agoMerge "msm: ipa: Add WLAN FW SSR event"
Linux Build Service Account [Fri, 10 Aug 2018 02:19:42 +0000 (19:19 -0700)]
Merge "msm: ipa: Add WLAN FW SSR event"

5 years agoMerge "arm64: hibernate: Support DEBUG_PAGEALLOC"
Linux Build Service Account [Fri, 10 Aug 2018 02:19:35 +0000 (19:19 -0700)]
Merge "arm64: hibernate: Support DEBUG_PAGEALLOC"

5 years agoMerge "arm64: Create sections.h"
Linux Build Service Account [Fri, 10 Aug 2018 02:19:34 +0000 (19:19 -0700)]
Merge "arm64: Create sections.h"

5 years agosoc: qcom: pil: Remove a register read as it causes an unclocked access
Anant Goel [Tue, 31 Jul 2018 21:40:26 +0000 (14:40 -0700)]
soc: qcom: pil: Remove a register read as it causes an unclocked access

A read of a register during the software fatal error handling is removed.
This read causes an unclocked access which prevents the modem subsystem
from succssfully restarting.

Change-Id: I8338830573e55af2e5c9d0f688756d975a3302af
Signed-off-by: Anant Goel <anantg@codeaurora.org>
5 years agoMerge "msm: camera: cpp: Check for valid tx level"
Linux Build Service Account [Thu, 9 Aug 2018 15:19:06 +0000 (08:19 -0700)]
Merge "msm: camera: cpp: Check for valid tx level"

5 years agomsm: ipa: Add WLAN FW SSR event
Mohammed Javid [Mon, 25 Jun 2018 13:28:20 +0000 (18:58 +0530)]
msm: ipa: Add WLAN FW SSR event

Add WLAN FW SSR event to handle FW rejuvenate
scenario.

Change-Id: I417d46cc07f455792906a18f4b6dc8e5ca8ca3de
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
5 years agomsm: camera: cpp: Check for valid tx level
Pratap Nirujogi [Wed, 8 Aug 2018 15:13:29 +0000 (20:43 +0530)]
msm: camera: cpp: Check for valid tx level

TX and RX FIFOs of Microcontroller are used to exchange commands
and messages between Micro FW and CPP driver. TX FIFO depth is
16 32-bit words, incase of errors there is a chance of overflow.
To prevent possible out of bound access, TX FIFO depth or
level is checked for MAX depth before accessing the FIFO.

Change-Id: I5adf39b46ff10e358c4a2c03a2de07d44b99cedb
Signed-off-by: Pratap Nirujogi <pratapn@codeaurora.org>
5 years agoMerge "msm: ADSPRPC: Disable CDSP loader"
Linux Build Service Account [Thu, 9 Aug 2018 01:28:49 +0000 (18:28 -0700)]
Merge "msm: ADSPRPC: Disable CDSP loader"

5 years agoMerge "media: camera: Fix Major and Minor number"
Linux Build Service Account [Thu, 9 Aug 2018 01:28:48 +0000 (18:28 -0700)]
Merge "media: camera: Fix Major and Minor number"

5 years agoMerge "ARM: dts: msm: disable pm8994 adc on vplatform"
Linux Build Service Account [Wed, 8 Aug 2018 09:39:39 +0000 (02:39 -0700)]
Merge "ARM: dts: msm: disable pm8994 adc on vplatform"

5 years agoMerge "diag: Add missing protection while accessing session's info"
Linux Build Service Account [Wed, 8 Aug 2018 09:39:38 +0000 (02:39 -0700)]
Merge "diag: Add missing protection while accessing session's info"

5 years agoMerge "ARM: dts: msm: Remove blsp1_uart2 on msm8996 ivi vplatform"
Linux Build Service Account [Wed, 8 Aug 2018 09:39:36 +0000 (02:39 -0700)]
Merge "ARM: dts: msm: Remove blsp1_uart2 on msm8996 ivi vplatform"

5 years agoMerge "uio: msm_sharedmem: Add stub shutdown function"
Linux Build Service Account [Wed, 8 Aug 2018 09:39:33 +0000 (02:39 -0700)]
Merge "uio: msm_sharedmem: Add stub shutdown function"

5 years agomedia: camera: Fix Major and Minor number
Neeraj Soni [Thu, 8 Feb 2018 15:10:05 +0000 (20:40 +0530)]
media: camera: Fix Major and Minor number

Fix TA Major and Minor number.

Change-Id: I65a800ec8d84445efc05b9763062d476b1d0f27a
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
5 years agosched: walt: fix out-of-bounds access
John Dias [Fri, 22 Jun 2018 19:27:38 +0000 (12:27 -0700)]
sched: walt: fix out-of-bounds access

A computation in update_top_tasks() is indexing
off the end of a top_tasks array. There's code
to limit the index in the computation, but it's
insufficient.

Bug: 110529282
Change-Id: Idb5ff5e5800c014394bcb04638844bf1e057a40c
Signed-off-by: John Dias <joaodias@google.com>
[pkondeti@codeaurora.org: Backported to 4.4 for HMP scheduler]
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
5 years agoARM: dts: msm: disable pm8994 adc on vplatform
Zhiqiang Tu [Wed, 8 Aug 2018 02:16:49 +0000 (10:16 +0800)]
ARM: dts: msm: disable pm8994 adc on vplatform

Disable adc since they are not needed.

Change-Id: I5e08ae819f8c5c8a25eca4e523b214606105cb65
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
5 years agoARM: dts: msm: Remove blsp1_uart2 on msm8996 ivi vplatform
Zhiqiang Tu [Tue, 7 Aug 2018 05:31:27 +0000 (13:31 +0800)]
ARM: dts: msm: Remove blsp1_uart2 on msm8996 ivi vplatform

Remove blsp1_uart since it is not needed.

Change-Id: Id0327fc601f87376eebfbe6d3cfb06b84ed9a407
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
5 years agouio: msm_sharedmem: Add stub shutdown function
Anant Goel [Sat, 4 Aug 2018 06:12:17 +0000 (23:12 -0700)]
uio: msm_sharedmem: Add stub shutdown function

A stub shutdown function is added as the default
implementation. This function is used by targets
that do not need to free their memory when the
driver is shutdown.

Change-Id: I073cda4fee7a1c6c34c5ba72d9ba73478ef2d90d
Signed-off-by: Anant Goel <anantg@codeaurora.org>
5 years agoarm64: hibernate: Support DEBUG_PAGEALLOC
James Morse [Thu, 19 Jul 2018 05:25:14 +0000 (10:55 +0530)]
arm64: hibernate: Support DEBUG_PAGEALLOC

DEBUG_PAGEALLOC removes the valid bit of page table entries to prevent
any access to unallocated memory. Hibernate uses this as a hint that those
pages don't need to be saved/restored. This patch adds the
kernel_page_present() function it uses.

hibernate.c copies the resume kernel's linear map for use during restore.
Add _copy_pte() to fill-in the holes made by DEBUG_PAGEALLOC in the resume
kernel, so we can restore data the original kernel had at these addresses.

Finally, DEBUG_PAGEALLOC means the linear-map alias of KERNEL_START to
KERNEL_END may have holes in it, so we can't lazily clean this whole
area to the PoC. Only clean the new mmuoff region, and the kernel/kvm
idmaps.

This reverts commit da24eb1f3f9e2c7b75c5f8c40d8e48e2c4789596.

Change-Id: I862226802c9c726590c89e3d9e8062ed680309f3
Reported-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Git-Commit: 5ebe3a44cc744d11cb60d8438106a9322b7c04dc
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Arun KS <arunks@codeaurora.org>
5 years agoarm64: vmlinux.ld: Add mmuoff data sections and move mmuoff text into idmap
James Morse [Thu, 19 Jul 2018 05:19:13 +0000 (10:49 +0530)]
arm64: vmlinux.ld: Add mmuoff data sections and move mmuoff text into idmap

Resume from hibernate needs to clean any text executed by the kernel with
the MMU off to the PoC. Collect these functions together into the
.idmap.text section as all this code is tightly coupled and also needs
the same cleaning after resume.

Data is more complicated, secondary_holding_pen_release is written with
the MMU on, clean and invalidated, then read with the MMU off. In contrast
__boot_cpu_mode is written with the MMU off, the corresponding cache line
is invalidated, so when we read it with the MMU on we don't get stale data.
These cache maintenance operations conflict with each other if the values
are within a Cache Writeback Granule (CWG) of each other.
Collect the data into two sections .mmuoff.data.read and .mmuoff.data.write,
the linker script ensures mmuoff.data.write section is aligned to the
architectural maximum CWG of 2KB.

Change-Id: I3f5add863896e0acaa54dd11929fc1d553d402f4
Signed-off-by: James Morse <james.morse@arm.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Git-Commit: b61130381120398876b86282082ad9f24976dfcf
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Arun KS <arunks@codeaurora.org>
5 years agoarm64: Create sections.h
James Morse [Thu, 19 Jul 2018 04:45:00 +0000 (10:15 +0530)]
arm64: Create sections.h

Each time new section markers are added, kernel/vmlinux.ld.S is updated,
and new extern char __start_foo[] definitions are scattered through the
tree.

Create asm/include/sections.h to collect these definitions (and include
the existing asm-generic version).

Change-Id: I40cf712810291cde8f362fc41bb572b2e94daca1
Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Git-Commit: ee78fdc71db1ce9a437b9ca17e31063996b71ec1
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Arun KS <arunks@codeaurora.org>
5 years agoarm64: kernel: avoid literal load of virtual address with MMU off
Ard Biesheuvel [Wed, 17 Aug 2016 15:54:41 +0000 (17:54 +0200)]
arm64: kernel: avoid literal load of virtual address with MMU off

Literal loads of virtual addresses are subject to runtime relocation when
CONFIG_RELOCATABLE=y, and given that the relocation routines run with the
MMU and caches enabled, literal loads of relocated values performed with
the MMU off are not guaranteed to return the latest value unless the
memory covering the literal is cleaned to the PoC explicitly.

So defer the literal load until after the MMU has been enabled, just like
we do for primary_switch() and secondary_switch() in head.S.

Change-Id: I11b1884662f37bc2664f286f6278e4a6af2d5c76
Fixes: 1e48ef7fcc37 ("arm64: add support for building vmlinux as a relocatable PIE binary")
Cc: <stable@vger.kernel.org> # 4.6+
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Git-Commit: bc9f3d7788a88d080a30599bde68f383daf8f8a5
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Arun KS <arunks@codeaurora.org>
5 years agoMerge "ipa: update wlan upstream iface name"
Linux Build Service Account [Tue, 7 Aug 2018 22:24:16 +0000 (15:24 -0700)]
Merge "ipa: update wlan upstream iface name"

5 years agoMerge "msm: mdss: Change function from disbale_irq_nosync to disbale_irq"
Linux Build Service Account [Tue, 7 Aug 2018 22:24:15 +0000 (15:24 -0700)]
Merge "msm: mdss: Change function from disbale_irq_nosync to disbale_irq"

5 years agoMerge "ASoC: wcd934x-dsp-cntl: initialize local char array val"
Linux Build Service Account [Tue, 7 Aug 2018 22:24:13 +0000 (15:24 -0700)]
Merge "ASoC: wcd934x-dsp-cntl: initialize local char array val"

5 years agoMerge "diag: Protect md_info structure while reallocation"
Linux Build Service Account [Tue, 7 Aug 2018 22:24:11 +0000 (15:24 -0700)]
Merge "diag: Protect md_info structure while reallocation"

5 years agoMerge "msm: ipa3: using rate limit api for ioctl calls"
Linux Build Service Account [Tue, 7 Aug 2018 22:24:09 +0000 (15:24 -0700)]
Merge "msm: ipa3: using rate limit api for ioctl calls"

5 years agoMerge "msm: ipa3: fix hdr offset issue"
Linux Build Service Account [Tue, 7 Aug 2018 22:24:06 +0000 (15:24 -0700)]
Merge "msm: ipa3: fix hdr offset issue"

5 years agoipa: update wlan upstream iface name
Mohammed Javid [Fri, 3 Aug 2018 09:26:35 +0000 (14:56 +0530)]
ipa: update wlan upstream iface name

Update WLAN upstream name to support STA SAP scenario
with wlan1 iface.

Change-Id: I0223c5b4aff8dfe24562a2c6d4ac581a7843224e
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
5 years agodiag: Add missing protection while accessing session's info
Hardik Arya [Mon, 9 Apr 2018 09:19:40 +0000 (14:49 +0530)]
diag: Add missing protection while accessing session's info

Currently, mutex protection is missing while accessing md session's
info via macro. The patch adds proper protection before accessing
the same.

Change-Id: I17b18183407279447229783fd0165337bd173423
Signed-off-by: Hardik Arya <harya@codeaurora.org>
5 years agoMerge "msm: kgsl: unload/reload zap shader"
Linux Build Service Account [Tue, 7 Aug 2018 04:52:26 +0000 (21:52 -0700)]
Merge "msm: kgsl: unload/reload zap shader"

5 years agoMerge "cnss2: Clear flag CNSS_DRIVER_UNLOADING after unregister driver finished"
Linux Build Service Account [Tue, 7 Aug 2018 04:52:23 +0000 (21:52 -0700)]
Merge "cnss2: Clear flag CNSS_DRIVER_UNLOADING after unregister driver finished"

5 years agoMerge "cnss2: Skip PCIe link suspend if link has already been suspended"
Linux Build Service Account [Tue, 7 Aug 2018 04:52:19 +0000 (21:52 -0700)]
Merge "cnss2: Skip PCIe link suspend if link has already been suspended"

5 years agoASoC: wcd934x-dsp-cntl: initialize local char array val
Xiaoyu Ye [Tue, 31 Jul 2018 18:34:20 +0000 (11:34 -0700)]
ASoC: wcd934x-dsp-cntl: initialize local char array val

Due to the local char array that stores the codec dsp control command
is not initialized, an invalid command could cause the stack content
to be printed out in kernel dmesg. Initialize the array with memset.

Change-Id: I9573958fbe308c170c203a6a50a94d0540f3e7ce
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
5 years agomsm: ipa3: using rate limit api for ioctl calls
Mohammed Javid [Fri, 13 Oct 2017 08:21:21 +0000 (13:51 +0530)]
msm: ipa3: using rate limit api for ioctl calls

ipav3 ioctl calls input arguments validation failed cases,
replacing IPAERR()/IPAHAL_ERR() with IPAERR_RL()/IPAHAL_ERR_RL()
marco for controlling logs printing on the console.

Change-Id: I0b48b4a2f8b37c71aebe82c7b747b1d8f6c1e143
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
5 years agomsm: ipa3: fix hdr offset issue
Skylar Chang [Sat, 21 Apr 2018 08:42:45 +0000 (01:42 -0700)]
msm: ipa3: fix hdr offset issue

Hdr offset calculation is wrong when
driver received clean-up ioctl from
user-space. The fix is to find right
hdr offset to commit ned headers.

Change-Id: I70878a19b64c3defa6101bd68d435f0b74bcfb9b
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
5 years agocnss2: Clear flag CNSS_DRIVER_UNLOADING after unregister driver finished
Kai Liu [Wed, 25 Jul 2018 03:36:46 +0000 (11:36 +0800)]
cnss2: Clear flag CNSS_DRIVER_UNLOADING after unregister driver finished

Flag CNSS_DRIVER_UNLOADING is set when unregister wlan started, but it's
cleared in cnss_shutdown, which is also used in other call flow. Clear this
flag after unregister finished.

Change-Id: I0b5d63e5570c2604ff66d7852d7c7ca1c008a475
Signed-off-by: Kai Liu <kaliu@codeaurora.org>
5 years agoMerge "soc: qcom: hab: fix some NULL pointer dereference issues"
Linux Build Service Account [Fri, 3 Aug 2018 11:05:50 +0000 (04:05 -0700)]
Merge "soc: qcom: hab: fix some NULL pointer dereference issues"

5 years agoMerge "usb: dwc3-msm: Queue resume_work unconditionally on pm_resume"
Linux Build Service Account [Fri, 3 Aug 2018 11:05:48 +0000 (04:05 -0700)]
Merge "usb: dwc3-msm: Queue resume_work unconditionally on pm_resume"

5 years agoMerge "msm: vidc: Increase minimum input buffer count for HEVC decode"
Linux Build Service Account [Fri, 3 Aug 2018 11:05:44 +0000 (04:05 -0700)]
Merge "msm: vidc: Increase minimum input buffer count for HEVC decode"

5 years agoMerge "soc: qcom: hab: add hab statistics support"
Linux Build Service Account [Fri, 3 Aug 2018 11:05:38 +0000 (04:05 -0700)]
Merge "soc: qcom: hab: add hab statistics support"

5 years agoMerge "diag: Read the HSIC data in a work queue"
Linux Build Service Account [Fri, 3 Aug 2018 11:05:29 +0000 (04:05 -0700)]
Merge "diag: Read the HSIC data in a work queue"

5 years agosoc: qcom: hab: fix some NULL pointer dereference issues
Yong Ding [Tue, 17 Jul 2018 08:36:43 +0000 (16:36 +0800)]
soc: qcom: hab: fix some NULL pointer dereference issues

With this patch, some potential NULL pointer dereference
issues are resolved. For example, if an invalid MMID
(MultiMedia ID defined by HAB driver) is gotten but we
fail to directly return with an error, the vchan variable
as NULL pointer will be dereferenced.

Change-Id: I92f9c5d08f99ef9db3e6a8b2ecdc0f074c8e8bff
Signed-off-by: Yong Ding <yongding@codeaurora.org>
5 years agomsm: vidc: Increase minimum input buffer count for HEVC decode
Paras Nagda [Tue, 29 May 2018 12:20:35 +0000 (17:50 +0530)]
msm: vidc: Increase minimum input buffer count for HEVC decode

Increase minimum input buffer count for HEVC decode to 5 to
avoid hang when the DPB is not full and FW keeps
waiting for FTB although sufficient ETB are being queued.

CRs-Fixed: 2252419

Change-Id: Id344cd896aeac46765e250e715d14a6c835b4221
Signed-off-by: Paras Nagda <pnagda@codeaurora.org>
5 years agoMerge changes into msm-4.4
Gerrit - the friendly Code Review server [Fri, 3 Aug 2018 03:10:21 +0000 (20:10 -0700)]
Merge changes  into msm-4.4

6 years agoMerge "msm: ipa: support ipacm cleanup"
Linux Build Service Account [Thu, 2 Aug 2018 14:10:44 +0000 (07:10 -0700)]
Merge "msm: ipa: support ipacm cleanup"

6 years agoMerge "cnss2: Add support for PCIe WLAN IPA uc SMMU feature"
Linux Build Service Account [Thu, 2 Aug 2018 14:10:43 +0000 (07:10 -0700)]
Merge "cnss2: Add support for PCIe WLAN IPA uc SMMU feature"

6 years agoMerge "diag: Modify md_info and diag client map synchronization"
Linux Build Service Account [Thu, 2 Aug 2018 14:10:41 +0000 (07:10 -0700)]
Merge "diag: Modify md_info and diag client map synchronization"

6 years agoMerge "msm: camera: Fix out-of-bounds read in string class name."
Linux Build Service Account [Thu, 2 Aug 2018 14:10:39 +0000 (07:10 -0700)]
Merge "msm: camera: Fix out-of-bounds read in string class name."

6 years agoMerge "msm: camera: sensor: Add support for front aux sensor"
Linux Build Service Account [Thu, 2 Aug 2018 14:10:35 +0000 (07:10 -0700)]
Merge "msm: camera: sensor: Add support for front aux sensor"

6 years agomsm: ipa: support ipacm cleanup
Skylar Chang [Sat, 7 Apr 2018 23:42:36 +0000 (16:42 -0700)]
msm: ipa: support ipacm cleanup

Support header/filter, routing rules
cleanup when user-space module
crashed like ipacm and also cached
the wlan client connect messages
for ipacm to query.

Change-Id: Ib09cbe0e9114aa5a5673898ff796de7e7944af35
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
6 years agodiag: Modify md_info and diag client map synchronization
Manoj Prabhu B [Wed, 25 Jul 2018 09:36:11 +0000 (15:06 +0530)]
diag: Modify md_info and diag client map synchronization

Extend the scope of protection to md_info till queueing
the write to sdcard. Patch adds protection to diag client map
synchronizing access by various clients.

CRs-Fixed: 2282558
Change-Id: If076af2d09180a282a9077b4ebcda0184e9f67b5
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
6 years agoMerge "power: wakeup_reason: send uevent to user space"
Linux Build Service Account [Thu, 2 Aug 2018 03:19:45 +0000 (20:19 -0700)]
Merge "power: wakeup_reason: send uevent to user space"

6 years agoMerge "net: ipc_router: Initialize the sockaddr in recvmsg() handler"
Linux Build Service Account [Wed, 1 Aug 2018 11:54:15 +0000 (04:54 -0700)]
Merge "net: ipc_router: Initialize the sockaddr in recvmsg() handler"

6 years agocnss2: Add support for PCIe WLAN IPA uc SMMU feature
Frank Liu [Fri, 27 Jul 2018 06:32:53 +0000 (14:32 +0800)]
cnss2: Add support for PCIe WLAN IPA uc SMMU feature

To add support for PCIe WLAN IPA uc SMMU feature, prvoide related
platform api for wlan driver to get the smmu map handle and do the
mapping.

Change-Id: I672b1a48879ada65b3ddb3f16c4bd787dc1b70a6
Signed-off-by: Frank Liu <qiliu@codeaurora.org>
6 years agodiag: Protect md_info structure while reallocation
Manoj Prabhu B [Wed, 25 Jul 2018 09:30:19 +0000 (15:00 +0530)]
diag: Protect md_info structure while reallocation

The possibility of md_info structure being accessed simultaneously
by two threads is prevented by synchronizing while buffer
reallocation for hdlc encoding. Extend the scope of protection to
md_info till queueing the write to sdcard.

CRs-Fixed: 2279473
Change-Id: I75ddb102adfc6c79f35ed69914c9140cb82894c9
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
6 years agoMerge "msm: kgsl: Fix the missing IBs from the snapshot"
Linux Build Service Account [Tue, 31 Jul 2018 16:34:30 +0000 (09:34 -0700)]
Merge "msm: kgsl: Fix the missing IBs from the snapshot"

6 years agoMerge "usb: phy-msm-ssusb-qmp: Make vls_clamp_reg as optional"
Linux Build Service Account [Tue, 31 Jul 2018 16:34:28 +0000 (09:34 -0700)]
Merge "usb: phy-msm-ssusb-qmp: Make vls_clamp_reg as optional"

6 years agoMerge "icnss: Remove sending uevent after FW ready"
Linux Build Service Account [Tue, 31 Jul 2018 16:34:27 +0000 (09:34 -0700)]
Merge "icnss: Remove sending uevent after FW ready"

6 years agomsm: kgsl: Fix the missing IBs from the snapshot
Sunil Khatri [Mon, 30 Jul 2018 09:48:17 +0000 (15:18 +0530)]
msm: kgsl: Fix the missing IBs from the snapshot

We missed updating index for internal IBs like setstate
or power-on fixup.

The index value was never updated after that, so all the
IBs after that index were never parsed, and are missing
from the snapshot.

Change-Id: I61db75f33630db322fe5ee1adce9f120987d32ee
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
6 years agousb: phy-msm-ssusb-qmp: Make vls_clamp_reg as optional
Ajay Agarwal [Wed, 25 Jul 2018 06:55:16 +0000 (12:25 +0530)]
usb: phy-msm-ssusb-qmp: Make vls_clamp_reg as optional

Currently the SSUSB QMP PHY driver mandates that vls_clamp_reg be
passed from the DTSI. But this register cannot be accessed on a
platform on which Linux is a guest OS. This can lead to errors
when trying to enable autonomous mode. Work around this situation
by making the vls_clamp_reg property as optional.

Change-Id: Idb103d9b7bda717a5f12689951a7452c46aa76dd
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agousb: dwc3-msm: Queue resume_work unconditionally on pm_resume
Ajay Agarwal [Tue, 31 Jul 2018 07:10:10 +0000 (12:40 +0530)]
usb: dwc3-msm: Queue resume_work unconditionally on pm_resume

Currently on pm_resume, the driver queues resume_work only if
vbus_active is true or id_state is false. So when the system is
suspended with host mode cable connected and the cable is
disconnected, the port still remains in host mode. Fix this by
unconditionally queueing resume_work from pm_resume and adding
required pm_relax in B_IDLE branch of sm_work.
Also create a freezable workqueue for sm_work so that the work
items do not race with pm_resume of child devices.

Change-Id: I9b79ddcc44c87111fc85086038361d9140be2af5
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agoMerge "msm: ipa: Add support to IPA platform shutdown cleanup"
Linux Build Service Account [Tue, 31 Jul 2018 06:59:59 +0000 (23:59 -0700)]
Merge "msm: ipa: Add support to IPA platform shutdown cleanup"

6 years agoMerge "arch: arm64: Reenable HW breakpoint"
Linux Build Service Account [Tue, 31 Jul 2018 06:59:57 +0000 (23:59 -0700)]
Merge "arch: arm64: Reenable HW breakpoint"

6 years agosoc: qcom: hab: add hab statistics support
Yong Ding [Tue, 31 Jul 2018 06:16:16 +0000 (14:16 +0800)]
soc: qcom: hab: add hab statistics support

This allows user to read back hab runtime information.

Change-Id: Id266dd17b9c9d38f0e93aa600510ae1c6b12cca5
Signed-off-by: Yong Ding <yongding@codeaurora.org>
6 years agoarch: arm64: Reenable HW breakpoint
Neeraj Upadhyay [Mon, 16 Apr 2018 09:32:03 +0000 (15:02 +0530)]
arch: arm64: Reenable HW breakpoint

HW breakpoint was disabled in
'commit f2a3f3ef8e73 ("arch: arm64: disable HW breakpoint")'.
However, it is required for setting breakpoints using ptrace
syscall, which is required for certain userspace applications
to work. So, reenable it.

Change-Id: Ib2a49488b92b0f77d13871d151778b3f0feab273
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
6 years agomsm: ipa: Add support to IPA platform shutdown cleanup
Mohammed Javid [Mon, 2 Jul 2018 07:17:41 +0000 (12:47 +0530)]
msm: ipa: Add support to IPA platform shutdown cleanup

Add support for platform reboot from IPA APPS
driver perspective.

Change-Id: Id65336da06a59a28944bfd51d9482d3d82a9cc3e
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agoMerge "msm: ipa3: Update holb config on USB DPL ep"
Linux Build Service Account [Mon, 30 Jul 2018 20:37:32 +0000 (13:37 -0700)]
Merge "msm: ipa3: Update holb config on USB DPL ep"

6 years agoMerge "defconfig: msm: Enable QUOTA encryption support"
Linux Build Service Account [Mon, 30 Jul 2018 20:37:27 +0000 (13:37 -0700)]
Merge "defconfig: msm: Enable QUOTA encryption support"

6 years agoMerge "mm-camera2:isp2: Add NULL check for stream_info pointer"
Linux Build Service Account [Mon, 30 Jul 2018 20:37:22 +0000 (13:37 -0700)]
Merge "mm-camera2:isp2: Add NULL check for stream_info pointer"

6 years agomsm: ipa3: Update holb config on USB DPL ep
Mohammed Javid [Fri, 13 Jul 2018 10:17:51 +0000 (15:47 +0530)]
msm: ipa3: Update holb config on USB DPL ep

Once USB DPL consumer ep is configured,
there is a chance of IPA hardware getting stalled,
if DPL client is not pulling the data over other end.
so, set holb discard over USB DPL cons ep
to avoid this stall.

Change-Id: I520b8c1ec84e03b783677c43670cbb9f904a4b4f
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
6 years agoMerge "mmc: core: Use mmc_get_cd_gpio to get cd gpio status in resume path"
Linux Build Service Account [Mon, 30 Jul 2018 12:12:59 +0000 (05:12 -0700)]
Merge "mmc: core: Use mmc_get_cd_gpio to get cd gpio status in resume path"

6 years agodefconfig: msm: Enable QUOTA encryption support
Venkata Rao Kakani [Thu, 19 Jul 2018 09:34:57 +0000 (15:04 +0530)]
defconfig: msm: Enable QUOTA encryption support

Add sdcardfs support and QUOTA encryption support for
CTS issue fixes.

Change-Id: Ie7120b21bf5b6b00432cc79302a3cf740a2cc710
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
6 years agomm-camera2:isp2: Add NULL check for stream_info pointer
Srikanth Uyyala [Tue, 24 Jul 2018 08:57:38 +0000 (14:27 +0530)]
mm-camera2:isp2: Add NULL check for stream_info pointer

The function msm_isp_get_stream_common_data could return a NULL,
add check to avoid NULL pointer dereference.

Change-Id: I157a74189b581d8ba90ef31f71c3be9b8369a764
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
6 years agomsm: mdss: Change function from disbale_irq_nosync to disbale_irq
Rashi Bindra [Thu, 19 Jul 2018 07:10:52 +0000 (12:40 +0530)]
msm: mdss: Change function from disbale_irq_nosync to disbale_irq

Potential deadlock can happen while we disable irq and at the same
time an irq is triggered to request for the same resource. Thus,
it will pre-empt the spin-lock. Hence, change the function call to
disbale_irq to prevent local interrupts.

Change-Id: I7b80810b13660df8801533d418c78f2db75dd5b6
Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
6 years agoMerge "ARM: dts: msm: Enable Apps shutdown feature in IPA driver for 8996HQX"
Linux Build Service Account [Mon, 30 Jul 2018 03:42:17 +0000 (20:42 -0700)]
Merge "ARM: dts: msm: Enable Apps shutdown feature in IPA driver for 8996HQX"

6 years agoMerge "defconfig: msm: Define common hypervisor flag"
Linux Build Service Account [Sat, 28 Jul 2018 11:00:26 +0000 (04:00 -0700)]
Merge "defconfig: msm: Define common hypervisor flag"

6 years agoMerge "defconfig: msm8998: Enable VTI config for v4 and v6"
Linux Build Service Account [Sat, 28 Jul 2018 11:00:25 +0000 (04:00 -0700)]
Merge "defconfig: msm8998: Enable VTI config for v4 and v6"

6 years agoMerge "defconfig: sdm660: Enable VTI config for v4 and v6"
Linux Build Service Account [Sat, 28 Jul 2018 11:00:24 +0000 (04:00 -0700)]
Merge "defconfig: sdm660: Enable VTI config for v4 and v6"

6 years agomsm: kgsl: unload/reload zap shader
Thomas Yun [Tue, 17 Jul 2018 18:07:39 +0000 (14:07 -0400)]
msm: kgsl: unload/reload zap shader

Unload zap shader during device hibernation and reload it
during resume otherwise scm calls during post hibernation
GPU initialization will fail as there is possibility that
TZ driver is not aware of the hibernation.

Change-Id: I1f62fb97cbc8e6c3e3536d4d5260a543ca15b685
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
Signed-off-by: Thomas Yun <wyun@codeaurora.org>
6 years agodefconfig: msm8998: Enable VTI config for v4 and v6
Devi Sandeep Endluri V V [Wed, 25 Jul 2018 20:59:54 +0000 (02:29 +0530)]
defconfig: msm8998: Enable VTI config for v4 and v6

Enable VTI to give userspace (netd) the ability to create and
update virtual interfaces.

CRs-Fixed: 2214527
Change-Id: I5076d59230538c0b88fbd8d3c9188141a600526b
Signed-off-by: Devi Sandeep Endluri V V <dendluri@codeaurora.org>
6 years agodefconfig: sdm660: Enable VTI config for v4 and v6
Devi Sandeep Endluri V V [Wed, 25 Jul 2018 21:13:38 +0000 (02:43 +0530)]
defconfig: sdm660: Enable VTI config for v4 and v6

Enable VTI to give userspace (netd) the ability to create and
update virtual interfaces.

Change-Id: Ia32c78a8675757f4b600c6e4211f42afdb8249d4
CRs-Fixed: 2214527
Signed-off-by: Devi Sandeep Endluri V V <dendluri@codeaurora.org>
6 years agodefconfig: msm: Define common hypervisor flag
Camus Wong [Fri, 16 Mar 2018 21:02:55 +0000 (17:02 -0400)]
defconfig: msm: Define common hypervisor flag

Define common flag for hypervisor platforms and make use of it to:
1. Enable drm/msm-hyp
2. Disable drm/msm

Change-Id: I6eb6a7cd2a1128ed8d2bf6efd96c4829556eb876
Signed-off-by: Camus Wong <camusw@codeaurora.org>
6 years agoMerge "USB: pd: Send PS_RDY within tNewSrc after PS_RDY received"
Linux Build Service Account [Fri, 27 Jul 2018 10:36:37 +0000 (03:36 -0700)]
Merge "USB: pd: Send PS_RDY within tNewSrc after PS_RDY received"

6 years agoMerge "dwc3: Check USB LPM status before accessing any register"
Linux Build Service Account [Fri, 27 Jul 2018 10:36:35 +0000 (03:36 -0700)]
Merge "dwc3: Check USB LPM status before accessing any register"

6 years agoUSB: pd: Send PS_RDY within tNewSrc after PS_RDY received
Vijayavardhan Vennapusa [Tue, 3 Jul 2018 10:17:18 +0000 (15:47 +0530)]
USB: pd: Send PS_RDY within tNewSrc after PS_RDY received

USBPD spec mentions max time within which device that transitions
from sink power role to source needs to send PS_RDY message after
PS_RDY received from other device as part of PR_SWAP. Currently
USB PD driver is taking time around 380msec i.e greater than tNewSrc
(275msec) and resulting in USB PD complaince test "2.2.3.1.2
Procedure/Checks for Tester (Source) Originated Swap" failure. Fix it
by waiting only till VBUS voltage reaches VSafe5Vmin.

Change-Id: I3138e6d31ba964507230fe5f914aaaf2e261647d
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
6 years agodwc3: Check USB LPM status before accessing any register
Mayank Rana [Mon, 25 Sep 2017 23:48:39 +0000 (16:48 -0700)]
dwc3: Check USB LPM status before accessing any register

USB debugfs entries can be accessed when USB session is not active or
USB is in low power mode. This results into unclocked register access.
Fix this issue by checking USB LPM status.

debugfs_create_regset32() fops related APIs are used to get USB dwc3
register dump. These fops don't have support to query device status
before accessing registers. Hence by default disabling creation of
regdump debugfs entry.

Change-Id: I67b00532eca159e000c848cb056d9759c47aefe9
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
6 years agoARM: dts: msm: Disable runtime PM in host mode for automotive
Ajay Agarwal [Wed, 25 Jul 2018 07:30:15 +0000 (13:00 +0530)]
ARM: dts: msm: Disable runtime PM in host mode for automotive

Add "qcom,disable-host-mode-pm" flag to the USB nodes of
automotive targets to disable runtime PM in host mode.

Change-Id: I45949b92e7199b3ee9a95a7e0a3a584f813d0deb
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
6 years agoMerge "msm: sps: Suppress bind/unbind attributes"
Linux Build Service Account [Fri, 27 Jul 2018 02:19:45 +0000 (19:19 -0700)]
Merge "msm: sps: Suppress bind/unbind attributes"

6 years agoMerge "msm: mdss: use uaccess routines to access user space buffers"
Linux Build Service Account [Fri, 27 Jul 2018 02:19:43 +0000 (19:19 -0700)]
Merge "msm: mdss: use uaccess routines to access user space buffers"