Commit graph

889,357 commits

Author SHA1 Message Date
Branden Bonaby
d71acda6dc soc: qcom: Remove watchdog percpu interrupts
Refactor watchdog core to remove the bark percpu
interrupt as it is deprecated and no longer used
by the watchdog.

Change-Id: Idbd959a7b42895d72f4f812057304687f7aca948
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:17:25 -07:00
Branden Bonaby
2492da5ed7 soc: qcom: Remove unused member variables
Refactor watchdog core to remove unused member
variables in the watchdog data structure.

Change-Id: I3a83fdb291064f25721549a3fe70f97629c148b4
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:17:10 -07:00
Branden Bonaby
6bf6e305d3 soc: qcom: Remove unused macros
Refactor watchdog core to remove unused macro constants.

Change-Id: If8517c2c5be519393b8c0394034554533952abd1
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:17:01 -07:00
Branden Bonaby
70ca2d9b82 soc: qcom: Remove watchdog slack accounting
Refactor watchdog core to remove dead code. Specifically,
the slack variables from the watchdog data structure and
the pet function that uses them. Currently these variables
are not used and can be refactored to simply reset the
watchdog counter directly.

Change-Id: Ie184e2826ed790288a94dfebf578ec99b53831e8
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:16:38 -07:00
Branden Bonaby
caf6b22e22 arm64: defconfig: Add watchdog core config
Add the config for the  core watchdog framework.

Change-Id: Idfde28614cb5d7ac239c193ff6374ad5b753e366
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:16:08 -07:00
Branden Bonaby
54100ecff9 soc: qcom: Rename msm watchdog to wdt core
In preparation to change the qcom watchdog to a new core
framework that future watchdog drivers will utilize, the name
of the file needs to be changed. Due to the number of changes
needed in the file we need to rename it to reflect its new purpose.

Change-Id: Iac6ad57fbc02866f6716a44d7bb4a62d97e4a810
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:16:00 -07:00
Branden Bonaby
cce9844ff5 soc: qcom: Remove msm watchdog config
Remove qcom watchdog config in preparation for the
creation of the watchdog core.

Change-Id: I964285a5ad06dc5753756d821bd0f4fc1d664739
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
2020-08-18 12:15:36 -07:00
qctecmdr
cef19e9ec9 Merge "msm: kgsl: skip if requested address doesn't fall in the svm range" 2020-08-18 07:04:31 -07:00
qctecmdr
5927fac03f Merge "soc: qcom: add microdump collector" 2020-08-18 04:33:28 -07:00
qctecmdr
216a9df69f Merge "usb: xhci: Reduce command abort handshake timeout" 2020-08-18 04:33:28 -07:00
qctecmdr
4cf691d25d Merge "mhi: core: Set bhi and bhie to NULL upon power down" 2020-08-18 04:33:28 -07:00
qctecmdr
53582a2632 Merge "msm: kgsl: Mark the scratch buffer as privileged" 2020-08-18 04:33:27 -07:00
Hemant Kumar
3e0d1c8b21 mhi: core: Set bhi and bhie to NULL upon power down
Set the bhi and bhie pointers to NULL as part of clean
up. This makes sure that stale pointers are not accessed
in case the bhi or bhie is failed to initialize during
power up.

Change-Id: Iddbd3a8234ff4d384ab03081479d55faf10d9443
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2020-08-17 23:18:36 -07:00
Shawn Shin
3eadb769c6 soc: qcom: add microdump collector
Collects data from SMEM region when modem crashes
and stores it under /dev to expose to user space.

Change-Id: I6b79a2ea7f7d9d7507e8c44dd1d385a185759ac1
Signed-off-by: Shawn Shin <shshin@codeaurora.org>
2020-08-17 21:52:12 -07:00
qctecmdr
4c39afb36f Merge "drivers: thermal: don't reset ops pointer in of-thermal sensor unregister" 2020-08-17 21:17:59 -07:00
qctecmdr
5277fb38c4 Merge "sched/walt: Improve the scheduler" 2020-08-17 21:17:58 -07:00
qctecmdr
18046fc5a8 Merge "msm: kgsl: Add clocks to access KGSL SMMU register space" 2020-08-17 17:03:51 -07:00
qctecmdr
627cf1be0c Merge "clk: qcom: rpmh: Add support for RPMH clocks for sdxlemur" 2020-08-17 17:03:50 -07:00
qctecmdr
7fcf64dcc2 Merge "defconfig: Add support for ARM_APPENDED_DTB for sdxlemur" 2020-08-17 17:03:50 -07:00
qctecmdr
214b829cea Merge "cnss2: Check for FW / IMS status for WFC QMI messages" 2020-08-17 17:03:50 -07:00
qctecmdr
5395c50952 Merge "abi: Update qcom whitelist for netdev_update_features" 2020-08-17 17:03:49 -07:00
qctecmdr
52576b3bfe Merge "scsi: ufs: Add UFS_DEVICE_QUIRK_PA_HIBER8TIME quirk" 2020-08-17 17:03:49 -07:00
qctecmdr
296c1494f0 Merge "arch: arm64: Add RCU related configs for lahaina" 2020-08-17 17:03:48 -07:00
Raghavendra Rao Ananta
7c6e5b50c6 arch: arm64: Add RCU related configs for lahaina
Enable RCU NOCB_CPU and FAST_NO_HZ options for the lahaina. These configs
are needed to avoid frequent cpu wake up for processing rcu callbacks.

Whenever LPM governor driver has requested for sleep length
tick_nohz_get_sleep_length tries to find the next event from
tick_nohz_next_event function.

static ktime_t tick_nohz_next_event(struct tick_sched *ts, int cpu)
{
...
        if (rcu_needs_cpu(basemono, &next_rcu) || arch_needs_cpu() ||
            irq_work_needs_cpu() || local_timer_softirq_pending()) {
                next_tick = basemono + TICK_NSEC;
        } else {

tick_nohz_next_event calls rcu_needs_cpu to find whether future
non-offloaded RCU-related work need to be done by the current CPU
or not. If any non-offloaded future callbacks are present rcu
framework requests the cpu to wake up for every tick period to
process the callbacks.

When CONFIG_FAST_NO_HZ is defined rcu_needs_cpu function checks whether
any callbacks are ready to process or not. If there are no ready
call backs and no non-offloaded callbacks pending for this CPU, RCU
doesn't need the CPU and returns KTIME_MAX for sleep length. Another
important thing is that, if CPU has lazy callbacks or future non-offload
RCU callbacks, rcu framework try to advance those callbacks and allows
the CPU to enter dyntick-idle mode.

RCU_NOCB_CPU config option helps to offload callback invocation from
the set of CPUs to kthread ("rcuox/N") and reduce OS jitter for
aggressive high performance computing workloads.

Change-Id: I47cdd2a3528e3a447a6909bf3f840ee8a3dd4b1e
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-08-17 14:28:36 -07:00
qctecmdr
67629947f6 Merge "arm: defconfig: Remove I3C driver support" 2020-08-17 14:28:17 -07:00
qctecmdr
653c55aeb1 Merge "msm: kgsl: Correctly clean up dma buffer attachment in case of error" 2020-08-17 14:28:17 -07:00
qctecmdr
a05f38a3be Merge "clk: qcom: gcc-lahaina: Enable clocks for pm8008 by default" 2020-08-17 14:28:17 -07:00
qctecmdr
e0a3bc6a40 Merge "msm: kgsl: Kick dcvs in idle thread for gmu targets" 2020-08-17 14:28:16 -07:00
qctecmdr
07ccc41cfc Merge "msm: adsprpc: Race conditions when handling the ADSP SSR" 2020-08-17 14:28:16 -07:00
qctecmdr
9f148ff2fe Merge "input: touchscreen: synaptics_tcm: defer probe if panel not found" 2020-08-17 14:28:16 -07:00
Asutosh Das
8941234ea1 scsi: ufs: Add UFS_DEVICE_QUIRK_PA_HIBER8TIME quirk
This adds the quirk to increase the hibern8 timeout
on the host.

Change-Id: I716124224d67942e257e17e7482ce9f32b8a5744
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2020-08-17 10:54:45 -07:00
Manaf Meethalavalappu Pallikunhi
9b7dfe02f6 drivers: thermal: don't reset ops pointer in of-thermal sensor unregister
The thermal zone ops pointer is allocated and initialized during
building thermal zone at early boot. The framework expects this
variable is valid as long as that thermal zone exist. Later if
a sensor is registered to thermal zone and then unregistered the
same due to some reason, it resets this thermal zone ops variable.
It leads to unexpected behaviour whenever thermal framework tries
to use it.

Don't reset thermal zone ops variable during of-thermal sensor
unregister context.

Change-Id: I468cdfe08f4cde3fb1258ca335fe2ee8b457e014
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2020-08-17 20:00:33 +05:30
qctecmdr
49eed0fdf5 Merge "msm: kgsl: Fix GBIF Halt ack timeout for a619_holi" 2020-08-17 03:53:41 -07:00
qctecmdr
d3a8cb033c Merge "msm: kgsl: Fix GMEM base for A615 family GPUs" 2020-08-17 03:53:41 -07:00
qctecmdr
9fa4e103d2 Merge "leds: qti-flash: Handle error return path properly" 2020-08-17 03:53:40 -07:00
qctecmdr
a553896366 Merge "USB: gadget: composite: Allow bMaxPower=0 if self-powered" 2020-08-17 03:53:40 -07:00
qctecmdr
3f31685c9d Merge "arm64: defconfig: Enable eMMC/SD card on holi" 2020-08-17 03:53:39 -07:00
qctecmdr
bc92334730 Merge "msm: adsprpc: Clean buffers on remote invocation failure" 2020-08-17 03:53:38 -07:00
Hemant Kumar
9096efd463 usb: xhci: Reduce command abort handshake timeout
Once command completion times out (5 sec), command
abort operation is currently perfomed with local irq
disabled and spinlock held for 5 sec timeout. In case
xHC becomes unresponsive for some reason this results
into watchdog bark. Hence reduce timeout value from 5
sec to 1 sec to initiate recovery faster.

Change-Id: I1383721ce1d25bc40fb0e7620135fafcba6d5640
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2020-08-17 03:06:26 -07:00
Puranam V G Tejaswi
92e89ccd38 msm: kgsl: Correctly clean up dma buffer attachment in case of error
In kgsl_ioctl_gpuobj_import(), user memory of type KGSL_USER_MEM_TYPE_ADDR
can also lead to setting up a dma buffer. When attaching mem entry to
process fails, dma buffer attachment is cleaned up only in case of
KGSL_USER_MEM_TYPE_DMABUF. Similar situation can arise in case of
kgsl_ioctl_map_user_mem(). Fix this by obtaining user memory type from
the memdesc flags.

Change-Id: I502bd0ae19241802e8f835f20391b2ce67999418
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2020-08-17 15:19:20 +05:30
Mukesh Kumar Savaliya
a5265d1775 arm: defconfig: Remove I3C driver support
Disable I3C support for lahaina as its not PORed.

Change-Id: I312def43199d64f117a066461d63286998b2aae0
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2020-08-17 02:20:10 -07:00
qctecmdr
c195799cd1 Merge "clk: qcom: gcc: update frequency table for csi3phytimer clock" 2020-08-17 01:14:52 -07:00
qctecmdr
6ef77b6e6b Merge "dt-bindings: clock: Add rpmh header for sdxlemur" 2020-08-17 01:14:52 -07:00
qctecmdr
4835e3b861 Merge "clk: qcom: clk-debug: Fix clk measurement algorithm" 2020-08-17 01:14:51 -07:00
qctecmdr
65fdc492da Merge "cnss: Add code to migrate from debugfs node to sysfs node" 2020-08-17 01:14:51 -07:00
qctecmdr
7b80147165 Merge "kernel: time: Fix accuracy for low resolution timer" 2020-08-17 01:14:51 -07:00
qctecmdr
677fadb0a1 Merge "input: touchscreen: st: increase LDO load" 2020-08-17 01:14:50 -07:00
qctecmdr
f12a222611 Merge "spi: spi-msm-geni: Return error if setup transfer fails" 2020-08-17 01:14:50 -07:00
qctecmdr
7f81a39871 Merge "mhi: cntrl: Update device MMIO region length for MHI core" 2020-08-17 01:14:50 -07:00
qctecmdr
e878519f09 Merge "msm_rtb: Don't lose the __user tag on relaxed reads/writes" 2020-08-17 01:14:49 -07:00