Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp54365imm; Mon, 21 May 2018 02:04:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrrcAT0OMTW4oLIS3rH6LKy3gyfeTqWNcY56W6oc+sQ7L2GdF1AmaCdwebSfSpprAM/ZOhQ X-Received: by 2002:a62:ec18:: with SMTP id k24-v6mr19334337pfh.204.1526893479177; Mon, 21 May 2018 02:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526893479; cv=none; d=google.com; s=arc-20160816; b=nnOvsZeaFBxF12izWgn/MPjGiCIuDLnnMkhUbp5lMcAlmAxMqbFZcBDxrkBq9HYV0H ULzo0MDfS5yx4EEwxnguH1d03f79ZV1X+bFu1wGKlrSVGrbYKs3ksckOE5bLAIMGYnl7 94PmtuYc923gGqts6m5FycFtsFWvrWQQBctDtD/K5t7yilT/syuVa0ixA2cv4QtoJWR+ OvCNqxmZi1OAy+phnbPV3hoZ3BGOkOo53OvP27uz5dGqQeeXzWibVaz4ciATbyhbSPE2 OqwVFc+4FavC4hlOsCxFw6E0emzP4p0h1aZ+74KabP0hr3CEYzywBzP750YdpbKZeJO/ b0CA== 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:dkim-signature:arc-authentication-results; bh=CWgUl1Zl4qEGOeR820nq6OCTFh4LpPHie+3r835ocaw=; b=ClEUrQ+74HavLQ7Mm8tgTzcwMu3Y2juKf9OO+cYXRybueEIjaSB3W2vouXvOiFjo9G XvGpv26M2UT84yIJmLvGKefjTW5vu4iCo+kBctOTXYqGV3U50r2B90XDmOZjjj505NYP OUTCpeaqo/qpUiNn3jSu5Q+vUqoXR8myOFFQd089z++YqtCjzUbXaB3GTbHTzFzrU2QY 4kaVR69atD3UZIhByp9CBXmXVBrZiJ+i9gt4SKgTDwAdctYiYL/Zj0VBgon05QHQVv9b cxQ8gBGBdcfmG9Zcdk+msuwFv1S2vLzvAE+Wle2KXN4ibDYcDFgLhYWtH+klzJGbbuim aSYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iP+F1UW/; 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 j12-v6si11070855pgf.294.2018.05.21.02.04.24; Mon, 21 May 2018 02:04:39 -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=iP+F1UW/; 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 S1751363AbeEUJEE (ORCPT + 99 others); Mon, 21 May 2018 05:04:04 -0400 Received: from mail-pg0-f45.google.com ([74.125.83.45]:44843 "EHLO mail-pg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751072AbeEUJED (ORCPT ); Mon, 21 May 2018 05:04:03 -0400 Received: by mail-pg0-f45.google.com with SMTP id c22-v6so5417672pgn.11 for ; Mon, 21 May 2018 02:04:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CWgUl1Zl4qEGOeR820nq6OCTFh4LpPHie+3r835ocaw=; b=iP+F1UW/quQ7AVO9uQ1CGvLY1x84SS26/FQxjnrmwCYUTfcuJf44UY9E0k8CAwLnv5 Rvu+SlgT1AMhUCWh5Xadr43NNCAtsU5tXdokPrlAMRJw3I+AcNcP/6xpdBgjp/2V0dbA Jy4V3YFMaOwkq2JfzvA43nmn1jv0FAmOByiM8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CWgUl1Zl4qEGOeR820nq6OCTFh4LpPHie+3r835ocaw=; b=SjXYvGgvkK4YTsuPsZhCYTVoX8xK9rakeEASRfopMmciSBFKkQuMSDoWUWKMPo/C8E pN8PiffgxgcY2viytBuZArCeF/fPegOAZc/UT0utCxtDV+PJfJDIREPnrmgj96hAkUKG vcj13IQsNz5V1/JMXXE4q129pMJIyiOI1EFDk5vFOq3f5LLTXdHbXMh6nx0LUdOfyjcJ OymNZJh9oyZCbDjNkh+Ojzirv1hWIb1Oe+RktCT0BeM3iED4xFm2IXYxxjIHfXQ2AuAq NN/Gi5Ingu/CzXLngSPvOoHr7pzyXDfrLCs1KT+P6d+L0+/DE3GVHQYDwhwYmy+oeUfR lQBA== X-Gm-Message-State: ALKqPwfu3XCp0yWmaAOwfHBJAV4PhYgKyOWUb1IIMHxfFtHYqPfchb8h 2JAsQdg6IOL1P8QbW2cDPtv64A== X-Received: by 2002:a63:8f43:: with SMTP id r3-v6mr15066486pgn.10.1526893442766; Mon, 21 May 2018 02:04:02 -0700 (PDT) Received: from leoy-ThinkPad-X240s (li1209-69.members.linode.com. [45.79.110.69]) by smtp.gmail.com with ESMTPSA id f9-v6sm18746313pgq.24.2018.05.21.02.03.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 02:04:01 -0700 (PDT) Date: Mon, 21 May 2018 17:03:51 +0800 From: Leo Yan To: Wei Xu Cc: John Stultz , Ryan Grachek , Arnd Bergmann , Guodong Xu , Ulf Hansson , YongQin Liu , lkml Subject: Re: REGRESSION: HiKey eMMC corruption Message-ID: <20180521090351.GA1266@leoy-ThinkPad-X240s> References: <5B02847C.3000102@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5B02847C.3000102@hisilicon.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks, Leo Yan