Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp754497pxj; Thu, 3 Jun 2021 19:38:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySgjiemwA0uhJFLzOHhdjjb4k/VYgp7T1UpJEIDrzfW6xyzBnGgEHWHBk6Sc5wQEdBNWOK X-Received: by 2002:a17:906:5299:: with SMTP id c25mr2025903ejm.85.1622774313710; Thu, 03 Jun 2021 19:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622774313; cv=none; d=google.com; s=arc-20160816; b=n7mBf0zN6r5DBkI7cSbyGsHYdPgI04g/z31LVUiTAeLPOdOMuP4ijf+YbBT5ZvTYBK og3M1wLjJ4JlujyP9UvhlIq24KMBGOnh3QhuKczCMUWuZRYmEhhezZZc67oCMmhFCsqD mkIPlNdEj8aLWkFMqhJESGSTQeOaZ241L1/AVyU3a2Kf83sYs2kzqdz4bdkFjmRfo1Cq Q7vLlu/du+hb/58HPY2gWnXAs5oykBzuIyYaqC9j9Bghtly3Ej2XYcv1xr5M6MFHS2i1 9vBf4oNCoQEXjBtZN3rjKibT2UGXSHALRn8GFaGag2Ib7N2MpJVfHum2DeaVJB0EKLj0 TISg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=HVjZEFAyNUQ76bULMiLZjA8A7Oes5HxeX8UT2CHU+AI=; b=y/qSpvjvKEgrbd0OmLyoggGZsSlPxr6EuLVODMyuzUYWKVzC36PxPtMeV/DbgzLP8E xMOkD8XtNhSAOKkN+9fRJ1UgGKDiPfpLdZsJFKrk9jnZ4AgcfERElBeE7Ibs2nImXrDk l+q16P9//Y7smZrYDP2v/hxkku1cqDTetrbN/xeNxGhHRCMgdw+LOEZzL11oUQyrAgF6 I8TV/zL2CakWY8D1m4XL724egz3bMK4Y1VltLrQbUatFnNmsIQemMfRBdf+xXCKCUldB hnWgkeFsfPubjiL8e5ndcAiJuFQkZNJ866CudvSJ4z6jvFaycMoF/S73BsWoiLd08ajU pL6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=oqob2V2Q; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si1319253ejo.589.2021.06.03.19.38.11; Thu, 03 Jun 2021 19:38:33 -0700 (PDT) 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=@mg.codeaurora.org header.s=smtp header.b=oqob2V2Q; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230084AbhFDCir (ORCPT + 99 others); Thu, 3 Jun 2021 22:38:47 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:20642 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbhFDCiq (ORCPT ); Thu, 3 Jun 2021 22:38:46 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1622774221; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=HVjZEFAyNUQ76bULMiLZjA8A7Oes5HxeX8UT2CHU+AI=; b=oqob2V2QIbnpT/Qo5ctmtcQewXK9lhb42bIHl8TIp8vsLZO4HMUXb+zPd303HWK/e43VxXva v0Q0x16sqF6+KQo4J8Hvvr79QwJm2O+/3ppRTEZxBwpzZ3dYLaQp5LATnzy4p8zzUn8o3Uus CW22CN8cqNJrPh7vFPUR3zvhfGU= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 60b991ccf726fa418820e8d3 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 04 Jun 2021 02:37:00 GMT Sender: cang=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 0FBAFC43460; Fri, 4 Jun 2021 02:37:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: cang) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5772AC433F1; Fri, 4 Jun 2021 02:36:59 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 04 Jun 2021 10:36:59 +0800 From: Can Guo To: Bean Huo Cc: alim.akhtar@samsung.com, avri.altman@wdc.com, asutoshd@codeaurora.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, bvanassche@acm.org, tomas.winkler@intel.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/4] scsi: ufs: Use UPIU query trace in devman_upiu_cmd In-Reply-To: References: <20210531104308.391842-1-huobean@gmail.com> <20210531104308.391842-5-huobean@gmail.com> <7689e5022787716596534e9123fdc295@codeaurora.org> Message-ID: <9526e2c0646f8755756be5b712e5bb2a@codeaurora.org> X-Sender: cang@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-06-03 05:05, Bean Huo wrote: > On Wed, 2021-06-02 at 10:29 +0800, Can Guo wrote: >> > spin_lock_irqsave(hba->host->host_lock, flags); >> > @@ -6732,6 +6733,8 @@ static int >> > ufshcd_issue_devman_upiu_cmd(struct >> > ufs_hba *hba, >> > err = -EINVAL; >> > } >> > } >> > + ufshcd_add_query_upiu_trace(hba, err ? UFS_QUERY_ERR : >> > UFS_QUERY_COMP, >> > + (struct utp_upiu_req *)lrbp- >> > >ucd_rsp_ptr); >> > out: >> > blk_put_request(req); >> >> >> What about ufshcd_exec_dev_cmd()? >> > > > Can, > thanks for your veiew. > yes, ufshcd_exec_dev_cmd() is only to send > UPIU command frame, and doesn't include CDB. It already uses > ufshcd_add_query_upiu_trace() to trace UPIU frame. > Oh, sorry, I missed it. Reviewed-by: Can Guo > Kind regards, > Bean > >> Thanks, >> >> Can Guo.