996901 Commits

Author SHA1 Message Date
ad43642de1 pwm: qti-lpg: Add support for FM MODE
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>
2021-04-29 18:49:37 -07:00
977a6e60e4 Merge "msm: kgsl: Add virtual buffer objects" 2021-04-26 22:24:05 -07:00
d8a32d26b8 Merge "bus: mhi: controllers: qcom: Limit MHI client buffer lengths to 32K" 2021-04-26 22:24:05 -07:00
a781384a1c Merge "bus: mhi: devices: Fix error messages for UCI and network driver" 2021-04-26 18:51:44 -07:00
ed72326f23 Merge "bus: mhi: core: Print device execution environment and state on power up" 2021-04-26 18:51:43 -07:00
3af4d9d219 bus: mhi: controllers: qcom: Limit MHI client buffer lengths to 32K
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>
2021-04-26 18:27:39 -07:00
7fdaa0a3c2 Merge "modules.list.msm.waipio: Add qcom-pmu-lib to modules list" 2021-04-26 14:48:46 -07:00
71e2be6478 Merge "usb: dwc3: dwc3-msm-core: Set CLK MUX to use UTMI during host mode" 2021-04-26 14:48:46 -07:00
67cb50eb57 Merge "defconfig: waipio_tuivm: Add SELinux configs" 2021-04-26 14:48:46 -07:00
e25d84d5d7 Merge "serial: msm-geni-serial: Add support of ftrace logging for UART" 2021-04-26 14:48:45 -07:00
43196c862d Merge "serial: msm_geni_serial: Bailout from suspend if RX data is pending" 2021-04-26 14:48:45 -07:00
464e00b40c Merge "msm: ipa: support new qmi request info for filter stats" 2021-04-26 14:48:45 -07:00
04469f9b97 Merge "kernel: hdcp_qseecom: Enable as gki module" 2021-04-26 14:48:44 -07:00
548f4b0ee9 bus: mhi: core: Print device execution environment and state on power up
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>
2021-04-26 12:36:16 -07:00
66fd3c42db bus: mhi: devices: Fix error messages for UCI and network driver
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>
2021-04-26 11:10:37 -07:00
40c7f7d8a2 msm: kgsl: Add virtual buffer objects
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>
2021-04-26 20:40:17 +05:30
f3173b0449 serial: msm-geni-serial: Add support of ftrace logging for UART
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>
2021-04-26 18:44:38 +05:30
7cdc84e418 defconfig: waipio_tuivm: Add SELinux configs
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>
2021-04-25 15:21:42 -07:00
991467c12e usb: dwc3: dwc3-msm-core: Set CLK MUX to use UTMI during host mode
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>
2021-04-24 02:53:38 -07:00
d022274edd Merge "net: qrtr: mhi: Get socket ref count before queuing to mhi" 2021-04-24 02:21:05 -07:00
0c0150bbfa Merge "msm: adsprpc: Add checks to avoid buffer overflow" 2021-04-24 02:21:03 -07:00
e8d9600092 Merge "usb: gadget: qdss: Add NULL check against channel with usb_qdss_free_req()" 2021-04-23 22:52:01 -07:00
d2903fc66e Merge "iommu/arm-smmu: Implement map_pages() callback" 2021-04-23 22:52:00 -07:00
3d5e81e117 Merge "build.config.msm.common: Use clang to compile DTC" 2021-04-23 17:09:04 -07:00
4eb2154eb8 Merge "defconfig: waipio: GKI: Add configs for notification timeout" 2021-04-23 17:09:03 -07:00
dcaaafc61c iommu/arm-smmu: Implement map_pages() callback
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>
2021-04-23 15:08:42 -07:00
e5175c9c83 iommu/arm-smmu: Implement the unmap_pages() callback for the SMMU driver
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>
2021-04-23 15:08:41 -07:00
61762de63a io-pgtable-fast: Implement the map_pages() callback
Implement the map_pages() callback for fastmap.

Change-Id: Icce8f827a52f08f64967aa86c64145d243754d69
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2021-04-23 15:08:37 -07:00
df64dff800 Merge "usb: dwc3: Remove WQ_MEM_RECLAIM flag while allocating sm_usb_wq" 2021-04-23 14:54:51 -07:00
526ec66e78 Merge "slimbus: core: Fix NULL pointer dereference in slim_device_alloc_laddr()" 2021-04-23 14:54:50 -07:00
f38f22e599 Merge "qcom-io-pgtable-arm: Prepare PTE methods for handling multiple entries" 2021-04-23 14:54:49 -07:00
e9355038d9 net: qrtr: mhi: Get socket ref count before queuing to mhi
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>
2021-04-23 09:31:37 -07:00
76e1f967a3 modules.list.msm.waipio: Add qcom-pmu-lib to modules list
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>
2021-04-23 09:30:10 -07:00
3770ec2965 Merge "drivers: dcvs: pmu_lib: disable irqs when reading pmus" 2021-04-23 09:16:55 -07:00
f25ca078b0 Merge "serial: msm_geni_serial: Do not change Flow control from termios" 2021-04-23 05:53:03 -07:00
ca17b44106 Merge "btpower: Add support for XO clock latching" 2021-04-23 05:53:02 -07:00
0e29d99d50 Merge "msm: kgsl: Validate page offset before vmf_insert_page" 2021-04-23 03:51:34 -07:00
772d191343 Merge "msm: adsprpc: Allocate buffer taking NULL byte into consideration" 2021-04-23 03:51:34 -07:00
0a12b7fe9b Merge "msm: kgsl: Add a memdesc op to unmap and put away the GPU address" 2021-04-23 02:12:01 -07:00
66144da644 Merge "qseecom: Update correct parameters before sending to smcinvoke" 2021-04-23 02:12:01 -07:00
10aad6ca65 Merge "qcom-iommu-util: Fix missing vunmap call" 2021-04-23 02:12:01 -07:00
ad91c4a499 Merge "defconfig: waipio: Enable DEBUG_OBJECTS feature for waipio" 2021-04-23 02:12:01 -07:00
ddf85b3985 Merge "sched/walt: Initialize task groups from vendor hook" 2021-04-23 02:12:00 -07:00
f73b96e6d5 Merge "tty: serial: msm_geni_serial: Fix timeout for Rx abort" 2021-04-23 02:12:00 -07:00
6b0ec47cb3 msm: adsprpc: Add checks to avoid buffer overflow
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>`
2021-04-23 01:01:40 -07:00
09eefbf2e7 msm: adsprpc: Allocate buffer taking NULL byte into consideration
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>
2021-04-22 22:37:45 -07:00
2db999c75b Merge "bus: mhi: core: Delete ring element after processing misc command" 2021-04-22 22:27:00 -07:00
d39cc2e98c Merge "bus: mhi: core: Add debug prints to improve MHI boot-up logs" 2021-04-22 22:26:59 -07:00
581688dc3b Merge "msm: kgsl: uapi: Add virtual buffer object definitions" 2021-04-22 22:26:59 -07:00
a7765f5617 Merge "drivers: thermal: bcl_pmic5: Enable vbat thermal zone" 2021-04-22 20:39:32 -07:00