Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp454659imj; Thu, 7 Feb 2019 06:54:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IaMLO3WgNvdDePyhP/rFpYNz3htBKm6ixCdevPsSQGLpUcjrBTyDtafyKh3gxJFYnTaarqB X-Received: by 2002:a17:902:bd4a:: with SMTP id b10mr16965750plx.232.1549551288080; Thu, 07 Feb 2019 06:54:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549551288; cv=none; d=google.com; s=arc-20160816; b=UsA190HDTBotT4HZg7KgmHXxfAD+Q7u7v5wbAHVHSOXUUCtaB/G+cvU2MbjjW7nZ3S xUFfocSaz1BZ/j1co+mGB8O8HOvktxQGUwaWPwQ97I5MkSFPrL6TQfAeQiyYvQyc9442 HX3rY7sGC/MPRoTdTJIB5XAf6csF0ZJX8Icl0Dd709ThPjeGjsiItNn5FXI+ZLxwIoyT WLCHupPZzPjUWQLHpHK3e1B3YjGnRJyL4XEdPbW0uySpYvqWB7KR72k1JB7/aVgaRoFq 2t4uVbnoiNSUExb1o5Kfw+cBWz0wOdhhJT84qpIQrVqsAcQ61kiEUZFMyyZCRN8U1Nnb IYBw== 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:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature; bh=oePI5gsgDEuFUxyingL+uLgX0dcxmhuw9vCk+mICS1g=; b=xm8UxC5DAwxOR43RNDXJui8gwRi9W9PzOl5sAPKOeXO363D9ywykoIvisb5Yz09Tw7 Hq5fTocnRU4Xe+d+AfwQOMbeEQ/JU4KuaxvaegZxmYpTMKk3Z9gkmXwTKbrI4VxVkTQv bsMc1v1s2RZgP9EmJHAZbSp6iQzW1vEZaeoJrxvkY/OjlXXHdAW034reMI0aGt/27ewx rYk1mRLsOSe6J47hTgx/dVpaix+jy542FAc17W/avlyPaaivnAfRhZ0KyVn8gsEOQeAg in3ICmJnDuqNBO/UiXNQV+R64GRqRMhnnWGbTtExUW198cz0vhLEVZvQe/h3sDAKE4/E hNvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=bL5LtIcP; dkim=pass header.i=@codeaurora.org header.s=default header.b=JX4a2fgY; 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 e192si9296766pfc.28.2019.02.07.06.54.31; Thu, 07 Feb 2019 06:54:48 -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=@codeaurora.org header.s=default header.b=bL5LtIcP; dkim=pass header.i=@codeaurora.org header.s=default header.b=JX4a2fgY; 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 S1726924AbfBGOwg (ORCPT + 99 others); Thu, 7 Feb 2019 09:52:36 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:56614 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbfBGOwg (ORCPT ); Thu, 7 Feb 2019 09:52:36 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 80187609F2; Thu, 7 Feb 2019 14:52:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1549551154; bh=+nzxc04tUhQn0k/G5HzDrhtUxVWAMj5peml7H0f4hT4=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=bL5LtIcPEdDmKfQeB7sf4pGp2TwWmKzgwKOAAQLes9AqLv/rSptW/3ocT0l4fq1+Z uzjYBqdHnO6QXra4hoA2PEblJyNH9URH4HYijtS0CIif16o3gI2blg4NFEchbSJkG4 KCUQf91oDQoTg5prOzkDl2yySYMphu6UyrYL1cxc= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.226.60.81] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8A83860264; Thu, 7 Feb 2019 14:52:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1549551149; bh=+nzxc04tUhQn0k/G5HzDrhtUxVWAMj5peml7H0f4hT4=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=JX4a2fgYXlroC2QvHPVHhtRzhDhPJy3qm9Z01JymckC0MlesaNwZQ9/rKgeNBLHnp aIdMxGsfRcbK/9Xv1I0rOjXSCvE2vUcfRKLETfFjIqKO5+RltW+nYJSj3ex+kXjjxY 3k2JUY3SLc0807JQsoM4gwldPdRIzBntdjxeW0r8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8A83860264 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jhugo@codeaurora.org Subject: Re: [PATCH v3 5/5] Revert "scsi: ufs: disable vccq if it's not needed by UFS device" To: Alim Akhtar , Marc Gonzalez , MSM , LKML Cc: Bjorn Andersson , Andy Gross , David Brown , Evan Green , Douglas Anderson , Avri Altman , Pedro Sousa , Subhash Jadavani , Bart Van Assche , SCSI , Hannes Reinecke 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> <42c86292-22e9-4c5e-d64d-bc6107af45bf@free.fr> <740e6332-b54f-ab62-915a-0aec6be450d3@samsung.com> <2a59c11a-037f-c8c3-235a-9b21183a0801@free.fr> <90f24b35-89b0-cea0-1ab3-13c2a419b138@samsung.com> From: Jeffrey Hugo Message-ID: <81b85f39-49b5-901b-ec79-19708509965e@codeaurora.org> Date: Thu, 7 Feb 2019 07:52:26 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <90f24b35-89b0-cea0-1ab3-13c2a419b138@samsung.com> 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 2/7/2019 1:50 AM, Alim Akhtar wrote: > Hi Marc, > > On 06/02/19 9:22 PM, Marc Gonzalez wrote: >> On 06/02/2019 16:27, Alim Akhtar wrote: >> >>> On 06/02/19 8:29 PM, Marc Gonzalez wrote: >>> >>>> [ 2.405734] regulator_disable: ENTER vdd_l26 >>>> [ 2.405958] regulator_disable: EXIT vdd_l26 >>>> [ 2.406032] regulator_set_load: vdd_l26 = 0 uA >>>> [ 3.930447] ufshcd-qcom 1da4000.ufshc: ufshcd_query_attr: opcode 0x04 for idn 13 failed, index 0, err = -11 >>>> [ 5.434358] ufshcd-qcom 1da4000.ufshc: ufshcd_query_attr: opcode 0x04 for idn 13 failed, index 0, err = -11 >>>> [ 6.938318] ufshcd-qcom 1da4000.ufshc: ufshcd_query_attr: opcode 0x04 for idn 13 failed, index 0, err = -11 >>>> [ 6.938414] ufshcd-qcom 1da4000.ufshc: ufshcd_query_attr_retry: query attribute, idn 13, failed with error -11 after 3 retires >>>> [ 6.946959] ufshcd-qcom 1da4000.ufshc: ufshcd_disable_auto_bkops: failed to enable exception event -11 >>>> [ 6.958523] ufshcd-qcom 1da4000.ufshc: dme-peer-get: attr-id 0x1587 failed 3 retries >>>> [ 6.967730] ufshcd-qcom 1da4000.ufshc: dme-peer-get: attr-id 0x1586 failed 3 retries >>>> [ 6.975576] ufshcd-qcom 1da4000.ufshc: ufshcd_get_max_pwr_mode: invalid max pwm tx gear read = 0 >>>> [ 6.983306] ufshcd-qcom 1da4000.ufshc: ufshcd_probe_hba: Failed getting max supported power mode >>>> [ 8.506314] ufshcd-qcom 1da4000.ufshc: ufshcd_query_flag: Sending flag query for idn 3 failed, err = -11 >>>> [ 10.010352] ufshcd-qcom 1da4000.ufshc: ufshcd_query_flag: Sending flag query for idn 3 failed, err = -11 >>>> [ 11.514313] ufshcd-qcom 1da4000.ufshc: ufshcd_query_flag: Sending flag query for idn 3 failed, err = -11 >>>> [ 11.514412] ufshcd-qcom 1da4000.ufshc: ufshcd_query_flag_retry: query attribute, opcode 5, idn 3, failed with error -11 after 3 retires >>>> [ 13.050354] ufshcd-qcom 1da4000.ufshc: __ufshcd_query_descriptor: opcode 0x01 for idn 8 failed, index 0, err = -11 >>>> [ 14.554313] ufshcd-qcom 1da4000.ufshc: __ufshcd_query_descriptor: opcode 0x01 for idn 8 failed, index 0, err = -11 >>>> [ 16.058313] ufshcd-qcom 1da4000.ufshc: __ufshcd_query_descriptor: opcode 0x01 for idn 8 failed, index 0, err = -11 >>>> [ 16.058421] ufshcd-qcom 1da4000.ufshc: ufshcd_read_desc_param: Failed reading descriptor. desc_id 8, desc_index 0, param_offset 0, ret -11 >>>> [ 16.067654] ufshcd-qcom 1da4000.ufshc: ufshcd_init_icc_levels: Failed reading power descriptor.len = 98 ret = -11 >>>> [ 37.074334] ufshcd-qcom 1da4000.ufshc: link startup failed 1 >>> >>> Can you check if your UFS device RESET_N is asserted correctly. It might >>> be connected to some regulator and may be you can try keeping that >>> regulator as "regulator-always-on" from your DT node. >> >> How do I check RESET_N? In software or hardware? >> > RST_N is the reset logic for UFS device core logic and it is input to > the device from UFS host controller.So, in your platform please check if > this line somehow connected to (pulled up) a PMIC supply. If that is the > case, please keep that regulator ON and see if this issue is resolved. The reset line is routed though the global clock controller (GCC), and must be explicitly asserted within the GCC to trigger a reset. As far as I am aware, Linux is not touching this. Additionally, I fail to see how if this was a reset issue, reverting 60f0187031c0 would have any impact (which doing so addresses our issue) >> Do you think it is not a good idea to revert 60f0187031c05e04cbadffb62f557d0ff3564490 ? >> > Please hold on till we understand the real cause of this issue. Or we > have a consensuses for reverting the said commit. > Thanks! Did you see https://lkml.org/lkml/2019/2/5/659 where I indicated VCCQ powers components within the host controller, and by not setting load on the regulator properly, we are likely undervolting those components due to the current draw? -- Jeffrey Hugo Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.