Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp475522imu; Tue, 20 Nov 2018 02:08:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/VzALEyf8OJb3IgjF7EZME6bc9Mmbgdqmu9a1hxC9VmXJgFkAOJCBenkJbRGRZcqOvPfeCc X-Received: by 2002:a63:dc0c:: with SMTP id s12mr1336750pgg.398.1542708485408; Tue, 20 Nov 2018 02:08:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542708485; cv=none; d=google.com; s=arc-20160816; b=zhaicwFljScvHmXu9TqGB9xHAXsiWzSApDk/rARF7nWrreRjooS+Jw9L+y9WnFxBvu C8BRi/IcOjkYrmu9yR1oXiIB+jw7QdoWf0LWG/+iO6hg/GjHA5NxyPgohUikWEINeRSg tfgYFpPKZKERnIqBEqlDM95iiiX7q++Wt4wo5jmtIGFsJJdVqiZIfEtsSCb2xghK7IIe Nr5ccM915kEqUChvglH0K47YcB3y/HyB94uvhymDDE3PSuZ7KGQO8f/7bnZredm/NizR F5yZ8uRpGjEe1bCm42Y+7Jjkq3IOZVSa6+Amkv1lQpEnj21fwb4hrgBKqCyY1T5HVMr1 hWfA== 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=st1wmS97hcI8VjZoTGm8GuDrZ/ekpNFP9w2qqupKLBg=; b=QNsmQ0A6j5yzHVYeAt5HdE7IXrveU4JZdZHPxFydTmygP21HbMDsw+7qIKmQmaujDh tHZR/osENSkQqqqkIfkNzQxiFL4AgA2VT17AZ3iEl0vvwXx4HRrMqFzfNDITeRFvF4cT JBYuWZxmUN6SXFLeoYxJX2c80IDON7NXpkB5K2U/seTOdPZHOyRhL5HR/vX8ax1J1GAc jnFRoHhnvqeq62yxO1/aJFI7jw+7Tli1EfcrYB4uNBFQOaw9c68sEOM/EIDc9DneQS+H ihvReDuWHjvvMSOlhmNQzHzOEU51DQQLPdRSd5uaDMwyjdAcPDp0nAqG5wwtFGKWfXVr eQ5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LrHhgcaz; 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 33si17308882plu.169.2018.11.20.02.07.50; Tue, 20 Nov 2018 02:08:05 -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=LrHhgcaz; 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 S1727209AbeKTUf3 (ORCPT + 99 others); Tue, 20 Nov 2018 15:35:29 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:58688 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725949AbeKTUf3 (ORCPT ); Tue, 20 Nov 2018 15:35:29 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id wAKA6bT7048269; Tue, 20 Nov 2018 04:06:37 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1542708397; bh=st1wmS97hcI8VjZoTGm8GuDrZ/ekpNFP9w2qqupKLBg=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=LrHhgcaz/IpuzQTJBvc+lWR/lh5/kBinFL3BNzq9WYL4VcHWAVPLE8YwCDSh3r1e4 mlx6iz6IXKRZbe7vD+8Zo1JA4hqthmkbXYtVXtcWomDa9xBDz47g26C1Pz+UQDrIB9 lP/y8dFdK2GfjLXk1R2rMS6vMpUMowXeXIUCLaHs= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wAKA6al5130666 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Nov 2018 04:06:36 -0600 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE109.ent.ti.com (10.64.6.30) 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:06:36 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE106.ent.ti.com (10.64.6.27) 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:06:36 -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 wAKA6Wfa029020; Tue, 20 Nov 2018 04:06:33 -0600 Subject: Re: [PATCH] mmc: core: Remove timeout when enabling cache To: Ulf Hansson , Wolfram Sang , Sjoerd Simons CC: "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> From: Faiz Abbas Message-ID: <327f0d23-efd7-a8e3-23d8-945132573c06@ti.com> Date: Tue, 20 Nov 2018 15:39:16 +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 Uffe, On 20/11/18 2:54 PM, Ulf Hansson wrote: > On 7 November 2018 at 09:47, 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. > > Note that, in this case we can use CMD13 to poll for busy, which then > means it also works for those hosts that doesn't support HW busy > detection, without getting additional delays. If this hasn't been the > case, we must be using a quirk, but now we are more free to choose. > >> Maybe it is >> worth contacting eMMC spec people to at least know what is the expected >> behaviour? > > According to the spec, the GENERIC_CMD6_TIMEOUT should be sufficient. > So this card is not conforming to the spec, I think it's as simple as > that. > Is the QUIRK patch acceptable as it is or do you require some sort of errata from the card manufacturers? Thanks, Faiz