In issue case, independent doorbell request from Ganges received while
q2spi_transfer is in progress and added to same tx_queue_list.
This is further leading to q2spi_packet pointer corruptions and
causing NULL pointer access faults and q2spi transfer failures.
Fix this by adding doorbell_pending flag and marking as soon as
independent doorbell is received.
When doorbell_pending is set driver returns failure code for
q2spi transfer and retry the same transfer again with some delay.
Also mark packet to DELETED state after packet is deleted.
Use cr_queue_lock to synchronize addition and deletion
of CR packet from cr_queue_list.
Change-Id: Ied11326fb3e67e00e29c861e96150f78ba88f218
Signed-off-by: Chandana Kishori Chiluveru <quic_cchiluve@quicinc.com>
Initialize local variables 'ret' and 'reg' in
geni_i3c_enable_regulator.
Change-Id: I6e11c02b72e230aead3770702c821592b39bb452
Signed-off-by: Visweswara Tanuku <quic_vtanuku@quicinc.com>
Add qrtr module as part of first stage loading.
Change-Id: I3be8a09b4801bc37623035bad2946aafbbc87a10
Signed-off-by: Pranav Mahesh Phansalkar <quic_pphansal@quicinc.com>
Enable the fastmap, ECATS debug, TLB sync timeout debug and
iommu logger features through related configs for niobe.
Change-Id: Ie132b19bfb7e66617e9331c8e93095235019f66c
Signed-off-by: Pratyush Brahma <quic_pbrahma@quicinc.com>
Update PCIE and USB clkref IDs as per latest HW recommendation
on NIOBE platform.
Change-Id: Ib564a0ef3f49a04c6ef8cf564c661ec512fb4afe
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
This changes enables the configurations of the necessary
drivers required for USB functionality in Pitti.
Change-Id: Iea5300d4ba6c21cc29b6bf37a2853231ec657326
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
In geni_i2c_irq_handle_watermark, due to spurious
interrupt gi2c->cur is becoming null resulting in crash.
Hence added a check to prevent this scenario due to
spurious interrupts.
Change-Id: I522b2dbdacb48208ecddd81115c7a9a7c40da021
Signed-off-by: Visweswara Tanuku <quic_vtanuku@quicinc.com>
Signed-off-by: Somesh Dey <quic_somedey@quicinc.com>
In the event that userspace has disabled WALT_BUGs from panic, ensure
the system can continue to operate in a relatively sane manner by
resetting appropriate values. For example, if scheduler crashes as time
appears to have gone backwards, reset the clock time to appear to be
the latest recorded one.
Change-Id: I6e26c71e9185b2e7704be3a6a519b48301d4a2a3
Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
"update_task_ravg" is expected to be called with runqueue lock held by
the caller, induce a panic if UTRA is called for a runqueue without it
being locked.
Also, add an early runqueue lock check in "__walt_irq_work_locked" to
dump debug data and induce system crash.
Change-Id: Ie7bb29a7845004b3c64541b32295bb61bbe32aba
Signed-off-by: Ashay Jaiswal <quic_ashayj@quicinc.com>
Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
Currently, QBG driver is not present on 6.1 kernel version.
However the QBG userspace daemon, which has to work with both
5.15 and 6.1 kernels versions, depends on the QBG UAPIs.
To avoid compilation issues with the QBG userspace daemon add
qbg.h and qbg-profile.h files to 6.1 kernel.
Snapshot taken from 5.15 commit 51193befa8c4
("Merge "ARM: dts: msm: Cleanup debug config from defconfig"").
Change-Id: I9c0bcdf8ebe94a697a420142134a86a5d487c84e
Signed-off-by: Kamal Wadhwa <quic_kamalw@quicinc.com>
Signed-off-by: Umang Chheda <quic_uchheda@quicinc.com>
This change programs GENI output control register before
starting any UART transfer after previous suspend.
We need to overwrite again the programmed value, though
the value 0x7F is programmed during geni_se_init.
May be post suspend it's losing contents or something
is going wrong from QUP to Pad output path.
Change-Id: Ic9fd921f137f3d7c6bf4cc6b40d4d719caaa5d02
Signed-off-by: Visweswara Tanuku <quic_vtanuku@quicinc.com>
Signed-off-by: Chandana Kishori Chiluveru <quic_cchiluve@quicinc.com>
Add dispcc pitti module to modules list, to enable it to load
during first stage init.
Change-Id: I19b863b1983887ad6a946eadbdc5818993ebeeeb
Signed-off-by: Imran Shaik <quic_imrashai@quicinc.com>
Add support for display clock controller on PITTI, for display clients
to be able to request for the clocks.
Change-Id: I53c58a5d8f3fae328abafe012b0098adc1ac3fa8
Signed-off-by: Imran Shaik <quic_imrashai@quicinc.com>
Enable ipc logging for niobe. This enabled ipc
logging for all the module.
Change-Id: I6a5e187afb91bf7c18ec81db1ef621906723080d
Signed-off-by: Kishore Kumar Ravi <quic_kiskum@quicinc.com>
Enable the aoss qmp transport for niobe.
Change-Id: I946cc7372f2c9a7d05a2b0fd2bb2bb7de3d45fe7
Signed-off-by: Kishore Kumar Ravi <quic_kiskum@quicinc.com>
This change programs GENI output control register before starting
any i3c transfer after previous suspend. Seems we just need to
overwrite again though the value 0x7F is programmed from the
bootup time. May be post suspend it's losing contents OR some
thing going wrong from QUP to Pad output path.
Change-Id: I72edb8f5938b07d306f0a1f4f7b88edc6917e244
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
Signed-off-by: Jyothi Kumar Seerapu <quic_jseerapu@quicinc.com>
This change programs GENI output control register before starting
any SPI transfer after previous suspend. Seems we just need to
overwrite again though the value 0x7F is programmed from the
bootup time. May be post suspend it's losing contents OR some
thing going wrong from QUP to Pad output path.
Change-Id: Ifa8356ddf971eb2900710bac18d753a2bb942b9f
Signed-off-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
This change programs GENI output control register before starting
any i2c transfer after previous suspend. Seems we just need to
overwrite again though the value 0x7F is programmed from the
bootup time. May be post suspend it's losing contents OR some
thing going wrong from QUP to Pad output path.
Change-Id: I7bed11ec9df8aba92229324b1787cbb9e97b9bef
Signed-off-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
Signed-off-by: Jyothi Kumar Seerapu <quic_jseerapu@quicinc.com>
This change is to dump Q2SPI client Q2SPI_SLAVE_ERROR and
Q2SPI_HDR_ERROR registers in case of Q2SPI transfer failures.
Change-Id: Ied292ca03bba53248350dda26e4dc2ef99c668df
Signed-off-by: Chandana Kishori Chiluveru <quic_cchiluve@quicinc.com>
Enable the smp2p, qmp and msm_qmp drivers for niobe. These drivers enable
interrupt signal and basic mailbox communication to remote procs.
Change-Id: I1bcda9f06d80895ada5271e4fde01a07b0fa623c
Signed-off-by: Kishore Kumar Ravi <quic_kiskum@quicinc.com>