return EBUSY if there was a crash while handling rproc_set_state.
While at it also log the client name in error scenario.
Change-Id: Ida9e47cdfde7eead2f20af4913f3f51ee35d3459
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
Signed-off-by: Kamati Srinivas <quic_kamasrin@quicinc.com>
Only 10 chars available for the region's name on autoGVM platform.
Shorten the region's name to meet the string length limitation.
Change-Id: Ie1e14905a5a479af77fb76dc1d0a4520ea0c34ae
Signed-off-by: Fei Yang <quic_feiyan@quicinc.com>
Enable QRTR_GUNYAH and QRTR for vm communication
for niobe config. Add qrtr core driver module to
enable qrtr-gunyah support.
Change-Id: I9a046c7f1b7300303d6b8a421fad146153ae5b29
Signed-off-by: Sivaji Boddupilli <quic_boddupil@quicinc.com>
Signed-off-by: Vishnu Santhosh <quic_vishsant@quicinc.com>
In the current design, second USB port support is enabled based on a
DT property alone. On the other hand, the charger firmware that runs on
the remote processor detects the second port presence dynamically
reading a HW fuse.
To make the design seamless, charger firmware has added a new
property under first USB port, to provide the number of USB ports
supported.
Add logic to read this new property, in addition to the existing DT
property based detection, to enable support for the second port.
Change-Id: Ie70294cb314c6b53e60c36398665ae4f218ea662
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
Add ipclite_test to be blocklisted by default on niobe.
Change-Id: Ic1f397b8606ac23e6b72e4f2c28b33a539d5d5f7
Signed-off-by: Chelliah Vinu R <quic_chelliah@quicinc.com>
Increase pimem master priority to P3 from P2 based on post silicon
recommendation from tlm team.
Compared to blair, pimem traffic is more on pitti and increasing the
priority is helping to fix pimem timeouts.
Change-Id: Ib951e7e0d7f2c29b2c1cb519c1b08396d974961a
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
With Early Ethernet enabled Link is not up after S2R.
reset the PHY at S2R to fix the Link issue.
Change-Id: I8549d4af7c4dcdc84abcf8deb136028925db5dae
Signed-off-by: Uppalamarthi Sowmya <quic_usowmya@quicinc.com>
During Host mode RT suspend, we remove PM QoS requests at the
beginning of msm_suspend(). However, if msm_prepare_suspend()
fails and we bail out after resuming xHCI. And we won't add
the perf votes again from msm_resume(), since msm_suspend()
never succeeded and the in_lpm flag was not set.
Consequently, during the next dwc3_msm_suspend(), we remove the
perf votes again results in warnings in kernel logs.
To address this issue:
- Move the perf_vote_enable(false) operation after completing
dwc3_msm_prepare_suspend().
- moving pm_qos_add() or pm_qos_remove() to msm_probe and
msm_remove respectively.
Change-Id: Id064b0fe55e03905ba6c60c533519d5e0268b1c1
Signed-off-by: Rajashekar kuruva <quic_kuruva@quicinc.com>
commit: 9bbb1b4dc059a introduced new conditional check in
msm_probe function, results in cyclomatic complexity
Move IRQ registration to new function dwc3_msm_register_interrupt
Fix cyclomatic complexity for function dwc3_msm_probe().
Change-Id: Iad10117156dc2b0b86583f1cdafa31ecdbc55ef6
Signed-off-by: Rajashekar kuruva <quic_kuruva@quicinc.com>
Currently i2c geni driver doesn't have null pointer check condition
in event call back function. If any invalid event is coming from GSI,
i2c geni driver accessing null pointer which is causing crash.
To solve this added null pointer checks in event call back functions.
Change-Id: Ie14a40eee846c0ea29bec512d6320e9548c509b5
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
Due to the permissions are not provided to the apps to read
the secure SE registers. Instead, consider reading the RO
registers that are available.
Change-Id: I350c23eea1f319a50e7fdd61151041bebdbfce7c
Signed-off-by: Aniket Randive <quic_arandive@quicinc.com>
The hab team recommends that the maximum message size that the
hab client can send is 64k. We increase the size of
OUT_LARGE_BUF_SIZE to 64K so that the memory pool can cover
all messages of the recommended size.
In non-stress scenarios, this helps to avoid jitter in the
performance of sending messages due to memory requests.
This change does not result in a large amount of additional
reserved memory, because OUT_LARGE_BUF_NUM is 10, and each
pchan group will only reserves (64k- 50k) * 10 = 140k more memory.
Change-Id: Ia26f408230e1121d6f927dd084f551cc64656e96
Signed-off-by: Zelong Ren <quic_zeloren@quicinc.com>
The TCSR register alone cannot be relied for confirming the D0
state, adding another smp2p bit to confirm the D0 state.
Change-Id: Ibfc3cf0b1c47450026b820e5c99ddc2c615224e1
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
Signed-off-by: Kamati Srinivas <quic_kamasrin@quicinc.com>
The debugfs creating call should return error number if failed, need
assign null to debugfs ptr for releasing stage.
Change-Id: I45a979014cb083cf9c322af71b15d977700e3bfc
Signed-off-by: Kasin Li <quic_donglil@quicinc.com>
Add some missing USB opcodes to ensure they are aligned
correctly with the USB opcodes defined on CHGFW side. This is
needed to ensure that a new USB opcode which will be added does
not overlap with any of the older existing opcodes.
Change-Id: Ibf05acec9346786193745e1f9db7c1b40e8651b7
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
Add and enable qti epm hardware driver and thermal zone
debug feature driver in config and bazel for anorak.
Change-Id: Ib262762b46c37ba01c8ed177291a411011af6001
Signed-off-by: Nitesh Kumar <quic_nitekuma@quicinc.com>
CONFIG_QCOM_MEMORY_DUMP_V2 is required by cnss2 to
support latest wlan chips for wlan fw dump.
Change-Id: I47e42054614979192e5713e1b6c36720c5a32266
Signed-off-by: Zou Shunxiang <quic_shunxian@quicinc.com>
Make hab open as uninterruptible to maintain same atomic
context to avoid file system sync issues.
This is snapshot from msm-5.4 branch with commit ids
commit a099f7774d07 ("crypto-qti-virt: Proper handling of hab close call"),
commit 8aa1befa10e8 ("crypto-qti-virt: Make fbe hab request as
uninterruptible"),
commit 947ff2fe45e2 ("crypto-qt-virt: Remove kthread mechanism while
sending request").
test: VTS kernel encryption tests passed.
Change-Id: Iad8eed6cd8cc8569aea4b1a42ba4b9923b6ac9ab
Signed-off-by: Santosh Dronamraju <quic_sdronamr@quicinc.com>