Commit Graph

802013 Commits

Author SHA1 Message Date
qctecmdr
ce8bff17a1 Merge "defconfig: msm: Enable bfq io scheduler as a default for bengal" 2019-09-12 15:41:04 -07:00
qctecmdr
ee486def3b Merge "msm: npu: Power off npu until cpc power is off" 2019-09-12 15:41:04 -07:00
qctecmdr
b978816fc1 Merge "block: use current active bfqq to update statistics" 2019-09-12 15:41:04 -07:00
qctecmdr
d9e8ee12c4 Merge "trace: Add new trace event for DCVSH" 2019-09-12 15:41:03 -07:00
qctecmdr
283b080238 Merge "msm: pcie: make PCIe DRV L1ss timeout configurable in devicetree" 2019-09-12 15:41:03 -07:00
qctecmdr
c511abcf8a Merge "msm: kgsl: Enable HW Preemption for Adreno A620" 2019-09-11 17:39:50 -07:00
qctecmdr
c49b1645dc Merge "defconfig: arm64: Enable KGSL driver for Bengal" 2019-09-11 17:39:49 -07:00
qctecmdr
703193426a Merge "msm: ipa: add the version check for FnR stats ioctl" 2019-09-11 17:39:49 -07:00
qctecmdr
e9ab30f651 Merge "power: smb1390: Turn off due to high SOC threshold only at start" 2019-09-11 17:39:48 -07:00
qctecmdr
ce42671b50 Merge "msm: ipa: Enable qmi send request to remove last connection" 2019-09-11 17:39:48 -07:00
qctecmdr
ed870c1726 Merge "sched: Improve the scheduler" 2019-09-11 17:39:47 -07:00
qctecmdr
3823c9df86 Merge "platform: qpnp-revid: Add REVID support for PM6125" 2019-09-11 17:39:47 -07:00
qctecmdr
65064d0a54 Merge "msm: ipa: Decrease refcount of the pages held in cache before freeing" 2019-09-11 17:39:46 -07:00
qctecmdr
4557bc77d9 Merge "wil6210: add debugfs to show PMC ring content" 2019-09-11 17:39:46 -07:00
qctecmdr
4280529b5e Merge "msm: pcie: disable PCIe CLKREQ override during PCIe DRV resume" 2019-09-11 17:39:45 -07:00
qctecmdr
6177997962 Merge "usb: dwc3: remove LPM L2 OUT interrupt" 2019-09-11 17:39:45 -07:00
qctecmdr
e91fe02624 Merge "pinctrl: qcom: Update the SDC2 and UFS offset for bengal" 2019-09-11 17:39:45 -07:00
qctecmdr
e2774e8140 Merge "mink: reset server id" 2019-09-11 17:39:44 -07:00
qctecmdr
5f889d0fff Merge "usb: gsi: Prevent enabling data path if gsi is disconnected" 2019-09-11 17:39:44 -07:00
qctecmdr
eac6c82e38 Merge "defconfig: msm: Enable harden branch predictor support for Bengal" 2019-09-10 12:15:28 -07:00
qctecmdr
f020f7cc0d Merge "cnss2: Expose QMI send related APIs" 2019-09-10 12:15:27 -07:00
qctecmdr
0cb703349d Merge "clk: qcom: debugcc: Add debug clock controller for Bengal" 2019-09-10 12:15:26 -07:00
qctecmdr
12163d9158 Merge "usb: dwc3: Increase the TxFIFO resize factor" 2019-09-10 12:15:23 -07:00
qctecmdr
a96aa2ce3b Merge "power: smb5: Remove FCC vote for wls pl charging" 2019-09-10 12:15:22 -07:00
Pradeep P V K
08f1936046 defconfig: msm: Enable bfq io scheduler as a default for bengal
Enable bfq io scheduler and its weight based blkio cgroup support
as default for bengal.

Change-Id: I504730a86f6a4caecfe94f091ae091a734635146
Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>
2019-09-10 18:14:00 +05:30
Pradeep P V K
1852d0be8d block: use current active bfqq to update statistics
Use the current active bfq-queue to update bfq-group statitics.

It could be possible that the current active serving bfq-queue can
expire if the allocated time/budget for the queue got expired.
During this time, it will select a new queue that to be served
for its service tree.

If there were no more queues to be served, then it will choose a
next group of queues to be served from its group service tree.

So, the selection of the new request from its new group and queue
are updated via __bfq_dispatch_request() fn.

As "in_serv_queue" variable is not updated again the group
associated with "in_serv_queue" queue can be freed, if there were
no more active queues.

So, with picking in_serv_queue as active queue, and updating its group
statistics one will see a kernel panic as below.

[  120.572960] Hardware name: Qualcomm Technologies, Inc. Lito MTP (DT)
[  120.572973] Workqueue: kblockd blk_mq_run_work_fn
[  120.572979] pstate: a0c00085 (NzCv daIf +PAN +UAO)
[  120.572987] pc : bfqg_stats_update_idle_time+0x14/0x50
[  120.572992] lr : bfq_dispatch_request+0x398/0x948

[  121.185249] Call trace:
[  121.187772]  bfqg_stats_update_idle_time+0x14/0x50
[  121.192700]  bfq_dispatch_request+0x398/0x948
[  121.197187]  blk_mq_do_dispatch_sched+0x84/0x118
[  121.198270] CPU7: update max cpu_capacity 1024
[  121.206504]  blk_mq_sched_dispatch_requests+0x130/0x190
[  121.211873]  __blk_mq_run_hw_queue+0xcc/0x148
[  121.216359]  blk_mq_run_work_fn+0x24/0x30
[  121.220489]  process_one_work+0x328/0x6b0
[  121.224619]  worker_thread+0x330/0x4d0
[  121.228475]  kthread+0x128/0x138
[  121.231806]  ret_from_fork+0x10/0x1c

To avoid this, always use the current active bfq-queue, which is
derived from the current active serving request.

Change-Id: I51d5b9d2020da9f3a3a31378b06257463afd08eb
Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>
2019-09-10 16:10:31 +05:30
Taniya Das
c705e73ff1 trace: Add new trace event for DCVSH
Add trace to capture DCVSH updates to sched.

Change-Id: I57201ab0e41931cffe121c6ab18c46b1f26f250e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2019-09-10 14:06:04 +05:30
Taniya Das
1756090f47 cpufreq: qcom: Add support to register for Limits Management interrupt
Update the scheduler with the frequency cap due to limits management
interrupt and update back when limits throttling is removed.

Change-Id: Iebf4033757853bedbd60f83e21176ff29389aff8
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2019-09-10 14:05:56 +05:30
Pavankumar Kondeti
2508aa54fb sched: Improve the scheduler
This change is for general scheduler improvement.

Change-Id: If1ee58a8ed59e4a9ee25dfa6fa2a1c1654e00e6d
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2019-09-10 09:14:40 +05:30
qctecmdr
9b483b27eb Merge "media/dvb: Fix compilation error when SDMX path enabled" 2019-09-09 19:51:28 -07:00
qctecmdr
f2ba9abc93 Merge "power: qpnp-qg: Add support for multi profile loading" 2019-09-09 19:51:27 -07:00
qctecmdr
3d69e5398b Merge "msm: adsprpc: add support for LLC allocation" 2019-09-09 19:51:26 -07:00
qctecmdr
6c912b495b Merge "defconfig: msm: Add perf defconfig for Bengal" 2019-09-09 19:51:25 -07:00
qctecmdr
6c5956b1e6 Merge "soc: qcom: spss_utils: read spu uefi apps calculated cmac" 2019-09-09 19:51:24 -07:00
qctecmdr
37b19336b7 Merge "cnss2: Add debugfs entry for IO coherency" 2019-09-09 19:51:23 -07:00
qctecmdr
c2ba663c2d Merge "arm64: cputype: Add Kryo2xx series of the Gold and Silver CPU parts" 2019-09-09 19:51:22 -07:00
qctecmdr
959cbcf5ea Merge "wil6210: Add EDMG channel support" 2019-09-09 19:51:21 -07:00
qctecmdr
a300734b8a Merge "power: qpnp-qg: Update QG parameter reporting for debug_board" 2019-09-09 19:51:20 -07:00
qctecmdr
e04f4992ea Merge "qseecom: create shmbridge for ion user contig heap" 2019-09-09 19:51:19 -07:00
qctecmdr
80201b264d Merge "usb: pd: Don't retry sending Source Capabilities if PD capable" 2019-09-09 19:51:17 -07:00
qctecmdr
60ef852567 Merge "tty: Fix use-after-free of echo_delayed_work member from tty_struct" 2019-09-09 19:51:16 -07:00
qctecmdr
d242a778a8 Merge "msm: npu: Use different release function for register read node" 2019-09-09 19:51:16 -07:00
qctecmdr
20f7fa8ab2 Merge "clk: qcom: Update fmax and frequency table for hm0_clk_src clock" 2019-09-09 19:51:15 -07:00
Bojun Pan
476734e486 msm: ipa: add the version check for FnR stats ioctl
Add version check for FnR stats ioctl and error return,
since only IPA4.5+ HW will support this feature.

Change-Id: If5c5021d16bc1ee6af516d9e2200c3e6b5081d27
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-09-09 16:42:22 -07:00
Michael Adisumarta
cbb12b2e9c msm: ipa: Enable qmi send request to remove last connection
Change the if condition to be inclusive to allow remove_offload
ioctl to send the rmv_offload_request through qmi on the last
connection.

Change-Id: I6eec7799fd1a76ab168bc588b3e9c74dbfd215fd
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2019-09-09 16:25:57 -07:00
Guru Das Srinagesh
123a8dfdee power: smb1390: Turn off due to high SOC threshold only at start
Currently, Battery SoC exceeding a user-configurable threshold causes
the SMB1390s to turn off in the following conditions via
SOC_LEVEL_VOTER:
- Upon initial bootup, and
- After initial bootup if charging mode is Constant-Voltage (CV).

Remove the second condition. Now, a high SoC threshold will cause the
SMB1390s to turn off only at bootup. This rule applies to both CV and
Constant-Current (CC) charging modes, irrespective of whether the output
topology is VPH or VBATT.

In addition, if the SoC falls below the threshold after bootup, remove
vote from SOC_LEVEL_VOTER. Without this, CPs will never get re-enabled
if they get disabled by SOC_LEVEL_VOTER upon bootup.

Change-Id: If0ce2661f25fd227cbe969fdbed468236806238f
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2019-09-09 15:46:04 -07:00
Guru Das Srinagesh
62839c2fef power: smb5: Remove FCC vote for wls pl charging
FCC_STEPPER_VOTER votes for 1.5 A upon USB removal so that FCC can ramp
up from 1.5 A, which results in faster ramp-up time. Remove that upon DC
plugin so that FCC can rise.

With 'commit 148ea9f34f ("power: smb5: Limit main charger's current
for VBATT wls pl charging")' FCC_MAIN was limited to 1 A. But now the
limiting action is performed by an override vote from userspace. The
FCC_MAIN vote is nevertheless retained for the speed of its response,
which kicks in much before userspace has the chance to cast its vote.

Change-Id: I13cd7ef467b6803633d1001fc702934a20a5e785
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2019-09-09 15:45:34 -07:00
Tony Truong
2955ad3457 msm: pcie: make PCIe DRV L1ss timeout configurable in devicetree
Every client have different requirements for when to enter L1ss
sleep. Add support to configure the DRV L1ss timeout in
devicetree.

Change-Id: I3f2b3f65a0ff9511ec738c6fd681a03c32048955
Signed-off-by: Tony Truong <truong@codeaurora.org>
2019-09-09 11:45:45 -07:00
Yuanyuan Liu
9830ab7c35 cnss2: Add debugfs entry for IO coherency
Add debugfs entry for enable/disable IO coherency.

Change-Id: I388ad0c547b0c86843afcf31e77b4de9cfaa4c3a
CRs-Fixed: 2523919
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2019-09-09 10:53:23 -07:00
Amol Jadi
1b28753a30 msm: adsprpc: add support for LLC allocation
Set appropriate dma attribute for LLC allocation based on incoming
request.

Change-Id: I3d4a938d2404f720910b567b50ec8c685d500c17
Signed-off-by: Amol Jadi <amoljadi@codeaurora.org>
2019-09-09 10:43:28 -07:00