Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1087281ybz; Wed, 22 Apr 2020 13:17:34 -0700 (PDT) X-Google-Smtp-Source: APiQypLt32jKNER1hy4S9/B3Dj6qz6lcc0y0hsxaBIuZDHVEvPbXCspFfuiY3tyudLigyuXuVV5f X-Received: by 2002:a17:906:3443:: with SMTP id d3mr120065ejb.18.1587586653853; Wed, 22 Apr 2020 13:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587586653; cv=none; d=google.com; s=arc-20160816; b=iRc1qIYlD72+90/oLNaUAPqR5CvfRLGwK1qKk9LiXjqULxsDZrGhOChmU2209styNp PPSTnXDl1v1S41NYKSuGWx3yRfTQzPayuoOLvC9FP75ImktDrYC57AYLYmv1d9y9v30x +/s1paoorP90I4j8aaNyk/ad/WZD8YwnYnBzqlv5TPs4tb54xWpeZVXxj2bIY7S5Nr7V pdJmFNYcE73KOjITLlw4j1mZVzf7jnww2oIa1jYxJzd84xQxPxnUDzPqc0jNlwDJm3rA CFsvERvB/YZIqOsdUmrBj39MRsQeNIYV1gvuObPG1p4WbPFpv+sGp6yqj/vrGfwxEkVt rlyA== 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:dmarc-filter :dkim-signature; bh=vnAn4LSCPJ/CxwUPiIM88+jEzBLRDw5k0xtLf/1X3mQ=; b=iHH4hprmHYhSgftJGEyJwESiktw0pZRzxFmopbfD2mP3XcxAhirYzCNP9J+GItg699 T/6tTIIBDI6fe7soemK0pzToehfeWgSCqpd3yWiYck/0odFiWdwWl85/3A+aD7vbwMxk kJarfvrX23Kt4UskU3sUZpI0SsW6fU0J1ZMxF2y3zrAFwkfuxBXIi8+AfNjoUC6wqXt1 IbUBGdT4PkrXR5WwnjRR7633nQ6zn/yiw2mYn7viU1GiKTV71rVi8unv4dbsEM6HN12j 3uvMqiBthesWeKzIpMvTq16S3568/Q0bbesfzFrHluM0axOADmh0OXwFq8WHxtq/EiZu q6JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=DPI+Myoh; 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 bz1si131313ejc.368.2020.04.22.13.17.10; Wed, 22 Apr 2020 13:17:33 -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=DPI+Myoh; 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 S1726307AbgDVUQI (ORCPT + 99 others); Wed, 22 Apr 2020 16:16:08 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:25421 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbgDVUQH (ORCPT ); Wed, 22 Apr 2020 16:16:07 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1587586567; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=vnAn4LSCPJ/CxwUPiIM88+jEzBLRDw5k0xtLf/1X3mQ=; b=DPI+MyohdT4r1iw7lPmlWU0eVwN6ZLbUZZ15KlC1J7LTZcggkSWBiEUPfoVjDmBUuY98Javh ICjMNEieG9bPIA0uMepfwiYYuHPhb6TafgdPxJdgRJkwNnGrMHXCBG1k1Qi0rlpKB0mKQf2Z ZHnYgALXGystBF0fR+azc2tQ1RU= X-Mailgun-Sending-Ip: 104.130.122.27 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 5ea0a605.7fb521bcced8-smtp-out-n03; Wed, 22 Apr 2020 20:16:05 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id F02C8C433BA; Wed, 22 Apr 2020 20:16:04 +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,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [10.226.58.28] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 28AA3C433D2; Wed, 22 Apr 2020 20:16:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 28AA3C433D2 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=none smtp.mailfrom=jhugo@codeaurora.org Subject: Re: [PATCH v2 1/5] bus: mhi: core: Handle syserr during power_up To: Manivannan Sadhasivam , Bhaumik Vasav Bhatt , Hemant Kumar Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <1586278230-29565-1-git-send-email-jhugo@codeaurora.org> <1586278230-29565-2-git-send-email-jhugo@codeaurora.org> <1768ba6e-12c2-7b4f-0f17-44fecc6473b9@codeaurora.org> <11d9f35b-b911-7985-8846-0a45904ceed1@codeaurora.org> <5c4efe13-42a4-e802-4070-5d9d30b8cac2@codeaurora.org> <79feeb0b-0837-c5b6-087d-856c3e238c67@codeaurora.org> <20200413133447.GA19124@Mani-XPS-13-9360> <20200421060835.GD4327@Mani-XPS-13-9360> From: Jeffrey Hugo Message-ID: <6a1c95f1-d7f5-2073-9262-415473986633@codeaurora.org> Date: Wed, 22 Apr 2020 14:16:02 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200421060835.GD4327@Mani-XPS-13-9360> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/21/2020 12:08 AM, Manivannan Sadhasivam wrote: > On Mon, Apr 13, 2020 at 08:01:36AM -0600, Jeffrey Hugo wrote: >> On 4/13/2020 7:34 AM, Manivannan Sadhasivam wrote: >>> On Fri, Apr 10, 2020 at 03:39:57PM -0600, Jeffrey Hugo wrote: >>>> On 4/10/2020 2:37 PM, Bhaumik Vasav Bhatt wrote: >>>>> Hi Jeff, >>>>> >>>>> We will always have the mhi_intvec_handler registered and trigger your >>>>> wake_up state event when you write MHI RESET. BHI INTVEC IRQ using >>>>> mhi_cntrl->irq[0] is _not_ unregistered once you enter AMSS EE. >>>> >>>> I understand it is not unregistered. However mhi_cntrl->irq[0] may be >>>> reserved for BHI, and thus only exercised by PBL EE. Where as, >>>> mhi_cntrl->irq[1..N] may be only exercised by AMSS EE. mhi_intvec_handler is >>>> not called in response to mhi_cntrl->irq[1..N]. >>>> >>>> Additionally, I re-reviewed the MHI spec, and I don't see where the spec >>>> requires the device to issue an interrupt upon completion of the RESET >>>> request. >>>> >>>> Under section 3.5, step 11 states - >>>> >>>> "The host must poll for the value of the RESET bit to detect the completion >>>> of the reset procedure by the device (RESET is set to 0)." >>>> >>> >>> If this is the scenario then we need to change all of the wait_event_timeout() >>> implementation for MHI RESET in current stack to polling. >>> >>> Or the interrupt generation is not defined in spec (sheet) but part of the >>> existing implementation? >> >> It probably could be considered part of the existing implementation, but I'd >> like to hear from Hemant/Bhaumik. Wherever we end up, I'd like to have the >> spec match. > > Hemant/Bhaumik, can you please share your thoughts? Sorry. Hemant, Bhaumik, and I have had a few calls discussing this. We are trying to come to a consensus on the expectation of the device behavior, so that we can propose the best solution. Probably a few more days yet while we await for a bit of clarification. -- Jeffrey Hugo Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.