Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp241227pxb; Thu, 30 Sep 2021 05:13:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2Uea3GLwZSEKAEPvUbLOOrAF+Nl6ILOgTUAeYsRX0dvxfdba9S6dN7OVkBwu3SJB32Cfd X-Received: by 2002:a17:906:7f0b:: with SMTP id d11mr6550410ejr.26.1633004028257; Thu, 30 Sep 2021 05:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633004028; cv=none; d=google.com; s=arc-20160816; b=csL6aIM4Qwl+Wx2/aUVSZIVka5niqG0dGNXQaa5H7EchfvTt4ihYfQBi3Aemql7Ch2 iIJZXJa7mAwyblkf8nJ4J0w/J8NV7H4+WP+qOa3fKiLtGDAD+ePqMTWB2sA/rzAWOQmx vaqy5sQdb8vqNrO51MPmV0s+N2vRCmx1akOSkaQuXHQv/9+3vMGXH653j/7AFAokqDFm 7fJX/8zZJPsKxrTgf+2074wXQ3phGQ0iihiTtVV+u+2resGJIgM8tsyTwfT92+whYkRe MXqJGQ0qUu3GfD1sugYsZKYJ+cNtuZN+xxmQl6KUx3iBaCn3gsK/OngXQUgKATx1yIXY Is/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject; bh=STtlMHKZ9mp6DGOj2XUqTH1HPD94RFOfCvKn0nK0aWQ=; b=u7eysSEysGrJSDb/EFab6BtnSfhJpjX4H8pdKBNfFgzEesXNEGny3x0sma4/2uy2Hf MxY1P7Cy1rvyPUEhfWKx284Gxl6Bn2O/FrNPlEuSnZvNDnQUSjYB+aG2q2RYpr4gtT9O txpgCMXVcnvdPCo+DXT6YArhQq6IYeRiBtvHvjWwvckm0zOgdcEvaMYTQX2JeZDbdrNU U1Uz3n2n1hr/b4lDi4Gn6Y33yjmRLn7Vk0ZOe9IRRIgkOdwhAhAFnoAvHIXH/LjosKFY 1hAn/qiQJ2+EDkovLBQAZ5FORDk91RBBotJzcSkLzgSDVV43EFuCtevcPCmckr3EMuDL nesg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v2si5034710edc.561.2021.09.30.05.13.24; Thu, 30 Sep 2021 05:13:48 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349083AbhI3JBj (ORCPT + 99 others); Thu, 30 Sep 2021 05:01:39 -0400 Received: from mga14.intel.com ([192.55.52.115]:16390 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348225AbhI3JBj (ORCPT ); Thu, 30 Sep 2021 05:01:39 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10122"; a="224796284" X-IronPort-AV: E=Sophos;i="5.85,335,1624345200"; d="scan'208";a="224796284" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2021 01:59:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,335,1624345200"; d="scan'208";a="707851818" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.76]) ([10.237.72.76]) by fmsmga006.fm.intel.com with ESMTP; 30 Sep 2021 01:59:47 -0700 Subject: Re: [PATCH v1 2/2] mmc: sdhci: Use the SW timer when the HW timer cannot meet the timeout value required by the device To: Bean Huo , Ulf Hansson Cc: Bean Huo , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210917172727.26834-1-huobean@gmail.com> <20210917172727.26834-3-huobean@gmail.com> <93292ef4-8548-d2ba-d803-d3b40b7e6c1d@intel.com> <40e525300cd656dd17ffc89e1fcbc9a47ea90caf.camel@gmail.com> <79056ca7-bfe3-1b25-b6fd-de8a9388b75f@intel.com> <5a5db6c2eed2273a8903b5052312f039dd629401.camel@gmail.com> <5072935e-d855-7029-1ac0-0883978f66e5@intel.com> <37497369a4cf5f729e7b3e31727a7d64be5482db.camel@gmail.com> <32b753ff-6702-fa51-2df2-32ff1d955a23@intel.com> <296607ef57f3fb632107997f4edca99a5722beab.camel@gmail.com> <3078b365b5ddfad198a5c8a097f2e7edb9730e2c.camel@gmail.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <6d57e6bd-24ba-f07e-678c-691f202549d5@intel.com> Date: Thu, 30 Sep 2021 11:59:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <3078b365b5ddfad198a5c8a097f2e7edb9730e2c.camel@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/09/2021 11:34, Bean Huo wrote: > Hi Adrian, > > > Thanks. > I want to give a short conclusion for our discussion: > > Based on your information, these sounds disable of HW timer timeout > interrupt will make eMMC host controller malfunction, in another word, > the disable of timeout interrupt will make the eMMC host cannot > correctly provide the completion interrupt. And unless only when the > SOC vendor signals that their SOC supports that the host side SW can > disable this HW timeout interrupt, as TI does. > > I studied the SDHCI Spec, and tried to see if there is this kind of > support statement, but not been found yet. I will check with other SOC > vendors. > > I have one more question, if you know, please give me your information. > > I did testing on HW timer bahevior in case CQE is on. Currently, we > always set the HW timer with the maximum timeout value if CQE is on. > Based on my testing, the HW timer will never timeout when we enable > CQE. I changed the HW timer value to be lower, it is the same result. > Do you know that the HW timer will be inactivated in case CQE is > on? but its timeout interrupt is still enabled. No I don't know how different CQE handle timeouts. > > Kind regards, > Bean >