The method used to get the QSEED3 offset is incorrect in REG_DMA
path, this change fixes the issue to get the correct QSEED3 offset.
Change-Id: Id0975752d419ab03f745f6a0236c0df03c528e0a
Signed-off-by: Ping Li <pingli@codeaurora.org>
Enable PSCI enable method for the CPUs for supporting
SMP mode on SDMSHRIKE target.
Change-Id: Idf10fc8c16d3ecf58f0401820bc6ef1fa8ecade0
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Add defconfig support to compile and boot 32 bit kernel for qcs405.
Change-Id: I798242b55d92419eabb0347905c4c3485b3b956f
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
Protect more options for arm with cc-option so that we don't get errors when
using clang instead of gcc. Add more or different options when using clang as
well.
Change-Id: I766784273a1005abc09820671c8f4c8daacc2879
KernelVersion:
Author: Behan Webster <behanw@converseincode.com>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Patch-mainline: linux-arm-kernel @ 22/04/14, 06:08
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
A crash is observed when kmemleak_scan accesses the object->pointer,
likely due to the following race.
TASK A TASK B TASK C
kmemleak_write
(with "scan" and
NOT "scan=on")
kmemleak_scan()
create_object
kmem_cache_alloc fails
kmemleak_disable
kmemleak_do_cleanup
kmemleak_free_enabled = 0
kfree
kmemleak_free bails out
(kmemleak_free_enabled is 0)
slub frees object->pointer
update_checksum
crash - object->pointer
freed (DEBUG_PAGEALLOC)
kmemleak_do_cleanup waits for the scan thread to complete, but not for
direct call to kmemleak_scan via kmemleak_write. So add a wait for
kmemleak_scan completion before disabling kmemleak_free, and while at it
fix the comment on stop_scan_thread.
[vinmenon@codeaurora.org: fix stop_scan_thread comment]
Link: http://lkml.kernel.org/r/1522219972-22809-1-git-send-email-vinmenon@codeaurora.org
Link: http://lkml.kernel.org/r/1522063429-18992-1-git-send-email-vinmenon@codeaurora.org
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Git-Commit: 5b909d2e92fc6b741b283cb6f34fa6ecd01fba4c
Git-Repo: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Change-Id: Id5ae7f105c70739cc83dd3e4cb3a676410f93632
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Since we add scatter-gather mode in ETR memory type, add scatter-gather
mode support for byte-counter function as well.
Change-Id: Ibca5113fe09d5de1164a99e891fe0599706954e7
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Add support to configure ETR device in scatter-gather mode.
In scatter-gather mode trace buffer can be configured to use bigger
buffer size without need of bigger contiguous memory.
Change-Id: I5d9f37b47c5bdd711161e7482ca3446549709406
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
As 1MB is the max page size supported by kgsl, use the alignment
corresponding to 1MB page while selecting the page size for a
memory request. This will make sure that higher order pages are
used if possible for a given memory size and will also improve
the usage of higher order kgsl memory pools and general performance.
Change-Id: Ib4a5885a2e2c27c4a9e3f1589ede8290f9edbc9a
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
In enhanced DMA the vrings are handled internally by the FW
and are not exposed to the driver.
Instead, the driver handles descriptor rings, which are mapped
by the FW to vrings.
The completions of the TX and RX descriptors are notified to
the driver using status rings. Each status ring descriptor
includes information of the completed descriptors and the ring id
of their descriptor ring.
This patch changes struct vring to generic wil_ring to allow
its reuse for enhanced DMA descriptor rings and adds the descriptor
and status rings specific descriptors.
Change-Id: I7c841e0a1a31363c86291393a6197116095842bb
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
The PTP function currently returns the same Extended Configuration
Descriptor as that of MTP. This results in Windows hosts displaying
a phone icon rather than a camera icon. Update the compatibleID
to correctly indicate the PTP configuration.
Change-Id: If286c5b80874a95be0b5ecc533d0e5c7a14f39d3
Signed-off-by: Jack Pham <jackp@codeaurora.org>
The mtp_ctrl_request function is responding to every os
descriptor sent by host,There by enumerating the device
with mtp composition. Once mtp is disabled, need to clear
the function instances on unbind.
Change-Id: I6679a1c1009df291a85ba8dcc34997d757c320b9
Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>
When SMMU stage 1 is enabled, sg table entry may return different
page size entries for a xfer buffer. Calling uaudio_get_iova()
for each table entry may result into non-contiguous iova address
mapped for one xfer buffer. This results into page fault when
remote entity tries to access unmapped iova hole. Fix this issue
by calling uaudio_get_iova() first to get contiguous iova and then
map entire iova region by going over sg table entry. Also replace
print format %pa to %pK.
Change-Id: I7c74f25e6b76cf994717ca069948ac08631b5cd7
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Add support for smp2p triggered force error fatal request from
WLAN firmware.
CRs-Fixed: 2159316
Change-Id: I1f36dd5496da44758ecafc66798e7c85b46d1cd9
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Add thermal zone configuration to do low temperature voltage restriction
for SDM855.
Change-Id: I5fe8718db5cda033391a2eeb6572ce5d886f8f72
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Add QMI cooling devices for SDM855. These cooling devices will be used
to apply cold temperature voltage restriction and other mitigation.
Change-Id: I577a850d91f3da868c9efa550fdef5db13ef5368
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Update the compatible name format for qmi cooling devices to use the
right format.
Change-Id: Ia837798ef826c7537809368b0c5e210804b454bf
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Use the New QMI interface to communicate with remote server. The
interface will be used to get the available mitigation device and to
apply mitigation.
Change-Id: If97f521767cc5addea7ee8e2c9a873cb8aaffcdc
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Enable QMI cooling devices for SDM855. These cooling devices are used to
mitigate remote subsystem for thermal conditions.
Change-Id: I93e1b0cc9e03d9a0b654a1f80442bcbb8bb56f07
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Enable ICNSS_QMI flag so that icnss platform driver could
use QMI framework to communicate with WLAN FW.
CRs-Fixed: 2217794
Change-Id: I37ff3661228b3ab843488fbc06642008a6c7375e
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Add efuse reads to compute slope and offset used to convert final
temperature readings. Add all efuse related TSENS reads for 1xxx
controller across different targets in a common file for calibration.
Change-Id: I95ed119377767e518f0fa38720e73a5ce3561b41
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>