Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp666218imm; Mon, 21 May 2018 12:10:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoBWefRPV0gr+wPo3znHwwkvfxb239A/9qEpjc+/CSxQx/8H9PnRldFyuNrmySW8G15whH5 X-Received: by 2002:a17:902:8f82:: with SMTP id z2-v6mr21694920plo.350.1526929808275; Mon, 21 May 2018 12:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526929808; cv=none; d=google.com; s=arc-20160816; b=qbAIhrR6YdcY0ryjoiJNS34e1KcLGwt0szXh8aUg8ptZ62N6qotji4qW+SfoobQwqp TSwhlx7POfwnPnaB5fwnK6lVW6niOT1t7gskGQ68cjEdmx2D28PtbBtEY3J4xNE0fzIL IQiqtlrxnlRG39xEddTypUrMNnvpypV9UdnYcAYFyR+P4b6aw4RWPrXDMljmZanptbcN fpown8+WtfZw2wOi1TC5HCdL3kLlmljBzdCJCpv8tILpwneM+9z76peZ/GazlzkMeci6 ImDnnNJXIUnFFnapQNQ6QJVxni5TQbaTDyORLqlZ0eindI7Zgs0zqosu8LbO9y2BQ0Uk 3ATw== 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=7GAyhICwe79AfVa372Ds7qsOYbbZJH9i3qkOJzJ7jFg=; b=d1Updrxjn4AcOB2ABNd3vMYfNHaB7muVuYC7/WyAd04EOem/A6nVvasdJ1Okxq/pFH corRIdsgrjCMF+NT33uuiRv7dCznQ1oMK9QWuPer2+SDVL2peC4npKnHSbU9Rhc7Lr4D RK4O6zSQV38/ZbgTeJCr6611bTQcBA47UMJtyX8nXnrywe0FoXNeqBnQ+LpU6oq1sLxy VQbt+LJLk6RgLTFM2fvcGXAGCb2LufHmPTVTHN9eK6wgM2v/yEGXxCxb4P0iBzkv1SLG 1GzlrpFhP8s1gIqARaLlm4IFzDwK1HSMrcTTeDj6NKVzj/wg0UqhsA7KUdo9/bSethAc rXJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jJ9jPQY2; 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 1-v6si14237501plz.101.2018.05.21.12.09.52; Mon, 21 May 2018 12:10:08 -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=jJ9jPQY2; 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 S1751117AbeEUTJh (ORCPT + 99 others); Mon, 21 May 2018 15:09:37 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:40519 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750773AbeEUTJg (ORCPT ); Mon, 21 May 2018 15:09:36 -0400 Received: by mail-wm0-f50.google.com with SMTP id j5-v6so28415483wme.5 for ; Mon, 21 May 2018 12:09:35 -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=7GAyhICwe79AfVa372Ds7qsOYbbZJH9i3qkOJzJ7jFg=; b=jJ9jPQY2DLflIHtsmXbyQ7s0DqfIZSQRGboqP7yPCeo2nRLKgOsdjuGzv5onk9LeAn bA5wuH36WcAHK7VX3k/Ao+ICRshOOIJ9rr98AkTmyk4RGgAaEeeXYR41RGVh0hoX5OBD ARIYnPVI5MqC/j3Il/EdbZRBkSAxZIS+BdjRU= 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=7GAyhICwe79AfVa372Ds7qsOYbbZJH9i3qkOJzJ7jFg=; b=Pqtw+C6DEP16k1lQDqFn5EKF4esleh30PUGBdwcqQ6aCklAJbDP4g3RosyvmvRSlZz gAbMmCyLnNcDCbJaLSGObirmd/7jOZOPBZP0hzJWFGG+o+NSOivcVcd1vAYNAVQBtJOc EoJVp56ZYvc0Wp7lVgscIvvDwb8i70RDilLFYPagJlu/abIk/qtt3msHEBHWD/BrmM3r 1TIKQuKDKpFn3HMhcSwlaJM+WB/96gSCf5gRGEr962hHcmhhb1BWbNExxg8lVjQJBuO5 zD3cHgFJTvCWIxBaDQOMFK9dIZ93zb3LoVeTbxlPkRqkP5tJgLurR2tI3oYJeXzGQieM NYzA== X-Gm-Message-State: ALKqPwdQszdpYUmpPkxgv0uF8hgqMJvIHGPO1fzlnzy04tR9MPtCh8Cz A4lWX7ut5FOwIo8FQj9OlhtZDILj1XAf/PazO1VwgA== X-Received: by 2002:a1c:3bd4:: with SMTP id i203-v6mr63930wma.41.1526929774631; Mon, 21 May 2018 12:09:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.22.14 with HTTP; Mon, 21 May 2018 12:09:34 -0700 (PDT) In-Reply-To: <5B02847C.3000102@hisilicon.com> References: <5B02847C.3000102@hisilicon.com> From: John Stultz Date: Mon, 21 May 2018 12:09:34 -0700 Message-ID: Subject: Re: REGRESSION: HiKey eMMC corruption To: Wei Xu Cc: Ryan Grachek , Arnd Bergmann , Leo Yan , 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 1:34 AM, Wei Xu wrote: > 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". So yes, I can confirm that if I drop only the max-frequency property out, keeping the "mmc-hs200-1_8v;" line it still boots for me. thanks -john