summaryrefslogtreecommitdiff
path: root/drivers/bus
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@linaro.org>2021-01-04 17:14:51 +0100
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2021-01-04 21:50:24 +0530
commitd9f23ea69d41d9749873381affe3c00bb1857019 (patch)
tree56e55d1064feadc7f066ba8d16a07a1720ffa18f /drivers/bus
parentb5a8d233a588b3acf2a7a3a8da30f8f68f376626 (diff)
downloadlwn-d9f23ea69d41d9749873381affe3c00bb1857019.tar.gz
lwn-d9f23ea69d41d9749873381affe3c00bb1857019.zip
mhi: pci-generic: Increase number of hardware events
If the IPA (IP hardware accelerator) is starved of event ring elements, the modem is crashing (SDX55). That can be prevented by setting a larger number of events (i.e 2 x number of channel ring elements). Tested with FN980m module. Signed-off-by: Loic Poulain <loic.poulain@linaro.org> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Diffstat (limited to 'drivers/bus')
-rw-r--r--drivers/bus/mhi/pci_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/mhi/pci_generic.c b/drivers/bus/mhi/pci_generic.c
index f5bee76ea061..d3896ef13eee 100644
--- a/drivers/bus/mhi/pci_generic.c
+++ b/drivers/bus/mhi/pci_generic.c
@@ -91,7 +91,7 @@ struct mhi_pci_dev_info {
#define MHI_EVENT_CONFIG_HW_DATA(ev_ring, ch_num) \
{ \
- .num_elements = 128, \
+ .num_elements = 256, \
.irq_moderation_ms = 5, \
.irq = (ev_ring) + 1, \
.priority = 1, \