Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp30122imm; Mon, 21 May 2018 01:34:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq78gyf5zfzLLJ0Qyic4T5MvYY63CeljEaIUBT5KLdeBT0+FDWfyezM13WXIfWxioBANjcX X-Received: by 2002:a17:902:1c7:: with SMTP id b65-v6mr19452721plb.298.1526891692483; Mon, 21 May 2018 01:34:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526891692; cv=none; d=google.com; s=arc-20160816; b=nuRdGJXdPezaB3g/Kay/iJU5wey4Tv1c1kwaJQ5njkuRYEBoG+qTY9VBZsXLqKnGDw 3QBkrAmSHLEQsksru81J9rqUCPyiHjLKTBF5uOoNw3hcgS49+m3Bkt39akWg7csZNNOy xQzZGOSLbKTSkdHF4W8Z5oTzeCFG6PLvAbfmNeFa3MJCsBWYVs1/pKA0k4vRI6oDn1JZ 6+Mlv0Bb3UjgfYnbCPPoDUUyINLTopnWJBIPAzSKxELtokMjbxWtmVp1JAthxdUZYVNP 7R5HmGvbj4JZuXbjipZNmJIX1rjXxl4oTxK8eGeLQvZduxAwiJyw/wvI6zklfgzY49VC NMrQ== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=klkIXP7hfgoGyP4dpZ9NgdjgKvdKOlXjjF9Ai+mT8UY=; b=gb525DdYXwwlFloPzwIQ3oXoT6ds54IeTx052+p23+X5HdNliwky4qHUZV5TSzVrMb mXiRrJAR09nZVBDT0jZueEWW+b+OUNmqne54yG+mwMBnKxoDysfvcebZhR/P2TUepF6c OarwTPc6wM3pmYGx6YlmJswWBo3V3ZoMGtVxbsId5mpuzYWj7k3ie+mzeMAb68QzmwSZ Q41s+Y8f8WTUJNop+0HS++CZXnuPWoF+H2TRYQ94ex61q+bwkUgWgTyHnfMn2pAHSBbL pbcnazY3CY6anxvZDhc7J71Y/Io7gKHXw3YRvyBWgZg7vjlGlUkCaQ2diR/wXgnizfqj jYRQ== 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 61-v6si13895688plf.63.2018.05.21.01.34.38; Mon, 21 May 2018 01:34:52 -0700 (PDT) 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 S1751143AbeEUIe3 (ORCPT + 99 others); Mon, 21 May 2018 04:34:29 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7709 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750970AbeEUIe2 (ORCPT ); Mon, 21 May 2018 04:34:28 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 225DBEF430E9A; Mon, 21 May 2018 16:34:14 +0800 (CST) Received: from [127.0.0.1] (10.202.226.44) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.382.0; Mon, 21 May 2018 16:34:10 +0800 Subject: Re: REGRESSION: HiKey eMMC corruption To: John Stultz , Ryan Grachek , "Arnd Bergmann" , Leo Yan , Guodong Xu References: CC: Ulf Hansson , YongQin Liu , lkml From: Wei Xu Message-ID: <5B02847C.3000102@hisilicon.com> Date: Mon, 21 May 2018 09:34:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.44] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John, On 2018/5/18 23:59, John Stultz wrote: > The last few months have been busy and I've not been ontop of my > upstream testing as well as I'd like, but today I did manage to chase > down an issue I've been seeing since 4.17-rc1 on the HiKey board, > which was causing emmc corruption and stopping the board from booting. > > Symptoms usually looked like: > [ 1.690448] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot > req 400000Hz, actual 400000HZ div = 31) > ... > [ 1.777288] mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot > req 150000000Hz, actual 148800000HZ div = 0) > [ 1.777760] mmc0: new HS200 MMC card at address 0001 > ... > [ 12.214381] dwmmc_k3 f723d000.dwmmc0: Unexpected command timeout, state 3 > [ 12.457420] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot > req 400000Hz, actual 400000HZ div = 31) > [ 12.536676] mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot > req 150000000Hz, actual 148800000HZ div = 0) > [ 12.616827] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot > req 400000Hz, actual 400000HZ div = 31) > [ 12.695742] mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot > req 150000000Hz, actual 148800000HZ div = 0) > [ 12.772067] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot > req 400000Hz, actual 400000HZ div = 31) > [ 12.850429] mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot > req 150000000Hz, actual 148800000HZ div = 0) > [ 12.863384] print_req_error: I/O error, dev mmcblk0, sector 8810504 > [ 12.869778] Aborting journal on device mmcblk0p10-8. > [ 12.887900] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot > req 400000Hz, actual 400000HZ div = 31) > [ 12.967509] mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot > req 150000000Hz, actual 148800000HZ div = 0) > [ 13.130182] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot > req 400000Hz, actual 400000HZ div = 31) > [ 13.209438] mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot > req 150000000Hz, actual 148800000HZ div = 0) > [ 13.302085] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot > req 400000Hz, actual 400000HZ div = 31) > [ 13.380462] mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot > req 150000000Hz, actual 148800000HZ div = 0) > [ 13.494539] mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot > req 400000Hz, actual 400000HZ div = 31) > [ 13.571420] mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot > req 150000000Hz, actual 148800000HZ div = 0) > [ 13.640817] EXT4-fs error (device mmcblk0p10): > ext4_journal_check_start:61: Detected aborted journal > [ 13.650043] EXT4-fs (mmcblk0p10): Remounting filesystem read-only > > And quite often this would result in a disk that wouldn't properly > boot even with older kernels. > > I've narrowed the issue down to the following change: > abd7d0972a192 ("arm64: dts: hikey: Enable HS200 mode on eMMC") > > Reverting this change seems to make things work reliably for me. Thanks to report this! Let me check with Leo and Guodong to know which property changing this is caused by. Hi Leo and Guodong, Can you help to confirm the commit abd7d0972a192? From the log it seemed to cause by the property "max-frequency". Thanks! Best Regards, Wei > > Should we revert that upstream for now? > > thanks > -john > > . >