Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3021150ybc; Mon, 18 Nov 2019 08:18:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwO3qOQl4fsw4Z5xZ5XK3IVlRjbjSl+3O8oEEggfk3TVZ++nwBy4yqrT1E9Wbdufwfls6mc X-Received: by 2002:a05:600c:214c:: with SMTP id v12mr29712025wml.124.1574093906566; Mon, 18 Nov 2019 08:18:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574093906; cv=none; d=google.com; s=arc-20160816; b=SipXxaKcJQIhuF4A7/JJ47zEfGsMExTBPzkncNYufo/AZHvHZxt+lXIav2Dlz12TVP P3423rATSrZXKAffZI4C2Xt4vuCekpekkqcNbuP+waMIt41+KvYEaerx6suA7yxetB8M R6dD9n4TVIBZ4LINzTBcBeBk7rXY+fLGXenYKl3V4uEYphdVET4C6+e3hjZfV9eJ6Sk5 vYsgtt/8MmazbTgyOkinIowBgHGqFjdzJqDT5FE8eBbwAd05GHbd9dtFEe5tihv/1rVy uXhKsv9KvksBmSL3S79TrlWQqh1anbQhkPckMGXMGxiPdYYENCuhvoBIVdlzqOxAiQdS LfJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vGDUmknBAHHgnUGD6G/YP0BMVQ+t0TVHx52Qz9PZmwY=; b=zVkGfOfJkQLbt6Tvx11VoT+my546J0cSBcSXUW5pPQ5/R0AMSKNuTg12VXq1pZwGUi KrmjBDVIov2c7uLIVcFHAAWjHjdJHUspPQPHfG4AmWnVNTiHyjoYP/sJC7DkfD8XUwpP XCs416El9CxsTjAfvoEpiTZrcTv9t9b3cayJx08eW0yriSDn9+yZ6bSBHUdOIrY/A3WM 75vnwpwiXYlAqUIa/AIwsVp3NC9yJt35wqOrdY7X3fqp1nsOMUEszWC6U8ZuaVohV4or 7WkGX5mQqNtHQC8aMW0c10OY/Ue6M28Oah4/IR5EH77etl79EJHNmGqdnHVp0RNXmRsp aeuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LcnAEJQf; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s38si12640067edd.351.2019.11.18.08.18.00; Mon, 18 Nov 2019 08:18:26 -0800 (PST) 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=@chromium.org header.s=google header.b=LcnAEJQf; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727402AbfKRQQv (ORCPT + 99 others); Mon, 18 Nov 2019 11:16:51 -0500 Received: from mail-il1-f193.google.com ([209.85.166.193]:41199 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbfKRQQv (ORCPT ); Mon, 18 Nov 2019 11:16:51 -0500 Received: by mail-il1-f193.google.com with SMTP id q15so16522463ils.8 for ; Mon, 18 Nov 2019 08:16:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=vGDUmknBAHHgnUGD6G/YP0BMVQ+t0TVHx52Qz9PZmwY=; b=LcnAEJQfcR+16B5xAU1duNVJ5mC51SCgsYmRJoEQik6hAY9yeHjfDpdnU6mZX/7YZS 5b7TwjIsbX/45vF5T4i3YutHXRm2eLAe3l1Zd/IRiYEOPrNzYd5CdZdYEiPHgb8YpspE uMlrBkxoaQht9bPslaYl+l5boo7gzXta3VnnY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=vGDUmknBAHHgnUGD6G/YP0BMVQ+t0TVHx52Qz9PZmwY=; b=TqTiMu3qIzpOjjCzN5AJGT3HgWhkGajGZWL4JwIguZK1bWAFQVviG7cbP7X74FQPk1 hUKYIWlwwvU92IdJ/IO66frchkqhLVMkfV9qmhy2VrxooqedVVTazvnYOrpU7mLDhYou Nbg9V0MFFs0z26jzqRHRDBqeedU9UBbumnKG2A8CgTKda3j/Ern0o7LvAD90++rz0oju 0+C4MhWZdPUkiZt9CwwjYuupgopi+r/F1X/wR75BzV+GtVjfQriuC7kmeaAns1FgNm66 waBVM759Xy7IJp9R1t7xRPTOjyFkDxwPxFH/jxkRCB41DVh0oRqZ7LNTxr+XbpZB4q8t Jaiw== X-Gm-Message-State: APjAAAXS7tpeJD+ky99v41TWHz8zrqmJyosvUvlsPUMLAZHUGrBw7k02 cYPGI0zdjHTi6Ap15WMZG/g1D9m/bko= X-Received: by 2002:a92:c8c9:: with SMTP id c9mr17686336ilq.197.1574093809321; Mon, 18 Nov 2019 08:16:49 -0800 (PST) Received: from mail-io1-f50.google.com (mail-io1-f50.google.com. [209.85.166.50]) by smtp.gmail.com with ESMTPSA id j5sm4679071ilc.10.2019.11.18.08.16.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Nov 2019 08:16:49 -0800 (PST) Received: by mail-io1-f50.google.com with SMTP id 1so19412496iou.4 for ; Mon, 18 Nov 2019 08:16:49 -0800 (PST) X-Received: by 2002:a6b:a0c:: with SMTP id z12mr5762767ioi.142.1574093329092; Mon, 18 Nov 2019 08:08:49 -0800 (PST) MIME-Version: 1.0 References: <20190301153348.29870-1-christoph.muellner@theobroma-systems.com> <2766673.iMURPl8gB5@phil> <69472c06-8b21-c3d8-acad-1a0a292c0fa2@fivetechno.de> <3460135.SDF8zhHPq4@diego> In-Reply-To: <3460135.SDF8zhHPq4@diego> From: Doug Anderson Date: Mon, 18 Nov 2019 08:08:37 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: arm64: dts: rockchip: Disable HS400 for mmc on rk3399-roc-pc To: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: Markus Reichl , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Brian Norris , Tony Xie , Viresh Kumar , Shawn Lin , Jeffy Chen , "linux-mmc@vger.kernel.org" , LKML , Vicente Bergas , "open list:ARM/Rockchip SoC..." , Rob Herring , Klaus Goger , Enric Balletbo i Serra , Philipp Tomsich , Randy Li , Kishon Vijay Abraham I , Ezequiel Garcia , Linux ARM , Christoph Muellner Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Nov 15, 2019 at 3:19 AM Heiko St=C3=BCbner wrote: > > Hi Markus, > > Am Freitag, 15. November 2019, 11:37:58 CET schrieb Markus Reichl: > > Am 14.11.19 um 14:10 schrieb Heiko Stuebner: > > > $subject is missing the [PATCH] prefix > > will fix. > > no need to resend just for this ... just to keep in mind for future patch= es ;-) > > > > > Am Montag, 11. November 2019, 10:51:04 CET schrieb Markus Reichl: > > >> Working with rootfs on two 128GB mmcs on rk3399-roc-pc. > > >> > > >> One (mmc name 128G72, one screw hole) works fine in HS400 mode. > > >> Other (mmc name DJNB4R, firefly on pcb, two screw holes) gets lots o= f > > >> mmc1: "running CQE recovery", even hangs with damaged fs, > > >> when running under heavy load, e.g. compiling kernel. > > >> Both run fine with HS200. > > >> > > >> Disabling CQ with patch mmc: core: Add MMC Command Queue Support ker= nel parameter [0] did not help. > > >> [0] https://gitlab.com/ayufan-repos/rock64/linux-mainline-kernel/com= mit/54e264154b87dfe32a8359b2726e2d5611adbaf3 > > > > > > I'm hoping for some input from other people in Cc but your mail heade= rs > > > also referenced the drive-impendance series from Christoph [0], which > > > it seems we need to poke the phy maintainer again. > > > > > > Did you check if changing the impedance helped (like the signal dampe= ning > > > Philipp described in one of the replies there). > > > > checked with > > > > &emmc_phy { > > + drive-impedance-ohm =3D <33>; > > > > gives no improvement: > > That is sad ... I guess we really should disable hs400 then ... > that may give others more incentive to dive deeper ;-) Just out of curiosity, is the problem with the strobe line, or with hs400? Have you tried using the solution from "rk3399-gru.dtsi"? Namely: /* * Signal integrity isn't great at 200 MHz and 150 MHz (DDR) gives = the * same (or nearly the same) performance for all eMMC that are inte= nded * to be used. */ assigned-clock-rates =3D <150000000>; IIRC hs400 on rk3399 was a bit iffy but running at 150 MHz made it much more reliable and still gave you 300 MB/s transfer rate (so much better than hs200). In reality many eMMC chips can't do > 300 MB/s anyway. -Doug