Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp419885imu; Thu, 3 Jan 2019 23:45:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN7L7X6GDD5Fn7DwWbMOvu603UIXIhslDPm2Stjliu//snbKaCaSZAbo/CiwfbVMrkgZC7uB X-Received: by 2002:a17:902:541:: with SMTP id 59mr50770846plf.88.1546587938408; Thu, 03 Jan 2019 23:45:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546587938; cv=none; d=google.com; s=arc-20160816; b=LPX8vMTx/UMIHOXUhmFz9XWklk00f6Youq6eZtvey4ka6nCvMS3Wu/DsXfnNUGRWtL E+GdtzQ6bYY+cOEzpq1wYWb7kOJ2uI/EpFJdhhy5Y/eU2FZMis27SbXDVwIKMcjS/Mp8 rCiNqTPigWItseeGWzdKSiAFHeKbjf8XvAkmMQYi1W49+dpFTyctNGB++7mEeTvHM9Dt jqW6UhdU77UT870J7DJzrKC73NgcKcP61e96cagqkuxlrzEi3qpiJqYvWHY7ESFMjHX7 rMYTj9dfQYoRNRrkR69nxUzrojbIRUEkhHIFxqdF7zZ+C+xdfFaIlDGirjq2R+Xu2X/u KS6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:from:subject:cc:to :dkim-signature; bh=0mQERALhTrEsrDYr9dcg0ectth3nEciBiWRbWNi54Fc=; b=ZWewCPjZw37crWt+69iQRYX0Rd5iyIQxK61rDtQJcgnK9PCPxic40WLOek16ivFcdQ 3/21hIhTT9wOppZKx9CBaKeO8+mj/WBNofsTtkpi9GcTZBKNkNnfvecc0Ley5sovGzA6 OqN3hbgRZQFmfGvhMPiYD86S1oddLhY7GJhkuATh2OD3fsQPoPqMqyYbdZWav/ReF43T ztBSdXDEcTp+I1xrRfrOIyPlAz8yRaSzEEBl6pIxWuT/057vJZaiXm0YzvfIuJqe+ldn 5ZYU8NLcYHFtbS4Ewbw2dr0p8DOMbPZRWTi9GiMg7nTK5oCERqqik8p5IGWqVzRlO5Se 5oTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=EXQysMYJ; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 23si6064193pfu.2.2019.01.03.23.45.23; Thu, 03 Jan 2019 23:45:38 -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=@oracle.com header.s=corp-2018-07-02 header.b=EXQysMYJ; 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=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726102AbfADE6C (ORCPT + 99 others); Thu, 3 Jan 2019 23:58:02 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:40618 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbfADE6C (ORCPT ); Thu, 3 Jan 2019 23:58:02 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x044sRDu077447; Fri, 4 Jan 2019 04:57:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2018-07-02; bh=0mQERALhTrEsrDYr9dcg0ectth3nEciBiWRbWNi54Fc=; b=EXQysMYJhQ48JjOnNMZl73p5NTdhOydgjRzoafRktdtPNm2blbW4VDp2lmw0zhTWY5nx xvHIq4QlJELIltBF+20OGhaHxpcFCR1WjD06K6VJf/vWxWmSttvFO8W16lj7QOsfJ3XK d5ZEL6kx5vSjiLAIKfobhJTD3wTF0Dhcc8nXVfdT8XvUqLcvJ1C4YwiBjfRxagqGuFrq VUIG6klEnumxvPg5ale8+itIM3gZJdVSn19Vb07RnctdFOkgpgWsUJTwSFHBAVmFT1E2 Vvu3S4OWeBWRpm6T6+vsy993TYG0aaXH8OSBT7X8ykasdjMJ1TnpE2axQu6+ePX5VmvE AQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2pp1jra9wr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 04 Jan 2019 04:57:46 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x044vjl6032351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 4 Jan 2019 04:57:45 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x044vf8i030947; Fri, 4 Jan 2019 04:57:41 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 03 Jan 2019 20:57:41 -0800 To: "Ewan D. Milne" Cc: dgilbert@interlog.com, Randall Huang , Christoph Hellwig , huangrandall@google.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: associate bio write hint with WRITE CDB From: "Martin K. Petersen" Organization: Oracle Corporation References: <20181226041504.66283-1-huangrandall@google.com> <20190103075133.GA5141@infradead.org> <20190103094755.GA96532@google.com> <6152b478ea77dacf57eef6f758ba795f756cd3da.camel@redhat.com> Date: Thu, 03 Jan 2019 23:57:38 -0500 In-Reply-To: <6152b478ea77dacf57eef6f758ba795f756cd3da.camel@redhat.com> (Ewan D. Milne's message of "Thu, 03 Jan 2019 16:40:41 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9125 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=677 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901040043 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ewan, > SBC-5 says that support for the grouping function is indicated by the > GROUP_SUP bit in the Extended Inquiry VPD page (86h). I'm not sure > how many devices actually support that page though. Probably most > don't. Several devices support it, albeit for various different purposes. It's one of these wonderful features whose interpretation was left outside the scope of the spec for a long time. So even though we absolutely and positively need to make setting GROUP NUMBER conditional on GROUP_SUP being reported, we also need additional information from the storage about how the field should be interpreted. The official way to report hinting is for the device to implement the IO Advice Hints Grouping mode page. I wrote some code to support that but no vendors that I know of ended up actually shipping an implementation. A few implemented my older I/O class proposal but didn't ship that either despite really convincing performance results. If Randall has access to a device which implements hinting, I'd love to know more. -- Martin K. Petersen Oracle Linux Engineering