From patchwork Fri Nov 13 14:59:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 324325 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp1262135ils; Fri, 13 Nov 2020 06:53:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgWrcZBXhYs/EfoxIqvoxSRbXipYfFDvziJdIniJmD2bcor/+QuqGIl+W/v+fw+J0yPXiK X-Received: by 2002:a05:6402:17b4:: with SMTP id j20mr2934376edy.24.1605279211910; Fri, 13 Nov 2020 06:53:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605279211; cv=none; d=google.com; s=arc-20160816; b=JVaeK0Ul2MmmIJmtQ/Qhcpzl2bZtgo/4vmxacBHyFzIoexVVqXmvaE2jIhtPwtJjhW ecj7oAZuCRZWZtr1+yg4jURz6rJEfBwqRmrnaJ9SWcsjw5BpZ1RfUcciChp7InInZy6j o92mS9l0TlERwep6NZ5ZpRL2u/x6yQQE95gEkOTQRNnfs+UkPKK9pnndi1VGLUhzS/XL GdxIOTOXg71Hb1J1x58lFGvrSutcnlw4qfMBdn/gm+oVxn7gocM0+wpQXG4tbdV9KxT7 PaaVLzWn2H0QATqqWYtKT6I0aTQ6UO+HY0D2vdl9az6iQnU/o+a9+5m4khNwPZ3tICfa +lBg== 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=OJGBfOUDLchCBYAJYqnr4+s2UiO8qoNopQ8sfGVNYrTuPkpduSRp/I46SmMSd//hk3 xb74io3d5QLEsRcEn0EgKJ5syMlDxHqh0JQujQXHthA5k8heuWqzdMOfYO0mS/jtYlJd Ezp1OWWpf0hlAFXL0oQ+ksKNxLl5SdoPScSCiI5+aU6Fteuds9YI8GDGKz13XDaoLpqq +DlPWan9DneucSwBOyYOLRPnJLM5YC5jXXU62fvuxfhPqerJk5zz6G7ed/xiUdmiWRM0 +0mqPwyuNsZr1psiJz3JUlf6rCEUKx+vIS3rWNOZoWKvDeq/EdxQBhK83duc9THw4V8b hLtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="jh/Ynuxf"; 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 g20si6410654edv.323.2020.11.13.06.53.31; Fri, 13 Nov 2020 06:53:31 -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="jh/Ynuxf"; 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 S1726278AbgKMOxa (ORCPT + 15 others); Fri, 13 Nov 2020 09:53:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgKMOxa (ORCPT ); Fri, 13 Nov 2020 09:53:30 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51E98C0613D1 for ; Fri, 13 Nov 2020 06:53:30 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id j7so10222513wrp.3 for ; Fri, 13 Nov 2020 06:53:30 -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=jh/Ynuxf9wdpVdshLKXwPYCIUOGXV3uMFK7Nc6VfhzOXY5i50ewzOnZen263xU7GVG WCE2EwG3wxHSGBTexnI8mWevS64LxoLxX3rbKUPeGyopEsN4KwGhei8fYRiQeXPoXZeO pYOq3R+MonZY2ghVpMIoemQtt1e2rUCwK77RmzFkv2h4015gmb5hvf75KHA+0noSKOgM rEKink6KwsTi/L95/YfDBjbtcgXVwqNseA56w5HLm5o2/IZWugfNnHacoy7Hf1aZn6+C JzkjljvdA8+2yTKio+fDgqu7Fzc3ga/3dU9yD3uhE8flbV1h/bO8WVkXsWJ+imfOeLWp 2jeA== 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=JOgycsXv/EXDZyvf84FkO2/wjZ9gmLtOdhqpIy5DYMLfMhzWv8d/oCHZOwNPorzLH+ TPoq+g+MBhnJPn359V8ryLMk3IVbPn1otj1ZpyJ/h4yV8EZhKL3rwgmzkQl7ZstVJ/d5 FtWmuGAZ1PE+DFM/RUmeFTD0mc5ZiU52zfmJ6d8UIlTQ2wBrFfO5PQ21mUTO1IyH6Akn jEXJqJIVIzJO4UQJWoRC+CHOG9LUfFD3UJ710p1LCtF5E9+7CdPgEEnJa9ulBKKfyKPq kL5HJzlZSPYJfBtdvD8+A3imwjrz4S+qdZ+BdSi00ZnTe9LctCYmXMIJJWLoSvaxJotA TcYg== X-Gm-Message-State: AOAM532J7+2XwTRasmMEkgpZ4ozX+ieOxDQhKNjDFVzQjh3a+BPJPcW9 LXAWKZF5HSxFo1JFMVRFV9rjNg== X-Received: by 2002:a5d:6cc5:: with SMTP id c5mr4137074wrc.301.1605279208934; Fri, 13 Nov 2020 06:53:28 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:490:8730:304f:e9d4:6385:8ac5]) by smtp.gmail.com with ESMTPSA id i6sm10729341wma.42.2020.11.13.06.53.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Nov 2020 06:53:28 -0800 (PST) From: Loic Poulain To: manivannan.sadhasivam@linaro.org, hemantk@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, Loic Poulain Subject: [PATCH 1/8] mhi: pci-generic: Increase number of hardware events Date: Fri, 13 Nov 2020 15:59:55 +0100 Message-Id: <1605279602-18749-2-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1605279602-18749-1-git-send-email-loic.poulain@linaro.org> References: <1605279602-18749-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 Reviewed-by: Bhaumik Bhatt Reviewed-by: Hemant Kumar 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, \