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>
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>
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>
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>
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>
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>
Dump page_owner, slab_info, general vmstats and DMA-BUF info.
Change-Id: Iee4f6accd448c70510bd934195f9bdbee9cee445
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
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>
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>
Add gen3auto and bazel changes to enable refgen regulator
on gen3auto.
Change-Id: Ie7df5f2fb1a9b59ff7b834326e7cd7a105d4efee
Signed-off-by: Nirmal Abraham <quic_c_nabrah@quicinc.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>