Add virtual channel info print in the error handling of memory
sharing functions.
Change-Id: If0b2b004a8d500db0c8884a0417c758f10245053
Signed-off-by: lixiang <quic_lixian@quicinc.com>
Some hot-pluggable endpoints like SDXC can be removed on the fly. When the
card is removed without gracefully shutting it down. Then PCIe driver can
see a link-down event (as the physical connection has broken) even before
PCIe driver terminates the link.
For such intentional/expected link-down events, we don't need to dump all
the PCIe register info.
This change is to distinguish between normal link-down and link-down due
to card removal and to skip duping debug info in the latter case. It
makes use of the card-presence pin to identify card is present or not.
When it sees a link-down without the card present, then it treats this
link-down as an intentional link-down and skips dumping PCIe registers.
Change-Id: Ifbcf8bae2558b4440ace9c042f6c76a43dce4354
Signed-off-by: Paras Sharma <quic_parass@quicinc.com>
In kernel-5.15 we have driver called power_state.c. power_state.c
updated the state via pm_set_suspend_via_firmware(), From kernel 6.1
onward we are not using power_state.c due to GKI compliance. So,
we are updating the state via pm_suspend_target_state.
Change-Id: I9a071d485589f9530324bf80db6c206546a21966
Signed-off-by: LADI RAM SAI <quic_lramsai@quicinc.com>
unsigned long uses %lu format specifer, this change updates to same.
Change-Id: I20a3a3c3b705dbd24761bbe9c655fa5d88914a56
Signed-off-by: Tushar Nimkar <quic_tnimkar@quicinc.com>
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
Change is to update the de-emphasis value of NTN3
via i2c register writes to resolve link failure
issues seen on MBB platforms.
Change-Id: If90e5efc19691a14c3d5f12af78df9ff5c2b2a25
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Yogesh Jadav <quic_yjadav@quicinc.com>
Signed-off-by: Joco Zhang <quic_pingshen@quicinc.com>
1. Enable panicking upon notification timeout and also
increase timeout values to 20 s from the default 10 s.
2. Add PDR timeout configs for notification in niobe
and also increase timeout to 9 sec.
Change-Id: I27a842e776535fb19b61edb4c6e18a3c2cf3dccd
Signed-off-by: Meena Pasumarthi <quic_pasumart@quicinc.com>
Add support for QXR hw platforms in socinfo driver.
Change-Id: Iddbf49c76fa231bdd2a88a63cac2196093f7df36
Signed-off-by: Lijuan Gao <quic_lijuang@quicinc.com>
Add sync_state functionality to remove threshold held during
initial boot up and clean up any linger proxy resources that
were voted from bootloaders.
Change-Id: I667bc140d91268bb4e178a3d1fc34cc18adf0b1e
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
Currently __qti_flash_led_brightness_set() would be called when
a flash or torch led brightness is set followed immediately by an
hrtimer callback invoked on behalf of an on_time set after
setting the brightness for a switch. When the latter happens
in an atomic/interrupt context and it preempts the former one
running in the process context, an attempt to acquire spin lock
again might occur.
Call Trace:
Core 3 LR: UNKNOWN+0 <fffffff2bc633fe4>
Offending core vcpu context:
Core vcpu3 PC: queued_spin_lock_slowpath+94 <ffffffde691bc96c>
Core vcpu3 LR: _raw_spin_lock[jt]+44 <ffffffde691bbccc>
-------------------------------------------------------------
queued_spin_lock_slowpath+0x94
_raw_spin_lock[jt]+0x44
__qti_flash_led_brightness_set[leds_qti_flash]+0xc8
qti_flash_config_group_symmetry[leds_qti_flash]+0x304
qti_flash_led_symmetry_config[leds_qti_flash]+0x120
qti_flash_switch_enable[leds_qti_flash]+0x40
on_timer_function[leds_qti_flash]+0x1c
__hrtimer_run_queues+0x14c
hrtimer_interrupt+0xdc
arch_timer_handler_virt+0x50
handle_percpu_devid_irq[jt]+0x1e4
generic_handle_domain_irq+0x44
gic_handle_irq+0x4c
call_on_irq_stack+0x3c
el1_interrupt[jt]+0x98
el1h_64_irq_handler+0x18
ret_to_kernel[jt]+0x0
_raw_spin_unlock_irqrestore+0x18
regmap_unlock_spinlock+0x14
regmap_update_bits_base+0x15c
__qti_flash_led_brightness_set[leds_qti_flash]+0x10c
qti_flash_led_brightness_set[leds_qti_flash]+0x98
led_set_brightness[jt]+0xb0
led_trigger_event+0x3c
cam_res_mgr_led_trigger_event[camera][jt]+0x74
cam_flash_ops[camera]+0x114
cam_flash_pmic_apply_setting[camera]+0x588
cam_flash_apply_request[camera]+0x68
__cam_req_mgr_process_req[camera]+0xa24
cam_req_mgr_process_trigger[camera]+0x4ec
cam_req_mgr_process_workq[camera][jt]+0x1b4
cam_req_mgr_process_workq_link_worker[camera]+0x10
process_one_work+0x1e4
Fix this by using spin_{un}lock_irq* variants so that the interrupt
will be disabled and re-enabled when the spin lock is held until
the configuration is done.
Change-Id: Ib88dd9c52c0b10b55e6dd8839732810b6fbbc667
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
Enable QoS for the master ports on niobe with predefined values
for priority and urgency. Added xm_gic, qxm_pimem, qnm_ apps_noc
and qnm_cnoc_data master nodes for programming qos.
Change-Id: I6287d721151268ef3921b42ce3b2cb179b7e1fbd
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
Move dump related modules to first-stage to capture
crash related information as soon as target boots.
Change-Id: I6256bf7cc448fab997e3f2b456a8ea09fbbfb499
Signed-off-by: Wasim Nazir <quic_wasimn@quicinc.com>
"android_rvh_build_perf_domains" vendor hook is used to force building
of perf domain for symmetric cluster system. The vendor hook is called
as part of cpu topology initialization phase, as WALT initialization is
not completed by this time thus setting of override is skipped by WALT
in it's vendor hook and thus topology framework skips building perf
domain for systems with symmetric clusters.
As "android_rvh_build_perf_domains" is independent of WALT state, skip
"walt disabled" check in the vendor hook.
Change-Id: I379c7aec9fd1a19fc6187d8cf85b3f9ef308dcb2
Signed-off-by: Ashay Jaiswal <quic_ashayj@quicinc.com>
Use indirect submission when the ib number is too big to be
submitted inside hfi cmd.
Change-Id: Icba8977e6aa82a2babc9e36cfbdbbfad215fe5e7
Signed-off-by: Jeyaprabu J <quic_jeyaprab@quicinc.com>
For the targets which not describe TBU(Translation Buffer Units)
in device tree, skip accessing of its list_head. Accessing that
list_head results into crash.
[zhenhuah: Adding check in qsmmuv500_log_outstanding_transactions as well]
Change-Id: I298f06b01151285bec3b063d234382371d1738ba
Signed-off-by: Zhenhua Huang <quic_zhenhuah@quicinc.com>
When the device is booted with EUD enabled from bootloader,
dwc3 probe fails. This results in USB functionality and EUD
not working because the PHY is not re-initialized while EUD is
active. This patch resolves the issue by turning on PHY clks
from hsphy_probe and hsphy_init.
Change-Id: I167f984ce37fd795853becb70d89a1fb6eb35bbe
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
Enable QoS for the master ports on niobe with predefined values
for priority and urgency. Added qhm_gic and qnm_cnoc_data master
nodes for programming qos.
Change-Id: I4d8ab6d3788a0a28b001d6202254a57353b39741
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
During handling SDAM events (for LPD, USB etc.), it is possible
that i2c bus device still in suspend state. Accessing wcd registers
when i2c is in suspend would return -EACCESS failure. Handle this
condition, by checking if i2c is in suspend and defer the wcd register
writes to whenever PM framework calles wcd usbss resume.
Change-Id: I99438aa090941a8713f02cc8d0f6d2af7db1aa54
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
The recommendation is to ensure that the ACD BLK_ARES/IROOT_ARES are
kept asserted for at least 100 us before being de-asserted.
Change-Id: I7910a86bcff1589d8ace975c6c18e2b86e924714
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
In the case where the SW reset requires an additional ACD block reset or
misc reset, the support is added for the same.
Change-Id: I29b69f2a4ccc33a896ec8e201cbe761cca6800ea
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
Read early ethernet dtsi flag to enable this feature.
Disable autoneg and configure MAC and PHY with 100 Mbps
link speed.
Read MAC addr, IPv4 and IPv6 addresses from kernel cmd
line parameters in order to assign these to ethernet
interface.
Change-Id: Ibeeebb73b4cbbd0950a1bff065297c4e58be671d
Signed-off-by: Suraj Jaiswal <quic_jsuraj@quicinc.com>
This is a snapshot of BWPROF from msm-5.10 as of commit a3cc0058ac57
("drivers: dcvs: bwprof: add bandwidth profiling driver").
Change-Id: I8a0ab2412f3e59fc6cf81c7f131352d3cf5c0db3
Signed-off-by: Vandana Gupta <quic_vandgupt@quicinc.com>