Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2619657pxu; Mon, 7 Dec 2020 10:59:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJx877s1Mykzwm7upW5GzP0QCxvFldKsO48N9Duc1L/eeelnXJrFm+baqexKelLPUqsWng8N X-Received: by 2002:a05:6402:37b:: with SMTP id s27mr16825936edw.266.1607367598603; Mon, 07 Dec 2020 10:59:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607367598; cv=none; d=google.com; s=arc-20160816; b=Q6IEuynj7yYg+CloRc38YKzsNytKBsFxKGLt4BTXDCggz4l2Ltqsc+ItwnrjGz0C5d vG9KWbNBqdGRw04IMvKzPUaqohUStRxh814FBPVv5EH6VeXTTgqSvtnskHilDqEieLY9 KxplRKfx/VOeZWSIQZABD8o+v3MxlbUDsgH3Kriszsq75Ti7XrLloj7EofFRYl5DmEMt fyrU63YD2XcxkOs/oF0SxHSFEy6ySw2UZjFk63J9MzS5i6MbsTY9vGBSdQRb2VXKNbMD i7BLfktMLXdISxfSN/TX1XEBNlkVx66QeRQQBE6nNgljj63PjHH3PuFdi+wlIBmv2aiZ 1PLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:reply-to:from:subject :message-id:dkim-signature; bh=JaQ6d5gPXOrXzFIOSaCCdluJPsexvUeqVt6OvMx+lOI=; b=GlcjTyKAq49UqdBb2dG5ltDyNgoJftr4zs6o3AU1+yavIMlkAMOsBYHjOkJGrM9avv CfRRM575zwHf5Wjqyj1qRqhF323qoI6RtmYlhMR65R/hPlKEBhLm5n6KZykAllrpt6QV 2eGK+4kECfUxpjbOzp1Q5mGBxh7U237gXpvOSSYr4y7ioili+9mjD/oK74sqN4JLfe8W 4ag/H3EzWIq4snQ3hGNf3JFcoiGoBFd50cKmco9PewzweVCI0hyYquhB0Hc+WlZqt1Ff uA5mk+cU7mkfL8NcyXdmyPph7jy9lsHz0Rv2J54LfHgwI2Y9kTWjP3mzpQ08QVq0FrAv cTgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=eeNO1myB; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si4084210ejb.640.2020.12.07.10.59.35; Mon, 07 Dec 2020 10:59:58 -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=pass header.i=@ibm.com header.s=pp1 header.b=eeNO1myB; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726063AbgLGS4L (ORCPT + 99 others); Mon, 7 Dec 2020 13:56:11 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:25388 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725814AbgLGS4L (ORCPT ); Mon, 7 Dec 2020 13:56:11 -0500 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0B7I3Phd152935; Mon, 7 Dec 2020 13:55:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : reply-to : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=JaQ6d5gPXOrXzFIOSaCCdluJPsexvUeqVt6OvMx+lOI=; b=eeNO1myBlzfhZqbX+7+pN2a6d+0lJxfxspsO/E0gbE/Nrx199fBm93xXOLhUc3tThLS4 +QT8O/9KaUOgCx82qrX9ym47TqMH3rB6lGo+d5iof3MECF0bCZ+72ApKB8yQuYBX55HZ cWf4rHGp1ZUb7oVMeNdqKAsvYFwUGhbc5A9yD3cUcz4OOHy6p/1X1sM+Fs9x7LF33RsP pZOrAkWNMYJCsGQSQnuS0XXntx6xCqJSSgROQEQv0vWsq9kUWQNdxkPjSZfomjmKu1Cg 235PTo9BPWU9O7+1AomLzzflinpHL6RRxTHYdrT+FLaPIi15DCOPLDr4uUhz86AqS8J5 yQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 359s1dj1su-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Dec 2020 13:55:06 -0500 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0B7IlZTP136279; Mon, 7 Dec 2020 13:55:05 -0500 Received: from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com [169.55.85.253]) by mx0a-001b2d01.pphosted.com with ESMTP id 359s1dj1s6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Dec 2020 13:55:05 -0500 Received: from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1]) by ppma01wdc.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0B7IS1Ek009022; Mon, 7 Dec 2020 18:55:04 GMT Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by ppma01wdc.us.ibm.com with ESMTP id 3581u8vys3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Dec 2020 18:55:04 +0000 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0B7It3a320119834 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 7 Dec 2020 18:55:03 GMT Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3F24378060; Mon, 7 Dec 2020 18:55:03 +0000 (GMT) Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 95BB07805C; Mon, 7 Dec 2020 18:54:59 +0000 (GMT) Received: from jarvis.int.hansenpartnership.com (unknown [9.85.183.17]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 7 Dec 2020 18:54:59 +0000 (GMT) Message-ID: Subject: Re: [PATCH v13 0/3] scsi: ufs: Add Host Performance Booster Support From: James Bottomley Reply-To: jejb@linux.ibm.com To: Greg KH , Christoph Hellwig Cc: Daejun Park , "avri.altman@wdc.com" , "martin.petersen@oracle.com" , "asutoshd@codeaurora.org" , "beanhuo@micron.com" , "stanley.chu@mediatek.com" , "cang@codeaurora.org" , "bvanassche@acm.org" , "tomas.winkler@intel.com" , ALIM AKHTAR , "gregkh@google.com" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Sang-yoon Oh , Sung-Jun Park , yongmyung lee , Jinyoung CHOI , Adel Choi , BoRam Shin , SEUNGUK SHIN Date: Mon, 07 Dec 2020 10:54:58 -0800 In-Reply-To: References: <2038148563.21604378702426.JavaMail.epsvc@epcpadp3> <20201207180655.GA30657@infradead.org> <20201207182603.GA2499@infradead.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2020-12-07_16:2020-12-04,2020-12-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 mlxlogscore=999 clxscore=1011 suspectscore=0 adultscore=0 malwarescore=0 phishscore=0 spamscore=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012070117 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-12-07 at 19:35 +0100, Greg KH wrote: > On Mon, Dec 07, 2020 at 06:26:03PM +0000, Christoph Hellwig wrote: > > On Mon, Dec 07, 2020 at 07:23:12PM +0100, Greg KH wrote: > > > What "real workload" test can be run on this to help show if it > > > is useful or not? These vendors seem to think it helps for some > > > reason, otherwise they wouldn't have added it to their silicon :) > > > > > > Should they run fio? If so, any hints on a config that would be > > > good to show any performance increases? > > > > A real actual workload that matters. Then again that was Martins > > request to even justify it. I don't think the broken addressing > > that breaks a whole in the SCSI addressing has absolutely not > > business being supported in Linux ever. The vendors should have > > thought about the design before committing transistors to something > > that fundamentally does not make sense. Actually, that's not the way it works: vendors add commands because standards mandate. That's why people who want weird commands go and join standard committees. Unfortunately this means that a lot of the commands the standard mandates end up not being very useful in practice. For instance in SCSI we really only implement a fraction of the commands in the standard. In this case, the industry already tried a very similar approach with GEN 1 hybrid drives and it turned into a complete disaster, which is why the mode became optional in shingle drives and much better modes, which didn't have the huge shared state problem, superseded it. Plus truncating the LBA of a READ 16 to 4 bytes is asking for capacity problems down the line, so even the actual implementation seems to be problematic. All in all, this looks like a short term fix which will go away when the drive capacity improves and thus all the effort changing the driver will eventually be wasted. > So "time to boot an android system with this enabled and disabled" > would be a valid workload, right? I'm guessing that's what the > vendors here actually care about, otherwise there is no real stress- > test on a UFS system that I know of. Um, does it? I don't believe even the UFS people have claimed this. The problem is that HPB creates a shared state between the driver and the device. That shared state has to be populated, which has to happen at start of day, so it's entirely unclear if this is a win or a slow down for boot. James