Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp556409imm; Mon, 21 May 2018 10:16:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpG+uMNnDAOKZDetOgST8njl8xvCTeTxfdzruIM9wCZ8k4LaXlRckco8T/38ZyweGW4JNaX X-Received: by 2002:a62:ee15:: with SMTP id e21-v6mr20867459pfi.203.1526923002449; Mon, 21 May 2018 10:16:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526923002; cv=none; d=google.com; s=arc-20160816; b=csJSYzVnXxulYrRrJ8G99sdvJ24uu1JnOe1cM1F9v8h326twBWfg9A5jEUfTeE7VbJ lvwQ/jbBfPEbjVvOTOV4LsqNtIkt2H297z92xeDuHsodHZN+8iuqkZZ/MaKUoDNv7kXN m1Kf9zIaKnbWvHoCCjUyxuUA+CgA1kkk0YkxZNyuILkXyEuPICgqcJ4A7caXFD/Fxz58 L//Kd7E3IeQq3v/kuKs9Qu0EdxxsVfascGR9ckoLOmW4mW2T91+BHOOCtlmeZW8FkK4Z sMi1D3jerhwyVrNjguDJc8l7ta813I/UzZ40D8kKtXe3VYmTkqXSi7aCbM70DmcsMOBr /fAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Omp+0lZrCTdalh9XmNr+ZhlTMwhQvZ0zpIyzYDUBTYI=; b=Y1uudNbuCGzmzwluhnlYSMUERbfblRvHL+k4ZsnHLei3uZO+oZGob+cwqjP7JOrSfc b/elGictTJ3mzs9CEUpjf0KiQ8BGNE0Rw1INlvASQ9hlHVPIT/gscehAy2rAiFiD3S5O Wv/kaHqqP9/eNJ/DwVcpePX2L//EArfLnXoc3R751/jvgcMoUw1UOnbJUUIdhblAad4i r0xqEdQgh6/8BmIyyw08XogsaxhJmkZv4/yAfrdKFY6lgrTTp0pgEpFoweDOYzGr4+Pd EPxeZOFiNA3K6Y1XIk74U4N3a3T9VnWNw4tkt4OnXyHqpT8XgC618YpwFuW7o2GSnSQC RevQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FUnoipD5; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6-v6si14763240pfg.114.2018.05.21.10.16.27; Mon, 21 May 2018 10:16:42 -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; dkim=pass header.i=@linaro.org header.s=google header.b=FUnoipD5; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753237AbeEURPC (ORCPT + 99 others); Mon, 21 May 2018 13:15:02 -0400 Received: from mail-wr0-f177.google.com ([209.85.128.177]:42145 "EHLO mail-wr0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752945AbeEURO6 (ORCPT ); Mon, 21 May 2018 13:14:58 -0400 Received: by mail-wr0-f177.google.com with SMTP id t16-v6so13557024wrm.9 for ; Mon, 21 May 2018 10:14:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Omp+0lZrCTdalh9XmNr+ZhlTMwhQvZ0zpIyzYDUBTYI=; b=FUnoipD584/5i3UsdhkPFbZ8LiCKjBiGjDqGox5ZFqYTODv/bmv3IjS0oR8ay9NBfN qW6FPsKe5xTXtBQatN0UXhJ8zXfGo54vrUpuD4jcpLQQA4BPNtQCcPbAlYs6rhawKJPo q5nPoNjmNGlGR1trfJqRjtyKgJVXWyoI1WAfM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Omp+0lZrCTdalh9XmNr+ZhlTMwhQvZ0zpIyzYDUBTYI=; b=mCGnAaQSyYolWYQ+Na7BfCXB0Q0j67uQgmTboC8sRLQSWFiUa+LRgEIpz2lH3n1y0Y i+V8wlgGXW5kQJsYA1eoOdCzLWEjrfvroO1nqqNK0xpMMoIIPlhxgw2eqTXkI+tcjJ9w bmqIM7fIHFapPWLNZ7h9BcaDPoZCLXto44N9R/pY6HFUyABBBvhgVp5KKoXgvclncSRk cyoYqS0URQYq2CJ9rOrzAkdWjORO5rVw/S3YEKwgXWIGe1ovot2K/xE3d2lJpacuMRe3 TbFMtThPMe+KUB4DgJNdNco3cLbyPPLQHf4eq+I2XXI9YIdaOloh1FRf3zbEFVjUt5qM 0M2w== X-Gm-Message-State: ALKqPwftHFiabT1aqb8XdiN/EKEkllLhUqWcr/11UcISBg9QTPwYNauZ OLS72wQBL/qpgssQ+DdtdQpjVvqA8WUl2k6D9loMQg== X-Received: by 2002:adf:a0ea:: with SMTP id n39-v6mr16035916wrn.87.1526922896599; Mon, 21 May 2018 10:14:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.22.14 with HTTP; Mon, 21 May 2018 10:14:55 -0700 (PDT) In-Reply-To: <20180521090351.GA1266@leoy-ThinkPad-X240s> References: <5B02847C.3000102@hisilicon.com> <20180521090351.GA1266@leoy-ThinkPad-X240s> From: John Stultz Date: Mon, 21 May 2018 10:14:55 -0700 Message-ID: Subject: Re: REGRESSION: HiKey eMMC corruption To: Leo Yan Cc: Wei Xu , Ryan Grachek , Arnd Bergmann , Guodong Xu , Ulf Hansson , YongQin Liu , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 21, 2018 at 2:03 AM, Leo Yan wrote: > Hi Wei, John, > > On Mon, May 21, 2018 at 09:34:04AM +0100, Wei Xu wrote: >> 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". > > The commit abd7d0972a192 ("arm64: dts: hikey: Enable HS200 mode on > eMMC") can work well on my Hikey620 board, my Hikey620 board is > Lemaker version with 8GB Samsung emmc flash. > > John, are you using different Hikey manufacturing version? No, its a standard 8gb version. Later today I'll try to narrow down if only part of the dts changes can be reverted. thanks -john