Current cpu_relax() in hogging the CPU in TLBSTATUS check.
So remove cpu_relax() and use readl_poll_timeout() to avoid
CPU hogging long time during TLBSYNC timeout failure. Also
reduce wait timeout from 2sec to 1sec.
Change-Id: Ic29733528aa99de770d020b0b8b97eea83dd7f98
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
Enable SDHC FIFO explicitly by disabling the alternative FIFO.
The boot-loaders might use alternative FIFO instead of HC FIFO.
And the vendor specific register which has this setting won't get
reset with controller reset. So the FIFO setting done by the
bootloader would remain as it is unless its explicitly cleared.
Without clearing this setting, mmc driver can't make use of regular
FIFO mode.
Change-Id: Icd22f318d6f24e54afbcedacf026977b29de4e95
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
This is needed to get the current capabilities of vdd
regulator that is not managed by SDHCI driver.
Change-Id: I2a7f2981043185b51e268bf30c4ab9135991c6ee
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
Update the android/abi_gki_aarch64_qcom with recent symbol additions.
Simple change and no need to update the .xml file, as no new symbol
addition.
Bug: 169739756
Change-Id: I3e992c3ecf4a06eed4b3459cb6343cc5a4f8941d
Signed-off-by: Mayank Grover <groverm@codeaurora.org>
System PM Violators reads should not be jumbled. Add a barrier to ensure
reads are sequential.
Change-Id: I68112e3ddff4c65a3b9e8cc1dc3a79ed392dc375
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
This change enables CONFIG_F2FS_CHECK_FS to check
FS consistency at runtime and catch errors.
Change-Id: I554d2e7d3155fba3cbcd2f2c0a14b6cc8b36abff
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
Enable networking modules in defconfig for sdxlemur.
Change-Id: I821e344c89ff80e33a10bc1b7ea452147cf77426
Signed-off-by: Paras Singh Jain <parassin@codeaurora.org>
This change is for general scheduler improvement.
Change-Id: I1eaa2993c17a50d436b939523bb2158b88d6a8e1
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
The TRBs for GSI endpoints are allocated by the GSI ep ops.
The TRB pool allocated in the alloc_trb_pool is never used
and never freed leading to a dangling mapping in the IOMMU.
Fix this by freeing up the allocated TRB pool as part of
endpoint initialization.
Change-Id: Ia0f7b8725f5206c3c52db8017770b855361b0751
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
As part of composition switch, the device initiates
disconnect from the host by clearing the run/stop
bit of DCTL and initiates a connect by setting the run/stop bit.
But during this entire scenario the core is not reset
and there is a possibility of core caching the SETUP packets
from the previous session and giving this to the driver once the
run/stop bit is set leading to unintnented SETUP packets further
leading to stall on endpoint 0. This caused the endpoint 0 to
go into a bad state leading to enumeration failures.
Also, the databook clearly mentions that the soft reset has
to be issued before setting the run/stop bit to initialize a
conenct after a disconnect.
So, issue soft reset as part of composition switch to fix this
issue.
Change-Id: Id93bef710e7cdb67a6820cb4c9defecc5ad2a34e
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
Expand match criteria so that multiple OF nodes with
the same BDF will match with the correct PCI device.
OF node will have an optional compatible entry with
device and vendor ID, which will be matched to a PCI
device and vendor ID.
Change-Id: I6e654d5dbf55a05b4e1b6a60d5d87addc2cb14b9
Signed-off-by: Tony Truong <truong@codeaurora.org>
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Use kzalloc() to create a zero filled initial buffer for
ftrace minidump and boot logs.
Change-Id: I1655ad4bafea35335256c0f5eb9d7bf432c675f7
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
When the remote subsystem is bought out of reset and PMIC Glink
channel is opened up, PMIC Glink rpmsg driver is probed after
which it instantiates all its child(client) devices. During its
probe, these client devices start communicating to the remote
subsystem over PMIC Glink channel. However, there is a race
condition observed randomly where a transaction from a client is
failing because rpmsg_trysend() couldn't send the message to the
remote endpoint as the remote subsystem haven't queued up all Rx
intents. To make the communication robust for clients, switch to
use rpmsg_send() instead of rpmsg_trysend() which will wait until
the Rx intents are queued up.
Change-Id: Ia632efb420fa76face0aae6e039c3dcbf3e9517a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Add cat capabilities for PCIe rc_sel, base_sel, wr_offset,
wr_val, and wr_mask debugfs entries. This provide users a
convenient way to check values written and what options are
available.
Change-Id: I3cf3eb823479c33537966a737cfc2701dd2373e5
Signed-off-by: Tony Truong <truong@codeaurora.org>
Enable printing of rate limited RPMH debug information to indicate
transient RPMH communication issues for Lahaina debug. This config item
will not be enabled in perf builds.
Change-Id: Ic154bf62099b0c5ec52b2c3c5caf7023b0f049e2
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Let's us not worry about reporting RPM retries in perf builds. This
should help speed up the boot process.
Change-Id: Ia0d64e7da293bd8e77fd1484a714c8f21121e3fb
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Initialize rc just for sanity so that it is not used uninitialized in
the return path.
Fixes: 568fc7ac9b ("leds: qti-flash: Handle all-enabled led mask separately")
Change-Id: I77caac87781b7a2ad2de0ecb13c5b3cd9ca3707b
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
commit 59ff8848b2 ("usb: gadget: qdss: Use usb_ep_autoconfig()
instead of ss() variant") modified f_qdss to use the simple
usb_ep_autoconfig() helper, however this function has a caveat
that the passed in descriptor's wMaxPacketSize field gets updated
to be a maximum to 64 bytes. Hence, this function should not be
called with descriptors intended for high- or Superspeed usage
since they can support up to 512 or 1024 bytes for bulk endpoints.
Instead, call usb_ep_autoconfig() by passing in the FS descriptors,
and use the resulting bEndpointAddress assignment to update the
corresponding HS and SS descriptors.
Change-Id: I0b177d5d1075bc3e996f09a2db4699952cf0886d
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Added flag to differentiate between gsi db address or
ddr address.
Change-Id: I106e993a5e6a86b8d36009d73fa888a8167922c0
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
With non-canonical CFI, LLVM generates jump table entries for external
symbols in modules and as a result, a function pointer passed from a
module to the core kernel will have a different address.
Disable the warning for now.
Bug: 145210207
Signed-off-by: Daniel Mentz <danielmentz@google.com>
Change-Id: I576a07206a465902773481e51a84529f0ac2e84b
While reading the hyp logs few garbage characters were seen
due to invalid len computed. This patch fixes the issue by
properly computing the len.
Change-Id: I2e2f23d069ee45b0c57a7b673248b63eedaf7697
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
In some usecases AB votes may not be needed but governor
cannot suppress the AB measured on HW.
Provide use_ab tunable for userspace to drop AB vote.
Change-Id: Ib7734e06fa00f86eb536b63526c16212012b614d
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
With kmem event we were missing number of allocs and frees due
to high frequency of event occurrence. So added debugfs interface
to capture the slub alloc owners from slab list and it prints data
using sequential file interface when we execute the
"cat /sys/kernel/debug/slab/alloc_trace" command.
Change-Id: I72eb5a21cc20a046f04d88d4dfbafa5cf378805a
Signed-off-by: Faiyaz Mohammed <faiyazm@codeaurora.org>
This change adds a snapshot of the BLSP based HSUART driver
from kernel-4.19 baseline.
This is snapshot of BLSP based HSUART driver as of
msm-4.19 'commit af9bf852d063f62ded ("serial: msm_serial_hs:
set the DMA mask and the coherent DMA mask")'. Removed ICB
bus voting api's in serial driver and replaced them with
new ICC framework API's wherever applicable.
Change-Id: Id76e07f8e6831a84761c6112abb2018bbf2f4735
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Add support to expose msm_skin_therm sensor via QMI.
Change-Id: I7837c924456fc36867a9d6633c58d6c1e0aacda1
Signed-off-by: Gopala Krishna Nuthaki <gnuthaki@codeaurora.org>
This change enables synaptic dsx config for Lahaina target.
Change-Id: Id48fa69c3cca261b0a46a1146c44b1198bf55442
Signed-off-by: Fei Mao <feim1@codeaurora.org>
arm32 original logic:
1. allocated memory for page_ext(using memblock).
2. invoke the init callback of page_ext_ops like
page_owner(using buddy).
3. initialize buddy.
after this change:
1. allocated memory for page_ext(using memblock).
2. initialize buddy.
3. invoke the init callback of page_ext_ops like
page_owner(using buddy).
with the change, failure/dummy_handle can get its correct value.
Change-Id: I6598481299da115ff4be50bf0e5a61a012d5ac83
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
Disable LOCKUP_DETECTOR and DETECT_HUNG_TASK configs flags for
QGKI config fragment to avoid the power regressions and keep
these features enabled in consolidate config fragment.
Change-Id: I847726454614b55447a8d9a226ac38a68d5a369b
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
* remotes/origin/tmp-e32adae:
ANDROID: ABI: Update allowed list for QCOM
Revert "UPSTREAM: ehci-hcd: Move include to keep CRC stable"
Revert "ANDROID: Update android/abi_gki_aarch64.xml"
ANDROID: Update android/abi_gki_aarch64.xml
UPSTREAM: ehci-hcd: Move include to keep CRC stable
UPSTREAM: kbuild: use CONFIG_CC_VERSION_TEXT to construct LINUX_COMPILER macro
UPSTREAM: kbuild: do not pass $(KBUILD_CFLAGS) to scripts/mkcompile_h
UPSTREAM: kbuild: ensure full rebuild when the compiler is updated
ANDROID: abi: update for hikey960
ANDROID: dts: hi3660: Fix duplicate adv7533 nodes
ANDROID: kallsyms: ignore ThinLTO+CFI hash suffix in kallsyms_lookup_name()
ANDROID: Refresh ABI.xmls with libabigail 1.8.0-1dca710a
ANDROID: ABI: update allowed list for QCOM
ANDROID: KMI symbol lists: migrate section name
ANDROID: ABI: Update allowed list for GALAXY
ANDROID: hikey960_gki.fragment: Remove UFS and USB bits
ANDROID: lkdtm/usercopy: Use __va_function to find proper vm_mmap address
ANDROID: mm: add generic __va_function and __pa_function
ANDROID: vendor_hooks: Add hooks for debugging exception context
FROMGIT: mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary
Change-Id: I84ca8d4c3849984c3b18432e9e42136adf6c5d5c
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
- Add EXPORT_SYMBOL_GPL for find_task_by_vpid() so that drivers
can be loadable as a module.
- This API is required by loadable driver module from samsung to
read process related information based on pid and thread id.
To get information on when a certain process or thread was started,
duration of run, Average load contributed by it.
Signed-off-by: Abhilasha Rao <abhilasha.hv@samsung.corp-partner.google.com>
Bug: 158067689
Change-Id: I0db9cc50c93eedff0f3e9dea0ac09a5d17d118f0
(cherry picked from commit bee18dd57e89f4e7aa79f6054b9238b99e45c191)
- Add EXPORT_SYMBOL_GPL for runqueues().
- This API is required by loadable driver module,to get number of
jobs in the run queue (state R) or waiting for disk I/O (state D)
averaged over 1 min.
Signed-off-by: Abhilasha Rao <abhilasha.hv@samsung.corp-partner.google.com>
Bug: 158067689
Change-Id: I3e80a46bef2e7c92714b68cc5b6b617ac50bc478
(cherry picked from commit 6b0a9dc6df8d8be21c8d178a01e0711b0fe6ce73)
- Add EXPORT_SYMBOL_GPL for nsec_to_clock_t() so that drivers
be loadable as a module.
- This API is required by loadable driver module from samsung to
fetch process uptime based on CPU clock ticks to get the exact time
during which app is scheduled in user mode.
Signed-off-by: Abhilasha Rao <abhilasha.hv@samsung.corp-partner.google.com>
Bug: 158067689
Change-Id: I45be5fd7873dc7c21aa583313499f48f8b10bb1b
(cherry picked from commit 0575bec804810d9b8abf533c4ef4a957968553fc)
- Add EXPORT_SYMBOL_GPL for __lock_task_sighand()
- This API is required by loadable driver module from samsung to
Lock task structure, when reading task/process related information.
Signed-off-by: Abhilasha Rao <abhilasha.hv@samsung.corp-partner.google.com>
Bug: 158067689
Change-Id: Ia54e17b1f2630bcc648e7840cf36e743f08ba9c9
(cherry picked from commit a719abf03114cfc0b9f68937d9cd900d74d65cae)
- Add EXPORT_SYMBOL_GPL for thread_group_cputime_adjusted()
to allow drivers to be loadable as a module.
- This API is required by loadable driver module from samsung
to fetch process uptime based on CPU clock ticks to get the
exact duration of time app is scheduled in user mode.
Signed-off-by: Abhilasha Rao <abhilasha.hv@samsung.corp-partner.google.com>
Bug: 158067689
Change-Id: I1843de08edf5bb2eee806845f4b5e0a305da5fe7
(cherry picked from commit bf679b941237ae76d0bba8d98e670819e029847a)
- Add EXPORT_SYMBOL_GPL for get_avenrun() so that drivers
be loadable as a module.
- This API is required by loadable driver module
to get Number of jobs in the run queue (state R) or waiting
for disk I/O(state D) averaged over 1 min.
Signed-off-by: Abhilasha Rao <abhilasha.hv@samsung.corp-partner.google.com>
Signed-off-by: Todd Kjos <tkjos@google.com>
Bug: 158067689
Change-Id: I56c12c908be068f78e16004df876be3bee0e7229
(cherry picked from commit 64ea6f327359a90eca8ec9fe2a8f0caba0188e45)
This adds missing anonymous to union types, creating some one-time
churn.
Bug: 167563393
Change-Id: I08f55d48793870c6a82ff2c76d3460733ffdbe41
Signed-off-by: Matthias Maennich <maennich@google.com>
QCA6490 requires synchronization between BT and WLAN enable gpio
to avoid power up issue. Update platform driver to get BT enable
GPIO config and perform delayed WLAN enable if BT is off.
Change-Id: I77e5aa87b09128dbac41b59927f88f53fa4ddebd
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>
Since TWT indication messages requires QMI message forwarding
between IMS and WLFW, update platform driver for processing
the QMI indication in event workqueue.
Change-Id: I9fdb09a16ebcdc352e0354beae156658a32fdf99
Signed-off-by: Manikandan Mohan <manikand@codeaurora.org>