Commit graph

899,211 commits

Author SHA1 Message Date
Jagadeesh Kona
f622aa8eeb cpufreq: qcom-cpufreq-hw: Move CPUFreq HW registers entry to sysfs
Move the logging of CPUFreq HW debug registers from debugfs to
sysfs under /sys/kernel/qcom-cpufreq-hw.

Change-Id: I2d23052d013125ee69de852dcec621c104f0d50a
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
2021-06-16 03:09:55 -07:00
qctecmdr
1eb2027a42 Merge "clk: qcom: clk-cpu-sdxlemur: Use correct PLL ops" 2021-06-15 09:08:06 -07:00
Mike Tipton
162fb9a267 clk: qcom: clk-cpu-sdxlemur: Use correct PLL ops
The SDXLEMUR CPU PLL uses a non-standard sequence for latching new
configurations. Using the standard lucid_5lpe ops for this PLL means the
latch won't be asserted and the PLL will run at the original frequency
from before the update.

Change-Id: Ia1cb8b7fd116e17a937b961e5907082097e27bfd
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2021-06-15 06:31:29 -07:00
qctecmdr
4bcd6c1d0b Merge "msm: kgsl: Add APIs to provide GPU stats" 2021-06-15 06:21:29 -07:00
qctecmdr
1422ad1443 Merge "sched: walt: Improve the scheduler" 2021-06-15 06:21:29 -07:00
Mike Tipton
f65f53d3bd clk: qcom: clk-alpha-pll: Add clk_alpha_pll_lucid_5lpe_sdx_cpu_ops
The lucid_5lpe PLL used for the CPU on SDX targets uses a custom
mechanism to assert the latch. Add ops that can be used for this.

Change-Id: I24f8e3db2b908e34e4d0560841f1f5fdcfd215af
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2021-06-15 06:01:56 -07:00
Mike Tipton
5cc0d09264 clk: qcom: clk-cpu-sdxlemur: Don't limit the max register
The lucid_5lpe PLL has multiple registers past 0x3C, including the
ALPHA_VAL and SSC registers. Since we currently set max_register to
0x3C, this causes read failures on ALPHA_VAL in in
alpha_pll_lucid_recalc_rate(). This function ignores the regmap_read()
return codes, which results in the frac variable being uninitialized.

The CPU PLL doesn't currently use fractional operation, so it should
always be zero in HW. But the uninitialized frac variable causes random,
small increases to the calculated frequency.

Specifying max_register is optional, so just remove it and allow the
full range we define in devicetree.

Change-Id: I3549c249f2dfbad5c056de584864b0e1a3eeb912
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
2021-06-15 06:01:46 -07:00
qctecmdr
abeb3d1ea2 Merge "msm: kgsl: Add support for enhanced memory accounting" 2021-06-15 00:59:21 -07:00
Deepak Kumar
e646feb198 msm: kgsl: Add APIs to provide GPU stats
Add APIs which provide per GPU freq active and total time,
number of GPU frequency corners and number of frames
processed by GPU.

Change-Id: If42e76a435a4766a3de0b9b028d48b6c1759e466
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2021-06-15 13:27:24 +05:30
Lingutla Chandrasekhar
b048e61d9c sched: walt: Improve the scheduler
This change is for general scheduler improvements.

Change-Id: Ia2854ae8701151761fe0780b6451133ab09a050b
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2021-06-15 10:41:10 +05:30
qctecmdr
dc1e3e8117 Merge "icnss2: Avoid sending MODE_OFF if MODE_ON is not set" 2021-06-14 12:41:44 -07:00
qctecmdr
0a6f06bd59 Merge "Merge android11-5.4.86+ (7d99cf8) into msm-5.4" 2021-06-14 12:41:44 -07:00
Naman Padhiar
fcf3a13fb7 icnss2: Avoid sending MODE_OFF if MODE_ON is not set
Avoid sending MODE_OFF QMI request to FW if MODE_ON is
not send previously.

Change-Id: I143baac9de884773b1f3c376030d5252bae5fa15
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2021-06-14 05:54:40 -07:00
qctecmdr
56cc7da79a Merge "arm64: defconfig: holi-gki: enable Cx iPeak limit driver" 2021-06-14 04:15:42 -07:00
qctecmdr
6b217200b3 Merge "clk: qcom: debugcc: Update the MCCC mux offset for BLAIR" 2021-06-10 11:02:08 -07:00
qctecmdr
5dc5bb492a Merge "defconfig: msm: enable remote debugger driver" 2021-06-10 10:39:28 -07:00
qctecmdr
50d36a0369 Merge "cnss2: Export if DRV is supported through platform capability" 2021-06-10 10:39:27 -07:00
qctecmdr
1851caf8cf Merge "block: Enable BFQ io scheduler as default" 2021-06-10 10:39:27 -07:00
qctecmdr
edac9794ec Merge "icnss2: Make SOC_WAKE workqueue as high priority" 2021-06-10 10:39:26 -07:00
qctecmdr
d1220daeff Merge "qpnp-regulator: Add support for pm6125 regulators" 2021-06-10 10:39:24 -07:00
Jeya R
ae323e18fc defconfig: msm: enable remote debugger driver
Add remote debugger device configuration. The Remote Debugger driver
allows a debugger running on a host PC to communicate with a remote
stub running on peripheral subsystems.

Change-Id: I4a96cd5ee354d9be0b2f77eaf3330b6529154aa6
Acked-by: Devender Kaushik <dkaushik@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
2021-06-09 23:00:09 -07:00
Puranam V G Tejaswi
32ce17873b msm: kgsl: Add support for enhanced memory accounting
Update the vm_stat counter NR_UNRECLAIMABLE_PAGES to account for
the total memory allocated. Update the rss_stat counter MM_UNRECLAIMABLE
to account for the memory allocated and memory imported per process.

Change-Id: I0a40bf215fedbe421cce8d5fc41e2580fefb6523
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
2021-06-09 18:52:04 +05:30
Yue Ma
9f8482a379 cnss2: Export if DRV is supported through platform capability
Add CNSS_HAS_DRV_SUPPORT to platform capability to indicate if PCIe
DRV is supported or not.

Change-Id: Id114467d060946dda43bb00fe8856cea2c18e738
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-06-09 16:46:22 +05:30
Pradeep P V K
71edb4e799 block: Enable BFQ io scheduler as default
Enable BFQ IO-Scheduler as a default scheduler
for systems adapting to block multiqueue design.

Change-Id: I12ff8c0495a53f1fc1f1a95c39ed03d927c1821b
Signed-off-by: Pradeep P V K <pragalla@codeaurora.org>
2021-06-08 21:48:53 -07:00
qctecmdr
ee8d6eaeda Merge "Merge android11-5.4.86+ (48ffcbf) into msm-5.4" 2021-06-08 09:07:19 -07:00
Naman Padhiar
0d537dd2cd icnss2: Make SOC_WAKE workqueue as high priority
ICNSS2 process SOC_WAKE requests serially by putting the
in a workqueue. Create this workqueue as high priority
queue.

Change-Id: I9920f744bc56655c4ab52273fae3242300237a37
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2021-06-08 08:26:46 -07:00
Manaf Meethalavalappu Pallikunhi
eaac003b93 arm64: defconfig: holi-gki: enable Cx iPeak limit driver
Enable common driver to limit Cx ipeak based on voting from
various clients in multimedia.

Change-Id: I6504279f76bb215e24434aa4078bf073a1e83b9f
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2021-06-08 19:34:57 +05:30
Manaf Meethalavalappu Pallikunhi
e27a837f09 soc: qcom: Add snapshot for Cx iPeak limit driver
Add snapshot of common driver to limit Cx ipeak based on
voting from various clients in multimedia.

Change-Id: I800cc3a08783f9f33761e1a68a2c3072c7294bc0
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2021-06-08 19:31:15 +05:30
Madhuri Medasani
587afd086e clk: qcom: debugcc: Update the MCCC mux offset for BLAIR
Correct the mux offset for MCCC debug mux to be
able to measure the its frequencies.

Change-Id: Id4ff67c3e195fe1633f34b86cc322a03f83a83c0
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
2021-06-08 06:44:29 -07:00
qctecmdr
a93a7abbe2 Merge "mtd: msm_qpic_nand: Enable one code word read along with PS read" 2021-06-08 06:24:58 -07:00
qctecmdr
24803b2fdf Merge "Revert "aio: only use blk plugs for > 2 depth submissions"" 2021-06-08 06:24:58 -07:00
qctecmdr
3d48e39e08 Merge "clk: qcom: debugcc: Update the CPU mux offset for BLAIR" 2021-06-08 06:24:58 -07:00
Kavya Nunna
5bcb9da72b qpnp-regulator: Add support for pm6125 regulators
Add support for HFSMPS, FTSMPS and other LDOs
supported on PM6125.

Change-Id: I2c9062876417915adeb9e739625adbbc58da8ff4
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2021-06-07 21:39:52 -07:00
Pradeep P V K
afa85aa291 mtd: msm_qpic_nand: Enable one code word read along with PS read
Enable one code word read support along with pagescope read feature
support.

Change-Id: Ib99a37140ec1bd929be34ebf21cd177df6493257
Signed-off-by: Pradeep P V K <pragalla@codeaurora.org>
2021-06-07 21:15:17 -07:00
qctecmdr
e319415478 Merge "mmc: sdhci-msm: Reset SDIO cards during probe by toggling wlan_en pin" 2021-06-07 21:07:30 -07:00
Sahitya Tummala
c039a777cc Revert "aio: only use blk plugs for > 2 depth submissions"
This reverts commit a79d40e9b0.
This is to fix the performance regression of storage tests
observed with fio benchmark.

Change-Id: I914bae800d6c7483639551d0ed7f6094b866fa12
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
2021-06-07 20:02:39 -07:00
qctecmdr
20fbe1a9a1 Merge "cnss2: Properly send adsp power collapse enable/disable cmds" 2021-06-07 10:41:39 -07:00
Srinivasarao P
f9b55c89b7 Merge android11-5.4.86+ (7d99cf8) into msm-5.4
* refs/heads/tmp-7d99cf8:
  ANDROID: GKI: Update abi_gki_aarch64_exynos
  UPSTREAM: HID: make arrays usage and value to be the same
  ANDROID: FUSE OWNERS pointing to android-mainline OWNERS
  ANDROID: abi_gki_aarch64_db845c: Regenerate symbols list after enabling QCOM_TSENSE
  ANDROID: db845c_gki.fragment: Add QCOM_TSENSE config to avoid thermal crashes
  UPSTREAM: mm/cma.c: remove redundant cma_mutex lock
  ANDROID: ABI: update allowed list for galaxy
  BACKPORT: remoteproc: core: Remove casting to rproc_handle_resource_t
  UPSTREAM: scsi: ufs: ufs-mediatek: Correct operator & -> &&
  UPSTREAM: kbuild: do not include include/config/auto.conf from adjust_autoksyms.sh
  UPSTREAM: udp: ipv4: manipulate network header of NATed UDP GRO fraglist
  UPSTREAM: net: fix use-after-free when UDP GRO with shared fraglist
  UPSTREAM: scsi: ufs: Fix possible power drain during system suspend
  UPSTREAM: scsi: ufs: Re-enable WriteBooster after device reset
  UPSTREAM: driver: core: Fix list corruption after device_del()
  UPSTREAM: f2fs: fix double free of unicode map
  UPSTREAM: sched/fair: Prefer prev cpu in asymmetric wakeup path
  UPSTREAM: scsi: ufshcd: Fix missing destroy_workqueue()
  UPSTREAM: xfrm/compat: Translate by copying XFRMA_UNSPEC attribute
  UPSTREAM: xfrm/compat: memset(0) 64-bit padding at right place
  UPSTREAM: xfrm/compat: Don't allocate memory with __GFP_ZERO
  BACKPORT: scsi: ufs: Fix missing brace warning for old compilers
  UPSTREAM: net: xfrm: fix memory leak in xfrm_user_policy()
  BACKPORT: net: ethtool: add missing NETIF_F_GSO_FRAGLIST feature string
  UPSTREAM: mac80211_hwsim: use GFP_ATOMIC under spin lock

 Conflicts:
	drivers/scsi/ufs/ufshcd-crypto.c
	fs/f2fs/super.c
	kernel/sched/fair.c

Change-Id: If96dda87de2c464c9473560c0cf249d4ced061b1
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-06-07 15:17:29 +05:30
qctecmdr
c71f313e9e Merge "defconfig: sdxnightjar: Enable Panic on for scheduler and RT throttling" 2021-06-07 01:36:41 -07:00
qctecmdr
026fabaf91 Merge "defconfig: sdxnightjar: disable unnecessary network driver" 2021-06-07 01:36:41 -07:00
qctecmdr
6cc30c6a26 Merge "dt-bindings: msm: Add bindings for flash type" 2021-06-07 01:36:40 -07:00
qctecmdr
e4bbc98133 Merge "spi: spi-msm-geni: Put device to suspend if PM status is active" 2021-06-07 01:36:40 -07:00
qctecmdr
fb3f9fc37c Merge "soc: qcom: mem-offline: online only valid memory blocks" 2021-06-07 01:36:39 -07:00
Madhuri Medasani
4f93b5add4 clk: qcom: debugcc: Update the CPU mux offset for BLAIR
Correct the mux offset for CPU debug mux to be
able to measure the CPU frequencies.

Change-Id: I042d36cc94c08b80142c86f545102c24b00ea7e5
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
2021-06-07 00:12:18 -07:00
qctecmdr
c0f0ff8789 Merge "msm: kgsl: Allow access to QDSS only when coresight is enabled" 2021-06-06 22:46:11 -07:00
shiwgupt
235463e65a dt-bindings: msm: Add bindings for flash type
Add binding support for flash type.

CRs-Fixed: 2938804
Change-Id: Ie4c7978d9baf34456300f39cd1d607c693420862
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
2021-06-06 22:45:28 -07:00
Mukesh Kumar Savaliya
a332b9453b spi: spi-msm-geni: Put device to suspend if PM status is active
This change is to keep the device to autosuspend only if runtime PM
status is not suspended. SPI driver resumes only if runtime PM is
active, if framework calls unprepare_message/unprepare_hardware and
if we try to keep driver to autosuspend, it may result into negative
usage count.

Also ensure for the PM calls, runtime is always enabled and if not, do
not call PM.

Change-Id: I8cf3f6deb776e282edce4b488e80c639d697374e
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2021-06-06 22:32:59 -07:00
Mohammed Siddiq
a2261d88ba cnss2: Properly send adsp power collapse enable/disable cmds
Add code to properly handle sending adsp power collapse enable
& disable cmds.

Change-Id: I405b302180c0a6598592bf3dbad92976549d6d4b
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-06-06 22:02:01 -07:00
lijuang
162bae29c8 defconfig: sdxnightjar: disable unnecessary network driver
Disable unused ethernet driver for sdxnightjar.

Change-Id: Iabf645ec131e9c9c4a64cd93ad09d8c4e788a9a7
Signed-off-by: lijuang <lijuang@codeaurora.org>
2021-06-06 19:37:05 -07:00
Lijuan Gao
9aa8900a4c defconfig: sdxnightjar: Enable Panic on for scheduler and RT throttling
Enable Panic on for scheduler and RT throttling for sdxnightjar.

Change-Id: Ie958aac9c329e2d8761a120349652e882cdb72ed
Signed-off-by: Lijuan Gao <lijuang@codeaurora.org>
2021-06-06 19:36:51 -07:00