Default linear mapping no longer works due to non-linear
policy-to-clk_domain index mapping in new chipsets, add
a new sysfs file hw_clk_domain in sysfs directory policy*
so that test script can capture the correct HW clock
domain index.
Change-Id: Id78df0074e9cb13dd1f748dbab2381a48440e8e9
Signed-off-by: Xubin Bai <quic_xubibai@quicinc.com>
struct kobj_type does not contain the default_attrs member anymore.
Instead create attribute group using the ATTRIBUTE_GROUPS macro and
assign to kobj_type object.
Change-Id: I5d21c816edb13b5020e064f55c3e495002897d4a
Signed-off-by: Sai Harshini Nimmala <quic_snimmala@quicinc.com>
Remove WALT_NONCRITICAL as it hasn't been useful.
Change-Id: Ia28005c5f980fcb598226b3aae4b21efeac1b526
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
Pause will not be invoked through core control until after
walt has been initialized. However, the walt_pause apis are
made available to other vendor modules, and if those modules
attempt to invoke pause prior to walt being initialized, an
invalid reference to walt_drain_thread will be made.
Prevent the walt_pause and walt_resume apis from being used
until after walt has been properly initialized, walt_halt_init
has been called, and walt_drain_thread properly created.
Change-Id: Iadd764ebfb7402529b49de6ef121d23dfcdc5649
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
Capture the fmax_capacity of the CPU reduced under cpufreq constraints
in the related tracepoint.
Change-Id: I3dc5c54a7a5850b9c5f4df8a40daea593fff023b
Signed-off-by: Sai Harshini Nimmala <quic_snimmala@quicinc.com>
We're currently using the ABI symbol list from within msm-kernel and is
not version-tracked by ACK. Thus, GKI_SKIP_IF_VERSION_MATCHES may
spuriously pass even if there is a symbol list change. Disable
GKI_SKIP_IF_VERSION_MATCHES for now until we start using symbol list
from ACK.
Change-Id: Ifea662029a193e36c4c6d28bedc167399f4f85ba
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
Add the device information structure for sdx75 along with
its device id, firmware and edl image paths.
Remove the kconfig dependency on the esoc driver.
Change-Id: Iea7b3e82f274804d781bdbc333b36c64784eef33
Signed-off-by: Prudhvi Yarlagadda <quic_pyarlaga@quicinc.com>
Add one clk_measure node to support CPU Gold2 cluster for
Pineapple.
Change-Id: I2b7d3f4fa249b1496fe6104edcd54b030e2a7e8e
Signed-off-by: Xubin Bai <quic_xubibai@quicinc.com>
Enable u1u2 functionality in USB device mode when USB is operating
in super speed (gen1 speed).
Change-Id: I14056274b68c3ed395ee3673312606ded68afcd6
Signed-off-by: Mayank Rana <quic_mrana@quicinc.com>
eUSB2 repeater is unable to block KJKJ pulse during ESE1. This is
resulting into eUSB2 PHY and repeater going out of sync and next
link up in high speed fails. Fix this issue by performing soft
reset of eUSB2 PHY.
Change-Id: I9913fe4cab03b344dea0525f7a72282cd743a915
Signed-off-by: Mayank Rana <quic_mrana@quicinc.com>
Allow clients to see what IPA address a mem_buf object is
mapped to.
Change-Id: Ib3d47cb78bf7b1b217950e1e59b8d542abb3a331
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
When a kernel thread calls dma_buf_put() to release the last reference
to a dma-buf, fput_many() defers calling the release callback to a
workqueue. This means that if the same kernel thread later calls
dma_heap_buffer_alloc(), it has no guarantee that the memory from the
prior free is available, leading to random failures. As a short-term
workaround, call flush_delayed_fput() to ensure the free completes
synchronously.
Change-Id: Ia2ab97ca9d1adfb99cd20a316d412bf931f7b3f0
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
Add flushed_delayed_fput for usage by mem-buf.
Change-Id: I16b06de8b4b87f8e4d391229c6b13181c7be9bd9
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
When below sequence is run back-to-back, -ENOMEM is occasionally returned
by MEM_BUF_IOC_REMOTE_ALLOC.
ioctl(MEM_BUF_IOC_REMOTE_ALLOC, args)
fd = args.fd
close(fd)
This occurs because the message sent from TUIVM to PVM as part of the
file release callback is asynchonous. Resolve this by adding a new
message type which indicates when PVM has completed the free operation.
Additionally, define a separate obj_id instead of reusing the transaction
id for this purpose.
Change-Id: Iea458ec80cd14bd08848192371d0bb71cdc5de60
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
Reuse the same buffer for each message in mem_buf_msgq_recv_fn()
instead of allocating a new one for each message, and freeing it
in a dozen different locations depending on what type of message it
is.
If a consumer of the message needs to defer its work to a workqueue,
it must allocate a new copy of the message.
Change-Id: Ia5583bc7dc9937211f25624f7a679d34fe8fb521
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
gh_rm_mem_accept allows a VM to request memory to be mapped to a specific
IPA address. Modify function parameters to allow for future use of this
feature.
Change-Id: I6ad586886563e769549e4966369da48c27ca0a5c
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
Allow a guest VM to choose whether the memory it requests is obtained
via the lend, share or donate hypervisor call.
Change-Id: I7e1f25ea0f9b0ec99d4a7afd79f206f9a2b67d85
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
Support to donate memory is always present on compatible hypervisor
builds.
Change-Id: Ic7a4c03716277e379014bb31e58358cffb85409c
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
Enable CONFIG_QCOM_MEM_BUF_MSGQ, CONFIG_QCOM_MEM_BUF_GH and
CONFIG_QCOM_MEM_BUF_DEV_GH to allow mem-buf CPU use cases to be
exercised.
Change-Id: I15bbb098c1ba28924f73b203718203f4dbd6c2bd
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
add_memory_subsection() and remove_memory_subsection() are only needed
on the TVM and OEM VMs. These are downstream functions as well. Thus,
selectively allow them to be enabled so that we only compile them on
downstream kernels.
Change-Id: I8416cd8eb8db74cf8a3cfbc8e3d7ea2fff112353
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
Add snapshot of cpucp mailbox and logging drivers from msm-5.15
commit 250869d2bdc2192 ("sched: improve the scheduler")'.
Change-Id: Ibe7497e4c27b0d031b6f7857f0a24ff0035e85fa
Signed-off-by: Amir Vajid <quic_avajid@quicinc.com>
Add dcvs scmi drivers. This snapshot is taken as of msm-5.15
commit 250869d2bdc2192 ("sched: improve the scheduler").
Change-Id: Id8408e23a11c60de4ac7fa7e3205f907af68ea08
Signed-off-by: Amir Vajid <quic_avajid@quicinc.com>
Add snapshot of dcvs drivers from msm-5.15 commit
250869d2bdc2192 ("sched: improve the scheduler")'.
Change-Id: I3c38cb8d90deaa140f29f8bbdbad2e1e5989eb31
Signed-off-by: Amir Vajid <quic_avajid@quicinc.com>
We have a legacy sysfs interface to change the USB operating mode. Since
usb_role callbacks are available for user space and UCSI, there is
really no need for mode sysfs interface. For the sake of not breaking
any existing use cases, keep the mode interface but re-use the usb_role
callbacks. The usb-role-switch is an optional property, so refactor
the role switch ops so that they can be called even when this property
is not available but mode sysfs interface can be made available. Note that
there is no visible change to the user space.
Change-Id: I3f8b03b420429375af8d29d7b2339b490980dee0
Signed-off-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com>
If the same role as the current role is requested, bail out early.
Change-Id: I42dc3f6759800926a4a98254a2ff30f932394704
Signed-off-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com>
If USB controller is configured to work in a specific mode, reject
any compatible role/mode request. For example, if device mode is
only allowed, switching to host mode/role is not allowed. The current
code allows this and it results in accessing invalid dwc host structures.
Change-Id: I5e4d905c8240ad228f48b40fe36298029d8770e1
Signed-off-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com>
Funnel devices are now capable of supporting multiple-inputs and
multiple-outputs configuration with in built hardware filtering
for TPDM devices. Add software support to this function. Output
ports is selected according to the source of the trace path.
Change-Id: I491293e0b1948f3747d34eb79e7845617ace4244
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Signed-off-by: Tao Zhang <taozha@codeaurora.org>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
Remove region from local minidump table when failed to register new
region with RM call.
Change-Id: I85bbf62e90cd423be7d3475a5f6526062b22c8c9
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>