Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp792374pxa; Wed, 5 Aug 2020 12:54:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlselPzF2ONSkxLpI6iI5dHy4MsstKk6YOlhbKtwzQQrIc3bVAyO8zRwEJF/2o563MtLPQ X-Received: by 2002:a17:907:4064:: with SMTP id nl4mr946935ejb.342.1596657265190; Wed, 05 Aug 2020 12:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596657265; cv=none; d=google.com; s=arc-20160816; b=E9iT227PfVsQ0eELzuYteKIcz3rDsgK4wJXcm2YgRcSCv9AD0nnsw00wr/N2aIkIaZ kgZ8Yfzyp1L1b+wlZ87SFe9A4MiffGhhPYaJz39dr2a8swDKxGzUxsGai6tn3KmST726 tEkvMKESa9rnHK85EoV1FsqoWPY0m3EKM7QAEdiFCL+orofNHPJNsaypluab3CJ+lirL 6SOvDi0eljmDoKlMtvn2yC5TL9HDMohrFZ1L5IgsCMTt3vB2lex4Y3v6FQTq4P2mQSli Sn4C+89YJzS0pvThi/ozYK5e9k95VMsYLMWTgs71bwlDXcLXS+9BrNjAPIp4l18MQPAq mi9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=T0iHC5DzypW6poy3NDVtNkEOvm1za2UqY6n/ov5xw0A=; b=BI8fbs/t/1wS/L82pGRoCFaGkH8CgVxzzxtR8bvP6W4U/uV9pWi3jZFx65Qto3zvjg MdQsGI3Wq436lQXzGkoPWf+f97bD9f8k/6KArvIzufHoeD8kLJuajyiQKaS3AnkZsQNO f9/I5dLx6Phs8SpPt+Z8JR99WjXLQiMXL/BCAJcPlXsDkjvKA/+G9NmD2cA+RYAtXIaP RcixQxAqZnCWYUywFGOWdfGszZPan3/yAPbYGD9bo+2rgGmKm72VTV/awv1tcmtQ7OyI HT05a4HCpPnVx2eKrj2v0uVjBLj+av7aC4uw6R1h1o/LIEiWd4vbT2W9JFTT5Nrgd8TK y1tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=DAhkOvAY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs1si2016398edb.418.2020.08.05.12.54.01; Wed, 05 Aug 2020 12:54:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@ieee.org header.s=google header.b=DAhkOvAY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728750AbgHETwi (ORCPT + 99 others); Wed, 5 Aug 2020 15:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728101AbgHEQvZ (ORCPT ); Wed, 5 Aug 2020 12:51:25 -0400 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD0A7C0A8890 for ; Wed, 5 Aug 2020 06:55:33 -0700 (PDT) Received: by mail-il1-x143.google.com with SMTP id c16so25596828ils.8 for ; Wed, 05 Aug 2020 06:55:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=T0iHC5DzypW6poy3NDVtNkEOvm1za2UqY6n/ov5xw0A=; b=DAhkOvAYaZ9UtoECfWC2gAqYzdQdZu4/OTZhHotTaCMraihBeTETAb2o+tdVB+R9c/ fgruEjKoM8VG+YdsLo4GUZF8VaCggzTi5h3uToTV2f2Sv1hwOpZ5HvtTKuXa2Y1A6q3O zX5fNDo98uB0Sok2zX9/YQGJMJ6y+B1u0vCnk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=T0iHC5DzypW6poy3NDVtNkEOvm1za2UqY6n/ov5xw0A=; b=iu8HQuu1Wnq6X0XH30oAcM9DBxLLMDgscgnmark6KdrX+162Uwbqo/QUEEfbz10zwR p6lIcp3dKquOz5CmX4fBHu/Ibm5cU3t8y/+P06O04meT0/AHxmosfxrpRMbHzGnLIV7T s+qBTkXraiRHTslNn88Svvbgo9ASKzBZ+RqCOvtl2gyBN0ej/6D9/LIXLftWTcL9B4QO p2+iQAwU1XFNg89dZilv5kuW3SS/naryIHN+m+RptqwqnAZyn7J5m2KUz/ACDRrbqaXd dtKrCTy28r3JyShqWQ5QFjeDxGBTT942tJiNzXkyDg8UbngPwic+TrpQAXcuHYK3U89B eshg== X-Gm-Message-State: AOAM532nj/yFwSMqbyc9uuvjrxB4IdaMB75oGoF7of/znnhxvS98AzRN XOfHeJh69jMAoqPP959Xkr8RLw== X-Received: by 2002:a92:c14d:: with SMTP id b13mr3548606ilh.269.1596635733090; Wed, 05 Aug 2020 06:55:33 -0700 (PDT) Received: from [172.22.22.26] (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.googlemail.com with ESMTPSA id c2sm1073796iow.6.2020.08.05.06.55.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Aug 2020 06:55:32 -0700 (PDT) Subject: Re: [PATCH] soc: qmi: allow user to set handle wq to hiprio To: =?UTF-8?B?546L5paH6JmO?= , Bjorn Andersson Cc: elder@kernel.org, davem@davemloft.net, kuba@kernel.org, kvalo@codeaurora.org, agross@kernel.org, ohad@wizery.com, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, alsa-devel@alsa-project.org, ath11k@lists.infradead.org, netdev@vger.kernel.org, ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, srinivas.kandagatla@linaro.org, sibis@codeaurora.org References: From: Alex Elder Message-ID: <5c6123f2-1a65-8615-9d5d-3bb1d25818b2@ieee.org> Date: Wed, 5 Aug 2020 08:55:30 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 8/2/20 8:14 AM, 王文虎 wrote: > >>> Currently the qmi_handle is initialized single threaded and strictly >>> ordered with the active set to 1. This is pretty simple and safe but >>> sometimes ineffency. So it is better to allow user to decide whether >>> a high priority workqueue should be used. >> >> Can you please describe a scenario where this is needed/desired and >> perhaps also comment on why this is not always desired? >> > > Well, one scenario is that when the AP wants to check the status of the > subsystems and the whole QMI data path. It first sends out an indication > which asks the subsystems to report their status. After the subsystems send > responses to the AP, the responses then are queued on the workqueue of > the QMI handler. Actually the AP is configured to do the check in a specific > interval regularly. And it check the report counts within a specific delay after > it sends out the related indication. When the AP has been under a heavy > load for long, the reports are queue their without CPU resource to update > the report counts within the specific delay. As a result, the thread that checks > the report counts takes it misleadingly that the QMI data path or the subsystems > are crashed. > > The patch can really resolve the problem mentioned abolve. Is it your intention to submit code that actually does what you describe above? If so, then (as David said) you should propose this change at the time it will be needed--which is at the time you send that new code out for review. Even in that case, I don't believe using a high priority workqueue would guarantee the improved behavior you think this would provide. In case it wasn't clear already, this change won't be accepted at this time (despite your explanation above). -Alex > > For narmal situations, it is enough to just use normal priority QMI workqueue. > >> Regards, >> Bjorn >> >>> >>> Signed-off-by: Wang Wenhu >>> --- >>> drivers/net/ipa/ipa_qmi.c | 4 ++-- >>> drivers/net/wireless/ath/ath10k/qmi.c | 2 +- >>> drivers/net/wireless/ath/ath11k/qmi.c | 2 +- >>> drivers/remoteproc/qcom_sysmon.c | 2 +- >>> drivers/slimbus/qcom-ngd-ctrl.c | 4 ++-- >>> drivers/soc/qcom/pdr_interface.c | 4 ++-- >>> drivers/soc/qcom/qmi_interface.c | 9 +++++++-- >>> include/linux/soc/qcom/qmi.h | 3 ++- >>> samples/qmi/qmi_sample_client.c | 4 ++-- >>> 9 files changed, 20 insertions(+), 14 deletions(-) >