Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3782638pxu; Tue, 8 Dec 2020 23:45:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyx6ldQldaiWW9h9F1ivIpipjsAilphL64eSPo0wTsamT74ZFV7jni8yQkJiyC/QmUKjUED X-Received: by 2002:a17:906:27c2:: with SMTP id k2mr955510ejc.211.1607499935716; Tue, 08 Dec 2020 23:45:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1607499935; cv=pass; d=google.com; s=arc-20160816; b=zyTPmVvVdZD42WCGVxek5dXbOn/LKXdJsiobLw3kACS6nQNoo4NdzS68HOjGdovEM7 bgaK9mGWwq0u01cm/t5pQwNGFGyXEZkIJPw+pburQQwIVvmKY14kPKM3enihyzcsonV8 0UlWWbaibgR3low42ocJ8vLUeNLeDCFn9igb2/+VMrxNj74Y/MW7LozvIRnhayYiYBcy HLCuQqTCDzdQETy2ImoM8Le6ko85r6GqCfHx5Zwv5uG3glrC3BzvyDycH+j5MbBKOPTB 4IM7+L9WsKGSjvSg3rg7XB2XIlxOce3Iy6CrcL8GHU9gJJldfJKchYFkfYzY/k/e0MD0 OIgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :wdcipoutbound:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:ironport-sdr:dkim-signature; bh=W3jiun7WeyWq7rrV4umgzgMeN3/0iFtAVfqiIzYgneI=; b=A2EnwBePBV98Bq/vqy3LtaYrkR7syeJvMCzgc2YslhmCI2S5tVc+lrppuyLoS1fLyR j22epEmND0dU9BQmM8dLEfBAu1vfG2sUKSmaT5y8I1D3zM30Ic/YLJ2NZdBY1zi8ZR4X H3ezrLkSezfFZbiMgX6BCgH8Umsdh3+PZE3dugnEwa/6lpsROwl3A0HLBER0av3Kl5P/ KkFUFxtd2cfi/2CKZjyW3l/VbeDwiGj6zsaoD2BXK8dykvA4wgvj3AB+AEa/UK9h4/0n jXMpInliS8HAatPof3Xnl43JuDubHwpyeKtjsOZKdqO0wkMXjvHpE0Z5ACwBy7Dvp62X 0hlQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=HdfdsTfx; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=OYM0OT7p; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si432675edy.18.2020.12.08.23.45.12; Tue, 08 Dec 2020 23:45:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=HdfdsTfx; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=OYM0OT7p; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728106AbgLIHlh (ORCPT + 99 others); Wed, 9 Dec 2020 02:41:37 -0500 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:63606 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbgLIHlg (ORCPT ); Wed, 9 Dec 2020 02:41:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1607499696; x=1639035696; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=W3jiun7WeyWq7rrV4umgzgMeN3/0iFtAVfqiIzYgneI=; b=HdfdsTfxx5uQk3bCfUb3XCzlSsyj7Tqk2AcNuLTnFLNZXnnZCVDZpVIk oLaLQThf22sWWQ4hO8AlFuFsbc4763ZC8h4b4qQI9cQF9ICFiqdS6mB0X ujOpdyAc8FHPZ7WBA6mwXikFXuTEtx6Zpp35iM4kce3GsDRuiI4g++vln PKx1aBvTSMxRWHIwdZa3CTwpw3DJcX9oN5qbsHvmsM851KHd6PDQ4E9yk c7iYoQGdi7ot7kOUAEcx5c+diKrH8pi1gMguBB/uJMkjeX/YfmdprbRgu 3FkhYPoL1bpiF5C4YKJTm7/KG6LUKFviJLmVJm1mpO0GaQYjpa4f3txqk Q==; IronPort-SDR: Nccv2x57WR6ZxCx+IY1pR7D8UPxlwQ92kqzyc0nETbJTmwPNaRPst8XFbFDIULpA/PuGfraxsb +saTyA6stDjV2cZm3lpVg01VEZOPcyHYpKy0zA2sj0X7DdcP4TXpzJeduS5XUEPKhhNPnjDy8l PlcFfmdzF1Y78eQzj9EDtAf3SlmZpNNJtgox3hPVvMYv4TpSCsVYML99l2pRktKjMk276gOHEF tYr/A3U6aklELYE5vbTvsP9rQNxIx6BqzEJ6mGzFao//0psUG0W2uqxaMSRvrrpdONQ6xgFslH sd4= X-IronPort-AV: E=Sophos;i="5.78,404,1599494400"; d="scan'208";a="159213133" Received: from mail-sn1nam02lp2058.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([104.47.36.58]) by ob1.hgst.iphmx.com with ESMTP; 09 Dec 2020 15:40:30 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gZvTUsed4VHAozzDzVMef264d9d7ZfRdrynrHOZS1CLvgyGcjweI96/EHAIKqAn/sjpapmEDaovLsAj4KVSTumqudSDX8YQ8wVk4Vhnbr13clzLIrmIzfvpRD8kuv9DHE881vLETaYA11AqDEWeCbuJq25GYT6D/4zjCEpnJpu88AKLTAbnNqkP4M5G3wtCa3QEwR9dceGJMfzO//oXqHb4FFxbpyYmTY6cMCfcaEdvy9qaq8VLSDAmniEpC3QD9JIcgBxBYYKVPovPtz428PLdMKGmi/Gavre+RhhESzsPK4pUwhVUixANRSve0C5o5yqtz0qvYHHzqL4m5Lutp0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W3jiun7WeyWq7rrV4umgzgMeN3/0iFtAVfqiIzYgneI=; b=eNU+OXjmmaR0Wcz1IHKLO4oaAmBCBEROpa8KwcgVf1vnSibUEOXUDx2HHZcXACO4XELb1WK291I0oNlHrlfWn/yKObQWWhU9tsk4E9qHUBkyYqfqGWG5dgKPi+XjL/d2MJMRAPWk3muRfIp4HX94W8UXlABcti0/H4UfJ6nCbWEvCOoCy12GkoHFJx9O20g2SgTYtvCIHYvC/nlFERX8tVeowwSXca33k9Plpzyy0Q9/WeR4ixkqGivMNqDl+2hNaxndxsAoo+OvAXBGFw9uid/lY8J58NLjvAtAk0yezV4Q7SpzoXXNKvzYfVzStGKxbDy6rKFCvoNA6OW6ZLjFxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W3jiun7WeyWq7rrV4umgzgMeN3/0iFtAVfqiIzYgneI=; b=OYM0OT7pnlLBy7BCQx2bhHYvsYBYLaWOCfZ8Jzh8AI6TD8qoV0eviG0WRr4ax32avHBiJBODLVtblnZZVliXd9Fozy5HtUAh9zLqQdc8PKDAdls10Fk+3zOupa+HFHhMqju83VsqY6RhDclRgYZgNFekiIA8lFeWoO6/w7Sisls= Received: from DM6PR04MB6575.namprd04.prod.outlook.com (2603:10b6:5:1b7::7) by DM5PR04MB0730.namprd04.prod.outlook.com (2603:10b6:3:f9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.13; Wed, 9 Dec 2020 07:40:28 +0000 Received: from DM6PR04MB6575.namprd04.prod.outlook.com ([fe80::a564:c676:b866:34f6]) by DM6PR04MB6575.namprd04.prod.outlook.com ([fe80::a564:c676:b866:34f6%9]) with mapi id 15.20.3654.012; Wed, 9 Dec 2020 07:40:28 +0000 From: Avri Altman To: Bean Huo , "alim.akhtar@samsung.com" , "asutoshd@codeaurora.org" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "stanley.chu@mediatek.com" , "beanhuo@micron.com" , "bvanassche@acm.org" , "tomas.winkler@intel.com" , "cang@codeaurora.org" CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v3 2/3] scsi: ufs: Keep device active mode only fWriteBoosterBufferFlushDuringHibernate == 1 Thread-Topic: [PATCH v3 2/3] scsi: ufs: Keep device active mode only fWriteBoosterBufferFlushDuringHibernate == 1 Thread-Index: AQHWzaZ8p0p5Ox8520exeCmeSmtzuanuYT1A Date: Wed, 9 Dec 2020 07:40:28 +0000 Message-ID: References: <20201208210941.2177-1-huobean@gmail.com> <20201208210941.2177-3-huobean@gmail.com> In-Reply-To: <20201208210941.2177-3-huobean@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=wdc.com; x-originating-ip: [77.138.4.172] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a639622b-f374-4fbb-bbfc-08d89c15b2f3 x-ms-traffictypediagnostic: DM5PR04MB0730: x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uLdK9wUld+ByCeed65Wrhwa1vq/8Tpsgf7w5SVpw2odDi/filwufULr9ABIpzBpMlxtVmkvtsb5VzZ/BTXR1Xg9+NjunH2hQ3C6j+teTLOGdHkFe83bO9OACo5BZ7CPlnOBVsm/eLZe56P6zgTzJfDbCXsZ3BjEaW9x89f8sLEMsvRbxhf8d1dp5NxXn3B47E+a8JJ3/Jzpq3gcCXsblLVEIvXwkQpZVE2OHrKXXjSh5/5pQGqKNLdHfWFBp+wlSRQ7EetJulVeStQ0jmUVXhwcY+w+gvVQwKbvy4czL7HwTFifYa/CC0oP/Ssrjoz/mJH+9jp3lDNRcSoCVaJCP9mIt7rKZeLOGwanQlZOG8vW4uV3pnbcKqmQcj1L0R96zfzOLIkwG3Kooy39VozAH83DtvqYnXqvmuiwTRUgyBAw= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR04MB6575.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(136003)(376002)(346002)(86362001)(52536014)(54906003)(6506007)(64756008)(9686003)(5660300002)(66946007)(66476007)(66556008)(66446008)(4326008)(110136005)(26005)(71200400001)(4744005)(7416002)(33656002)(921005)(76116006)(7696005)(55016002)(508600001)(186003)(8676002)(8936002)(83380400001)(2906002)(145543001)(213903007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: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EwWxwhFEiFEuw3fz3iJcyeqw/8P2p0?= =?us-ascii?Q?voYB8qR+iYY8Lb3iP4f3vSyQprRHhi1JvvZRvXwTRVTIVRPFXOY3OngnhwXY?= =?us-ascii?Q?BF1s2+DwVw6BLCIafcL5ppqT9lPv8APxAe77Oqe+I/k=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR04MB6575.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a639622b-f374-4fbb-bbfc-08d89c15b2f3 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Dec 2020 07:40:28.2657 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: IrLRd4sYjSivK2YAse6/uEuXo2gv+mHxDHyp60KtP6e80AcVfZ7ivzZ9sXbTS3tjCNafB95zH3RmDzwTQNimhQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR04MB0730 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Bean Huo >=20 > According to the JEDEC UFS 3.1 Spec, If > fWriteBoosterBufferFlushDuringHibernate > is set to one, the device flushes the WriteBooster Buffer data automatica= lly > whenever the link enters the hibernate (HIBERN8) state. While the flushin= g > operation is in progress, the device should be kept in Active power mode. > Currently, we set this flag during the UFSHCD probe stage, but we didn't = deal > with its programming failure. Even this failure is less likely to occur, = but > still it is possible. How about reading it on every ufshcd_wb_need_flush? Thanks, Avri