Commit graph

889,574 commits

Author SHA1 Message Date
qctecmdr
414e4eab87 Merge "defconfig: Enable TouchScreen for holi target" 2020-07-25 10:33:07 -07:00
qctecmdr
5bb01a933f Merge "drivers: thermal: regulator-cdev: Snapshot of regulator cooling device" 2020-07-25 10:33:06 -07:00
qctecmdr
dcf461e106 Merge "kernel: sound: remove decoder structure definition" 2020-07-25 10:33:06 -07:00
qctecmdr
e2300e65af Merge "power: supply: qti_battery_charger: Keep device awake during notification" 2020-07-25 05:28:33 -07:00
qctecmdr
713d457dd8 Merge "clk: qcom: gcc-lahaina: Update video_axi clks to clk_branch2_force_off_ops" 2020-07-25 05:28:32 -07:00
qctecmdr
2d79ce50e8 Merge "clk: qcom: gcc-shima: Update video_axi clks to clk_branch2_force_off_ops" 2020-07-25 05:28:32 -07:00
qctecmdr
cb0f69cb82 Merge "scsi: ufs-qcom: Skip getting fsm state in dme context" 2020-07-25 05:28:31 -07:00
qctecmdr
bf2fe2b10e Merge "dwc3: gadget: Don't perform SET XFER resource with USB GSI endpoint" 2020-07-25 05:28:30 -07:00
qctecmdr
110a3de4c5 Merge "scsi:ufs: Keep UFS's high power mode when bkops enabled" 2020-07-25 05:28:30 -07:00
qctecmdr
fefc08c046 Merge "ufs: ufs-qcom: add device quirk for Micron to avoid OCP" 2020-07-25 05:28:29 -07:00
qctecmdr
144969d49c Merge "defconfig: msm: enable remote debugger driver" 2020-07-25 02:58:24 -07:00
qctecmdr
b9028a4dc6 Merge "soc: qcom: pil: Do not do complete ramdump for minidump elf32" 2020-07-25 02:58:23 -07:00
qctecmdr
7d160a1847 Merge "ABI: Update snapshot with CRC information" 2020-07-24 22:04:31 -07:00
Lina Iyer
40d93f100f drivers: pinctrl: sdxlemur: add GPIO PDC map
Add GPIO pins that are routed to PDC interrupt controller and can be
used as wakeup capable GPIOs.

Change-Id: If2044dfe89f7593ee3a6fd843866d4f86f3f42a6
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2020-07-24 21:30:45 -07:00
Lina Iyer
930b53c4f8 defconfig: enable power management functionality for sdxlemur
Enable PDC, RPMH, LPM, Master/SoC sleep stats, CommandDB modules for
sdxlemur.

Change-Id: I8e3f6aa2fdff3653352dd653d60a29af06f95b8a
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2020-07-24 21:30:31 -07:00
Sudarshan Rajagopalan
e44f87c449 soc: qcom: mem-offline: log additional time stats
With active-mode memory offlining, it would be helpful to track the
total Online and Offline times of each blocks and determine percentage
of time they have been in that state.
This patch adds the below additional stats:
   - current state of each blocks.
   - total Online and Offline time of each blocks.
   - percentage of total system runtime that blocks were in Online
     and Offline state.
   - total overall percentage of time all blocks were in Online
     and Offline state.

Also, change the sysfs node from 'perf_stats' to 'stats'.

Change-Id: Ie18ad68194df8c7702dc496821c4f680d15486ce
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
2020-07-24 19:03:04 -07:00
qctecmdr
cb65dc2405 Merge "interconnect: qcom: Add interconnect provider driver for Holi" 2020-07-24 13:58:29 -07:00
qctecmdr
0335c137a1 Merge "NFC: Enable NFC driver in the GKI build" 2020-07-24 13:58:29 -07:00
qctecmdr
6ae2b201ee Merge "defconfig: holi: Enable dispcc and debugcc" 2020-07-24 13:58:29 -07:00
qctecmdr
20d60aee97 Merge "usb: dt-bindings: Add USB QMP PHY registers definition" 2020-07-24 13:58:28 -07:00
qctecmdr
05449c45eb Merge "msm: kgsl: Make sure first boot sequence is complete during touch event" 2020-07-24 13:58:28 -07:00
qctecmdr
a5bfd60250 Merge "phy: ufs: Add UFS PHY support for Holi" 2020-07-24 13:58:27 -07:00
qctecmdr
aa27bd9421 Merge "net: qrtr: ns: Change to ratelimited prints" 2020-07-24 13:58:27 -07:00
Subbaraman Narayanamurthy
ab0ec461ec power: supply: qti_battery_charger: Keep device awake during notification
With charger mode enabled in android, device boots into charger
mode when it is powered on with USB insertion. In this mode,
health HAL and charger service handles the power supply uevents
sent from power supply framework to take certain actions. For
example, when the USB or travel adapter (TA) is removed, device
would shut down in 10 seconds.

With a TA connected, device can enter suspend whenever possible
during charging. When the TA is removed after the device has
entered suspend, device comes out of suspend upon the notification
received from charger firmware (CHGFW) over PMIC Glink. Battery
charger driver handles this and calls power_supply_changed on one
of the power supply devices. However, before this uevent is
received and handled by charger service in the userspace, device
can enter suspend immediately.

In a low power discharging state, device stays in this state for
minutes until it gets another notification from CHGFW for battery
power supply, a periodic event which makes charger service to
initiate a shutdown. This conflicts with the user expectation
where the device has to shutdown in 10 seconds upon TA removal.

Workaround this problem by keeping the device awake for at least
50 ms when a notification is received from CHGFW. This way,
userspace process like charger could get a chance to receive and
handle the power supply uevents.

Change-Id: I9ea78eb6565988ffac0e6c5eee1ccae8dc7e3e3a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-07-24 12:48:00 -07:00
Mayank Rana
ad8d260c33 usb: dwc3: gadget: Check controller status with endpoint enable/disable
Some USB function driver (e.g. mass storage) performs USB endpoint enable
and disable functionality from worker thread context instead of composite/
controller work context. This may result into endpoint enable/disable
racing against USB controller low power mode functionality with USB cable
disconnect. This race may result into unclock register access. Hence fix
this issue by checking USB controller status and perform resume/autosuspend
with endpoint disable whereas return -EINVAL with endpoint enable if USB
controller is suspended (in low power mode).

Change-Id: I76cd75fc90b52ceefe099f48be6c880c04136301
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2020-07-24 12:18:42 -07:00
Neeraj Upadhyay
d7b8ff66af soc: qcom: pil: Do not do complete ramdump for minidump elf32
If minidump is configured to be ELF32, avoid using complete
ramdump property, so that only the required segments area is
dumped.

Change-Id: I34fe359204309fda47d0a665ca641cb042d87054
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2020-07-25 00:23:57 +05:30
Patrick Daly
62a31c82e2 iommu-debug: Remove calls to iommu_enable_config_clocks
The iommu driver is responsible for enabling the required clocks
for map/unmap operations, not clients.

For the fastmap case, clocks are theoretically left enabled forever
after the initial attach, although in practice this does not occur
because there are no clocks required for Apps smmu.

Change-Id: Ibdfced1f62c79fbb3234d80bc9c65808d818c27a
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2020-07-24 11:40:55 -07:00
Patrick Daly
698e136164 iommu-debug: Remove trigger-fault functionality
Deprecate this option in favor of CONFIG_ARM_SMMU_SELFTEST

Change-Id: Ic5014c4bef9bb3d509bef20443281f1b57612096
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2020-07-24 11:40:55 -07:00
Patrick Daly
031eda4b53 io-pgtable-fast: Remove av8l_fast_cfg
Fastmap uses the same page table format as arm_lpae_s1_cfg,
so they can share the same data structure format. Additionally,
arm-smmu.c *assumes* that struct arm_lpae_s1_cfg is in use.

This has not caused any issues so far because the formats of
av8l_fast_cfg and arm_lpae_s1_cfg are sufficiently similar.

Change-Id: I93dc42f82d988318af35125df3a5fa0739ebae6a
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2020-07-24 11:40:54 -07:00
Patrick Daly
c87e65b5db defconfig: Enable MM defconfigs for sdxlemur
Enable ZRAM, as well as slub freelist randomization.

Change-Id: I15f248b4ac11353c90b8bb4d60073ce033357f64
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2020-07-24 11:40:53 -07:00
Patrick Daly
afb2fe3b88 defconfig: Enable Ion for sdxlemur
Enable the ion memory manager, which allows both kernel and
userspace clients to allocate buffers from specific memory regions.

Change-Id: Ie583cbf6b8836e1b4459bcd27399a965384d6a52
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2020-07-24 11:40:53 -07:00
Patrick Daly
ac2b8a2c22 defconfig: Enable CONFIG_ARM_SMMU for sdxlemur
Enable the ARM smmu driver, and its associated debugfs.

Change-Id: I6249b155a02299d6e5e3b6da807d7936c5f89736
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2020-07-24 11:40:48 -07:00
Greg Kroah-Hartman
241e487620 ANDROID: GKI: enable CONFIG_SCSI_UFS_BSG=y
It is needed for many UFS devices, so build it in so that devices can
boot properly :)

Bug: 162046707
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I3c8d57dafbf985533e7d5b0977aaa8155cc34cf3
2020-07-24 20:30:39 +02:00
Siddharth Gupta
663f3e928f ABI: Update snapshot with CRC information
Update the ABI snapshot version with the release of the new feature in
libabigail which also does CRC checks.

Change-Id: I0112a733015f608d53351c96a56f86e9086aee76
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
2020-07-24 10:30:38 -07:00
Neeraj Upadhyay
b82c85fc28 soc: qcom: pil: Add property to change minidump ELF format
Add a new property, to dump minidump ELF in ELF32 format,
as some subsystems do not support the default format,
which is ELF64.

Change-Id: I87bc46097b4dfc0be44f0904823c5e88c476c86b
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2020-07-24 21:12:42 +05:30
mtk81325
5d8ccd53ac ANDROID: Incremental fs: magic number compatible 32-bit
Incfs's magic is bigger than 32-bit, but super block structure's
s_magic is unsigned long which is 32-bit in ARM 32-bit platform.

Do the cast for magic!

Bug: 159772865
Signed-off-by: Peng Zhou <Peng.Zhou@mediatek.com>
Signed-off-by: mtk81325 <peng.zhou@mediatek.com>
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: Iae4f38774440c7d6ae44529d4f0f8ebb2ec5dacc
2020-07-24 15:09:38 +00:00
qctecmdr
cf47a88635 Merge "scripts: gki: Disable DEBUG_FS for user variant builds" 2020-07-24 05:35:52 -07:00
qctecmdr
e140d708bc Merge "cpuidle: lpm-levels: Remove dependency on QGKI" 2020-07-24 05:35:52 -07:00
qctecmdr
7eeabad75c Merge "arm64: defconfig: remove mass storage as module" 2020-07-24 05:35:51 -07:00
qctecmdr
c08fc62dee Merge "mm/oom_kill: Online memory before running oom-killer" 2020-07-24 05:35:51 -07:00
qctecmdr
bccedceede Merge "scsi: ufs: Support query the spm/rpm level from device tree" 2020-07-24 05:35:51 -07:00
qctecmdr
6a0fedb06d Merge "pinctrl: set gpio 4 and 5 for qup14" 2020-07-24 05:35:50 -07:00
qctecmdr
0cfa8998e3 Merge "clk: qcom: clk-alpha-pll: Add support for Lucid EVO PLL" 2020-07-24 05:35:50 -07:00
qctecmdr
5c84a3c750 Merge "mhi: core: Error handling for pending packets in mission_mode" 2020-07-24 05:35:49 -07:00
Naveen Yadav
0388ef029e cpufreq: qcom-cpufreq-hw: Add support for CPUFreq hardware debug
Add support to print the perf state, pstate status and cycle
counter status registers for various frequency domain and notifier
to print cpufreq hardware debug registers during crash.

Change-Id: I043f5a29869f505adf49e6adb62035ceb04d810a
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
2020-07-24 16:37:45 +05:30
Prakash Gupta
2561f74cc5 soc: qcom: mem-offline: add pasr support for rpm-smd based targets
Some targets have RPM than RPMh controllers where the message format to the
controller is different.
Add support for it.

Change-Id: Icb1056badac7ef17df2a52a5f725d9f8aa96503e
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
[guptap@codeaurora.org: resolve trivial merge conflicts.]
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
2020-07-24 13:56:10 +05:30
Manoj Prabhu B
e708f3a6ad memshare: Support hot plug detection for memshare
Add support for hot plug detection when memshare driver
is dynamically loaded.

Change-Id: I2f875c06778e4be9ffce234cec48f8fd4b4491a8
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2020-07-24 12:59:46 +05:30
Pavankumar Kondeti
1f833081fb sched/tracing: GKI friendly long preempt/irq disable traces
Hook into preemptirq trace points and print the call stacks of
scenarios where preemption/irqs is disabled for more than
a use configured threshold. The threshold tunables are available
under /proc/sys/preemptirq directory. All the units are in nano seconds.

The following commands can be used to enable the trace. The stacktrace
trigger prints the stacktrace when the trace event is printed.

echo 1 > /d/tracing/events/preemptirq_long/enable
echo stacktrace > /d/tracing/events/preemptirq_long/preempt_disable_long/trigger
echo stacktrace > /d/tracing/events/preemptirq_long/irq_disable_long/trigger

Sample output is copied below. Note that this format works with both systrace
and commandline ftrace utilities.

   init-1     [005] d..2   187.905211: irq_disable_long: delta=15244480(ns)
   init-1     [005] d..3   187.905216: <stack trace>

 => test_irq_disable_long
 => trace_irq_enable_rcuidle
 => trace_hardirqs_on
 => console_unlock
 => vprintk_emit
 => devkmsg_emit
 => devkmsg_write
 => do_iter_readv_writev
 => do_iter_write
 => do_writev
 => __arm64_sys_writev
 => el0_svc_common
 => el0_svc_handler
 => el0_svc

   kworker/u16:4-419   [000] .N.2   187.905221: preempt_disable_long: delta=4923646(ns)
   kworker/u16:4-419   [000] .N.3   187.905226: <stack trace>
 => test_preempt_disable_long
 => trace_preempt_enable_rcuidle
 => trace_preempt_on
 => preempt_count_sub
 => perf_event_read
 => __perf_event_read_value
 => perf_event_read_value
 => memlat_monitor_work
 => process_one_work
 => worker_thread
 => kthread
 => ret_from_fork

Change-Id: If87a8d65359632b93da10b691e9b83e37000aeb3
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2020-07-24 12:40:43 +05:30
Raghavendra Kakarla
602ce57915 lpm-levels: Add RIMPS timer base rail/PLL turn off functionality
This patch adds the logic to enable the RIMPS timer based
rail-pc trigger functionality. This patch programs the RIMPS
timer when each core of corresponding clock domain entering
into the rail-pc LPM and enables the RIMPS timer feature so
that RIMPS allows to turn off rail/PLL based on the timer
threshold and timeout values.

Change-Id: Ib3589933d339a7224147a7c7afc006f260d8205b
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>
2020-07-23 22:34:53 -07:00
qctecmdr
e5d856962d Merge "rpmsg: glink: Update signals interface" 2020-07-23 19:13:20 -07:00