Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2495643pxj; Mon, 31 May 2021 03:45:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxk+6fxlj80SwRe9XgdApRvNwqRoPrlywJBEABHhTNgM7IsOSFD3ZLIMNcRQ1ETh5OrpcgF X-Received: by 2002:a17:906:a2d0:: with SMTP id by16mr11491132ejb.37.1622457947994; Mon, 31 May 2021 03:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622457947; cv=none; d=google.com; s=arc-20160816; b=d2XQTnhV1DYJJ2C2dGngztrA90PxjUnhubho31IjZYIpzkNKcC4S2mqO1Gyd5Ahw/2 RixvpvgXOaWegYqiNv0jJvaMyKcBdDFT0hBFfcBbnmoenP66F0O5enfTmFYZuWxopRwf 5vayOW7+juIJpwKMeZHxErkh5EyyMyCPZc6QpIYrwjsRq6+zADoA5ah+QAcgdi2FT0f5 ffthnLr3p+L1N0LpWxH98QYk1/xsWvS7tYcZFyo7r+dVVMa8EfNc/QLOISL4DRw5RZVO 5whYWaqZiDBv+Uy7YhnEmE5gCTVHN3/1rLzqbT0p0f4KMOhMy8fNmDTj7xo/VJgswxWO xifQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QJR89/55KXiudMnlzBPyQOfHeATecr68iMPdF7Lg45k=; b=lMAUG9DbkD9nFDN/rNCWGY2/MW0awLPqEhZoUSlNipftT0ogfVWl6SznNsB41b/IOh t4XUa3fUvx1JawJAvPli4Jl7hvfctyFNWgqrWKMbuLpCFoAvcy59rzugRNJdRRpQd2Vd kwx9KA3tvTXBUSjRgMklLgNpS2iFuABxy9yEtKYtdoTaSefoUuI8tTCaZ9d1nKxpS9LB G5O7pNudGCZsT7E7nVrYgaPGQzCvzNPvNWxYMGoEDxUvuPHlyADlmNzG3WSDB+eAZ0fs NDBIr13oOBz5NQbFkRN2QhigWOX5GWUVyXGfSz1rErHLn4l9ejZdUsw5fyNgbXEkEsfM t3RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K1CXkY67; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si13567996edx.449.2021.05.31.03.45.25; Mon, 31 May 2021 03:45:47 -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=@gmail.com header.s=20161025 header.b=K1CXkY67; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231288AbhEaKpz (ORCPT + 99 others); Mon, 31 May 2021 06:45:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231382AbhEaKpG (ORCPT ); Mon, 31 May 2021 06:45:06 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56CA9C061760; Mon, 31 May 2021 03:43:25 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id lz27so15964043ejb.11; Mon, 31 May 2021 03:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QJR89/55KXiudMnlzBPyQOfHeATecr68iMPdF7Lg45k=; b=K1CXkY67aICkk8XQVHakyjkkVxcPKI0OgTVvMhRn0798culLJyaL453W0qgY4Uhk6N vTR7zkfwIqMcFLegI0Yf3/meTKtrU/yDDQFU5qTytk9RaRgqM1Mfa2fQX3glxfM2EOID Y5Gs3ZIcqC/NO72M0Olou7LZ0FQJwekMhY+90afE9JRtLgAPPCpfQZAEVcqZ8tDBtIsN jTXMX9H524WiujyAW4oOXDo0g/c5JOYcsSAZEuPRVIeDGcPqXN2sclbF60Ya4KmDF9m1 Q5bgMdFWTGDSlBFZWNybZB3Iy96ksD9XKpa+auj4FXGP186ORO8gtrqaqXIM5e9pYqZd +Z1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QJR89/55KXiudMnlzBPyQOfHeATecr68iMPdF7Lg45k=; b=SVY/3lNHV6UGLn3DPi0dKIs6RV4OPwINjl19efFUESDSNKLn1L/q4DuR5FuOfJRrIV VvUjqi/CBtRV+HUcfb228Lt7U1jcC38ObDn126Z1Mzqjpb61/I9An/lnut4MvcHz49zE RM/WwvgGLgjA+UUWvsgmWRHtk4tmhhe+XRoJ3BwIRJMQTWTSQ1hcxL2RN7vnRVTaTZw7 TMl5BJPZQDxpnZvSwSUsqBdRsblriI0cYtjZfyH6JZTwqIQamPmx5vGqBrWbLSVeYd6i oAw3TkZdzDyhcA/JQuEQEkgNgblPU38o+svGgI4WV/EoX3/CGMIo/QyTcKlbXpXu5oKp 7zZA== X-Gm-Message-State: AOAM5317d1Irl0CO+Cd1ZZpuc3XyysJBt9gZZlMQH9/yAMmlJ5MD05IX lAAYNuk/CEeuISWpSCM9l20= X-Received: by 2002:a17:906:c0c6:: with SMTP id bn6mr21272637ejb.436.1622457803973; Mon, 31 May 2021 03:43:23 -0700 (PDT) Received: from localhost.localdomain (ip5f5bec5d.dynamic.kabel-deutschland.de. [95.91.236.93]) by smtp.gmail.com with ESMTPSA id dk9sm5741035ejb.91.2021.05.31.03.43.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 May 2021 03:43:23 -0700 (PDT) From: Bean Huo To: 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, cang@codeaurora.org Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] scsi: ufs: Use UPIU query trace in devman_upiu_cmd Date: Mon, 31 May 2021 12:43:08 +0200 Message-Id: <20210531104308.391842-5-huobean@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210531104308.391842-1-huobean@gmail.com> References: <20210531104308.391842-1-huobean@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bean Huo Since devman_upiu_cmd is not COMMAND UPIU, and doesn't have CDB, it is better to use UPIU query trace, which provides more helpful information for issue shooting. Signed-off-by: Bean Huo --- drivers/scsi/ufs/ufshcd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index c84bd8e045f6..deb9e232b349 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -6701,6 +6701,7 @@ static int ufshcd_issue_devman_upiu_cmd(struct ufs_hba *hba, hba->dev_cmd.complete = &wait; + ufshcd_add_query_upiu_trace(hba, UFS_QUERY_SEND, lrbp->ucd_req_ptr); /* Make sure descriptors are ready before ringing the doorbell */ wmb(); 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); -- 2.25.1