Commit Graph

1152461 Commits

Author SHA1 Message Date
Sankalp Negi
0bef7129bf build: Initial bazel support for gen4auto targets
Add the changes required to build gen4auto targets via
bazel build system.

Change-Id: I5a2ecc0c7f5d7dbab831790219dd5d1c1e89ecd8
Signed-off-by: Sankalp Negi <quic_snegi@quicinc.com>
2023-05-04 04:43:23 -07:00
Sankalp Negi
9744e6576e defconfig: gen4auto: Add kernel configuration for gen4auto
Add the required defconfigs for gen4auto targets.

Change-Id: I6520731e2eea11bfc20d910cc43e78ef3d4b9698
Signed-off-by: Sankalp Negi <quic_snegi@quicinc.com>
2023-05-04 04:43:12 -07:00
Sankalp Negi
9863d20707 Kconfig: Add support for monaco_auto chipset
Add CONFIG_ARCH_MONACO_AUTO to enable monaco_auto chipset.

Change-Id: I0560586ed434e0f2c9acb2467d8a7a7295f445d4
Signed-off-by: Sankalp Negi <quic_snegi@quicinc.com>
2023-05-04 04:42:39 -07:00
qctecmdr
c1cab9d9cf Merge "defconfig: gen3auto: Enable wall power_charger for auto targets" 2023-05-03 22:44:29 -07:00
qctecmdr
143a72e37c Merge "ufs: ufs-qcom: Align code to hardware programming guide" 2023-05-03 20:42:23 -07:00
qctecmdr
57baf100c3 Merge "soc: qcom: Add Upperbounds check for program header" 2023-05-03 16:33:33 -07:00
qctecmdr
9b4691c7ee Merge "qcom: llcc_perfmon: Add mask correction for BEAC event removal" 2023-05-03 16:33:32 -07:00
qctecmdr
1e0f3af693 Merge "defconfig: Enable dumping of memory info for minidump" 2023-05-03 16:33:32 -07:00
qctecmdr
4685f94f0d Merge "sched/walt: Check if previous cpu is reserved during placement" 2023-05-03 12:46:22 -07:00
qctecmdr
f872e60910 Merge "defconfig: gen3auto: enable refgen regulator" 2023-05-03 11:09:13 -07:00
qctecmdr
b0102177ce Merge "sched/walt: cleanup up arguments provided for WALT_BUG statements" 2023-05-03 08:26:48 -07:00
qctecmdr
87a7652607 Merge "sched/walt: improve core ctl and enq tracepoints" 2023-05-03 08:26:47 -07:00
qctecmdr
2a997616b5 Merge "dt-bindings: clock: snapshot for clock bindings on BLAIR" 2023-05-03 08:26:47 -07:00
Auditya Bhattaram
9d96c8b4e6 soc: qcom: Add Upperbounds check for program header
e_phnum represent the number of entries in the program header table.
So add Upperbounds check for program header and return invalid if the
number of program headers is greater than PN_XNUM (0xffff).

Change-Id: I63927e2e88a57a567a52b4eb377abe94ad3713b8
Signed-off-by: Auditya Bhattaram <quic_audityab@quicinc.com>
2023-05-03 12:36:20 +05:30
Aman Kanwar
4e27fba5dc qcom: llcc_perfmon: Add mask correction for BEAC event removal
Restructed code for BEAC event configuration to comply with removal
functionality using REMOVE string.

Change-Id: I915dc955f85d2ba301cdae9ae733937deddae53d
Signed-off-by: Aman Kanwar <quic_akanwar@quicinc.com>
2023-05-03 11:47:03 +05:30
Aman Kanwar
90a563c4f7 qcom: llcc_perfmon: Remove dependency to reserve cycle counter
Add support to use last counter for profiling as well. Cycle counter
will only be used if configured counters are less than the available
counters.

Change-Id: Ia84e8d59d8f76ea751f45b57c34b643c6d5a899b
Signed-off-by: Aman Kanwar <quic_akanwar@quicinc.com>
2023-05-03 11:38:11 +05:30
Kishor Krishna Bhat
90a2f776ea defconfig: gen3auto: Enable wall power_charger for auto targets
Add wallpower charger support for auto targets to notify
application about AC power source.

Change-Id: I4deef3c8c917db690660c3f395864dde52f9420b
Signed-off-by: Kishor Krishna Bhat <quic_kishkris@quicinc.com>
2023-05-02 22:44:33 -07:00
qctecmdr
03866a9d88 Merge "drivers: qcom: dcvs: Make ops NULL on error" 2023-05-02 21:08:51 -07:00
qctecmdr
169591de90 Merge "drivers: dcvs: dcvs_icc: use icc tags from icc header" 2023-05-02 21:08:50 -07:00
Sai Harshini Nimmala
c04d19d95a sched/walt: Check if previous cpu is reserved during placement
While trying to take previous CPU fastpath during task
placement, ensure that the previous CPU is not marked reserved for a
migration due to a load balancing operation.

Change-Id: Ia1c4de04597dfc75fc4bacb3f0efbcb18c6b721b
Signed-off-by: Sai Harshini Nimmala <quic_snimmala@quicinc.com>
2023-05-02 18:51:33 -07:00
qctecmdr
ba6dd286da Merge "drivers: remoteproc: add support for mpss dsm mem region partitions" 2023-05-02 16:32:26 -07:00
Satya Durga Srinivasu Prabhala
cd2dedaa35 drivers: remoteproc: add support for mpss dsm mem region partitions
Now that the  mpss dsm memory region is split into two partitions, need
to make entire DSM memory region (both partitions) is assigned to MPSS.

Change-Id: I8a19f7f9d4f58c2ab94e574a8f71001dd95410df
Signed-off-by: Satya Durga Srinivasu Prabhala <quic_satyap@quicinc.com>
2023-05-02 13:43:49 -07:00
Chris Goldsworthy
15ff82f13c defconfig: Enable dumping of memory info for minidump
Dump page_owner, slab_info, general vmstats and DMA-BUF info.

Change-Id: Iee4f6accd448c70510bd934195f9bdbee9cee445
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2023-05-02 11:25:53 -07:00
Chris Goldsworthy
435dc56e1b ANDROID: abi_gki_aarch64_qcom: Add dma_resv iterator symbols
Add dma_resv_iter_first and dma_resv_iter_next to
abi_gki_aarch64_qcom. These symbols were already added to the KMI as a
part of commit b38e72d30c ("ANDROID: Add initial symbols list for
db845c").

Bug: 199236943
Change-Id: Ib5222cf342c3e119e424c3c13c062c9d867c7884
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2023-05-02 11:25:53 -07:00
qctecmdr
b580ca1837 Merge "usb: misc: lvstest: allow specifying port for compliance mode" 2023-05-02 09:09:58 -07:00
qctecmdr
69868a76d8 Merge "arm64: defconfig: Enable USB LVS test compliance module" 2023-05-02 09:09:57 -07:00
qctecmdr
d1541cf40f Merge "regulator: refgen: Add refgen regulator driver" 2023-05-02 09:09:57 -07:00
Kalpak Kawadkar
1cdefb1add dt-bindings: clock: snapshot for clock bindings on BLAIR
Add snapshot of clock IDs for GCC/GPUCC/DISPCC on BLAIR for clients to be
able to request for clocks from msm-5.4 branch
commit b2e8de9c43a2 ("dt-bindings: clock: Add support for BLAIR clock id").

Change-Id: I2472c7f3ddaa318f217ce34088dea919e390dad1
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
2023-05-02 16:03:47 +05:30
Nirmal Abraham
b82c616aaa defconfig: gen3auto: enable refgen regulator
Add gen3auto and bazel changes to enable refgen regulator
on gen3auto.

Change-Id: Ie7df5f2fb1a9b59ff7b834326e7cd7a105d4efee
Signed-off-by: Nirmal Abraham  <quic_c_nabrah@quicinc.com>
2023-05-02 14:38:28 +05:30
qctecmdr
5e5343537b Merge "ANDROID: build: Enable build-time ABI check" 2023-05-01 23:33:49 -07:00
qctecmdr
3535e7303d Merge "Revert "sched/walt: getaffinity should not restrict based upon halt"" 2023-05-01 15:53:09 -07:00
Wesley Cheng
5c9e5bb8b2 arm64: defconfig: Enable USB LVS test compliance module
The LVS test module is used to verify host link layer compliance, as it
allows for control of specific root hub operations, such as bus power
management.  Enable the module in the consolidate kernel configuration, as
it should only be used in debug builds for compliance testing.

Change-Id: Ic8ca620f741b21f4062a30596dbf27dd41c754f7
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2023-05-01 15:35:10 -07:00
Jack Pham
6c815cebc3 usb: misc: lvstest: allow specifying port for compliance mode
In some cases when connecting to a test fixture the host port
might not have triggered a connect change. As a result, dev->portnum
does not get updated and an attempt to enable the port for
compliance mode will pass 0 as the port number to the HCD, which is
invalid. Instead allow the user to pass an explicit port number
from the command line to specify the port to act on. Otherwise, if
omitted, the behavior is the same as before.

Change-Id: I2e323c9016915b2d535ac227fd6f3d5846aa4026
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2023-05-01 14:11:43 -07:00
John Moon
0e65fc43c9 ANDROID: build: Enable build-time ABI check
Currently, we are using a copy_to_dist_dir() call to copy our kernel
artifacts to the dist dir. Instead, for GKI-enabled builds, we should
by using kernel_abi_dist() which is a wrapper rule that includes an
ABI check.

Switch to kernel_abi_dist for GKI builds and adjust output artifact
lists accordingly.

To use the kernel_abi_dist rule properly, we must also use the GKI
build's kernel image. So, when building GKI targets, the kernel image
and boot.img in the output directory will now be coming directly from
the GKI build.

Change-Id: Ia453fcb17031f3e0b6f9d24a4a3af2a028bfdbe5
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2023-05-01 14:11:26 -07:00
qctecmdr
aba9ba6c41 Merge "wcd939x-i2c: update default trim values for USBSS" 2023-05-01 14:01:27 -07:00
qctecmdr
6785028f19 Merge "defconfig: Enable ARCH config for sdmshrike" 2023-05-01 14:01:25 -07:00
qctecmdr
095cb1d8bd Merge "dma-heap: qcom: system heap alloc update with spin lock" 2023-05-01 14:01:21 -07:00
Amir Vajid
a7521d6839 drivers: dcvs: dcvs_icc: use icc tags from icc header
The active only had perf mode icc tags are hardcoded in
dcvs_icc today. Use the tags defined in the dt bindings
icc header file instead to stay aligned as these
definitions change.

Change-Id: Icff081d5bc33d3dc6c6e515227e5d031ea4e8288
Signed-off-by: Amir Vajid <quic_avajid@quicinc.com>
2023-05-01 12:58:55 -07:00
Bruce Levy
84a14b5670 Revert "qcom: socinfo: Code cleanup to remove unused features"
This reverts commit 1c2037c5c9.

Reverting as there were regressions seen in vendor builds.

Change-Id: I7d25eda8f55fd0c9304f6ec09055d328e78f80cc
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2023-05-01 11:40:21 -07:00
Stephen Dickey
b634ead182 Revert "sched/walt: getaffinity should not restrict based upon halt"
This reverts commit e2665c373e.

Change-Id: Iba4be5e6293b756af9b2faf2508697db270eefa6
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
2023-05-01 10:54:34 -07:00
qctecmdr
f79900f046 Merge "qcom_sg_ops: Clarify behaviour of multiple dma_buf_map_attachment calls" 2023-05-01 09:04:23 -07:00
qctecmdr
4ad0d7fd34 Merge "wcd939x-usbss: Update wcd-usb switches only when cabletype not decided" 2023-04-30 21:18:09 -07:00
qctecmdr
4e0b771a38 Merge "dwc3: msm: core: Fix unbalanced enable irq on runtime resume" 2023-04-30 21:18:09 -07:00
qctecmdr
056a26d30b Merge "secure_buffer: Change CONFIG_HYP_ASSIGN_DEBUG checks" 2023-04-30 21:18:08 -07:00
qctecmdr
4bd5fe60c8 Merge "dma-heaps: initialize the pool_sem rwsemaphore before using" 2023-04-29 11:14:16 -07:00
qctecmdr
0efce66154 Merge "ANDROID: build: Adding mm/slab.h to unsafe headers" 2023-04-28 17:13:38 -07:00
Faiyaz Mohammed
e2d92d2f28 dma-heap: qcom: system heap alloc update with spin lock
If dmabuf deferred_free_thread is preempted then system heap alloc
path is taking longer time due to mutex lock contention. To avoid
preemption due to low priority updating with spin lock.

Change-Id: I63cd224543dc42c0710bc9202bebed9ced2bf341
Signed-off-by: Faiyaz Mohammed <quic_faiyazm@quicinc.com>
Signed-off-by: Zhenhua Huang <quic_zhenhuah@quicinc.com>
2023-04-28 13:26:40 -07:00
Patrick Daly
7f43c63a44 qcom_sg_ops: Clarify behaviour of multiple dma_buf_map_attachment calls
If multiple calls to dma_buf_map_attachment() are made, and
DMA_ATTR_DELAYED_UNMAP is not set, the iova address saved in our
copy of sg_table from the first call will be overwritten by the
second call. This guarantees a dma address space leak.

Change-Id: I5292d2534c957fa43af2d366bd996f01dd04ddf7
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
[quic_cgoldswo@quicinc.com: Resolve merge conflicts on account of
 the proxy driver changes. No functional changes]
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2023-04-28 13:26:40 -07:00
Chris Goldsworthy
0194788736 iommu: Remove dma_mapping_fast_exit()
dma_mapping_fast_exit() has been dead code for some time now, so
remove it.

Change-Id: Ib697753dd4a43ce24b34f26590bd2079fbe82c89
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2023-04-28 13:26:40 -07:00
Charan Teja Reddy
956fc73bf5 iommu: fix sleep-while-atomic in fast_smmu_reserve_msi_iova
Sleep-while-atomic exists with doing sleepable allocations under
dma_fast_smmu_mapping->lock inorder to do MSI cookie init. Since this
lock is used to serialize the access to fastmap iova regions, use a
separate mutex lock for MSI cookie init.
Call trace:
 android_rvh_schedule_bug+0x4/0x8 [sched_walt_debug]
 ___might_sleep+0x1a8/0x1d0
 __might_sleep+0x54/0x90
 kmem_cache_alloc_trace+0xa4/0x4b0
 iommu_get_msi_cookie+0x64/0x98
 fast_smmu_reserve_msi_iova+0xd8/0x150 [qcom_iommu_util]
 __fast_smmu_setup_dma_ops+0x240/0x288 [qcom_iommu_util]
 __traceiter_android_rvh_iommu_setup_dma_ops1+0x44/0x70
 arch_setup_dma_ops+0x100/0x104.

Change-Id: I58925528617e5443aa0a9d4bc26c8f33cdda84ac
Signed-off-by: Charan Teja Reddy <quic_charante@quicinc.com>
2023-04-28 13:26:40 -07:00