PWM channels that are configured to support Variable Frequency Mode
generate a signal of fixed duty cycle (50%) and variable frequency. In
such cases, the desired frequency setting is calculated differently
internally, according to a new formula.
Change-Id: I5cbbab9fa75fdd22c75811e5f61e69b8f4abe020
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
Certain MHI clients rely on MHI host driver to queue buffers for
them. Sizes for those buffers are in turn obtained from the
controller configuration. Update the buf_len to 32K so as to
satisfy memory requirements and constraints for those clients.
Change-Id: I011e7b8edf8096e7812661e24e59437862cfb2c2
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Print BHI execution environment and MHI state that has been read
during power up to enable better debug and tracking.
Change-Id: I00ebeec535128cf78855e3c1a20a42c8c8595d69
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Error messages for UCI and network driver had garbage prints due
to an extra string format specifier. Remove that and fix the
messages that print to console for error purposes.
Change-Id: If7e1a40cf422a944cf693f57bf034543571068be
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Virtual buffer objects are memory constructs that occupy a large GPU
virtual memory footprint with a sparse list of physical backing memory.
The classic use case is for a large mipmapped texture with
multiple levels that can be backed in physical memory in stages as the
application requires but the usefulness of this feature goes far behind
textures.
New VBOs can be created by specifying a flag to the memory allocation
function and other objects can be bound into the object with the new
KGSL_IOCTL_GPUMEM_BIND_RANGES ioctl.
A list of all the active vbos and mappings for a process can be found
in /sys/kernel/debug/proc/<pid>/vbos.
Change-Id: Ic0dedbad39db3c11bf4a959b273b432cb85cdd72
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Pranav Patel <pranavp@codeaurora.org>
Currently IPC logging is enabled for debug build only,so it is
very difficult to analyze the UART issue if IPC logging is
not present. To overcome this issue we have added the support of
ftrace logging. Here we have created the different events to print
the logs for different types using TRACE_EVENT macro. The ftrace
output will be present in the below path,
cat /sys/kernel/tracing/instances/hsuart/trace.
Change-Id: I3532bc7049f13180ed230b002926107a2563b034
Signed-off-by: Aniket Randive <arandive@codeaurora.org>
Add SELinux configs to waipio_tuivm defconfig. This includes
dependencies such as CONFIG_INET.
Change-Id: Ieea8162c4a29bbd61160b732936dd1f76f6debfd
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
While requesting 4LN DP, the XHCI stack is removed, and re-added.
During this transition, the DWC3 core and DWC3 MSM are forced into
runtime suspend. When the DWC3 DRD receives the role switch event to
go back into host mode, it has to first bring the DWC3 core out of RPM
suspend. During RPM resume, the dwc3_core_init() API is executed,
however, it will fail as the SSPHY is not initialized (due to 4LN DP)
and the PIPE clk is not generated. For supporting HS only PHY, we
need to set the CLK MUX accordingly to use the UTMI clk.
Change-Id: I4de9b9509dda5c6c4d91c2e86a4f0f633b2717f8
Signed-off-by: Wesley Cheng <wcheng@codeaurora.org>
Implement the map_pages() callback for the ARM SMMU
driver, to allow a range of physically contiguous pages of the
same size to be mapped in one call, as opposed to mapping
each page per call. Also, remove the map IOMMU driver hook,
as it is no longer used.
Without this patch, we observe the following latencies for
iommu_map():
(average over 10 iterations)
size iommu_map iommu_unmap
4K 0.447 us 4.489 us
64K 1.375 us 4.406 us
1M 18.286 us 4.572 us
2M 0.151 us 4.364 us
12M 0.474 us 4.349 us
24M 0.817 us 4.348 us
32M 1.052 us 7.031 us
With this patch, we observe the following latencies for
iommu_map():
(average over 10 iterations)
size iommu_map iommu_unmap
4K 0.458 us 4.494 us
64K 0.395 us 4.406 us
1M 2.046 us 4.416 us
2M 0.156 us 4.437 us
12M 0.177 us 4.333 us
24M 0.213 us 4.364 us
32M 0.250 us 4.348 us.
Change-Id: Ia0ecac4286dfc4ccd34233e1bbc0760c082ce304
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Implement the unmap_pages() callback for the SMMU driver to allow
a range of pages of the same size to be unmapped in one call,
as opposed to unmapping each page per call. Also, remove the
unmap IOMMU driver hook, as it is no longer used.
Without this patch, we see the following latencies:
(average over 10 iterations)
size iommu_map iommu_unmap
4K 0.401 us 5.296 us
64K 1.260 us 5.140 us
1M 17.239 us 18.624 us
2M 0.130 us 4.348 us
12M 0.416 us 4.588 us
24M 0.729 us 4.828 us
32M 0.947 us 4.994 us
size iommu_map_sg iommu_unmap
4K 0.401 us 4.401 us
64K 0.505 us 5.145 us
1M 4.583 us 16.989 us
2M 7.745 us 4.447 us
12M 40.000 us 5.182 us
24M 78.270 us 5.729 us
32M 108.661 us 6.271 us
With this patch, we observe the following latencies:
(average over 10 iterations)
size iommu_map iommu_unmap
4K 0.432 us 4.505 us
64K 1.255 us 4.411 us
1M 16.557 us 4.437 us
2M 0.130 us 4.432 us
12M 0.421 us 4.369 us
24M 0.744 us 4.375 us
32M 0.953 us 4.359 us
size iommu_map_sg iommu_unmap
4K 0.463 us 4.401 us
64K 0.593 us 4.411 us
1M 4.463 us 4.437 us
2M 7.463 us 4.453 us
12M 42.942 us 4.692 us
24M 83.692 us 4.703 us
32M 105.916 us 4.796 us.
Change-Id: Iee4b41c7a61c3e9862dd50111345e0329d90ea41
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Implement the map_pages() callback for fastmap.
Change-Id: Icce8f827a52f08f64967aa86c64145d243754d69
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Grab the reference count to the socket before queuing a packet to
the mhi layer. If not, there is a chance of the reference count
being reduced without being incremented first.
Change-Id: I727235a68e9681a86043705cadbfab7634321ca7
Signed-off-by: Jay Jayanna <jayanna@codeaurora.org>
Add qcom-pmu-lib to modules list in the first stage init.
Modules installing perf events need to have CAP_SYS_ADMIN
or CAP_PERFMON capabilities to install events. Moving this
module to first stage solves the problem by ensuring that
init thread insmods this module.
Change-Id: I52b90cfa22dff3afb61a28356bfabae5e60f374b
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Do integer overflow check on the length of buffer
to be copied before copying to the buffer.
Change-Id: I425861170125fb3069739af84975c4893462624e
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>`
When attaching to audiopd on ADSP, allocate one
extra byte for the process name so that it is
null terminated when data is copied from file
pointer in the userspace.
Change-Id: Iffb9ef5cb0198ff7cbf44d0f3be03a1c9f29a90f
Acked-by: Vishnu Karthik D <vikarthi@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>