Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5392473ima; Tue, 5 Feb 2019 10:59:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IYgD+fMjD+y+Wq+dh0L0DQHk/cDvq8FjBuF3cplI+LgIxDsiEwxvDFRUyA82IVuKxslsK8N X-Received: by 2002:a62:f54f:: with SMTP id n76mr6468082pfh.59.1549393193050; Tue, 05 Feb 2019 10:59:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549393193; cv=none; d=google.com; s=arc-20160816; b=nhq0xEsRHbOaoLvvP/g1rqhMlorIF9dl9xSYI7BRK/hz0bdw6Ks2BW12SqBzbM4SDS aUcIlvRIgc5tJoPMhpT8mXmMpicNdWh3AwANaB5fU3fA+XQMmNwUC5roCnpxMG5rSnxW +09icXfTGpLCkMjhqI5yX2YR3e56JzNCq5jFKSaA9vp3isO57UiNeqrOQQR5wKZdExbl 45l7YeaL1fG6nPYZTWQdLks/d2FSr63+bluSRWOmUbg32dVweOvt8IjAzukLRt8JnsDO QkNXea2jNs611+Ll3ev5otDZIZ+Ys2KhwQYRaswkt0LpTNl8tNunk8nuwo4vAMPZQvlw sBXw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=R2HTq1W5JdkaNVAIKLbyoKrZGXtJcW1hPRrcY8b6cH8=; b=aD5Cw8oIyGT6kQq0xjfVrwTWwpsonY5HdM21cTm/jlStQuvgmKgoa63M7JJO6+Y1LB qDhYCFtjmYHZDxtp1WtM02f/cuG0bJVGGt8w4Im9lBUTlxrg7K1ZwfZRVqOQECHURosP RGpJwcTvZwO9P/2g4/NXohH7o0mEHANM85BvMNhxCaPt3+XtE2lCRmDMdQ9czHS2F1/J TkVv8E0YCWFDdFFWIu15Z5tAoQfm8GrxBSnU9B38rdY57I9MwvrL+O8PtPv++Vpxydrk Y+u3zKm/CXFM7JgyMiAO0B2mZQUo+dc3XdVZLc2hp2mgwlMWGr4tcgj25BwnB0E9Qcco Ec5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WF6UGjUS; 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 j3si3877919pll.346.2019.02.05.10.59.36; Tue, 05 Feb 2019 10:59:53 -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=WF6UGjUS; 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 S1729629AbfBESTn (ORCPT + 99 others); Tue, 5 Feb 2019 13:19:43 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:44881 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727102AbfBESTn (ORCPT ); Tue, 5 Feb 2019 13:19:43 -0500 Received: by mail-lf1-f65.google.com with SMTP id z13so3335163lfe.11 for ; Tue, 05 Feb 2019 10:19:41 -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; bh=R2HTq1W5JdkaNVAIKLbyoKrZGXtJcW1hPRrcY8b6cH8=; b=WF6UGjUSIxGWh0KixGpHmUbklwMGf2HFzD6vbzlJ0th611gjAgPXag5eIAkO1b2jnt 59IUwZMFclCSYzBdonTEz4+J5QcwN5PnHwCVtsmQ6eWAm8PV9p7Wq1naTpMg/lgC8zSw cs+hJXAmMK7oDtwM3Z2u2Xa2e7mEvyMfnAhvg= 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; bh=R2HTq1W5JdkaNVAIKLbyoKrZGXtJcW1hPRrcY8b6cH8=; b=d2OeV4/iAGSTDomKt1wZqCO6T4EzA+kWtkrfM2NCoIeJBP6o1oz79gMdK3FnV+4E/7 lNglBdC69E94oQwZLgCC7eJ2K2+ODZx3cW/D/MtUdUx6JKL3uJNM8pIUDG4Ymy63CnRE 0vcabXI2pv/ItRxWFKLcoNDEA7C06UmbuE19i666UOLKpMITmkHMpJzv9DYBAK6+YWRa g43nPHaZELT1upX/nieyt6DESk02Leb9G5MSM1b67426ZMBjdC+HAMquo/2jCT6SOR+s zIleb8ZvT00w1hGdaJmISeVGvbgULEEqSEpdjjeibVyNscX/yT2fHf3iKodzf6CiCX3W Ic/g== X-Gm-Message-State: AHQUAubuEE4xtcFwH+iVKK96b/S8GP8OYtz7LhBPY52mMab0dF1V/93D ZC5Vk4dwSe7QriXxNiAZNJ2BsYPIrhc= X-Received: by 2002:a19:5510:: with SMTP id n16mr3798259lfe.68.1549390780682; Tue, 05 Feb 2019 10:19:40 -0800 (PST) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id q10-v6sm3582778ljh.72.2019.02.05.10.19.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 10:19:39 -0800 (PST) Received: by mail-lf1-f48.google.com with SMTP id a16so3386008lfg.3 for ; Tue, 05 Feb 2019 10:19:38 -0800 (PST) X-Received: by 2002:a19:2d44:: with SMTP id t4mr3798012lft.90.1549390777906; Tue, 05 Feb 2019 10:19:37 -0800 (PST) MIME-Version: 1.0 References: <70618c25-83f0-b9db-51a3-c1d74b605a45@free.fr> <5f2a8378-1f22-6a52-356d-56d3b393ab1d@samsung.com> <05d2d193-4181-12ce-b4fb-4e8dec5aef27@free.fr> <7610c262-1451-9bb2-48a6-4daf6f534f6c@free.fr> In-Reply-To: <7610c262-1451-9bb2-48a6-4daf6f534f6c@free.fr> From: Evan Green Date: Tue, 5 Feb 2019 10:19:01 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 5/5] Revert "scsi: ufs: disable vccq if it's not needed by UFS device" To: Marc Gonzalez Cc: Alim Akhtar , MSM , LKML , Jeffrey Hugo , Bjorn Andersson , Andy Gross , David Brown , Douglas Anderson , Avri Altman , Pedro Sousa , Subhash Jadavani , Bart Van Assche , SCSI 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 Tue, Feb 5, 2019 at 9:52 AM Marc Gonzalez wrote: > > On 05/02/2019 18:24, Marc Gonzalez wrote: > > > /*** system hangs here for several seconds, then reboots ***/ > > Silly me. The system crashes in ufshcd_dump_regs() which is a bug > I fixed myself. Once I cherry-pick the appropriate fix, the board > no longer reboots, but UFS init does fail. > > Full boot log here: > https://pastebin.ubuntu.com/p/KwpRnWMFw5/ > > In any case, it's obvious that disabling vccq on this system is > a mistake. How would you solve the problem? (A quirk on top of a > quirk sounds silly.) > I think Bjorn is right that this whole quirk seems to be compensating for an incorrectly specified device tree (one that specifies vccq-supply but that doesn't go anywhere).... though maybe this was made to support boards with footprint-compatible UFS parts from different vendors? Like the same DT is used for two different SKUs, one which stamps down a UFS part that uses VCCQ, and another that doesn't use it, though the wire is there. But the revert itself shouldn't really fix anything for you Marc, should it? It looks like this quirk turns on for Samsung and SKHynix parts, which presumably just don't use VCCQ. So maybe your device tree doesn't match your schematics, where the DT's vccq supply is actually the vccq2 supply going into the UFS chip? -Evan