Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp5061365imm; Fri, 18 May 2018 16:01:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrBsjTUorZxI3JYs0eWbXpv1Sd6RfN/eNOnA0WN+55Q4p8eyAP7uE5tjBBUzlrQUn6ZR28F X-Received: by 2002:a17:902:680e:: with SMTP id h14-v6mr11045621plk.90.1526684488419; Fri, 18 May 2018 16:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526684488; cv=none; d=google.com; s=arc-20160816; b=grDU7sItNn8La9rfW9fGV4542idgJT/8FFUSS5CZ0cN3wd1zabjDAeDT5oGKYrkHSb 4ELNr+3M+2/Hm4d/YQxdGlGYGvZwrE8f82tKAuc66zz01tz8mTMzuRV9Rk8kNdr+OOpt iKuAKggedlw+C6Ml4Psckh+YYzMAjFtjKd+rrzRXkcTPVR5rNuLxBMaXGmaFNed0kxuu gnBAs2Kiwm53tHf/xlV+GVtr+YDmA5BqDoEoovzJ33soiwveSCtwtaDcy9OggoFVP8CP rzR3N+xoMQkerLNoXdxoBs4Mnl0eddBjoER3FjB390oF9VpL/faknJu6RmM+8V5h2WDR JHtg== 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 :mime-version:dkim-signature:arc-authentication-results; bh=f2qC6On+8ZHi98KnyNXNy72VlGqZFSWPrB9CCtnwT0Q=; b=nx5M/SUcZvXVaOFcFo2140ZmdjHVUFHK2xfdbHSdxoym56VBqKf7Mw9Qqy8RbydXS7 4Mjnmqbe1J/RfOovbvZMzDYUTsfLRYXBa8aEss0EoS2yCjJm+lHFIVfLxCTDYXr9nIRd druQaG7yE81kPn84CNRnJwp1XCUDeXb0FoFUFcUDB4KTcQMYh4Q4SlOc3jWIXwXAdOsV IheJ+V7L5dwLnep8iPtndB+YIErVXe8vyP10w34JuVDEFrVT1A7LNXP9RzGX0lwR2x7F AVbCI3/UWXQNXR5L1RuF7dekVpLjE7qkgZCD+LdNQSWLE00LRhyJxQ/1YGVpRjNW7Bac YHYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HDHgaaYT; 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 s14-v6si637104pgc.142.2018.05.18.16.01.13; Fri, 18 May 2018 16:01:28 -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=HDHgaaYT; 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 S1751909AbeERXAC (ORCPT + 99 others); Fri, 18 May 2018 19:00:02 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:34848 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751891AbeERW77 (ORCPT ); Fri, 18 May 2018 18:59:59 -0400 Received: by mail-wm0-f50.google.com with SMTP id o78-v6so17817841wmg.0 for ; Fri, 18 May 2018 15:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=f2qC6On+8ZHi98KnyNXNy72VlGqZFSWPrB9CCtnwT0Q=; b=HDHgaaYTRZhtUUKNsMDPS3xN/YF0xObZ3g2y11R4T06L+Xj/0zqg/3bXNJlHLMylPY AEKCED2NjMWlR4MiZ0gkOzHKgCUIT/xUjetwwU5rlhO3t4IrCm5kGfh1qvxEVXioxPml SvJr4W4bXRGq3UuFNuin3sq1IJaI63e714yk8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=f2qC6On+8ZHi98KnyNXNy72VlGqZFSWPrB9CCtnwT0Q=; b=m7dWrGDRJBcrAobifGdIVAg4w17FRPwutA4k7+aHd4gewkWoqA43PM8EW3eh9BTf7X UTig2dCkeLhbC3ZyZufaAsMYQ3jCIjmG9qIYkKmk1y8Oq6It8dmJNKQSZc3XkkHIbmmq mEhj3vcb3SoxNnRH3tYDcp9tdp4Y6bkDZxgMh0lwUUapJdMIsnpS5n+hPlLl+jTLDM5x DmyISpgkpjik/CllZDEmtsA1iZrsjGnwV+n9DTukpzu0TncwCEPO8kwVmTFvI67hXQTo ImZujbBUGbHTuiCZ8/4IqC2nwHFy2Md2+GildSx96gVxMK19e5yFQMLZy22oalq7cbKQ wfDA== X-Gm-Message-State: ALKqPwdzKTBk+VSLsg13AwSHd2sK1yDEQYyHxjJPHVx5FiHZSjoubjxe nMKmYTFoXV97Qx1PjFtcburW6B/Mq05RNzOWBp6i5E9pwVw= X-Received: by 2002:a1c:4a5d:: with SMTP id x90-v6mr5459719wma.101.1526684398100; Fri, 18 May 2018 15:59:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.22.14 with HTTP; Fri, 18 May 2018 15:59:57 -0700 (PDT) From: John Stultz Date: Fri, 18 May 2018 15:59:57 -0700 Message-ID: Subject: REGRESSION: HiKey eMMC corruption To: Ryan Grachek , Wei Xu , Arnd Bergmann Cc: 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 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. Should we revert that upstream for now? thanks -john