As per the hardware documentation, adjust T_LRA using RC clock
calibration when playing in FIFO mode with play rate not less than
8 KHz. Based on the closed loop T_LRA, adjust the open loop T_LRA
specified in the device tree and use it in the calculation.
Change-Id: I5197bd04051c2aaab38c5ff5f37a47e0ef4b48d3
Signed-off-by: Shyam Kumar Thella <sthella@codeaurora.org>
In case firmware request fails to find firmware in default
location, re-try with fall back location. This is done by
adding fall back firmware image location in controller
structure and firmware request is sent again using fall
back location. Send a status call back to controller when
re-try is done.
Change-Id: I252fa2721df335cbff11b8894adb9ad8cf7bf54f
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Avoid any host driver ops access after register driver gets killed
by marking it as NULL.
Change-Id: Idd268d5d8d31569c4272fde566866c4d79bc1cad
Signed-off-by: Yue Ma <yuem@codeaurora.org>
As there is no increment in ref_count on context when debug_fs is
disabled, ensure there is no decrement in ref_count either.
Change-Id: I8da258a78a8b82ee967b1c944209f6777439e682
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
VMs need to make GET_HYP_RESOURCE call to get resource information (dbl,
msgqs) associated between VMs. If the caller VM want to get resources
associated with another VM, caller VM has to supply the VMID of the
end point. Add support to get hypervisor resources.
Change-Id: Id5f16796ba2a84917c9a072cfeb36d24010e34da
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
While attempting to block low power modes before sending
commands to modify channel state, make sure that execution
environment is in mission mode as we may run into a race
condition where a forced suspend/resume cycle does not get
a chance to run.
Change-Id: Ibc7ca5a52036e18677bb597dc0cd95be96d6698a
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
When attempting to latch the remote timer value, host should be
using internal sequence numbers that change every time a client
calls the exposed API and rings the time synchronization
doorbell so that device can identify them as different requests.
Change-Id: I2a38b63c6b942df032f096b17b1fdbc2abdb171b
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Some devices support doorbell method to collect time
synchronization information. Add support from host for the
updated way of handling initialization and advertising
support.
Change-Id: I5bc82b946fd64927a2a88babc8d383e5fa664cf6
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Allow a GPU definition to specify a compatible string to match a GPU
target. If specified a matching compatible string will take priority
over the GPU chipid match.
Change-Id: Ic0dedbadd998dcc8e8f9bc5de2e383870258ad48
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Remove the legacy platform id_table and just rely on the standard
of_match_table instead. Use the standard macro for specifying
the match table pointer and set the MODULE_DEVICE_TABLE.
Change-Id: Ic0dedbad84f80b28d1885a7326324eb67ef97d9b
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Adding and removing dev PM QoS notifications uses mutex lock and
therefore cannot be called from CPU starting notifications. Update QoS
notifier in a stage when interrupts are allowed.
Change-Id: I21ce6a23d51e97d9f05e96a1772c028c4760ec7d
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Print the rt_runtime allowed for a given rt_rq in throttling debug
message dump. This helps in catching suboptimal RT runtime tuning
issues.
Change-Id: I58027cb94500cf93eb42b44dcec9a5e68670b5e9
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Add code to pick hang data offset based on deviceID.
Change-Id: I865fc90ea558d2626672b51c5cecadfdf93358b3
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
This is a snapshot of the RPM-SMD driver functionality as of
'commit 0453f0e705df8b("move rpm-smd initcall to
postcore_initcall_sync")' on msm-4.14 branch.
Change-Id: Ie70bca9c28ae2339b45715f7d82839f39e733832
Signed-off-by: Raghavendra Kakarla <rkakarla@codeaurora.org>