Received: by 10.223.185.116 with SMTP id b49csp1120144wrg; Wed, 14 Feb 2018 11:59:00 -0800 (PST) X-Google-Smtp-Source: AH8x225zU0hfphqgGL2QHGh/mMKDYhCETreUgbIMLQn7uZ41dhI53kd9kfwrun1JiDPfo2tlzDzl X-Received: by 10.98.156.143 with SMTP id u15mr207849pfk.94.1518638340202; Wed, 14 Feb 2018 11:59:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518638340; cv=none; d=google.com; s=arc-20160816; b=v4/J9kYMxlVediVE/oebAxlx9T5deo36htfqG0cHHQKxEeCc2cfWWEFtRfkZGuvNFh c2T/G+AWRh1v5h1m0AsZ9DdrnkYz3bXjkCCBt3LdslkRKVWAjwrGXdI3TTnoA0ur1DiY Zoc3PyvEKpZDD03faSdS9KY+WVTOIzAgrS7aktYnTycJjD8LUae2VVB1bV+XVzmbHFWF UOehNQ7o7/2IZ06C1NSVjuoNF7086n+JNWXvnxN8BmDRPzDavHWc4szAfovq/1KSLf6G 2ho+pIU5fLRCcN/3/L4n9rP3HuZyKb/Otlf6/FVaxexhNX8BG/42UAvikUTDjmAbkPLG b6uw== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=3BNsJiyT6XcJmmBR3Y/6wyG/AQNZGSgLcMZgWOmD5w4=; b=Eu34Tr3uPyOBP3yn59XNRs4Bsa4s7yIxhBx35PHZO0fUfektLvBATM6WCJmaaoM9Az wXeIVWrpRB2g5Tqw+9QXpf2zGTNiAYSPVUiP5TAQFx5szEE6/0nhunzl9jdaAgY3DCoD wAQnQHQIeilqdK6+2ZHCVJv9ZYPLWXUhi3T6XMJ4mEs5EXMq5oz2v6irlNbxdGpH5eJW JZsnMtviD1ZTA77P5SrDvWxKzhX6W+5O085r1/g5yyWl2d3i0q6wnJI1hZygXmy5b6t0 YrH75WsUCkLoDrJ151zYAM96eERk8KptMHBa9sxio6NlPQen2uTlP6lRh+BFheTj/obp SUxg== 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 v34-v6si194562plg.803.2018.02.14.11.58.45; Wed, 14 Feb 2018 11:59:00 -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 S1031540AbeBNPgy (ORCPT + 99 others); Wed, 14 Feb 2018 10:36:54 -0500 Received: from mx2.suse.de ([195.135.220.15]:39473 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031380AbeBNPgw (ORCPT ); Wed, 14 Feb 2018 10:36:52 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3E5A1AB4B; Wed, 14 Feb 2018 15:36:50 +0000 (UTC) Date: Wed, 14 Feb 2018 16:36:49 +0100 From: Michal =?UTF-8?B?U3VjaMOhbmVr?= To: Stefan Wahren Cc: Michal Suchanek , Ulf Hansson , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Eric Anholt , Gerd Hoffmann , "Gustavo A. R. Silva" , Julia Lawall , linux-mmc@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mmc: bcm2835: reset host on timeout Message-ID: <20180214163649.3a0c9476@kitsune.suse.cz> In-Reply-To: <1fbf0d77-cb53-f0fa-b810-e9954138d907@i2se.com> References: <97593d6e1a41af1baff61f7d9e6e68a450fc9da6.1518619058.git.msuchanek@suse.de> <1fbf0d77-cb53-f0fa-b810-e9954138d907@i2se.com> Organization: SUSE Linux X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Feb 2018 15:58:31 +0100 Stefan Wahren wrote: > Hi Michal, > > Am 14.02.2018 um 15:38 schrieb Michal Suchanek: > > The bcm2835 mmc host tends to lock up for unknown reason so reset > > it on timeout. The upper mmc block layer tries retransimitting with > > single blocks which tends to work out after a long wait. > > > > This is better than giving up and leaving the machine broken for no > > obvious reason. > > could you please provide more information about this issue (affected > hardware, kernel config, version, dmesg, reproducible scenario)? > The RPi3 is known to not work with some SD cards. You can find some wiki pages with large tables of known-working and known-broken cards. I have a couple of RPi3 boards and a card that works and card that does not. I tried debugging the issue but did not find anything I can do about it - AFAICT the issue happens somewhere inside the MMC controller IP. I have no inside knowledge of the controller in question but during testing I tried to reset the controller whenever the issue happens so I can continue running the test system for a longer time until it gets unusable. While I did not find any solution to the problem the workaround with resetting the controller works quite reliably for me. So I am posting it in the hope that people with the wrong combination of RPi3 and SD card will not get a blank screen but rather a system that boots but tends to lock up for half a minute occasionally. Thanks Michal