Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp502573imu; Tue, 20 Nov 2018 02:38:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/W69oZIUTUcXc1JfZNllik1fDbMWYgr/9ZSx0drTvg+EZwcfHUHJZEWUYbpnybpVcb6v6SE X-Received: by 2002:a17:902:6b0c:: with SMTP id o12mr1649836plk.291.1542710310169; Tue, 20 Nov 2018 02:38:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542710310; cv=none; d=google.com; s=arc-20160816; b=0SBige5PqhSauRBTZuJQe/avzZq2VT20UXrdH9N4RFWrntZpBfrCqw2g6zOx24HD1a 1J4+7b6dSyLUxnhcxIqRxISvdebuY88B1gKCKtf2kqlcMe9sVu/MKkYJj2QKwrVb9aVi sJA+H4WyRQxRbZfAj3HsA0veMYJ+QbxaI7kP5Bt1Rh5VnsTBPzEDdUfBTnNklm26UjBI I0mro6mR8hYvVcWC3a/JtjKs2d7Jm/d1DJjF7SIMOpyQeCJ+kBfYjLQwycLbA/G3q9V3 4ZA8KAOR2tqe82qiMttP5wziFlnl/V0gQ3IHJtcDCJbDqoPD5SqDD9wwD231jEnnODVV +pSg== 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; bh=ClnGv4FB3KhjTobenL+La31gUBDhnjW1nehSYzPRO1I=; b=uzoRAanIbpXnJoQq/fW6f9uRrjqVA0Fjly1gf2Q+82Tk2VfYt7E8mdloqgbiyzNbdh +XxG6pIL4gC+uXC5BcaIS1U0gz7Aa9L5fKsAWJWnPQyTjshKtgLmDens92r/3psyW/14 4bzBD9EMyBrFHV3QyYgog7ShnCDs+gwwlFFt8RghuNgT8Nz7Mg0kgMGUzP4JF3aOz97X 83ycVg+zDwpnMW/EQB9qAiWEpfikepfdWBh6Gx5qEOUlu5PlLtiO4eShWvKyeikD3URX XPa9gJolT8gafRVlg6zRyqd0H9wFUBefdkF/gOz8R82jbKYbiZ454tu/exx2oBG8Ogje c7nA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 v30si34997806pga.45.2018.11.20.02.38.14; Tue, 20 Nov 2018 02:38:30 -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; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728540AbeKTVFx (ORCPT + 99 others); Tue, 20 Nov 2018 16:05:53 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:43848 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726398AbeKTVFx (ORCPT ); Tue, 20 Nov 2018 16:05:53 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id wAKAarA7129761; Tue, 20 Nov 2018 04:36:53 -0600 Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wAKAarBg078560 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Nov 2018 04:36:53 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 20 Nov 2018 04:36:52 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 20 Nov 2018 04:36:52 -0600 Received: from [172.24.190.215] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wAKAamug017135; Tue, 20 Nov 2018 04:36:49 -0600 Subject: Re: [PATCH] mmc: core: Remove timeout when enabling cache To: Wolfram Sang , Ulf Hansson CC: Sjoerd Simons , "linux-mmc@vger.kernel.org" , , Linux Kernel Mailing List , Hongjie Fang , Bastian Stender , Kyle Roeschley , Wolfram Sang , Shawn Lin , Harish Jenny K N , Simon Horman References: <20181106133007.12318-1-sjoerd.simons@collabora.co.uk> <9051c212-6e2a-bc39-3686-693e6cd87f1d@ti.com> <303b49cbb5b687d6b6a7ad4048eda459586c0806.camel@collabora.co.uk> <20181107084741.GA31092@kunai> <20181120102300.GA1056@kunai> From: Faiz Abbas Message-ID: <568297e2-9fe2-1d34-beda-35d4906e3b8b@ti.com> Date: Tue, 20 Nov 2018 16:09:32 +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: <20181120102300.GA1056@kunai> Content-Type: text/plain; charset="windows-1252" 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 20/11/18 3:53 PM, Wolfram Sang wrote: > >>>> That also happens to be one of the cards we deploy; However i did >>>> wonder about adding a quirk but decided against it as it was not clear >>>> to me from the specification that CACHE ON really is meant to complete >>>> within GENERIC_CMD6_TIMEOUT. That and i fret about ending up in hit-a- >>>> mole games as the failure is really quite tedious (boot failure). >>> >>> I agree that we should use the more defensive variant as a default. I >>> mean there should be no performance regression since most cards will >>> respond just faster, or? The only downside I could see is that we might >>> miss a real timeout with no bounds set and might get stuck? >> >> Well, you have a point, but still it's kind of nice to know which >> cards are behaving well and which ones that doesn't. Hence I think I >> prefer to stick using a quirk, unless you have a strong opinion. > > No strong opinion. Especially not if you say it is in the spec (although > "must be sufficient" would be better than "should be" ;)). Also, I > assume this failure is reproducible and should turn up during > development? Compared to "happens once in a while randomly"? At least for me, the failure happens only on some units but is consistent for a given unit. > > Yet, if we add a quirk for that, then we should probably mention it in > an error message when we hit -ETIMEDOUT for cache on ("does your card > need this quirk?")? It can be pretty time consuming to track this down > otherwise, I'd think. > The QUIRK needs to be card specific. The software should automatically detect the card (from the CID) and apply the quirk. Please see patch in my original reply. Thanks, Faiz