Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp162053pxb; Wed, 24 Feb 2021 22:06:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfctNx/eCLFniqdTdLJoui/nqVQKiBxQjaZZTd1j+5dySxuhJg/bu8q2MsjM4Pi9PwHvWh X-Received: by 2002:aa7:da19:: with SMTP id r25mr1323362eds.367.1614233172829; Wed, 24 Feb 2021 22:06:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614233172; cv=none; d=google.com; s=arc-20160816; b=B2w0GWn5hHTA7RjhQz/PjvZ6Nvw074hWMWPMs70mU8dCLwZlTN6X2I0nocNPBEZLkg 50PfueY6YYp7JxbZqMwnTe9chAGjhC2k6K12NtGJYPPCh4S1OvtnyvI64ekp3XwQ6HGo SEbob6ky6ycna5RfgFDbJW/0mTBCMFKVqxV2NpfzBELplPBAwUrJbvDPnvgFnqJKpI5j GFizF4kmtg/M9gIDBzvayfJNjjwF3QGTCPUsI4zjRcdV2Rs5ias9+F5E4BifAD3QeLh0 U5t5GZ4J8rl55aVAYJJ8M31XmElk8gtULLCjaCvLgEBm07Ap2iBIKNPRjmfX5yhlWjnO DYmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:in-reply-to:cc:to:from :sender:reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=e3AFiROqVU3nps63r1WGPGZrx4KQX0tP1d5/Mjlhtv4=; b=y1zRs40CBpDYX1O4deX/QsPfz2CTcJg8YXOZ72PfwWVTKAyWl4RRKpTKcCa0UzdNNC pX9X0u5XDVoxr+bVpF71kfRjdaeKnyOfpFkTNV8CzNvm4EKptjCtIkTUvVDyULn9fEin 9inKOKX84BgJKVKZyv383tQeG/kFl2oYS4/KR0+QYwsagYFrM0y0k7/mJJE2UTC6VUpF tjID2KwmSG7gecR0n8sKImcNBGVaLjCk+qaChz2ta+qgQgcIbfDIrhTsv7cRgHjZcE70 MNapwT2vHL3rxCK0iV9Vdb3vRCflN8Ecb0GkQkZV9722u0p7dlQCWKw8iwvuF3IHK+CI XxQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=gomI+6kE; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si1676760ejc.243.2021.02.24.22.05.44; Wed, 24 Feb 2021 22:06:12 -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=@samsung.com header.s=mail20170921 header.b=gomI+6kE; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236240AbhBYCnf (ORCPT + 99 others); Wed, 24 Feb 2021 21:43:35 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:17942 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234384AbhBYCnd (ORCPT ); Wed, 24 Feb 2021 21:43:33 -0500 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20210225024250epoutp035e6eb0b40dda74e8e3585e0765119e21~m3WuVamFT0326303263epoutp03S for ; Thu, 25 Feb 2021 02:42:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20210225024250epoutp035e6eb0b40dda74e8e3585e0765119e21~m3WuVamFT0326303263epoutp03S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1614220970; bh=e3AFiROqVU3nps63r1WGPGZrx4KQX0tP1d5/Mjlhtv4=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=gomI+6kE5sXoZ5nvYy7h/1gP2Du2oVahVSVhu4l6gQcV4uU2Xahgxov98WxduZrG7 IIrL38fQ9ZmUyszMC1iZwxg0jsNqw+eIm35RSnEVwaIvqek87hiEgwDuE2ec1RgxDW tMhqsP/iYdelN4aJ5lC6m00NG50Gt9KMI8qTDtyE= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20210225024249epcas2p2c3de1f0a65f69abff59fb9a9ee7c0a3d~m3WtafWIE1343213432epcas2p2J; Thu, 25 Feb 2021 02:42:49 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.183]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4DmHBv3TGFz4x9Q3; Thu, 25 Feb 2021 02:42:47 +0000 (GMT) X-AuditID: b6c32a46-1d9ff7000000dbf8-05-60370ea77ba9 Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 76.A2.56312.7AE07306; Thu, 25 Feb 2021 11:42:47 +0900 (KST) Mime-Version: 1.0 Subject: RE: RE: RE: [PATCH v22 4/4] scsi: ufs: Add HPB 2.0 support Reply-To: daejun7.park@samsung.com Sender: Daejun Park From: Daejun Park To: Avri Altman , Daejun Park , Greg KH , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "asutoshd@codeaurora.org" , "stanley.chu@mediatek.com" , "cang@codeaurora.org" , "bvanassche@acm.org" , "huobean@gmail.com" , ALIM AKHTAR , Javier Gonzalez CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , JinHwan Park , SEUNGUK SHIN , Sung-Jun Park , yongmyung lee , Jinyoung CHOI , BoRam Shin X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20210225024246epcms2p76340994168c3985fcb55106ba54463ef@epcms2p7> Date: Thu, 25 Feb 2021 11:42:46 +0900 X-CMS-MailID: 20210225024246epcms2p76340994168c3985fcb55106ba54463ef Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL X-CPGSPASS: Y X-CPGSPASS: Y CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA12TfUxbVRjGc+4tvZdKyaXAODA3ySXiQIGWrOxMQSVbyFVkIVEwzizlBi6F WNraW1RM5qqwgSAf+1CwMgZljMnAjo9CByKEbgzCEDecCBvYidtkhq2OP+RjNFIKbvG/33nO e87zvOeDxCWzwiAyW63ndGpWRQtFgk5bmDyi0XtXmrTCGIjsNZ1C1HtkiEBzS9eFyHbjPoG+ cizh6KH5jAeaGwhDTfa3UX69WYiqRw0YKi23CNHszQUCmX7txFC5s1CAxrurhahkwipEjZed GLrRIUINlkmAPq9sFiBTXY/gVX9m/OdEZrysFGMuGKcJpsLUD5i+k80EUzDcJ2D+vj0lYMo6 mgCz0LadKewvwZJF+1WxWRybwemCOXW6JiNbrYyjE99U7FHIY6SyCNlutIsOVrM5XBy9943k iIRs1VqHdPAHrCp3TUpmeZ6OejlWp8nVc8FZGl4fR3PaDJVWJtNG8mwOn6tWRqZrcl6USaXR 8rXKNFVWU18VoT0h+mi6ZQIzgAaiGHiSkNoJnfdGsGIgIiWUFUBr61mPYkCSYsoHrlp9XTW+ 1B5Ye+20h4slFA3NV42EW4+EU7eagYuF1Auwcug3wrWPH3VWAK8uXxO6Bji1jMGhWQdwu4lh VeFtgZu3wq5GC3CZeVIHYNHMO255B1w8U4q72R9OnpsnNvnB4KmNbfzg4ZnRjRofaF/q2dAD 4WCPA3PzIWi5uQxcGSD1BYC2C1Me7oko+EtR63oGMZUEv3WeXmcB9Syc++HYRs1eeKXg0roB Tj0Du+arcVdOnAqD5u4oF0IqBF6cEmx2ZWhdIf7POOUNi2yr/+nWmj82ooXC75bMWAUIMT4+ aeMTXsbHXrUAbwJbOC2fo+T4aG30k5fbBtZfe3iCFZyYd0QOAIwEAwCSOO0nbnfK0yTiDDbv Y06nUehyVRw/AORrXR7Fg/zTNWvfRa1XyOTRMTHS3XIkj4lGdICYl9oVEkrJ6rn3OE7L6TbX YaRnkAF7a6WGSL60Kjl6cIzKJj47NLLSMjFcuC9/Acnqah6NpIadSyqQfN2qT6kLTL5F/tX3 z4FH5+O9PAd9q8ZTFue7e7/3spps36gdEUcM7560zw33/0iewohti1cUi2o/dU+I/EtlVX29 fSTgNWem6d5gYMDv4V21+q1Td/bnye6UmRMrc2fv/vnUtt6S85PvpyoP17fsPOY181xAvHOs /v4rjWSxoyNRa9nXcDHl+odM+fRPbYlbSkouWzx0oz7euoQHsbZM0Y72fAPotmsjXgplB0KT fO7mPd3ySQjs0nfmB7HaMsXDnNe3y4fSC03OhrHsoYzU50eLLfGZdE97e9Snxw/SAj6LlYXj Op79F3Z4SfZ2BAAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210222092907epcms2p307f3c4116349ebde6eed05c767287449 References: <20210222092957epcms2p728b0c563f3cfbecbf8692d7e86f9afed@epcms2p7> <20210222092907epcms2p307f3c4116349ebde6eed05c767287449@epcms2p3> <20210222093150epcms2p155352e2255e6bfd8f8d71c737ed05e76@epcms2p1> <20210223235458epcms2p666e7cca021e09c715ca3b11ada39ebeb@epcms2p6> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > @@ -2656,7 +2656,12 @@ static int ufshcd_queuecommand(struct > > > Scsi_Host > > > > > *host, struct scsi_cmnd *cmd) > > > > > > > > > > lrbp->req_abort_skip = false; > > > > > > > > > > - ufshpb_prep(hba, lrbp); > > > > > + err = ufshpb_prep(hba, lrbp); > > > > > + if (err == -EAGAIN) { > > > > > + lrbp->cmd = NULL; > > > > > + ufshcd_release(hba); > > > > > + goto out; > > > > > + } > > > > Did I miss-read it, or are you bailing out of wb failed e.g. because no tag is > > > available? > > > > Why not continue with read10? > > > > > > We try to sending HPB read several times within the requeue_timeout_ms. > > > Because it strategy has more benefit for overall performance in this > > > situation that many requests are queueing. > > This extra logic, IMO, should be optional. Default none. > > And yes, in this case requeue_timeout should be a parameter for each OEM to > > scale. > And either way, hpb internal flows should not cause dumping the command. > Worse case - continue as READ10 However, this can improve the overall performance and should be used carefully. The problem can be solved by setting the default timeout ms to 0. And OEM can change it. Thanks, Daejun