Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2029240ybb; Thu, 26 Mar 2020 20:02:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtd1LJeohK71nYVz5541pXQ5qXwJ7SpvA7tvWEBFSEx6ilq2O9vLjiMnUIaT7i8s8/ZlgCw X-Received: by 2002:a05:6830:1408:: with SMTP id v8mr8523512otp.123.1585278158339; Thu, 26 Mar 2020 20:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585278158; cv=none; d=google.com; s=arc-20160816; b=emWL3KFnI+7ySrORROq150SysQZ0KRwMmP/w4GY0X5sngT7vcMoubp4ltiX3gtMjYr 56qddwTwEoXKY5fJB9Og1AXlC/Or43w4aeYlbnkDB9vEEryOp18GT26FzvcAkWr9EZHp kmrdakH0q5d3N7hmLUG7ue20auMCKl4P4tGUoPffnHTBN3Ts4X8mWBXPf13tVaI/Sl0Q yWo1C7M9aMlxRjPaU13Xe/ai5Zzm9UMYfhyiVpkEguJrnEPSvpZwylOv9rfoy4IWSq1Q jxmk+bsoAICqy+xOfN3btvTYTDod8qrGi8CR2y6QUY1JyJinqwKwy+GrBRZOpyGBjJqz SupA== 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=/wkiygzUoOpQBZUiBLbZ9w4yqD+TzEh+mMQY5zK1otU=; b=rwIWwqIt0malsjR683zCylvBa0RFU6R3/1zMyOv89WqACQx4zzobS+AEIOCcGP+TN2 ntaPdS14CsO7qGYUgVTRCkTQz6sMkz9CLstCZmXaj/3D07Wdw8BXa4x9IKK1+RtiCukY sQFxSWbru9YIA+tBc5CmiD8bRGaE7FUbnaxxPfJ+DYEEGg17LDbWZRzWb0cyr5KswMmY gKxGJKFRSLFVhSP3lz8ufkLFCXkHIGx6yl4Fr3nQv3VZk1PNMoxRxpbb6P/A1ASy/TiO 819jC96JnC9F/+Kc+iHlgn0jr0mJTAjRjmTZkLog42Ok3RiaMsIb6yuGXjR91Wi2tEYx 3PoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=sIJbJpgh; 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 e11si1237269ooq.30.2020.03.26.20.02.26; Thu, 26 Mar 2020 20:02:38 -0700 (PDT) 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-2020-01-29 header.b=sIJbJpgh; 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 S1727770AbgC0DAy (ORCPT + 99 others); Thu, 26 Mar 2020 23:00:54 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:58284 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbgC0DAx (ORCPT ); Thu, 26 Mar 2020 23:00:53 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02R2rHX1004219; Fri, 27 Mar 2020 03:00:28 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-2020-01-29; bh=/wkiygzUoOpQBZUiBLbZ9w4yqD+TzEh+mMQY5zK1otU=; b=sIJbJpghTsia/bckgGbtItBDEBVkW9TRgAuZC7bFdltY1zbJLzeEiQOJv2dSHv6/jwSb fCholSEZT/lkSRaaQ8cannQizUMbBtamdhViGb0E98zl7rcZpRZkc8RT8pUvTsPXU2dE 8ycZ8S0GlFp0zq2Y8Yc0BTwJT3Mr7+wbyhO2zP03CvwfZsuP4KRNC1WC/QWzsWH/F5g+ 2eCJkjtJVb38yXu/ZySfDEJAf3+3tC9yTDgnut5RkiOpGRj6PCRBdUPVEgqIW/QY/3L4 7lSSCEjBybBH11c2danVRGFX9BBu/K8N0jQuv7b+YD2VSNdbi3h/nskmNspjnCZzDBpP Ow== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 3014598rng-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Mar 2020 03:00:27 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02R2qrxu127717; Fri, 27 Mar 2020 02:58:27 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 2yxw4uvbn1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Mar 2020 02:58:27 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 02R2wOrN014275; Fri, 27 Mar 2020 02:58:24 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 26 Mar 2020 19:58:24 -0700 To: Can Guo Cc: asutoshd@codeaurora.org, nguyenb@codeaurora.org, hongwus@codeaurora.org, rnayak@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com, Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Matthias Brugger , Stanley Chu , Bean Huo , Bart Van Assche , Venkat Gopalakrishnan , Tomas Winkler , Bjorn Andersson , linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-mediatek@lists.infradead.org (moderated list:ARM/Mediatek SoC support) Subject: Re: [PATCH v6 2/2] scsi: ufs: Do not rely on prefetched data From: "Martin K. Petersen" Organization: Oracle Corporation References: <1585214742-5466-1-git-send-email-cang@codeaurora.org> <1585214742-5466-3-git-send-email-cang@codeaurora.org> Date: Thu, 26 Mar 2020 22:58:19 -0400 In-Reply-To: <1585214742-5466-3-git-send-email-cang@codeaurora.org> (Can Guo's message of "Thu, 26 Mar 2020 02:25:41 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9572 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 spamscore=0 mlxlogscore=999 adultscore=0 phishscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003270023 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9572 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 phishscore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 impostorscore=0 mlxscore=0 spamscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003270023 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Can, > We were setting bActiveICCLevel attribute for UFS device only once but > type of this attribute has changed from persistent to volatile since > UFS device specification v2.1. This attribute is set to the default > value after power cycle or hardware reset event. It isn't safe to rely > on prefetched data (only used for bActiveICCLevel attribute > now). Hence this change removes the code related to data prefetching > and set this parameter on every attempt to probe the UFS device. Applied patch #2 to 5.7/scsi-queue. Awaiting Avri's feedback on patch #1. Thanks! -- Martin K. Petersen Oracle Linux Engineering