From patchwork Mon Dec 14 14:25:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 343524 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3035495jai; Mon, 14 Dec 2020 06:19:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLt4BQB2L56rROMV4cvAoSsoS5h6xNF4+qnPYKUOrtm4QP/Ht1+PwJ4PlPY1JMTT6PEtOS X-Received: by 2002:aa7:cb49:: with SMTP id w9mr25860312edt.357.1607955569528; Mon, 14 Dec 2020 06:19:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607955569; cv=none; d=google.com; s=arc-20160816; b=NkklAPD4GTuUlwUWdgBblHGvucHVHWfHexNFFA47dER88WADCFZRPmKODKJs1CXSn7 rpbtuv968u57HchIK1gwXn4Kpbn9iLrWC4kUETtc1D5BFDTsMI3+ge6b3fLWwR+XBWyl nXiKIXt+xfT82rky3EFMMEghtBjZhuWvaFJpyhYihT6yFrrBx++yAByj82Z2fBt3QHx0 SQPtb8/ss/SFGmpN9dT6ruFXXE5cI1ANMhLUtxjj8GB+M/hKUxlpBrX4KAQbY10U9mQ3 56hL8fUtnaGMP3TWljzZ++crExo0ix6WhEF9O5JW3s7bTgWxDHL7VHBKNI7e27gXMBrc iBDw== 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=u23Upri+mVTKw2vMmpl89dQD9K1UaxJ4Tc+YMYk9PIg=; b=pJL8z/bcNvWw13+9Gl92Io/eS36zLM+jMOgel/vNADTVfFtwYEXrLGmA9yKHBSBgRA DW1TZmrU+zozyG8/q7ZTmIZoE6kh6Rysy29afig1OlPayWcp7U66t4ymzD9b3FkE+yTy z/4Z/FaO7negM4ZCpx25GL0mpXiPYYPp+CNlI6X/MVXx9YW1pKSQR6PciKW67NSyyBL4 88WVITyCP/r1W0We/SeWZ7Qn/6t4q68s/crRBZTh+W8Au6UehsBuHvQVMQ08/bASw2jU 6NU1hUZDsUArobbXQ+vQbn6EGIQTpSCxNPGi3h9SXJjJpc7Dkj3BJC9d6NAGMx22YJZz IYag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UFY54rm7; 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 j14si10062778ejy.327.2020.12.14.06.19.29; Mon, 14 Dec 2020 06:19:29 -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=UFY54rm7; 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 S2393862AbgLNOT1 (ORCPT + 15 others); Mon, 14 Dec 2020 09:19:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440024AbgLNOTN (ORCPT ); Mon, 14 Dec 2020 09:19:13 -0500 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7589CC061793 for ; Mon, 14 Dec 2020 06:18:33 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id w5so12850231wrm.11 for ; Mon, 14 Dec 2020 06:18:33 -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=u23Upri+mVTKw2vMmpl89dQD9K1UaxJ4Tc+YMYk9PIg=; b=UFY54rm7D8guWdkIPJyOoEdfm14WXruuMxCmE1FSZEtLfsBO1Wd6P0pxiuyYNv2Gne eQLwsQ2BSUf+GVwO275ecTkb/UC8ZRrTtA/ig3s5/wG2Hv1TJHxJVUeHNjN908qJ+Ris VUA2bslsCSZ8KZTAb1vqn98Z6SLgATWQqvxlQclQr8sr0P5h5sZy0JtyGIuYteg07nnN EawiRnir+QnZ+NI18qw9FKA/qHuUZ0jFWaVfj7JnI6QsCyxeOCX3r6pdPYrsrsYLWMW+ qqmpITKY6vHMRl5bxR1tccRHZ4njGFpIZ4P37MbkbfpD97Icjw5GCyNjeN4B4MJmAhnm 6Vfw== 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=u23Upri+mVTKw2vMmpl89dQD9K1UaxJ4Tc+YMYk9PIg=; b=bjetDscUFnsP9ygbwEzqbiRmARQYW+sK8eRTyaTmHL/1e2UhWIYmd6P1/yYDVZDkZ3 VcFGmyu8JOSpPbv3+JokE8hiRXL/oUAi8OhZd0lkDkcw49Zuz2qML2Ckz4w1aoSiA7v8 BNpx5CDBbSF3qUWSiOOaaKQXVDcSGyXfYjG33uMQ0iI3DTNp4gX8wzQrtEEkaOSnrnEJ vVQFNZX2NjnlraQ9HW0EQNa+kjiU4jVaai5XNvx7+PJSIMqUbNqNyn3v/Y7ljIP/lJTE RUVI5MxEkkEI33fjn3k9VQCPDZ36b8ZTrNh2tXukRpGe22EezoG+h0SsW+KQ+EPkw3mu ju9A== X-Gm-Message-State: AOAM533GsFM31hLhyuNO6UXRaH/BvuBUIJgvUi3CBSgF3kXWgG3WW9Gb x9iesRbHRx2OJa6Ks6FVBPEHkg== X-Received: by 2002:adf:db43:: with SMTP id f3mr4719917wrj.70.1607955512084; Mon, 14 Dec 2020 06:18:32 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:490:8730:f2e4:25b3:2b53:52cd]) by smtp.gmail.com with ESMTPSA id h5sm34126285wrp.56.2020.12.14.06.18.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Dec 2020 06:18:31 -0800 (PST) From: Loic Poulain To: manivannan.sadhasivam@linaro.org, hemantk@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, bbhatt@codeaurora.org, Loic Poulain Subject: [PATCH v5 03/10] mhi: pci-generic: Increase number of hardware events Date: Mon, 14 Dec 2020 15:25:30 +0100 Message-Id: <1607955937-26951-4-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607955937-26951-1-git-send-email-loic.poulain@linaro.org> References: <1607955937-26951-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 Reviewed-by: Manivannan Sadhasivam --- 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, \