Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp782304imm; Sat, 26 May 2018 10:59:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpumkvELGqH44wDVK1GgRT5xtJsc/oJP4cKTzxfzVWK9zKoazyOdcVXTFETMhcehWhR9WfT X-Received: by 2002:a17:902:1e4:: with SMTP id b91-v6mr7145884plb.155.1527357576566; Sat, 26 May 2018 10:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527357576; cv=none; d=google.com; s=arc-20160816; b=nq596yUItrXN8Us3f4xNzWRHJJLEKKnKv7PWN9GJEZdfXsNRzarqSybpKOhw3EQpvt Yh6/LTT0hVezv1ASypkxRQNyu/p7GyJGz4BtsMQYaiqovN5ilu3pkWKyzaQqOROrWFIF xl5hwg8HPXOoacv951dm215IVbYTuHO+x7/hBqW89kGDJk3MRKh7fDwfR+k4lWFAFDm+ OMvUObSFuNrqwheapM9/HaUkolSILsErK2QKDXdG1fNUZKT0oIuLyCGulZx8aLK4oQcK 6hh24bBaDvDtabGlroTxq4hLgur7m3yr+LYB3kd+E6w/m0ZRHvIfkpCtaSodzxMy5z30 gAhg== 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=XL8t8sZgmcvz9G66qaw5BJ2MXGDOh9lms2tZO8gUhak=; b=kP39O2d1K820toXGvsGEQhzsjqm0LV9YyEeQy7XL+oWSNHG7UQbfL5b6ldv20OEk6P IzfMmlbPkhpXHBaXKJWpBDKonPYrvfwGQpcskFT0aqkMfdaI+zCsGRnBsYIC6UwEz34W LEmYiD479RbzQGuzSfRvFY4BSGu0SSae8vV1ZFac/tIoBA2qHZt1nF11uMRoGeQZjkua ZxuQ3Rdd0sDpCbkpO9gUI3V6UzKDU/aTa/o7U0HhNMWqgTFyL8MmPHDO4QJiKQA5lD1H IssHGTT1OLN0ur8Kl5bLpjhM12diveccS9kvWt3qZPbRYUR62/owpLhXE/QZzFLsy8+K 1Apg== 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 e3-v6si26046099pld.229.2018.05.26.10.59.22; Sat, 26 May 2018 10:59:36 -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 S1032314AbeEZR7K (ORCPT + 99 others); Sat, 26 May 2018 13:59:10 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:59766 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1032112AbeEZR7H (ORCPT ); Sat, 26 May 2018 13:59:07 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id E82F2E0C0E2BD; Sun, 27 May 2018 01:59:03 +0800 (CST) Received: from [127.0.0.1] (10.47.84.85) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.382.0; Sun, 27 May 2018 01:59:03 +0800 Subject: Re: [PATCH] arm64: dts: hikey: Fix eMMC corruption regression To: John Stultz , lkml References: <1527304247-12868-1-git-send-email-john.stultz@linaro.org> CC: Ryan Grachek , Arnd Bergmann , Ulf Hansson , YongQin Liu , Leo Yan From: Wei Xu Message-ID: <5B09A060.3040209@hisilicon.com> Date: Sat, 26 May 2018 18:58:56 +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: <1527304247-12868-1-git-send-email-john.stultz@linaro.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.84.85] 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/26 4:10, John Stultz wrote: > This patch is a partial revert of commit > abd7d0972a19 ("arm64: dts: hikey: Enable HS200 mode on eMMC") > > which has been causing eMMC corruption on my HiKey board. > > Symptoms usually looked like: > > mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31) > ... > mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot req 150000000Hz, actual 148800000HZ div = 0) > mmc0: new HS200 MMC card at address 0001 > ... > dwmmc_k3 f723d000.dwmmc0: Unexpected command timeout, state 3 > mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31) > mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot req 150000000Hz, actual 148800000HZ div = 0) > mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31) > mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot req 150000000Hz, actual 148800000HZ div = 0) > mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31) > mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot req 150000000Hz, actual 148800000HZ div = 0) > print_req_error: I/O error, dev mmcblk0, sector 8810504 > Aborting journal on device mmcblk0p10-8. > mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31) > mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot req 150000000Hz, actual 148800000HZ div = 0) > mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31) > mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot req 150000000Hz, actual 148800000HZ div = 0) > mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31) > mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot req 150000000Hz, actual 148800000HZ div = 0) > mmc_host mmc0: Bus speed (slot 0) = 24800000Hz (slot req 400000Hz, actual 400000HZ div = 31) > mmc_host mmc0: Bus speed (slot 0) = 148800000Hz (slot req 150000000Hz, actual 148800000HZ div = 0) > EXT4-fs error (device mmcblk0p10): ext4_journal_check_start:61: Detected aborted journal > 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. > > It seems the max-frequency property added by the above patch is > causing the problem, so remove it. > > Cc: Ryan Grachek > Cc: Wei Xu > Cc: Arnd Bergmann > Cc: Ulf Hansson > Cc: YongQin Liu > Cc: Leo Yan > Signed-off-by: John Stultz Thanks! Applied to the hisilicon fix tree. Best Regards, Wei > --- > arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts > index 724a0d3..edb4ee0 100644 > --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts > +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts > @@ -299,7 +299,6 @@ > /* GPIO blocks 16 thru 19 do not appear to be routed to pins */ > > dwmmc_0: dwmmc0@f723d000 { > - max-frequency = <150000000>; > cap-mmc-highspeed; > mmc-hs200-1_8v; > non-removable; >