Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1577263ybz; Thu, 30 Apr 2020 01:41:29 -0700 (PDT) X-Google-Smtp-Source: APiQypLmE6rnXNo62mV0MMnrTwl5Yw9u+11tWoH8Bz/owgMIFqDE8/Cc/FqSRnz9Kt8RDUoZy2EP X-Received: by 2002:a50:9dc9:: with SMTP id l9mr1625257edk.39.1588236089623; Thu, 30 Apr 2020 01:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588236089; cv=none; d=google.com; s=arc-20160816; b=YLi3z5MSOC18lrrfqlkw1JBp5iQCRZuGI4rrGO4Ga0RaW35ldTpnBd44Z/p5CNlrFd WigemeJbJ42qnHgN0guCjaTLMt42ZsBWusEawraEAe3+6WtWTg0xG9eWO6T6Mfm1jI5c GUIFu8RjVecw5dua2HVsklGd4zGZ/iHsqsc5EtL3fjZbEfLj4LXExdT36j7Vw5wrkuaF LC0rJeWJ2jtYcFOZOjnRxfpDdBxZBJsUhrgNma+XJHVcF43VCqXcnp/5RmckjkxNxE7C +GPulKksxI/n4a7XYkQZUsoogE9Q50rWxVlfPLR/r00JmRY27byiaU4Y1hK0OelSUCX0 r9aA== 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=6fuLsSr7ht5XTQtQNi2tUVonpMMOQGnUTyqQfCtGbyc=; b=ZiQJS96ow0n/aYoKfovyREljKquDkImWNRIujSJjw72sg4wJ42d+DsTqRPymmsLgBt +uDMJb70f8gctJ8PkeIUYfm1NDfexlqQKW0VmUCrg20yMUHrL0fwvgWsTnscpWQckhbj iKPbXB12r6UwSnKGyXVnc8Qmw0NwG8C34q8QtsFf7GWxy2qZMdvEkPPL9YjLOzsRhpk8 VNmHDYzObkX73XmP5YwnoWZe06cG1obFOjGbDGkXez6fEkqbKVJ4Ugd+MobQA207AJ/y ROGKC4u7nqQ94aSo/AME9i0pdrHWuco0mLduSTMkilYgXRrwcwRPWWBNM99AFm7Di8en cA1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=HoJiajny; 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 d19si5188414edz.214.2020.04.30.01.41.04; Thu, 30 Apr 2020 01:41:29 -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=HoJiajny; 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 S1726789AbgD3Ihj (ORCPT + 99 others); Thu, 30 Apr 2020 04:37:39 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:33997 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726127AbgD3Ihi (ORCPT ); Thu, 30 Apr 2020 04:37:38 -0400 X-UUID: ad5f9674fb3c46edb7722b64b2b2972a-20200430 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=6fuLsSr7ht5XTQtQNi2tUVonpMMOQGnUTyqQfCtGbyc=; b=HoJiajnysPjLiHqP3nXrg4uXQYs/P3Y2XWVD/MPYwOyG6sIWnCM3uFsHLnY6FDnFf6Gm1YOB15ZVrhTgJkhtvaRbN/v4bH0ndFD5yw4TAkSQjp8mBORqiovtlvrl0yYejJRNz0jQC2WIly/ym8DqY/2cjDQoA6vo5/0hmtAj+No=; X-UUID: ad5f9674fb3c46edb7722b64b2b2972a-20200430 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 675497186; Thu, 30 Apr 2020 16:37:35 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 30 Apr 2020 16:37:33 +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; Thu, 30 Apr 2020 16:37:34 +0800 Message-ID: <1588235853.3197.6.camel@mtkswgap22> Subject: RE: [PATCH v2 3/5] 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" , "beanhuo@micron.com" , "cang@codeaurora.org" , "matthias.bgg@gmail.com" , "bvanassche@acm.org" , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "kuohong.wang@mediatek.com" , "peter.wang@mediatek.com" , "chun-hung.wu@mediatek.com" , "andy.teng@mediatek.com" Date: Thu, 30 Apr 2020 16:37:33 +0800 In-Reply-To: References: <20200429135610.23750-1-stanley.chu@mediatek.com> <20200429135610.23750-4-stanley.chu@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: 830AF5C7FA77C69071E5C6943126B4BF8D7E7B2D8CE0B39DC1FC316DFF1272C52000:8 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 SGkgQXZyaSwNCg0KT24gVGh1LCAyMDIwLTA0LTMwIGF0IDA4OjMwICswMDAwLCBBdnJpIEFsdG1h biB3cm90ZToNCj4gPiANCj4gPiAgc3RhdGljIHZvaWQgdWZzaGNkX3diX3Byb2JlKHN0cnVjdCB1 ZnNfaGJhICpoYmEsIHU4ICpkZXNjX2J1ZikNCj4gPiAgew0KPiA+ICsgICAgICAgaW50IHJldDsN Cj4gPiArICAgICAgIHU4IGx1bjsNCj4gPiArICAgICAgIHUzMiBkX2x1X3diX2J1Zl9hbGxvYyA9 IDA7DQo+ID4gKw0KPiA+ICAgICAgICAgaWYgKGhiYS0+ZGVzY19zaXplLmRldl9kZXNjIDw9DQo+ ID4gREVWSUNFX0RFU0NfUEFSQU1fRVhUX1VGU19GRUFUVVJFX1NVUCkNCj4gPiAgICAgICAgICAg ICAgICAgZ290byB3Yl9kaXNhYmxlZDsNCj4gPiANCj4gPiBAQCAtNjgyMSwxNSArNjg0MiwzNSBA QCBzdGF0aWMgdm9pZCB1ZnNoY2Rfd2JfcHJvYmUoc3RydWN0IHVmc19oYmENCj4gPiAqaGJhLCB1 OCAqZGVzY19idWYpDQo+ID4gICAgICAgICBoYmEtPmRldl9pbmZvLmJfd2JfYnVmZmVyX3R5cGUg PQ0KPiA+ICAgICAgICAgICAgICAgICBkZXNjX2J1ZltERVZJQ0VfREVTQ19QQVJBTV9XQl9UWVBF XTsNCj4gPiANCj4gPiAtICAgICAgIGhiYS0+ZGV2X2luZm8uZF93Yl9hbGxvY191bml0cyA9DQo+ ID4gLSAgICAgICAgICAgICAgIGdldF91bmFsaWduZWRfYmUzMihkZXNjX2J1ZiArDQo+ID4gLSAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBERVZJQ0VfREVTQ19QQVJBTV9XQl9TSEFS RURfQUxMT0NfVU5JVFMpOw0KPiA+ICAgICAgICAgaGJhLT5kZXZfaW5mby5iX3ByZXNydl91c3Bj X2VuID0NCj4gPiAgICAgICAgICAgICAgICAgZGVzY19idWZbREVWSUNFX0RFU0NfUEFSQU1fV0Jf UFJFU1JWX1VTUlNQQ19FTl07DQo+ID4gDQo+ID4gLSAgICAgICBpZiAoIShoYmEtPmRldl9pbmZv LmJfd2JfYnVmZmVyX3R5cGUgJiYNCj4gPiAtICAgICAgICAgICAgIGhiYS0+ZGV2X2luZm8uZF93 Yl9hbGxvY191bml0cykpDQo+ID4gLSAgICAgICAgICAgICAgIGdvdG8gd2JfZGlzYWJsZWQ7DQo+ ID4gKyAgICAgICBpZiAoaGJhLT5kZXZfaW5mby5iX3diX2J1ZmZlcl90eXBlID09IFdCX0JVRl9N T0RFX1NIQVJFRCkgew0KPiA+ICsgICAgICAgICAgICAgICBoYmEtPmRldl9pbmZvLmRfd2JfYWxs b2NfdW5pdHMgPQ0KPiA+ICsgICAgICAgICAgICAgICBnZXRfdW5hbGlnbmVkX2JlMzIoZGVzY19i dWYgKw0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgREVWSUNFX0RFU0Nf UEFSQU1fV0JfU0hBUkVEX0FMTE9DX1VOSVRTKTsNCj4gPiArICAgICAgICAgICAgICAgaWYgKCFo YmEtPmRldl9pbmZvLmRfd2JfYWxsb2NfdW5pdHMpDQo+ID4gKyAgICAgICAgICAgICAgICAgICAg ICAgZ290byB3Yl9kaXNhYmxlZDsNCj4gPiArICAgICAgIH0gZWxzZSB7DQo+ID4gKyAgICAgICAg ICAgICAgIGZvciAobHVuID0gMDsgbHVuIDwgaGJhLT5kZXZfaW5mby5tYXhfbHVfc3VwcG9ydGVk OyBsdW4rKykgew0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIHJldCA9IHVmc2hjZF9yZWFk X3VuaXRfZGVzY19wYXJhbShoYmEsDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIGx1biwNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgVU5JVF9ERVNDX1BBUkFNX1dCX0JVRl9BTExPQ19VTklUUywNCj4gPiArICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgKHU4ICopJmRfbHVfd2JfYnVmX2FsbG9jLA0KPiA+ ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzaXplb2YoZF9sdV93Yl9i dWZfYWxsb2MpKTsNCj4gPiArICAgICAgICAgICAgICAgICAgICAgICBpZiAocmV0KQ0KPiA+ICsg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ290byB3Yl9kaXNhYmxlZDsNCj4gPiArICAg ICAgICAgICAgICAgICAgICAgICBpZiAoZF9sdV93Yl9idWZfYWxsb2MpIHsNCj4gPiArICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIGhiYS0+ZGV2X2luZm8ud2JfZGVkaWNhdGVkX2x1ID0g bHVuOw0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQo+IFdoeSBh cmUgeW91IGFsbG93aW5nIG9ubHkgYSBzaW5nbGUgV0IgbHVuPw0KPiBZb3Ugc2hvdWxkIGFsbG93 IHRob3NlIGJ1ZmZlcnMgZm9yIGx1bjAuLmx1bjcNCg0KSW4gVUZTIDMuMSBzcGVjaWZpY2F0aW9u LCB0aGUgdmFsaWQgdmFsdWUgb2YgYkRldmljZU1heFdyaXRlQm9vc3RlckxVcw0KaXMgMS4gVGhl cmVmb3JlIG9ubHkgb25lIExVIGNhbiBoYXZlIFdyaXRlQm9vc3RlciBidWZmZXIuDQoNClRoYW5r cywNClN0YW5sZXkNCg0KDQo=