Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp560531imu; Tue, 11 Dec 2018 04:00:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/XCFn1UdhhhQeL0A8pv3oRHMlrF7/Tk1dRT7hyBB+7RA3nTpxUH13KGMCQlsb8ScNKpPAPT X-Received: by 2002:a17:902:6ac5:: with SMTP id i5mr15882037plt.134.1544529616437; Tue, 11 Dec 2018 04:00:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544529616; cv=none; d=google.com; s=arc-20160816; b=rvFNj75IcHqxjAH04iQH31mDANgybt/v4sbzgM2gyY9krQA7ezZ6gbrWhInIVifAcY e2i7B9/K1bSW7stMOpM98tWFbcUJRpoE4TDsxg5e0foyjdEjVWNSQrcIUI4qLLtccaLW CEwY9qlyUaTxIcXeGCaf+34s/Opr9skL7DTaSar+Igeq8tvbZkKpOFLRSvdse0IfZAk1 iIYPvmPVc7fWR7YyN/JevQW1Vh0cTVoYdvWkE+SWVuYjjHVuHefsEXMSp3fELfc6tfE3 M0bWijrCqun6a5B+1FEbgCXkLSDQVabD2/lK+a1FStY5VTMtIzMFrhhQ5DINy8y2Hm9W 5kyw== 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:dkim-signature; bh=187Rsf4EelGv9DlRifQPc+KEenFEMf8MbAizh0anMr4=; b=cc23d9QZ94Q/pkzSg/KK+nedhtfBv5+lIT5WPrGuUdFv9qFXX7Kzqjp5CnWcd4V114 45u0u2FcVvh+jHveFX9+vlvIP5nCn94RGgqIFKgmfOTUd+7wOm3sTZostk+LeW+5kV+7 jlkzIPR03Jd67Zzmau4gPLgL27ZH3t7tnGtYqvA/E/NQ4f/dCGz5T78xy0OERwb72N6X IP4xZ56pcAc5+sVhbnnx74o2NTHLGzj/QK0ATENgapNN+vqb97keVRTr9h5J+EbWpZi3 r3eKdhhWxOT9Hh47dhXfG5HsmVFaLQXEtPbT8ki6zQg3wLMmMA7Val7y2uPFtCLMHMrO cCAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=txAP1hNZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p23si11774303pgk.312.2018.12.11.04.00.01; Tue, 11 Dec 2018 04:00:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=txAP1hNZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726376AbeLKL6I (ORCPT + 99 others); Tue, 11 Dec 2018 06:58:08 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:50512 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbeLKL6I (ORCPT ); Tue, 11 Dec 2018 06:58:08 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id wBBBvxWp079391; Tue, 11 Dec 2018 05:57:59 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1544529479; bh=187Rsf4EelGv9DlRifQPc+KEenFEMf8MbAizh0anMr4=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=txAP1hNZTuoaQH7LGACPLPO9ldref4wGLd+sqnT7rnXR69Wg+nUAlDydA1Ar4An+s lvk+JhJbFec4rm+7ldsGs8E4BRRf69xjL2YP/2t4TISSec9RiNAM2Yto6O5g+ytyGq XO35RqMO/LWwXW4vc2bTlsNBsb38yqBW/vjtWmZg= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wBBBvxK5096841 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 11 Dec 2018 05:57:59 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 11 Dec 2018 05:57:59 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 11 Dec 2018 05:57:59 -0600 Received: from [172.24.190.215] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wBBBvv01013686; Tue, 11 Dec 2018 05:57:57 -0600 Subject: Re: [PATCH] mmc: sdhci-omap: Workaround errata regarding SDR104/HS200 tuning failures (i929) To: Ulf Hansson CC: Kishon , Linux Kernel Mailing List , "linux-mmc@vger.kernel.org" , Adrian Hunter References: <20181129190503.6040-1-faiz_abbas@ti.com> <218be2af-8f81-47b4-f782-b774e10642c1@ti.com> From: Faiz Abbas Message-ID: <4d893ae8-f0a2-2e67-8100-b934340f4e4a@ti.com> Date: Tue, 11 Dec 2018 17:30:43 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10/12/18 10:26 PM, Ulf Hansson wrote: > On Mon, 10 Dec 2018 at 17:43, Faiz Abbas wrote: >> >> Hi, >> >> On 10/12/18 8:55 PM, Ulf Hansson wrote: >>> On Mon, 10 Dec 2018 at 15:04, Faiz Abbas wrote: >>>> >>>> Hi, >>>> >>>> On 10/12/18 7:15 PM, Ulf Hansson wrote: >>>>> On Mon, 10 Dec 2018 at 14:23, Faiz Abbas wrote: >>>>>> >>>>>> Hi Uffe, >>>>>> >>>>>> On 05/12/18 7:20 PM, Ulf Hansson wrote: >>>>>>> On Fri, 30 Nov 2018 at 06:53, Faiz Abbas wrote: >>>>>>>> >>>>>>>> Hi Kishon, >>>>>>>> >>>>>>>> On 30/11/18 10:10 AM, Kishon Vijay Abraham I wrote: >>>>>>>>> Hi Faiz, >>>>>>>>> >>>>>>>>> On 30/11/18 12:35 AM, Faiz Abbas wrote: >>>>>>>>>> Errata i929 in certain OMAP5/DRA7XX/AM57XX silicon revisions >>>>>>>>>> (SPRZ426D - November 2014 - Revised February 2018 [1]) mentions >>>>>>>>>> unexpected tuning pattern errors. A small failure band may be present >>>>>>>>>> in the tuning range which may be missed by the current algorithm. >>>>>>>>>> Furthermore, the failure bands vary with temperature leading to >>>>>>>>>> different optimum tuning values for different temperatures. >>>>>>>>>> >>>>>>>>>> As suggested in the related Application Report (SPRACA9B - October 2017 >>>>>>>>>> - Revised July 2018 [2]), tuning should be done in two stages. >>>>>>>>>> In stage 1, assign the optimum ratio in the maximum pass window for the >>>>>>>>>> current temperature. In stage 2, if the chosen value is close to the >>>>>>>>>> small failure band, move away from it in the appropriate direction. >>>>>>>>>> >>>>>>>>>> References: >>>>>>>>>> [1] http://www.ti.com/lit/pdf/sprz426 >>>>>>>>>> [2] http://www.ti.com/lit/pdf/SPRACA9 >>>>>>>>>> >>>>>>>>>> Signed-off-by: Faiz Abbas >>>>>>>>>> --- >>>> ... >>>>>>>>> >>>>>>>>> Can't we get thermal zone once during probe? >>>>>>>>> >>>>>>>> >>>>>>>> Tuning is also (ideally) supposed to happen only once per enumeration. >>>>>>>> Also it doesn't make sense to get a thermal zone for lower speed systems >>>>>>>> that won't do tuning. >>>>>>> >>>>>>> Currently sdhci-omap calls pm_runtime_get_sync() during probe, and >>>>>>> then keeps the host device runtime resumed until ->remove() is called >>>>>>> on it. I assume you are going to change that, at some point!? >>>>>>> >>>>>>> In other words, what will happen to the host device when it becomes >>>>>>> runtime suspended? Is re-tuning needed when it gets runtime resumed, >>>>>>> which is the case for many other sdhci variants? >>>>>> >>>>>> There are no plans to support runtime_suspend()/resume() any time in the >>>>>> near future. If its ok with you, I would like to get this patch in >>>>>> without any changes. We can change it in case a need for >>>>>> runtime_suspend()/_resume() does arise. >>>>> >>>>> Right, I am okay with that. Due to recent changes to sdhci-omap >>>>> $subject patch doesn't apply, can you please rebase!? >>>>> >>>>> Additionally, I realized that we should fold in patch updating the DT >>>>> doc for sdhci-omap, adding the property for the thermal zone. I >>>>> regards to that, I am wondering if "cpu_thermal", is really the >>>>> correct name of the zone. The point is, I am guessing the zone could >>>>> change along with the SoCs/platforms. >>>>> >>>> >>>> As you have probably noticed, we are introducing a new driver >>>> (sdhci_am654) for newer platforms. I don't foresee using sdhci-omap >>>> driver with any other platforms. In case we do use it, we can add the dt >>>> property at that point of time and default to "cpu_thermal" to maintain >>>> dt compatibility. >>>> >>>> Will rebase and send v2 if you are ok with above. >>> >>> I see, but you still need to update the DT doc for sdhci-omap. >>> >> >> I didn't get you. There are no changes in dt. What changes should I >> document? > > Well, you are fetching a thermal zone using a specific name. It's > quite similar to how we document other resources (pinctrls for > example) that sdhci omap depends on, so that needs to be document too. > Ok. Will add a note for "cpu_thermal" in the documentation. Thanks, Faiz