From patchwork Mon Nov 23 14:10:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 330670 Delivered-To: patch@linaro.org Received: by 2002:a92:ae0b:0:0:0:0:0 with SMTP id s11csp2026398ilh; Mon, 23 Nov 2020 06:04:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwynXjkaskp1YUbRKSGvq59AA898rGwXPoJVNxITcJzs4HojTQyTlubMxBTXKHo6awmVn2 X-Received: by 2002:a19:8110:: with SMTP id c16mr12616022lfd.372.1606140294805; Mon, 23 Nov 2020 06:04:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606140294; cv=none; d=google.com; s=arc-20160816; b=N3pYubrBmefHE9rlRbJ7EzE6klyQl2I6yHkCh69kVBOdjiuXfBIFX1KWlD5Lnun2O+ Q7HzwLcdg7rtlMc/UwFg3VRSkYBDgz3W84EetVJ54xnmarVTpcveBe51BJ1qOZzAlbq6 0pzMa8hVep3r7gld0ayNmCKK0J+n7nS7z28NxDlnkENIgv7JNWEMiXCLTVGJ7J9wvxU1 KafoB1NgKyKV024efbbj1ewhm/DAfse3AZFW12lepk5RyE9Wm6FVdiwbJVA9GwtKZwlw LQ6XZDsXaY3uJ/FHzpj+W2niW1vSLlg1qHzgGhJ2sqgsIsL4SOV+HwdFWolGS2SQrYIP Hw+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=4dySM6ga3g1JccS9VpKiXH/tknJsBk9CHeAdOMBOgi8=; b=0wFOZrO3KBULHNLyQkZXsJ4gV7LA404v7PlPsYHKHjW+F38lz8AauF939lsh+M7Eq0 7rvuvrzxzG8WQeArxV+gei6YxUMlTF1aDF6WM6Az0m92YqVsOWKi3bBTB4Afv1B7tgyy rV+dowVu3yXsnj7Pmt2j2xeFll71MlY11+jGG+CjnKQrNRb2KpVHfNe3X7DM5+Kaimdy 3W6UFH2T4bZOa+3TBiSYMC4m1YYHbCBgewyBkeStKxd+NJWygjIHZwaWGS8feLxqIgeu w/nj+RouURpkN6iSL0BfXXSK0OFsLXoep9NX58r5U533DUHYiu0AlFMOuAnyfVf6jCS1 Snsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wmQ/SWXh"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r18si6917042edm.82.2020.11.23.06.04.54; Mon, 23 Nov 2020 06:04:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wmQ/SWXh"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730217AbgKWOEY (ORCPT + 15 others); Mon, 23 Nov 2020 09:04:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729293AbgKWOEX (ORCPT ); Mon, 23 Nov 2020 09:04:23 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F71AC0613CF for ; Mon, 23 Nov 2020 06:04:23 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id w24so17365142wmi.0 for ; Mon, 23 Nov 2020 06:04:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4dySM6ga3g1JccS9VpKiXH/tknJsBk9CHeAdOMBOgi8=; b=wmQ/SWXhQATuAMF2bttR04zNFBN1ch30xgUQLiLKDGapsjUJjlydNZqj1hOAXTLR9T TK6WyoZ5UAPbu5w1v24IKVZnXoCmaxTd6Gv+0+c6/f8slx0mDrkF34z4j+G1sg7Xs6x8 l/q1NGpZb1E4yDdliqUHlnrJt0prki1kSKs/ef8OEHYNEviX3C32rrdVJUJTQcLimEMd lkiNuXGSpDsLOiR+t4DQ3FzzaKxigtAHnMovRHrwBU0QGG0gnBRnSgZiJJQfeRNI9GMh 6X7DRHSNjjDW4R+Fk+vf90VC9D3rsR0nASyBAaDSqOIYaYdFf+6PKqYrPRcFDIqOPE5E jqqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4dySM6ga3g1JccS9VpKiXH/tknJsBk9CHeAdOMBOgi8=; b=i7k+oURNJVcAkxzyzaU/wz7ubjLSwuW7mog5F8Dn6eD9RU6ub9/e031UfCDu7jiSXy a3vAly49kFtssJHmex8WWmo3EnqhsDPuT6/cNAT0WPYwSLfNE8dzsBb0fXvdaLuuUgt8 gpa4paVIPTBS+CVfalLanBpvJfvK22p0hsv8YKldLMDymnG7eeUTmCWiF92njmpVm+xZ ENGlQgoPnkyGeAXdFRCo0kuafGhcx6hq2rGbiTgwbbt39gVyYpvgPrplMX357QNWTqJc JT1G4dwoLUbev3vzeKdGc4g6z/ZjutDRAbqPBEn1qdEkEF22SSw36wRO44wIwH3JhgsO 4q+A== X-Gm-Message-State: AOAM53042e60s1NgaQmiOfmqcKhEsismaAddquBioKiKLS8wjZwDcxL8 2cjRzELLZSs5P0wqiG5wrM6zXA== X-Received: by 2002:a1c:4c16:: with SMTP id z22mr23467876wmf.14.1606140262059; Mon, 23 Nov 2020 06:04:22 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:490:8730:f5cd:e791:e88b:e3b7]) by smtp.gmail.com with ESMTPSA id m9sm7102727wrx.59.2020.11.23.06.04.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Nov 2020 06:04:19 -0800 (PST) From: Loic Poulain To: manivannan.sadhasivam@linaro.org, hemantk@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, Loic Poulain Subject: [PATCH v2 1/8] mhi: pci-generic: Increase number of hardware events Date: Mon, 23 Nov 2020 15:10:59 +0100 Message-Id: <1606140666-4986-2-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1606140666-4986-1-git-send-email-loic.poulain@linaro.org> References: <1606140666-4986-1-git-send-email-loic.poulain@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 --- drivers/bus/mhi/pci_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/bus/mhi/pci_generic.c b/drivers/bus/mhi/pci_generic.c index e3df838..13a7e4f 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, \