Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2018157pxj; Sat, 19 Jun 2021 00:12:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8D2U6GgGRcR/tM7lkC5uoG6TduyFZO2VYFD051CP4w8k1fcL0ZkS1FvYMpsTYqbAteEgR X-Received: by 2002:a6b:d108:: with SMTP id l8mr10930356iob.65.1624086763165; Sat, 19 Jun 2021 00:12:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624086763; cv=none; d=google.com; s=arc-20160816; b=tmKOL1WMVu42S5gRfbRI/+68miqSyWC69c24ltFuy7tTfSAXWd2fyV0y9S7PdpY8B4 pXBxv2/h93MiymOFTmkc2p6Xi4fTwCO5Pq7RGOA2i9J1X0HtRpiIZ9LupFO750IeOOYc /S5wNAGcYPI5xXhXEwK0C1Dr7evIcCidV+Zg7wPByJVgItFWWqMka0TmcLSYjq11s5nH sp/v7GInjGy6aMOdHb90Q6zsKnsBZwZuUf5Mv0fIVdiM/JZi3/Zg3SMd6sqyLGMzDA/R YRNRGil8cI2m8WfisDtBTVA9BJRhcQlX88Bzj2T9Oh1qLrk5onRn1zR1MS16KH5PaOK6 jrEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=tBkgcop7LumEJk9jlag3805wCR8MkDxckjO0Jc5rOzI=; b=QD2UxIDe2QQ2NTTZibM61bQTTZHsSNAyfn4vlfzB+z4AkX4xfNtvomyINBwpgdhaut 7AQ/Jf9DbQKnsV/ZQoWMa7ddzblCJgqFU0efvp/1k/8RTV8yVrQod9B0Ry7sTBIBxwMW 828N0jl6T52kA8LH59tqg40J1KCIvbv8kNg1YXMsFOAX4SzpJW4gT/eGN2wtKuHn5PIS FjtqS6jNBb6tbn542XL96Ouht9EFBelswETSgAQ8b057uyUvtId/GxoPUlUXnbZUSiuI zdm0+VswEXLV5c6TmnldWwFese5uH/MQE54ssrY89SL0Qz63fQRNtddZ4npIDQtV5Hjv L39g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=laP1wNlE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a17si3991852ilh.108.2021.06.19.00.12.31; Sat, 19 Jun 2021 00:12:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@mg.codeaurora.org header.s=smtp header.b=laP1wNlE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234834AbhFRWHi (ORCPT + 99 others); Fri, 18 Jun 2021 18:07:38 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:10734 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234833AbhFRWHf (ORCPT ); Fri, 18 Jun 2021 18:07:35 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1624053926; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=tBkgcop7LumEJk9jlag3805wCR8MkDxckjO0Jc5rOzI=; b=laP1wNlEYDJOJAzGhglChdUnyVWVntVSzhzgm53rx2cJhAZPVZuAwKm7TqT1o0di2ewo7B2f V0xtqat0hvtsSc/fsqn1Lg1vGdWb0sW4U5ZFj4KZ04FnEEtoUM+7Nz6E0QbTgq1e0SIhDmZo Ic5C53fHgr2unmWJ0ZO3C/DAQRc= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 60cd189de27c0cc77fa11a26 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 18 Jun 2021 22:05:17 GMT Sender: bbhatt=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 1F448C4323A; Fri, 18 Jun 2021 22:05:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from malabar-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: bbhatt) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3C940C43460; Fri, 18 Jun 2021 22:05:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3C940C43460 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=bbhatt@codeaurora.org From: Bhaumik Bhatt To: manivannan.sadhasivam@linaro.org Cc: linux-arm-msm@vger.kernel.org, hemantk@codeaurora.org, jhugo@codeaurora.org, linux-kernel@vger.kernel.org, loic.poulain@linaro.org, Bhaumik Bhatt Subject: [PATCH v2] MHI event ring priority updates Date: Fri, 18 Jun 2021 15:05:02 -0700 Message-Id: <1624053903-24653-1-git-send-email-bbhatt@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Event ring priorities have remained out of use and are set to 1 by default. This series brings about an enum entry expanding use of the priority field by adding high priority tasklet scheduling to the menu. In some cases, tasklet scheduling delays can be a nuisance. An example would be ath11k adding a610f3c65d3b ("bus: mhi: Wait for M2 state during system resume") in response to it. This issue can be potentially avoided if the controller uses a dedicated event ring for control packets with high priority tasklet scheduling in place. There are no functional changes added to the controller (pci_generic or ath11k) drivers with this series and the only changes there are use of the enum in place of a harcoded value of "1". In the future, controllers can opt in to have any event ring scheduled in high priority. Tested on: X86_64 architecture with SDX65 on Ubuntu 18.04 distribution. v2: -Remove enum and update kernel doc for priority simplifying the implementation -Drop patches for controller changes as they become unnecessary -Merge adding and enabling of support patches Hemant Kumar (1): bus: mhi: core: Add support for processing priority of event ring drivers/bus/mhi/core/init.c | 3 +-- drivers/bus/mhi/core/main.c | 9 +++++++-- include/linux/mhi.h | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project