Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4800349imm; Mon, 18 Jun 2018 23:29:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKsdiDbzhjqgVSks8iY/U2Er+1jBIgc94/CtPft86afHUlK4pmMAd+VPo3sl2ZPPf+hKrzA X-Received: by 2002:a65:4783:: with SMTP id e3-v6mr13768604pgs.235.1529389764103; Mon, 18 Jun 2018 23:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529389764; cv=none; d=google.com; s=arc-20160816; b=aD4II0iZgkDg/QIoJ/bJvFCgzTa+etLEF2OSxlVeYdnRSmaX5gh5sZF3MPAUVWyU2+ oLvnxHUqeVtTUvnVrZFri3jqdUh9tbxhFhkGFDj+c4Pssm3BWs752FpTds5YiWlKnk3x H2o6Y4lMC9ZIFho0vy087rmtwYm5pi6qMnSvV7vPM74Ql1cD3W1BZLqt7COTB8pDYj7i IrjWiJyvy/d2n+0sHvUUzz/JEVhwbQFeKLMxAhEuGQVc4QGVJeLrR5NNeI+Q/yFCisDW 2tJD10yvKEFpZVskSXPN44K5AuhL1L4kqhPRJNU4G1qJLoN71poMzbevLF8v9IuIxkqS drCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=a8cqFjP+BBRCWYSxhfDabcmakUaSjUyN9XegW+uj4mQ=; b=wTwRKn3gi7v7AWEuhK6rT44Fjn60aE1pLvvKvwPAZ08P6dSjvI8McDuHx9950EyHqf 8ZDvo3bTsstamGEoogiQyUJGQEpffweLlJwU/9nlUvJOY/WOtspzDfw65lrcqNZYMTaz 4mxB7sYrtEujB6R05d/ZQLraYdup+VMGWyXTZJN9s1vbuwFI0ibNuoP99oL+i+bT+XVu 3fb3tOKy2sGx7H8AQvaBBka/prsVX4/UR5Q28H9qZ7aJYBFGKEdWlHu9d8z3PAW+Vkyq L66gMrXQ1+Ef8/QU4jPfn5CuUDMO1WL9qv5uiEPQFU7Aiwn163kKaSvO/ULO9p6oAvrV 1ZhA== 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 f18-v6si13606715pgt.283.2018.06.18.23.29.10; Mon, 18 Jun 2018 23:29:24 -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 S937314AbeFSG22 (ORCPT + 99 others); Tue, 19 Jun 2018 02:28:28 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:56345 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755731AbeFSG21 (ORCPT ); Tue, 19 Jun 2018 02:28:27 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=kurt.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fVA7g-0000c1-Uu; Tue, 19 Jun 2018 08:28:13 +0200 From: Kurt Kanzenbach To: adrian.hunter@intel.com Cc: ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, kurt@linutronix.de Subject: [PATCH 0/1] eMMC controller issue on Intel Baytrail SoC Date: Tue, 19 Jun 2018 08:31:18 +0200 Message-Id: <20180619063119.3955-1-kurt@linutronix.de> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I've encountered a problem on an Intel Atom E3825. When performing lots of reboots (10, 50, 100, ...) the eMMC controller stops working. The reset commands won't work anymore and you get error messages such as: |mmc1: Reset 0x1 never completed. |sdhci: =========== REGISTER DUMP (mmc1)=========== |sdhci: Sys addr: 0xffffffff | Version: 0x0000ffff |sdhci: Blk size: 0x0000ffff | Blk cnt: 0x0000ffff |sdhci: Argument: 0xffffffff | Trn mode: 0x0000ffff |sdhci: Present: 0xffffffff | Host ctl: 0x000000ff |sdhci: Power: 0x000000ff | Blk gap: 0x000000ff |sdhci: Wake-up: 0x000000ff | Clock: 0x0000ffff |sdhci: Timeout: 0x000000ff | Int stat: 0xffffffff |sdhci: Int enab: 0xffffffff | Sig enab: 0xffffffff |sdhci: AC12 err: 0x0000ffff | Slot int: 0x0000ffff |sdhci: Caps: 0xffffffff | Caps_1: 0xffffffff |sdhci: Cmd: 0x0000ffff | Max curr: 0xffffffff |sdhci: Host ctl2: 0x0000ffff |sdhci: ADMA Err: 0xffffffff | ADMA Ptr: 0xffffffff After using ftrace, I've discovered that this issue happens when runtime power management is utilized. So after searching a bit, I've found the errata list for the E3825: https://www.intel.ca/content/dam/www/public/us/en/documents/specification-updates/atom-e3800-family-spec-update.pdf Erratum VLI10 basically states, that suspend/resume shouldn't be used. Otherwise wrong data between memory the device may be transferred. Therefore, I've disabled runtime power management and the issue disappeared. That's what the following patch does. This patch is tested against v4.17 and v4.9. Any suggestions? Kurt Kanzenbach (1): mmc: sdhci-pci: fix eMMC controller issue on Intel Baytrail SoCs drivers/mmc/host/sdhci-pci-core.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) -- 2.11.0