Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp980530ybk; Fri, 15 May 2020 20:04:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeYRTufcgfBvSdbr/hRY77s1NnXX87ZwCwWLyBlctOW+XPoMhSpu6cqRMMKZh7namKIlv2 X-Received: by 2002:a17:906:480f:: with SMTP id w15mr216709ejq.381.1589598262509; Fri, 15 May 2020 20:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589598262; cv=none; d=google.com; s=arc-20160816; b=0m47mKzp7HKw55NvmeM9mLeXucl2k0HLvKdscBsjhNmdrKho+masjMrW/nKbAC7pU4 MnE3qxiEG7J2Eg5ieJ9w/bu6DGwRKOx11KWCi7C8pth+25z/P/hf9DBQdQ9TVQY/imrU sL1eB3GZ6tuPqA0Yen7QDGwKTzOjZiAPosxsQw4oaGx6jHBq/DNU4FDLan2ZcgpgHqH6 0aSJCi2HxN3yIVBy2TWsgMXAQdsxzKf0djFqJH+q3bFxb7GsP4rZyVnZ+j6uth8Petl7 otjLnhD208tOilIeeKgo33yNmeMKSActQLhxoxsroFQ0etXiEQAaHGKgY+vl3i0A1tL2 V8/g== 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=vAHRZO2aoumgoKX5GjqHJFJCsrd29AsXO2S+dqIqaKk=; b=CwR1l/2A6pNIO5AY6v7HZEIC2dtT4gNSBU3IOOFMCTv0N9Y5g+qrRCI1K6K1j0byy9 hTiJ0bJAYVVkvLgHxVba8SOhPNHeFl+tT3rPzAuhbEiBIN/VqYzdqRareNQkUb4xE7e6 drCXREMEcgV9iJjXsbgHxhxgLPsKmW6SRb+g22UkPzH62K5IC1sOY2AITR3XCYwTS5us XwQPcrtJglpmP6yIW6eMm0NCQDiLLAnOrTeoMBsapYe0AhVy7TTsi2gJ2CW4mIqw5Tis ucQ+gAaCnQo7UU7z7J0dBTjaBVVJ8vFtI1RWz8czJfkTXtpLk/jp15DRI+mg56lyDXo4 P2lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=tSZQ862Q; 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 g4si2333967edu.287.2020.05.15.20.03.58; Fri, 15 May 2020 20:04:22 -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=tSZQ862Q; 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 S1727989AbgEPC7H (ORCPT + 99 others); Fri, 15 May 2020 22:59:07 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:61964 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbgEPC7G (ORCPT ); Fri, 15 May 2020 22:59:06 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1589597946; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=vAHRZO2aoumgoKX5GjqHJFJCsrd29AsXO2S+dqIqaKk=; b=tSZQ862Qz8L83QMflslATfkssGOTMYhFA+iSEf9HEhHTXeQBoYbPLINEgQ7hbF89AkJLfgDr 00aGyyTTb9BkSWqiITbhZbDSCMc/+t8I6rlylNvHz37KnuYkyJCvDTpvdj4DGarUOm7mSBnF fTaO/hw/R1AjQRoggIx2TZ2gl6E= 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 smtp-out-n02.prod.us-east-1.postgun.com with SMTP id 5ebf56e1aefa5a01cc046e39 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sat, 16 May 2020 02:58:41 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 822EBC432C2; Sat, 16 May 2020 02:58:40 +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,URIBL_BLOCKED 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 F1ED0C433D2; Sat, 16 May 2020 02:58:39 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 15 May 2020 19:58:39 -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: <1589509049-14532-1-git-send-email-jhugo@codeaurora.org> References: <1589509049-14532-1-git-send-email-jhugo@codeaurora.org> Message-ID: 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-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. Thanks