Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2896904ybk; Mon, 18 May 2020 10:33:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqPYidHTOPR1EkUMrKS+67IpB6w3yMyVLfPfBWjQGM37T+GNnzpu8vQuRaD1i1ls+EPMjz X-Received: by 2002:a05:6402:b70:: with SMTP id cb16mr15044935edb.234.1589823226338; Mon, 18 May 2020 10:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589823226; cv=none; d=google.com; s=arc-20160816; b=Yw6kp841sIiuiWg1FloHdGQmVixSPF1OzihULc4d/aC6G0oMU7s0M45gILBKWoA3r3 m0ewk3g64oyhtGYTVEisRw0WMZ5Df67cltQo9SLctVCOY0dYqF/A2lCLM8Nuz2moZQ8q dq2/L3eajcYlGgf1KADgesgmWLqv6jX0hhjAK6vUxyFjxrtZyFesNsHSvdayqIfGM6vX dHRPxepi/G4MQ7eO2uGVKz5fn7VoAIGtXbqro1snnK7wFQXeFj41solB7EtPkgfv0dwU blnWSKeS52Gka/ihuqfdhU1noaI/7jZcYCisorcoC7cwulnjurFGEiUPU1FN2gzt98dq r3kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=QSSrzFNbEG3tmCT2karWtCRJnIeHXfmV1PvTWjMC/xc=; b=cji4byVT/nkwWjWhAOXAGbJCkwy3LDvEzxDx+tmqUNVe/P1fzq+o9Fvjnz1OM00NPJ PdAizvQcX8kgZ8Ylvz0YQlWLL8IPtO2e+bfBdb85MepEf4nbm4OkeN8FybrXcFB1t3qB 5Z7e/+xws630oAP+oDXW2iQMXXp6hwhzDuI4dqudV2D3NkFPY7jVfQeqPTyC33TjmweR s3L5P0BQ6df2w0gPj7AG1oPnAWSfVmNFhVB0fslObx3vXtBnTXkr93CBqLr1NoIWlRrE kypoKvla9mRpHTIK730hDh8zjUgFEguWNTNRIt74FEOsPjkKDHgHjMNJhm4OPaK1Ask6 w1mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=tzpeiWW1; 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 c59si1997412edd.430.2020.05.18.10.33.23; Mon, 18 May 2020 10:33:46 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=tzpeiWW1; 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 S1728402AbgERRbc (ORCPT + 99 others); Mon, 18 May 2020 13:31:32 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:47874 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728337AbgERRbc (ORCPT ); Mon, 18 May 2020 13:31:32 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1589823091; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=QSSrzFNbEG3tmCT2karWtCRJnIeHXfmV1PvTWjMC/xc=; b=tzpeiWW1BGUUtEUq4tRpRYONfIJNOTx/CjNbuxDwJSuUb5VIYNc3ZF29C4Y76BD/qflBAphE 8Fclm6y0oWZjkTz1XJZi+ZkgFXoeYxbKCft0Auwks7X2yIeSMzvvky5WyVfZNfWdy17j7kOQ F5iMDB6xlz+xSbNUkORemOU/HBQ= X-Mailgun-Sending-Ip: 104.130.122.26 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 mxa.mailgun.org with ESMTP id 5ec2c664.7f51d3af67d8-smtp-out-n04; Mon, 18 May 2020 17:31:16 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E90B3C432C2; Mon, 18 May 2020 17:31:14 +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=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bbhatt) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2309FC433D2; Mon, 18 May 2020 17:31:13 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 18 May 2020 10:31:13 -0700 From: bbhatt@codeaurora.org To: Jeffrey Hugo Cc: manivannan.sadhasivam@linaro.org, hemantk@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-owner@vger.kernel.org Subject: Re: [PATCH] bus: mhi: core: Use current ee in intvec handler In-Reply-To: <713dc189-561d-3c4a-f856-26d006524485@codeaurora.org> References: <1589509049-14532-1-git-send-email-jhugo@codeaurora.org> <713dc189-561d-3c4a-f856-26d006524485@codeaurora.org> Message-ID: <9f19fb80d6cb410809efd27d27390709@codeaurora.org> X-Sender: bbhatt@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-17 12:38, Jeffrey Hugo wrote: > On 5/15/2020 8:58 PM, bbhatt@codeaurora.org wrote: >> On 2020-05-14 19:17, Jeffrey Hugo wrote: >>> The intvec handler stores the caches ee in a local variable for use >>> in >>> processing the intvec.  It should instead use the current ee which is >>> read at the beginning of the intvec incase that the intvec is related >>> to >>> an ee change.  Otherwise, the handler might make the wrong decision >>> based on an incorrect ee. >>> >>> Fixes: 3000f85b8f47 (bus: mhi: core: Add support for basic PM >>> operations) >>> Signed-off-by: Jeffrey Hugo >>> --- >>>  drivers/bus/mhi/core/main.c | 2 +- >>>  1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/bus/mhi/core/main.c >>> b/drivers/bus/mhi/core/main.c >>> index 7272a5a..0a41fe5 100644 >>> --- a/drivers/bus/mhi/core/main.c >>> +++ b/drivers/bus/mhi/core/main.c >>> @@ -386,8 +386,8 @@ irqreturn_t mhi_intvec_threaded_handler(int >>> irq_number, void *dev) >>>      write_lock_irq(&mhi_cntrl->pm_lock); >>>      if (MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) { >>>          state = mhi_get_mhi_state(mhi_cntrl); >>> -        ee = mhi_cntrl->ee; >>>          mhi_cntrl->ee = mhi_get_exec_env(mhi_cntrl); >>> +        ee = mhi_cntrl->ee; >>>      } >>> >>>      if (state == MHI_STATE_SYS_ERR) { >> Hi Jeff, >> >> Let's hold off on this change for now please as we have some good set >> of >> bug fixes and improvements coming in very soon. They're only pending >> post >> to LKML. > > Does that series of changes address the same issue this patch does, > and are they going to be posted soon (ie this week)? Yes.