Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1634580pxb; Thu, 4 Mar 2021 17:04:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKewTB+2U28UpJVn1M1XL1SbHolsWMarIL3Q91j1RC0Od+PE0isZTz/FIE9yZEa+p3fzWg X-Received: by 2002:a02:910d:: with SMTP id a13mr7072372jag.18.1614906287309; Thu, 04 Mar 2021 17:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614906287; cv=none; d=google.com; s=arc-20160816; b=K0iCoZkWsS4KTueYhXAPzFVqTu9oSFfp6q4ENqav+g7jBodnh33FKi9QhohVtecEKS AQtOfjs1QIK1tZlw6Ip8MYf0qVo2ux4IRGMZ8vDg2j+8WOq9vhF7rnvLapgrdXJJYS0E 2WWE2OodZncXYYvF1iYgzgVquURpqgE76vC+/vWsndOsU7P1LiIKzR4Ofp9WBwrx2LQY 1LvDZZosJFmN21jDICr+nINR2kXwbj/hCCmCbrRP3MkT/QTLBW+2AdgC9bj8cHBn4e10 JUEdWVX+Uc+064fZbbnfF9WYxYQg880qtN+uFFOfYLO4BoCdehoJGTlc25EZq201908A gviw== 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=N+pGuJiY61brma0e6fQCuI3hojqJVS9Ib6piupBN2j8=; b=ftktxQgH58tdobdlXrMq7XXmISOWSH5k6mkC0cJGHbEYbolIixdAeukMokxLXFbdfX W1DniNwzw4W9Az0U/XRLxzYCzc7Kh29TbHm1VBhvQ0miTQs2RojGKhk6NzSdzAb3pnaG hXiZXJKNOIs3Csw7JqOzVPF1ZUd67yyp0J3AZNeOCAv7fMjuaI93Gk55PqPC09J0raUZ iF4C0dqA2qKCqfOLF6Ot/WPMeDp7fswvDMLYtVaFM5rsoCCns99RWWCE6MQT6hKULoRC vw0GtBaR5i+t7ZYkYsCtQxonX7ZDQ9fO9P9AYmGjSd9PYcNyN4tOyKS2tT/z4USzTc9y tNEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=sUMlUa26; 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 i24si1000208jan.109.2021.03.04.17.04.33; Thu, 04 Mar 2021 17:04:47 -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=sUMlUa26; 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 S230427AbhCEAYq (ORCPT + 99 others); Thu, 4 Mar 2021 19:24:46 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:49647 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbhCEAYq (ORCPT ); Thu, 4 Mar 2021 19:24:46 -0500 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20210305002444epoutp0293debfb7d3780745087ec56d504bcfbc~pSobRvaiO1146111461epoutp02a for ; Fri, 5 Mar 2021 00:24:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20210305002444epoutp0293debfb7d3780745087ec56d504bcfbc~pSobRvaiO1146111461epoutp02a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1614903884; bh=N+pGuJiY61brma0e6fQCuI3hojqJVS9Ib6piupBN2j8=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=sUMlUa26X34cGlXAVk4CmiOKCXf1NvkSParZ9C2h/meNhF0gL+FX/5YlH9xysbtD/ BUW9x93iPpAgXNM0FqTjZem0Q5b7oTQNPSLf9XEFrEWRXrCRmAGS1VyeeZEC9ZQjIR 567t45a2wYu7KfKOYdo+CnqaG19+dIguQsr+S0+8= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20210305002442epcas2p111bce47a4fed2ace73926512c3627516~pSoZxueUL1084710847epcas2p1I; Fri, 5 Mar 2021 00:24:42 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.40.181]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4Ds7lr5lBsz4x9Q6; Fri, 5 Mar 2021 00:24:40 +0000 (GMT) X-AuditID: b6c32a47-b81ff7000000148e-00-60417a48b7f8 Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id A7.CE.05262.84A71406; Fri, 5 Mar 2021 09:24:40 +0900 (KST) Mime-Version: 1.0 Subject: RE: Re: [PATCH v26 4/4] scsi: ufs: Add HPB 2.0 support Reply-To: daejun7.park@samsung.com Sender: Daejun Park From: Daejun Park To: Bean Huo , Daejun Park , Greg KH , "avri.altman@wdc.com" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "asutoshd@codeaurora.org" , "stanley.chu@mediatek.com" , "cang@codeaurora.org" , "bvanassche@acm.org" , ALIM AKHTAR CC: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , JinHwan Park , Javier Gonzalez , SEUNGUK SHIN , Sung-Jun Park , Jinyoung CHOI , BoRam Shin X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <2f1b8ff5aec540ef731bf5b2c3691dd23ea2e6b0.camel@gmail.com> 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: <20210305002440epcms2p2205c56a96f6f8426fc1cb2d0cb7c16a3@epcms2p2> Date: Fri, 05 Mar 2021 09:24:40 +0900 X-CMS-MailID: 20210305002440epcms2p2205c56a96f6f8426fc1cb2d0cb7c16a3 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: H4sIAAAAAAAAA+NgFrrPJsWRmVeSWpSXmKPExsWy7bCmua5HlWOCQcs7dYsH87axWextO8Fu 8fLnVTaLw7ffsVtM+/CT2eLT+mWsFi8PaVqsehBu0bx4PZvFnLMNTBa9/VvZLB7f+cxusejG NiaL/n/tLBaXd81hs+i+voPNYvnxf0wWt7dwWSzdepPRonP6GhYHEY/LV7w9Lvf1MnnsnHWX 3WPCogOMHvvnrmH3aDm5n8Xj49NbLB59W1YxenzeJOfRfqCbKYArKscmIzUxJbVIITUvOT8l My/dVsk7ON453tTMwFDX0NLCXEkhLzE31VbJxSdA1y0zB+g5JYWyxJxSoFBAYnGxkr6dTVF+ aUmqQkZ+cYmtUmpBSk6BoWGBXnFibnFpXrpecn6ulaGBgZEpUGVCTsa8S7vZCp7yVZycO5e9 gfEVZxcjJ4eEgInEggWTWboYuTiEBHYwSqxsv8nWxcjBwSsgKPF3hzBIjbCAvcTL96uYQGwh ASWJ9RdnsUPE9SRuPVzDCGKzCehITD9xnx1kjojAL2aJXQ+XM4E4zAK/mSQWn/zPBrGNV2JG +1MWCFtaYvvyrWDdnALuElvbt0LFNSR+LOtlhrBFJW6ufssOY78/Np8RwhaRaL13FqpGUOLB z91QcUmJY7s/MEHY9RJb7/xiBDlCQqCHUeLwzlusEAl9iWsdG8GW8Qr4Slza8xxsAYuAqsSM W0+hlrlI/N/ZDlbPLCAvsf3tHGZQqDALaEqs36UPYkoIKEscucUC81bDxt/s6GxmAT6JjsN/ 4eI75j2BOk1NYt3P9UwTGJVnIYJ6FpJdsxB2LWBkXsUollpQnJueWmxUYIwcu5sYwSldy30H 44y3H/QOMTJxMB5ilOBgVhLhFX9pmyDEm5JYWZValB9fVJqTWnyI0RToy4nMUqLJ+cCsklcS b2hqZGZmYGlqYWpmZKEkzlts8CBeSCA9sSQ1OzW1ILUIpo+Jg1Oqgcm9rWVPScvzX4G3RCb2 GnP0TZvwe9OkjtgL9e3HBTfWysj7skSvSlevuVV88TyXnWX61rVW5vsbX4btVDj6a++xM1f+ v8x+klTL/PnP7k0lWdNWeSq/ellnsMUm0YJX+KYW1+eWxL2Su7onztK+1p8UsE+nQS+Q06Wn 0UXKTUAhKM521cvIhHZDbdun9xmWbvz38IfmW8WSNrmwgANWEY/MyqbdPu47oU30pr8dM6/e B8cv2/fb3pt8S8+7Vu2u2Rvmx5Yv3yQX75f/f35P1ucjT9ltNJb2WPPKxF26Xao96b5daq0B x32p++pHN85snew0a23E3h/zX5u+di+cnbT9a2zMppwpSs51Vzcz1SqxFGckGmoxFxUnAgAs UfuzcgQAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210303062633epcms2p252227acd30ad15c1ca821d7e3f547b9e References: <2f1b8ff5aec540ef731bf5b2c3691dd23ea2e6b0.camel@gmail.com> <20210303062633epcms2p252227acd30ad15c1ca821d7e3f547b9e@epcms2p2> <20210303062926epcms2p6aa6737e5ed3916eed9ab80011aad3d83@epcms2p6> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bean, > > + > > +static inline void ufshpb_put_pre_req(struct ufshpb_lu *hpb, > > + struct ufshpb_req *pre_req) > > +{ > > + pre_req->req = NULL; > > + pre_req->bio = NULL; > > + list_add_tail(&pre_req->list_req, &hpb->lh_pre_req_free); > > + hpb->num_inflight_pre_req--; > > +} > > + > > +static void ufshpb_pre_req_compl_fn(struct request *req, > > blk_status_t error) > > +{ > > + struct ufshpb_req *pre_req = (struct ufshpb_req *)req- > > >end_io_data; > > + struct ufshpb_lu *hpb = pre_req->hpb; > > + unsigned long flags; > > + struct scsi_sense_hdr sshdr; > > + > > + if (error) { > > + dev_err(&hpb->sdev_ufs_lu->sdev_dev, "block status > > %d", error); > > + scsi_normalize_sense(pre_req->sense, > > SCSI_SENSE_BUFFERSIZE, > > + &sshdr); > > + dev_err(&hpb->sdev_ufs_lu->sdev_dev, > > + "code %x sense_key %x asc %x ascq %x", > > + sshdr.response_code, > > + sshdr.sense_key, sshdr.asc, sshdr.ascq); > > + dev_err(&hpb->sdev_ufs_lu->sdev_dev, > > + "byte4 %x byte5 %x byte6 %x additional_len > > %x", > > + sshdr.byte4, sshdr.byte5, > > + sshdr.byte6, sshdr.additional_length); > > + } > > > How can you print out sense_key and sense code here? sense code will > not be copied to pre_req->sense. you should directly use > scsi_request->sense or let pre_req->sense point to scsi_request->sense. OK, I will fix it. > You update the new version patch so quickly. In another word, I am > wondering if you tested your patch before submitting? I will check more carefully for the next patch. Thanks, Daejun