Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2550322ybz; Sun, 3 May 2020 03:43:45 -0700 (PDT) X-Google-Smtp-Source: APiQypJrDQj3ITv4pxYtmnzlss74Ti7htXjyjKgKS34DxHjhPVvq5sc9HBjdoDtjxUpJcblWv0br X-Received: by 2002:aa7:d342:: with SMTP id m2mr10720800edr.341.1588502625812; Sun, 03 May 2020 03:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588502625; cv=none; d=google.com; s=arc-20160816; b=SwV/LtkAyTJ+gl+Kq6DNoWIJmbT/dc29o/Jnm5ZmLKZj4yXcQp/yq+o8tgekRxPvzF +ef7gR5M7MvSwpo6he73KoCiHyrEccbEW4GsODba3U0FGKNi+Wd8bxGhvtkzoRdNLWBu NIhP/AS29FuTXfvrp3lYmuMwKn3yNuoP/qSUptYXTIkaWFGdDRQoN3VuKzaOsY9G9wjO 3/Pik6io9me+aaid2B4sO9axk+442cUgl4S1w5hDjS5C1degIuhI3lkLkSQBTfOx5EEH d+1TX8JwYzfNwnVkbYN6pD6DMSUSyn5zYYMmNYOezgHBVDzUf7suaXSPaeKhuKi7CuhJ DMRQ== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=5A6fTMTWOdOt9hL3z4b4ndRhgV2eSquiME190vL1b78=; b=WIL8rvqCVYxW2K532UOmLGancalQ9GecVmWkfHRsdDWuKeEwEz3yGXtM46N7QrNx8y VKEEBo+z35VF0Vj1B1zwfPRPdvCC6e2d6al9tP8JisxcXuoQuj9hJU5cJrosrPx7TQGD 9MbVHAS2we5RTUZRosuqPEl8SgV2xjxMS6Lu8NXSMFLBvgHLI+gkxR6Yn7ZHwMXsvuE7 95M3Tni2aiG1J4UKW+XYDf47nQi6PPSIJbHJiccjDvTV8YSNEsiK2AI8RqOHi7R/eMAl 3fuUh0ejmAzbd/Aluen7hGgJzhAVL0/DxqivOPdczX+yqM6e2AHVj9b3DofqVlnXe2nR ISKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=qegX4C+8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh23si5018904edb.223.2020.05.03.03.43.22; Sun, 03 May 2020 03:43:45 -0700 (PDT) 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=pass header.i=@mediatek.com header.s=dk header.b=qegX4C+8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728169AbgECKjy (ORCPT + 99 others); Sun, 3 May 2020 06:39:54 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:27763 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727916AbgECKjx (ORCPT ); Sun, 3 May 2020 06:39:53 -0400 X-UUID: e864c9c81fc743a59c032f8699df0984-20200503 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=5A6fTMTWOdOt9hL3z4b4ndRhgV2eSquiME190vL1b78=; b=qegX4C+8LkkgZJDfNwZnkkXT+oCv6OeITF89Z2Yt8wxp7m7kR2Uz/sdN7q8XenpOUHxp6gycXEU2eWam0Vb6ohDmr4sWNZ3cL9FSaKhuEaX9HezELA3Z5ir3zmUuElWaEhm+a3ScIHA+OcRNcZ5/8CoT4yPH9lI9sE3YZ33ziUg=; X-UUID: e864c9c81fc743a59c032f8699df0984-20200503 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 210862379; Sun, 03 May 2020 18:39:50 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 3 May 2020 18:39:46 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 3 May 2020 18:39:49 +0800 Message-ID: <1588502389.3197.19.camel@mtkswgap22> Subject: RE: [PATCH v4 6/8] scsi: ufs: add LU Dedicated buffer mode support for WriteBooster From: Stanley Chu To: Avri Altman CC: "linux-scsi@vger.kernel.org" , "martin.petersen@oracle.com" , "alim.akhtar@samsung.com" , "jejb@linux.ibm.com" , "asutoshd@codeaurora.org" , "bvanassche@acm.org" , "andy.teng@mediatek.com" , "chun-hung.wu@mediatek.com" , "kuohong.wang@mediatek.com" , "linux-kernel@vger.kernel.org" , "cang@codeaurora.org" , "linux-mediatek@lists.infradead.org" , "peter.wang@mediatek.com" , "matthias.bgg@gmail.com" , "linux-arm-kernel@lists.infradead.org" , "beanhuo@micron.com" Date: Sun, 3 May 2020 18:39:49 +0800 In-Reply-To: References: <20200503060351.10572-1-stanley.chu@mediatek.com> <20200503060351.10572-7-stanley.chu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQXZyaSwNCg0KT24gU3VuLCAyMDIwLTA1LTAzIGF0IDA4OjAwICswMDAwLCBBdnJpIEFsdG1h biB3cm90ZToNCj4gDQo+ID4gLSAgICAgICBpZiAoIShoYmEtPmRldl9pbmZvLmJfd2JfYnVmZmVy X3R5cGUgJiYNCj4gPiAtICAgICAgICAgICAgIGhiYS0+ZGV2X2luZm8uZF93Yl9hbGxvY191bml0 cykpDQo+ID4gLSAgICAgICAgICAgICAgIGdvdG8gd2JfZGlzYWJsZWQ7DQo+ID4gKyAgICAgICBp ZiAoaGJhLT5kZXZfaW5mby5iX3diX2J1ZmZlcl90eXBlID09IFdCX0JVRl9NT0RFX1NIQVJFRCkg ew0KPiA+ICsgICAgICAgICAgICAgICBoYmEtPmRldl9pbmZvLmRfd2JfYWxsb2NfdW5pdHMgPQ0K PiA+ICsgICAgICAgICAgICAgICBnZXRfdW5hbGlnbmVkX2JlMzIoZGVzY19idWYgKw0KPiA+ICsg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgREVWSUNFX0RFU0NfUEFSQU1fV0JfU0hB UkVEX0FMTE9DX1VOSVRTKTsNCj4gPiArICAgICAgICAgICAgICAgaWYgKCFoYmEtPmRldl9pbmZv LmRfd2JfYWxsb2NfdW5pdHMpDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgZ290byB3Yl9k aXNhYmxlZDsNCj4gPiArICAgICAgIH0gZWxzZSB7DQo+ID4gKyAgICAgICAgICAgICAgIGZvciAo bHVuID0gMDsgbHVuIDwgaGJhLT5kZXZfaW5mby5tYXhfbHVfc3VwcG9ydGVkOyBsdW4rKykgew0K PiBtYXhfbHVfc3VwcG9ydGVkIGlzIGRldGVybWluZWQgYWNjb3JkaW5nIHRvIGJNYXhOdW1iZXJM VSBpbiB0aGUgZ2VvbWV0cnkgZGVzY3JpcHRvciwNCj4gd2hpY2ggY2FuIGJlIDMyLiBXQiBidWZm ZXIgaG93ZXZlciwgaXMgb25seSB2YWxpZCBvbmx5IGZvciBMVSAwLCAuLi4sIExVNy4NCj4gQmV0 dGVyIHRvIGFkZCB0aGlzIG5ldyBsaW1pdCB0byB1ZnMuaC4NCg0KVGhhbmtzIGZvciBub3RpY2lu ZyB0aGlzLiBJIHdpbGwgZml4IGl0IGluIG5leHQgdmVyc2lvbi4NCg0KPiANCj4gPiArICAgICAg ICAgICAgICAgICAgICAgICByZXQgPSB1ZnNoY2RfcmVhZF91bml0X2Rlc2NfcGFyYW0oaGJhLA0K PiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsdW4sDQo+ID4gKyAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFVOSVRfREVTQ19QQVJBTV9XQl9C VUZfQUxMT0NfVU5JVFMsDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICh1OCAqKSZkX2x1X3diX2J1Zl9hbGxvYywNCj4gPiArICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgc2l6ZW9mKGRfbHVfd2JfYnVmX2FsbG9jKSk7DQo+ID4gKyAgICAg ICAgICAgICAgICAgICAgICAgaWYgKHJldCkNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIGdvdG8gd2JfZGlzYWJsZWQ7DQo+IEkgdGhpbmsgeW91IHNob3VsZCBqdXN0IGNvbnRp bnVlIGhlcmUsIGFzIGl0IGlzIG9rIGZvciB0aGUgcXVlcnkgdG8gZmFpbC4NCj4gVGhlIHNwZWMg c2F5czoNCj4gVGhlIFdyaXRlQm9vc3RlciBCdWZmZXIgaXMgYXZhaWxhYmxlIG9ubHkgZm9yIHRo ZSBsb2dpY2FsIHVuaXRzIGZyb20gMCB0byA3IHdoaWNoIGFyZSBjb25maWd1cmVkIGFzDQo+ICJu b3JtYWwgbWVtb3J5IHR5cGUiIChiTWVtb3J5VHlwZSA9IDAwaCkgYW5kICJub3QgQm9vdC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