Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5045265ybc; Tue, 26 Nov 2019 20:17:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxBMzn1s2kP/1fF4Ywr90mg8pYz+SPg1zu8mKzx4PFaFB8GqolDovKQQ5q4hwB+e0OOzAPp X-Received: by 2002:a17:906:3418:: with SMTP id c24mr47268671ejb.121.1574828229981; Tue, 26 Nov 2019 20:17:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574828229; cv=none; d=google.com; s=arc-20160816; b=bye39fxv5+V3lDeIrEvzIfqJwoq9wGdwOq77V8wcm9wm6Fgv5wzAFS87mIr1UP0CeT 44b92E85J7nP6rajRAqRB/5Zp78tWTqOfo5Ln9yKwGg7+UNSBUbm+4n5t0w55V+plIn1 q86v0QJCCPgx3wmAArviUJ3gZo1d1ZaJ1c21WQCAhsmOPmcaI9JDmaoOL1CgGDhbO2MN pVnlLAc1ciTYGOX6sxM1AlA1ETr6HsFEoIXqHNGfaFYEhITXWucKPckqz939DOGMPPfM CjuzBom7F6lMiqlM//F8s/2l4ArJxfY22TSIBtEJkREZZCJVxpeSF0KQISS7BLjtvQJ8 vgxQ== 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:dkim-signature; bh=wT3uBStmO0zs8CxdsXEg1fyzmCCiuamwhYlq5icphfU=; b=SvLlJCQWu8qxfh7vmYLYi5I4RTwD3oHI7RPHllhYXmHWfKQpYPc8ZnPgi/uP3kTeKk 0dLl6zFDaNgdzHxg+/iLKmJg1vmO/IiK6SJzAP6UTCQXwZ909FZXo4+SHhBiDrthkTg1 gN5MJGaTJWoYt9nW0eYF83fERpY4ZRXujwMAnwFlFE2Qh7j7ZIDktr0VcnCwUOZqyQzl NPj5dVv8pySb9eJ64LQTNHlqkVoezyVX4HvVsKpHTqRc+kQzAYnj+v0FxWjtNaqlq+La iTJiLyw4Xy4ULH6R5yqh4jyt4UPCN8NRQGFQ6yModynMYhxubFTmngVkSFb+M8sGHy+m eFIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pjEVQil8; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si1207998edb.64.2019.11.26.20.16.44; Tue, 26 Nov 2019 20:17:09 -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=@ti.com header.s=ti-com-17Q1 header.b=pjEVQil8; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726664AbfK0EPq (ORCPT + 99 others); Tue, 26 Nov 2019 23:15:46 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:46446 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726526AbfK0EPq (ORCPT ); Tue, 26 Nov 2019 23:15:46 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAR4FL1f026273; Tue, 26 Nov 2019 22:15:21 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1574828121; bh=wT3uBStmO0zs8CxdsXEg1fyzmCCiuamwhYlq5icphfU=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=pjEVQil8AxS5Wu73HXta+uN5kXPDTns/4nN/OolK1peBL1nosjT0+L5MF4z3k1ZYp 1pO8N52mZWPI5DZF8pK3UbxIYK01LnKFCiwWeSMos2HFxEZ1Mo1/SoNRSrLfSFhgmJ opCmtmRHviuHHmPAxMutSSxi0qo/MKCXGfy2FZDY= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAR4FL93065540; Tue, 26 Nov 2019 22:15:21 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 26 Nov 2019 22:15:20 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 26 Nov 2019 22:15:20 -0600 Received: from [172.24.145.136] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAR4FE36093524; Tue, 26 Nov 2019 22:15:16 -0600 Subject: Re: [PATCH RESEND 2/2] scsi: ufs: Update L4 attributes on manual hibern8 exit in Cadence UFS. To: Alim Akhtar , "'Alim Akhtar'" , "'sheebab'" CC: "'Avri Altman'" , "'Pedro Sousa'" , "'James E.J. Bottomley'" , "'Martin K. Petersen'" , "'Stanley Chu'" , "'Bean Huo (beanhuo)'" , , , "'open list'" , , , References: <1574147082-22725-1-git-send-email-sheebab@cadence.com> <1574147082-22725-3-git-send-email-sheebab@cadence.com> <08c701d5a4d4$b20c7300$16255900$@samsung.com> From: Vignesh Raghavendra Message-ID: <69e16181-e01c-1120-2074-80b9c1eb19ce@ti.com> Date: Wed, 27 Nov 2019 09:45:45 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <08c701d5a4d4$b20c7300$16255900$@samsung.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alim, On 27/11/19 9:12 AM, Alim Akhtar wrote: > [...] >>>> Backup L4 attributes duirng manual hibern8 entry and restore the L4 >>>> attributes on manual hibern8 exit as per JESD220C. >>>> >>> Can you point me to the relevant section on the spec? >>> >> >> Per JESD 220C 9.4 UniPro/UFS Control Interface (Control Plane): >> >> "NOTE After exit from Hibernate all UniPro Transport Layer attributes (including >> L4 T_PeerDeviceID, >> >> L4 T_PeerCPortID, L4 T_ConnectionState, etc.) will be reset to their reset values. >> All required attributes >> >> must be restored properly on both ends before communication can resume." >> >> But its not clear whether SW needs to restore these attributes or hardware >> > Thanks Vignesh for pointing out the spec section, yes it is not clear, one way to confirm this is just by read L4 attributes before > And after hinern8 entry/exit. I know that on Cadence UFS controller L4 attributes are definitely lost on hibernation entry/exit and therefore needs to be restored. But not sure of other controllers. If this issue is seen on other controllers as well, then we should probably consider moving this code to core driver so that there is code reuse. > (at least in the current platform it is not being done) > AFA this patch is concerns, this looks ok to me. > @ Avri , any thought on this? > >> Regards >> Vignesh >> [...] -- Regards Vignesh