Map and pin buffers on demand on the submission path.
This ensures that we only map buffers whose iova are
actually needed for submission as opposed to all
buffers in the buffer list. For instance, the command
buffers, and the reloc buffers for processing relocs.
Also remove unused member valid from the struct
msm_gem_submit.
Change-Id: I644f44f202552d14762ffe1d1761b98ed5961020
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
Map command buffers to the kernel address space only if
relocs are specified for the submission. This reduces some
overhead on the submission path.
Change-Id: I32ca3c7fe2147c835a328e0c8937b45f2f3d59b9
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
__user should be used to identify user pointers and not __u64
variables containing pointers.
Change-Id: Ic0dedbad30b0244e7fa3b34858d5020001b87330
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Remove the incorrect Ainfo transfer to the sink during the
start of repeater test cases for the HDMI HDCP 1x module.
This causes incorrect results from sinks which are repeaters.
Fix the logic to disable software DDC before going into
part3 of HDCP 1x authentication.
Change-Id: Iddf1c5804162ecd3919a0d4fedc9102e3b1778ed
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
Currently, deep color mode flags are not being cleared
across connect-disconnect of HDMI cable. This leads to
stale information being present on the next successful
connection.
Clear the stale deep color mode flags before updating the
modes during a connection event.
Change-Id: I90d494a67dfb1c3fd464f1e1ffb24592bd712702
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
Add debugfs entries for reading/writing WLAN hardware registers.
This is for runtime debugging enhancement.
Change-Id: If7a85181858e127187906beca69870a98f4a1184
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
Enable ATL1C for ethernet driver, DEVMEM for debugging memory
mapped registers and PPS for the pulse per second driver.
Change-Id: I169a2f34b352008bd6c4d72111c53cdcdf16e566
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
Force probing the sdhc1 bus even if it is not the boot device
by reading the device tree property qcom,force-sdhc1-probe.
Enables using the primary port for other use cases even when
the board is not using eMMC for boot.
Change-Id: I2a2b9d6a51037641720bdfd3107b2fadf385d7b5
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
Check to see if the host is not NULL before trying to use
it, this avoids a crash when the driver is probed, but the
card is not available. Also remove dependency on ARCH_MSM
since it is not used anymore.
Change-Id: I476a512dd41e0c336b71c96d8dd2972cdadb8732
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
Add compatible flags for CAN controller and HSM chip to use them
with the spidev driver from user space.
Change-Id: I154c29b6c912cac2560333ef635aa4a542fd1985
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
ASM max active sessions increase to 9 to allow 8 interactive and
one primary stream concurrently.
CRs-Fixed: 2093120
Change-Id: I92a51dd1937634abb472fc06edbdd879b3d152d0
Signed-off-by: Varun Balaraj <varunb@codeaurora.org>
Modularize the wcnss power up sequence like wcnss voltage
regulator enable/disable sequence and voltage regulator
current and voltage level parsing method. Remove hack code
from the power wcnss power process and enable/disable
the power resource if it's defined in the wcnss device node.
Update the debug logs to track the exact state of the power
state during device bootup. Remove the unnecessary logging
for the optional resource request fails during device bootup.
CRs-Fixed: 2086414
Change-Id: I30b1e2196eb9d1c933275f3db34ca0ff5664ea3b
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
Added code changes to check ipa3_ctx initilized or not
during bootup in sdm670.
Change-Id: I03e5b8de30c77da140e9575c2315b0878cf5363c
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
The WLAN host driver use device serial number to generate
MAC address. The wcnss platform driver export symbol for
WLAN host driver to read the device serial number to generate
the MAC address. Add updated SOC API to get the device serial
number in the wcnss platform driver.
CRs-Fixed: 2089225
Change-Id: Ic540f2e6e705131f18b59e8f139087d5d99024f6
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
Add support to validate the result and error code
received from the WLAN firmware service.
CRs-fixed: 2095184
Change-Id: I454df58e293fbf2d99601d1c6820e67b5cae370c
Signed-off-by: Anurag Chouhan <achouhan@codeaurora.org>
Protecting operations performed during ois powerdown
from race condition by adding mutex locks.
CRs-Fixed: 2081806
Change-Id: I27a735fd69d3e98fdd2ed48456336c560b6f3adc
Signed-off-by: VijayaKumar T M <vtmuni@codeaurora.org>
In function parse_qos_dt_params, memory is allocated to arr32 but it
is never freed.
Free memory when exiting the function.
CRs-Fixed: 2093722
Change-Id: Ic1fc58c6685990e2865ef4033b54303d47311560
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
On 64bit platforms, the amount of memory allocated by ion can exceed
32 bits. Therefore the counters which track this information must be
64 bits as well.
Change-Id: I81daf2cec78de5787279daaf98264c5462ba6645
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
The patch updates the PD packet length prior to
being processed, adds a check for core PD buffer busy
status before being processed and marks the core PD buffers free
only when there is no data to be processed in user PD.
CRs-Fixed: 2068243
Change-Id: Ida215b4df75ddc96ebd5d436850bddf56f3a4fce
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
In case of no requirement of internal scratch buffers, driver
propagate error to upper layer leading to stream on failure.
This commit could avoid setting scratch buffers when there
is no requirement.
Change-Id: Iedcac8a54f2ae4136b6d885b3955927d4566d9db
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
Hide kernel pointers from unprivileged users by using %pK format-
specifier instead of %p. This respects the kptr_restrict sysctl
setting which is by default on. echo 0 to kptr_restrict to print
proper kernel addresses.
Change-Id: I6f14b039f2f193196edfce8160ae38341229085c
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
This patch addresses an issue in the GPU init sequence where
the clocks are turned on during the process but after the
init is complete the clocks are not turned off. Due to this,
the GPU clocks always have a refcount delta of 1 and never
get disabled later even when explicitly requested.
Change-Id: I40fa9a25cd86f5d39fbe6f6e3f83d6ab467d615f
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
After enabling the GPU clocks, the GPU can pagefault
when trying to access memory(example the ringbuffer).
This patch addresses the pagefault issue by enabling
the memory retention flags on the GPU core clock.
Change-Id: Ibabecba77501d6a3b188b19c90c172de7d667c8c
Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
add depends on MSM_GVM_QUIN for SND_SOC_MSM8996
and remove SND_SOC_MSM_HDMI_CODEC_RX for virtual platform
CRs-Fixed: 2085351
Change-Id: I1e911ffa5b34d69c9286f22d7b2c001a065cbfc1
Signed-off-by: Yonghui Zhang <yonghuiz@codeaurora.org>