Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1889496imm; Sat, 28 Jul 2018 05:06:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcNFZt6VoQlpTFcOOqudJ7/3jwAVobw1FRJ4kvyoe7q6R7Xnu1nAH7YTp56dM+OifDcqE4b X-Received: by 2002:a62:c410:: with SMTP id y16-v6mr10424604pff.161.1532779570074; Sat, 28 Jul 2018 05:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532779570; cv=none; d=google.com; s=arc-20160816; b=sxMYzqCWRTcIZMyLxUj3Y9p845uvlyl1xoM1/muEuuVgrUCfJxqY/WU0mFfw4/OmUV I8UA6pUY8X1UJyORSCrR+Kn9/R7backAzc+icDEo5zLOcM1lr1IkLteEPfsvpGiByKZF ez9DMaco2YwBpZaOZJzFIWqkQ5OheEQ2waaah+19pUqpequHZuLPI0xhhOM8yUUHkEEs GdL18j9oOFP4DFkeuZi1sU6rHQVQ6hS67WBp+XARmqaqgSYSdO/P3zJRu71y32waTEKe +Gig4uQVtn5iTT6lyAt9LKYvseWcwZpqSNjaSsPjZjj2gxJ6cfFnq3YgV3XwQK7BvbVx RP/Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from:dkim-signature :arc-authentication-results; bh=hY9DWyyVD/YMEXbHukgIMrMW0ByhD0ZWNgtktya1LIE=; b=G4mFDi2BogfEkUt2iawRuoJ9vmjHyM312UIIN3C7kXe12yeoOCqMuoyFud86fytpcP tHdFmobQbdNXgk6K073fvxJhul6i9uj4FE9Ah0xKFo06SHNz2tjgxoc6GrHVsImPYjfx RTAJeoyEIy/q5WfblwRGLx6CAEPJPbYsj6QlesaRMj5uvZTLPJsPh2lCO7tk1cB1RcRu pUSbG7ritSskfRrzPk5u1p40K2HyKs9T6PxteUCicm2y1Br3+g6iDWRjy+AHakhPXAhp GjPXDRfkqGU+WLxTSEdlnLa908770R04ImAY5H+I28MFkjLKsGZyCWA7PEvsO2U3OSOR YnAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GQtziXdS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bf10-v6si5372201plb.69.2018.07.28.05.05.27; Sat, 28 Jul 2018 05:06:10 -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=@gmail.com header.s=20161025 header.b=GQtziXdS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728900AbeG1N3k (ORCPT + 99 others); Sat, 28 Jul 2018 09:29:40 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:33394 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728791AbeG1N3k (ORCPT ); Sat, 28 Jul 2018 09:29:40 -0400 Received: by mail-qt0-f195.google.com with SMTP id c15-v6so7755453qtp.0; Sat, 28 Jul 2018 05:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=hY9DWyyVD/YMEXbHukgIMrMW0ByhD0ZWNgtktya1LIE=; b=GQtziXdSqBKAGvYFDDE1vmyVggFIf5HsDj8s7/i6Dl7+K4ud84KDcFz5r3YpI8sZD5 S0Tu4WgIUsNVr0B9Cz/fiie5ImTjoKJNn708O0OYUVa+RQF7/ugp9O9ym0EYxLg7AavX 8pTXYaWE5f/WvrL4I9A8xQYJi8u0uk+cemStEkjkmEgv3+UcYtMsYpvTf92c/IciuxOU niyg6xmoSM8Uftyqj9wi+XCzOrIbuq2JNLsEjYBnPEpILfupoc1lPXpLfp/TBy46lTbz Qk0u/B0SlYghvsSjzAGgO0ovmusObnu7x/3MCJNoVQZ1w5oha/4pFmRwQImRIPOItCTU pG8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hY9DWyyVD/YMEXbHukgIMrMW0ByhD0ZWNgtktya1LIE=; b=oUghJrDwLELH7vOmp6T7+GETMjhzM1n/e2pwaBlnoBR+YeUk/D6KxKFHCZffn2zxG+ J1T1P+wz08C3yr9Glic9Ihx61IEJcKDcqCKJ775UZq3fiGXsDY/sBn2q251+DuCZa2wH b1sStSlZrxxQQULCcpuqpep6GIsW79UFVlPivw/AZXnbKYLY+IzSU3sHeHAZn+CzsHal v/shCv9EB/6+eXTyxEYDotgaUrO2BP/5qv0YpRnnzZGib4EZJ5rLA8K0e5VywRF+9Pyq G3flH9gcgfRYmVtUiza7wKpIP54WaOxE8E2KvmWw9IoAesKnlxwDudcom37mI3WTS0o1 qYGA== X-Gm-Message-State: AOUpUlHwVtYLwZsVKQ6vjV1osHUtcbqgRC+FVXrzXRkeRdxO7/iQ2YST Gtno+qZrZ5Pil2MgraX00F8LjQa5cUcIeQ== X-Received: by 2002:ac8:6647:: with SMTP id j7-v6mr9554672qtp.231.1532779400934; Sat, 28 Jul 2018 05:03:20 -0700 (PDT) Received: from ?IPv6:2601:153:601:7d2a::1005? ([2601:153:601:7d2a::1005]) by smtp.gmail.com with ESMTPSA id p64-v6sm4956461qkl.30.2018.07.28.05.03.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Jul 2018 05:03:20 -0700 (PDT) From: Peter Geis Subject: Re: [PATCH 3/3] mmc: tegra: prevent ACMD23 on Tegra 3 To: Dmitry Osipenko Cc: Stefan Agner , Adrian Hunter , ulf.hansson@linaro.org, thierry.reding@gmail.com, jonathanh@nvidia.com, marcel.ziswiler@toradex.com, linux-mmc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra-owner@vger.kernel.org References: <20180712073904.4705-1-stefan@agner.ch> <4098188.Bd2NGYzoJE@dimapc> <7096174.4n8ysn5QrL@dimapc> Message-ID: <73510426-3b7e-cc7c-39db-4058bc6a4c22@gmail.com> Date: Sat, 28 Jul 2018 08:03:19 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <7096174.4n8ysn5QrL@dimapc> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/28/2018 6:13 AM, Dmitry Osipenko wrote: > On Friday, 27 July 2018 23:19:53 MSK Peter Geis wrote: >> Kingston KE4CN3K6A. >> Though I am pretty sure I've figured out the instability. >> Brought it in to work and hooked it to a scope. >> Couldn't find clock, but cmd and all eight bits are running at 1.2 volts. >> Repeated the results with the bootloader, the original kernel, and my >> mainline. >> Also noticed that even on the slowest slew rate there is significant >> ringing and overshoot of .15 volts. > > Okay, but eMMC is working fine with the original kernel, isn't it? > > Correct, at roughly double the speed of the mainline kernel. According to the mmc spec, in high voltage mode it should have 2.7-3.3 volts in, and the minimum signal voltage should be .75 of that, which equates to a minimum voltage of over 2 volts. For low voltage mode, it should be 1.8 volts in, with the signals being between .3 and .7 volts. Signal voltage of 1.3 volts is .75 of 1.8, which means we have low voltage in, but high voltage signaling. This is even with HS-200 or DDR-1.8 assigned in the controller mode, so for some reason we aren't switching modes. The original kernel was running in SDR 25 signaling, but didn't try to switch either. Digging through the old code and the TRM, there are three ideas stuck in my head. The original pinmux driver had settings such as low voltage divider and two values for each pull direction. The pinmux driver is io resetting specifically the pads we are using, dumping any values the bootloader had set. Is it possible the tap configuration is not working?