Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp490180imu; Tue, 20 Nov 2018 02:24:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/VU2CpPFbrEVjn4YphhPucc52m6MDYWUZGjA1Yl8Q+xZcxYJPPoiPcR7/ziUvan+v8liNgI X-Received: by 2002:a63:7418:: with SMTP id p24mr1402486pgc.196.1542709459929; Tue, 20 Nov 2018 02:24:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542709459; cv=none; d=google.com; s=arc-20160816; b=TxP6+AR5piG4RCJ6Kx3h2HPiAJcbx7ZoeKVFCbfcWv+FkpsbFcWKk1KIIegoezqYOj DAoakju2nfhfV8SXaFyMB23TTVDpZ63pi2ievltHmBEuhmdnnwnOCqpOMMiiLkUlinZk aeo4F7kCxbaPu//Ma1uQe6TdWTR6CiX73ag0jYebtNzY7IMBHR6H0HtTFierhv5C2p6F D8JyjZYWpqpAkPFKUt4AHFybpStRbSXtT4pahvP7HzZaKOkrrn+C7Pk4a+9Anm+InZyo K28suNnnFH2wbyBqbeSblddXMu9ydSFQYyPS3BLl9IBW4ceIvcafTHODH6NiX2Dw2Y1k CcWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5M/YHNDjV+b9tyETtnNRNKD8sKgL0qwEbb+0DnveU94=; b=zzUKiFK0c2GR0lA12hafDT5qKc8SuVuFGKl/6G7KQNE4WoeOhbWRRupiFUpAKpVu51 +4iomNnROCWfYKO026DsbJg71wW0Vo7Lv2CHVUsZIfG7vyQdWdybhgae67z/I0nVsW5N HIEwKJhk5mL/Vl0BUoTVdl0riq5YewVWExx6PtMybc0iiRaH3tbH+rvTaGGbjmtIZzFA adiCXM8qIwzV/5n25o0h8mJsVoDkP/tT2Maqn4leEteA8oeC01COI5IS4a+AGxK5r+O6 TTOw9rOY3I1i3OwTe94M6+N6CH2YK/8nGHXu+FEvX2DEEkmQSzC0UVP0eV/MDWHhx2Wf pnSg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18si39770818pgk.367.2018.11.20.02.24.04; Tue, 20 Nov 2018 02:24:19 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728071AbeKTUv2 (ORCPT + 99 others); Tue, 20 Nov 2018 15:51:28 -0500 Received: from sauhun.de ([88.99.104.3]:52538 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726546AbeKTUv1 (ORCPT ); Tue, 20 Nov 2018 15:51:27 -0500 Received: from localhost (p54B3346D.dip0.t-ipconnect.de [84.179.52.109]) by pokefinder.org (Postfix) with ESMTPSA id 8BB294C0E9C; Tue, 20 Nov 2018 11:23:01 +0100 (CET) Date: Tue, 20 Nov 2018 11:23:01 +0100 From: Wolfram Sang To: Ulf Hansson Cc: Faiz Abbas , Sjoerd Simons , "linux-mmc@vger.kernel.org" , kernel@collabora.com, Linux Kernel Mailing List , Hongjie Fang , Bastian Stender , Kyle Roeschley , Wolfram Sang , Shawn Lin , Harish Jenny K N , Simon Horman Subject: Re: [PATCH] mmc: core: Remove timeout when enabling cache Message-ID: <20181120102300.GA1056@kunai> References: <20181106133007.12318-1-sjoerd.simons@collabora.co.uk> <9051c212-6e2a-bc39-3686-693e6cd87f1d@ti.com> <303b49cbb5b687d6b6a7ad4048eda459586c0806.camel@collabora.co.uk> <20181107084741.GA31092@kunai> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > >> 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? >=20 > 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"? 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. --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAlvz4IAACgkQFA3kzBSg KbYtPRAAlmLJPEorqqLLfPi7QvqV88+05ctnsL3aV/EqztKbRgQ/DjlDHmYpXozm WjRTG8HyRCLAlXQ6xC2TYQw+uqT0FzsOnzEVLtk8vsgfOjw0LOUhnAN5nJnc4jLl h3w3FGD71XH7cvM3QE4mCacYaiGLPVWpSbnDbTiPP9ljHlQpNPoVMlzgUxlDz6Gi eVNsT/r/PKboxBEdTox96bXxuGS8p0caV6p1yyFzROEf0+iyXEyQ16AjMhU4xMh8 ZwmpkUslSfzqPy9Ird5tYEvbAF7k9d5lDO1Lu0fxKa8YjxKR4kh3sNP/5jQ1lQvF 7qHYDi8UmOJG/9M+4KuqDsi4vVp9+H4apv98HRjlpHws+jeXPOBo9/iFLUthJyQ/ Uf+Yn7Hw74oH8PA3VFy/+j+eChPxJ4Fbz5dZ+d35L5Q3Q5+9nta9ZPEaXFoq3p6G 5twl0T+9v0QXdGp1zajSuquS40h7g7/vZOmded/CGHdSUiN5lI2/utGeKHK3wnVP SyZsEETFUf+3zcAPPrH7MI6qL1lBpVOxU6kDyGtS5mu8Bg6RMbKfNXqO+3Kyn+5P xenwy4w1ptTrsQyVsV5pSLHgTA/GmMB2fSvFZTgyJAvpv2hZvWRCeD3aX7FhB/0O CscRQHUlYB5hitEOnb+scm6qwH5hP0cBZSVsFb7lPfkh60BftLc= =Hkb8 -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw--