Commit Graph

1154649 Commits

Author SHA1 Message Date
John Moon
c38cee9986 ANDROID: build: Fix output directory layout
With a recent change to the output directory handling from
build_with_bazel.py, some dist directory paths incorrectly used
hyphens instead of underscores.

Fix this issue by mirroring the logic in msm_common.bzl which handles
these paths properly.

Also, run buildifier to fix format of Bazel build files.

Change-Id: Ia82073f059c54f4a7f523c5bd91afdc755c70df1
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-07-22 20:40:11 -07:00
qctecmdr
72594b5d98 Merge "drivers: qcom: qcom_stats: Update CX vote feature" 2023-07-20 02:33:32 -07:00
qctecmdr
945bf4e408 Merge "defconfig: arm64: Enable thermal zone config debug driver" 2023-07-19 18:46:52 -07:00
qctecmdr
f166072691 Merge "sound: usb: usb_audio_qmi_svc: Fix potential NULL pointer deference" 2023-07-19 18:46:51 -07:00
qctecmdr
6e05c0cfa2 Merge "drivers: thermal: Snapshot of thermal config debugfs driver" 2023-07-19 15:37:11 -07:00
qctecmdr
b506f54ec3 Merge "interconnect: qcom: Add lemans interconnect provider driver" 2023-07-19 13:43:31 -07:00
qctecmdr
28171e30e4 Merge "pinctrl: qcom: spmi-gpio: Add support for suspend to disk" 2023-07-19 13:43:30 -07:00
qctecmdr
7fc6855ec1 Merge "regulator: virtio: Add support for a regulator switch" 2023-07-19 13:43:30 -07:00
qctecmdr
c1e64563dc Merge "sched/walt: Fix problem in do_freq_qos_request" 2023-07-19 13:43:30 -07:00
qctecmdr
500775560c Merge "ANDROID: build: Add build_opts.txt file to output" 2023-07-19 11:54:49 -07:00
qctecmdr
368ee9dfa0 Merge "module.list: Add qnoc-cliffs driver to module list for CLIFFS" 2023-07-19 09:34:43 -07:00
qctecmdr
5244656cb6 Merge "usb: phy: qusb: In host mode no power down of phy" 2023-07-19 07:05:16 -07:00
qctecmdr
13a0f7223d Merge "mmc: sdhci-msm: Disable always_on regulator during reboot/shutdown" 2023-07-19 04:53:24 -07:00
qctecmdr
acf78a4226 Merge "soc: qcom: hgsl: enable second pair of TCSR for context dbq" 2023-07-19 04:53:22 -07:00
yonliu
b9839e0f1d drivers: qcom: qcom_stats: Update CX vote feature
This change changes the qmp command which sends to AOP.

Change-Id: I8b4377a0219c062c4814ae63f2ee9f07526287d6
Signed-off-by: yonliu <quic_yonliu@quicinc.com>
2023-07-19 18:27:55 +08:00
qctecmdr
d635e44473 Merge "mmc: sdhci-msm: Restore CMDQ_VENDOR_SPECIFIC_CFG register correctly" 2023-07-19 01:14:52 -07:00
qctecmdr
239be84d33 Merge "drivers: Move silent-boot drivers out of kernel" 2023-07-18 23:20:48 -07:00
qctecmdr
9a37a2d2fa Merge "firmware: qcom-scm: Remove WARN_ON for WAITQ_WAKE" 2023-07-18 21:15:00 -07:00
qctecmdr
fd09e10ca2 Merge "mmc: sdhci-msm: Actually set the actual clock" 2023-07-18 21:14:59 -07:00
qctecmdr
d0fd238b02 Merge "ufs: hosts: qcom: Relay signal to scheduler" 2023-07-18 19:06:28 -07:00
qctecmdr
826f36ec77 Merge "sched/walt: Introduce shared rail sibling" 2023-07-18 19:06:28 -07:00
Shaleen Agrawal
dace646e99 sched/walt: Fix problem in do_freq_qos_request
Currently, there is an issue where the request to execute a QOS
request is not being serviced, as requests will only be honored
if a CPU is offline.

Fix this by ensuring QOS requests are made on online CPUs.

Change-Id: I454a5ddf50e373dc6d4fe5ac06674288aa529f1e
Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
2023-07-18 17:38:04 -07:00
Rashid Zafar
e3d2dd8c14 defconfig: arm64: Enable thermal zone config debug driver
Enable thermal zone config debug driver to support reading the
entire thermal zone configurations from userspace via debugfs
interface.

Change-Id: Ide9bd09bbd07ff866ad9f8fbec1efa596ad77560
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2023-07-18 15:18:43 -07:00
Rashid Zafar
319c8852f0 drivers: thermal: Snapshot of thermal config debugfs driver
Thermal config debugfs snapshot taken from msm-5.15 branch
'commit 8ff12fd3b6f5 ("drivers: thermal: Add support to read thermal
config rules with debugfs")'.

Updates:
    - Change GPL v2 license to GPL
    - Account for tz trips name change to num_trips as
      changed in thermal.h

Change-Id: Id8212bad1ae374e34c0f4fb4efba20d03905720c
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2023-07-18 15:18:43 -07:00
Rashid Zafar
bfc11d0b03 drivers: thermal: cpu_voltage: Add correct goto labels on freeing
Add the correct goto labels and return call during NULL error cases.

Change-Id: I4e17823dc8291041601af19abede1bffbac19aec
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2023-07-18 15:18:43 -07:00
John Moon
02faddf96a ANDROID: build: Add build_opts.txt file to output
Currently, there's no convenient way to discover which build options
were passed to the kernel build other than examining the output
.config file. That method is somewhat fragile as the mapping between
the CONFIG options we're parsing and the options being set by a
particular build flag could change.

Instead, let's create a new build artifact which writes the build
flags to a file which can be easily consumed later. This will allow
external module (DDK) builds to guarantee a match between the kernel
build and their build.

The output format looks like this (one opt per line):

--kasan
--lto=none
--config=stamp
--user_kmi_symbol_lists=//msm-kernel:android/abi_gki_aarch64_qcom
--ignore_missing_projects

The flags can be pulled into a separate build command line like this:

./tools/bazel build $(xargs -a build_opts.txt) //my_package:my_target

Change-Id: I162c950ff01c99e082945190b50d13b4a139f944
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-07-18 14:43:22 -07:00
qctecmdr
e33966e79d Merge "drivers: Move aop-set-ddr driver out of kernel" 2023-07-18 14:24:21 -07:00
qctecmdr
302ef6d2df Merge "sched/walt: create an api for cluster boost for pipeline" 2023-07-18 14:24:21 -07:00
qctecmdr
a0945e7819 Merge "qti_virtio_mem: add memory block only if oom from movable zone" 2023-07-18 11:39:30 -07:00
qctecmdr
d08a324114 Merge "ANDROID: build: msm_kernel_le: Move the avb target from the dist target" 2023-07-18 11:39:29 -07:00
qctecmdr
844fb86af2 Merge "virtio-mem: set memalloc_noreclaim only doing memory plug request" 2023-07-18 09:14:16 -07:00
qctecmdr
9c4105f46c Merge "soc: qcom: Skip dma_buf dump in watchdog bark handler" 2023-07-18 09:14:15 -07:00
qctecmdr
e40db592e0 Merge "mmc: sdhci-msm: Toggle fifo write clk after ungating sdcc clk" 2023-07-18 05:54:06 -07:00
qctecmdr
1117076008 Merge "phy: qcom: Add UFS PHY driver snapshot for monaco_auto" 2023-07-18 05:54:06 -07:00
Sarthak Garg
e92e19d6a6 mmc: sdhci-msm: Disable always_on regulator during reboot/shutdown
During reboot/shutdown we send POWER_OFF_LONG notification.
As per spec the host should issue a power off notification
(POWER_OFF_LONG, POWER_OFF_SHORT ) if it intends to turn off both VCC
and VCCQ power supplies.

Currently we don't power_off VCCQ as it is marked as always_on.

Hence mark the is_always_on as false when power off notification is sent
and turn off both VCC and VCCQ. To check if power off notification
happened we have only one available flag EXT_CSD_NO_POWER_NOTIFICATION
hence use that flag to turn off.

Change-Id: Ifa974be837c841d78b2422bb98dff6ecbd6ec75f
Signed-off-by: Sarthak Garg <quic_sartgarg@quicinc.com>
Signed-off-by: Sachin Gupta <quic_sachgupt@quicinc.com>
2023-07-18 03:51:57 -07:00
Sarthak Garg
c3789c8c63 mmc: sdhci-msm: Restore CMDQ_VENDOR_SPECIFIC_CFG register correctly
Restoring CMDQ_SEND_STATUS_TRIGGER field after XO or hardware reset can
lead to CMD13 being send as soon as CQE is turned on which can lead to
below unnecessary warnings followed  by register dumps.

[   82.554113] mmc: sdhci_cmd_irq: Got command interrupt 0x00000001 even
though no command operation was in progress.

Unset that bit before restoring CMDQ_VENDOR_SPECIFIC_CFG register.

Change-Id: Id5961ecdd68b0d7cbc1c48c116f9e862a1dfc573
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
Signed-off-by: Sachin Gupta <quic_sachgupt@quicinc.com>
2023-07-18 03:24:38 -07:00
Sarthak Garg
8ff9b52303 mmc: cqhci: Port two trivial fixes in cqhci from earlier kernels
This is a squash of below two minor fixes:
8fec754f57a8 mmc: cmdq: Trigger get queue status after dcmd
327fd3225911 mmc: cqhci: CQ Register changes for v5.0 onwards.

Change-Id: I1bb6cae5a647c4ea189a992d5ace7b6c1e3a1c87
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
Signed-off-by: kamasali <quic_kamasali@quicinc.com>
Signed-off-by: Sachin Gupta <quic_sachgupt@quicinc.com>
2023-07-18 15:52:27 +05:30
Douglas Anderson
aaf9da9d43 mmc: sdhci-msm: Actually set the actual clock
The MSM SDHCI driver always set the "actual_clock" field to 0.  It had
a comment about it not being needed because we weren't using the
standard SDHCI divider mechanism and we'd just fallback to
"host->clock". However, it's still better to provide the actual
clock. Why?
1. It will make timeout calculations slightly better.  On one system I
   have, the eMMC requets 200 MHz (for HS400-ES) but actually gets 192
   MHz.  These are close, but why not get the more accurate one.
2. If things are seriously off in the clock driver and it's missing
   rates or picking the wrong rate (maybe it's rounding up instead of
   down), this will make it much more obvious what's going on.
NOTE: we have to be a little careful here because the "actual_clock"
field shouldn't include the multiplier that sdhci-msm needs
internally.

Change-Id: I16f0ad021209e7a0c2797c695e972888b542246f
Git-Repo: https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git/
Git-Commit: f16c8fd444
Suggested-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
Signed-off-by: kamasali <quic_kamasali@quicinc.com>
Signed-off-by: Sachin Gupta <quic_sachgupt@quicinc.com>
2023-07-18 01:04:59 -07:00
Sarthak Garg
062852d70c mmc: host: sdhci-msm: Don't return error on missing bus voting paths
On MDM targets we have only one path for bus voting (sdhc-ddr).
If we provide only one path and not the other one then probe will
itself fail as per the current logic.
Don't return error when bus voting paths not found.

Change-Id: Idf5401266793f4d4003391816f7511f8c0754696
Signed-off-by: Sarthak Garg <sartgarg@codeaurora.org>
Signed-off-by: Kishor Krishna Bhat <quic_kishkris@quicinc.com>
Signed-off-by: Sachin Gupta <quic_sachgupt@quicinc.com>
2023-07-18 01:04:20 -07:00
qctecmdr
2562073c3e Merge "drivers: Move wallpower_charger driver out of kernel" 2023-07-18 00:48:18 -07:00
qctecmdr
3ceaeabddd Merge "soc: qcom: Clear the compilation warnings" 2023-07-18 00:48:18 -07:00
qctecmdr
49a120332a Merge "slimbus: solve device crashing while triggering ADSP SSR" 2023-07-18 00:48:17 -07:00
qctecmdr
19fff72577 Merge "slimbus: qcom-ngd-ctrl: Add timeout for wait operation" 2023-07-18 00:48:17 -07:00
Jeyaprabu J
d4fdf96211 soc: qcom: hgsl: enable second pair of TCSR for context dbq
Support up to 4 pairs of TCSR for context doorbell queue.

Change-Id: I0dd5612fd8ecc6a5f1f9ddcaa9d4aa970b39c546
Signed-off-by: Jeyaprabu J <quic_jeyaprab@quicinc.com>
2023-07-18 13:04:32 +05:30
Jeyaprabu J
f00e3284cf soc: qcom: hgsl: use dma_buf to export buffer to BE
Avoid close fd in hgsl.

Change-Id: Ia7076dc87cdbb7276d3381438bef27e08ae4902e
Signed-off-by: Jeyaprabu J <quic_jeyaprab@quicinc.com>
2023-07-18 13:04:30 +05:30
Jeyaprabu J
2ea14ed477 soc: qcom: hgsl: Add door bell context queue support
Add support to submit packet through door bell context queue.

Change-Id: Ie997b30fcfe586e063c75ace288f33d6cdc55b2c
Signed-off-by: Jeyaprabu J <quic_jeyaprab@quicinc.com>
2023-07-18 13:02:42 +05:30
Shubham Diwane
74899344b1 interconnect: qcom: Add lemans interconnect provider driver
Introduce QTI lemans specific provider driver using the
interconnect framework.

change-Id: Ic027dc9e3c4bbe880817de6f309e93115fe7b93e
Signed-off-by: Shubham Diwane <quic_sanantad@quicinc.com>
2023-07-18 10:42:10 +05:30
qctecmdr
e766132452 Merge "sched/walt: Optimize single candidate EAS" 2023-07-17 18:21:16 -07:00
Sudarshan Rajagopalan
c21bc826c1 qti_virtio_mem: add memory block only if oom from movable zone
In oom notifier, add the memory block only if Movable zone is exhausted.
This makes sure that we expand movable zone only if oom resulted from
memory pressure in movable zone.
Also fix the get_zone_free_pages to match with zoneinfo.

Change-Id: I24e4e3058922107152dee2244a9c31e476e16a69
Signed-off-by: Sudarshan Rajagopalan <quic_sudaraja@quicinc.com>
2023-07-17 16:45:30 -07:00
qctecmdr
7912ff3651 Merge "clk: qcom: debugcc: Update measure only freq support for monaco_auto" 2023-07-17 16:09:00 -07:00