]> Git Repo - linux.git/commitdiff
bus: mhi: pci_generic: Increase num of elements in hw event ring
authorLoic Poulain <[email protected]>
Fri, 5 Feb 2021 08:36:35 +0000 (09:36 +0100)
committerManivannan Sadhasivam <[email protected]>
Fri, 5 Feb 2021 12:29:29 +0000 (17:59 +0530)
We met some sporadic modem crashes during high throughput testing, this
has been root caused to a lack of elements in the event ring. Indeed,
the modem is simply crashing when event ring becomes empty.

It appears that the total number event ring elements is too low given
the performances of the modem (IPA hardware accelerator). This change
increases the number of elements in the hardware event ring to 2048,
which is aligned with what is defined in downstream version:
https://source.codeaurora.org/quic/la/kernel/msm-4.14/tree/arch/arm64/boot/dts/qcom/sm8150-mhi.dtsi?h=msm-4.14#n482

With this change, modem coes not crash anymore.

Note: An event ring element is 16-Byte, so the total memory usage of
a hardware event ring is now 32KB.

Signed-off-by: Loic Poulain <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Manivannan Sadhasivam <[email protected]>
drivers/bus/mhi/pci_generic.c

index 2476041f8d56d5816c5a1d45e50f6a96edda1836..20673a4b4a3c657ed97d59cbc2bac29af35ce962 100644 (file)
@@ -129,7 +129,7 @@ struct mhi_pci_dev_info {
 
 #define MHI_EVENT_CONFIG_HW_DATA(ev_ring, ch_num) \
        {                                       \
-               .num_elements = 256,            \
+               .num_elements = 2048,           \
                .irq_moderation_ms = 1,         \
                .irq = (ev_ring) + 1,           \
                .priority = 1,                  \
This page took 0.059448 seconds and 4 git commands to generate.