Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp230650lqb; Thu, 23 May 2024 16:57:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2uQRNCvEGksaGC/C0SWtxu9aUPRp58nZJESnhNrCLYQ89QeMR1KR8bcdTf8OgOyY3bNgX0Jh1kbJizBvckxTSD+thUDvu4JOIGe2UzA== X-Google-Smtp-Source: AGHT+IGMSYsVJlBjsM4dlzarC7FPS7wxCQOXvqBDFq3IWzJaCeMvP1xP/Bie5I/Kcw5GCDsD32Z+ X-Received: by 2002:a05:6870:1716:b0:245:4e2d:5d8e with SMTP id 586e51a60fabf-24ca116f89fmr928216fac.6.1716508636503; Thu, 23 May 2024 16:57:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716508636; cv=pass; d=google.com; s=arc-20160816; b=lYTwMs+qP6okjBUOAYHdQId2veYi/iZ+ZJ/pUG3bDtganOOtLMRqx4jlE4sBS6MzQE 15veRRF1Nx3DMH546EAzY20id8ndxNm3ZL3yu7USekfNgaSI9np3DWL/hUip/2vrVh18 xK7T0w+AaSBEGTEgWp2SVteNQOnNi4BAmObO5Ml8BlNTqeUhdniv8NXKiJIDPsU/xwOC F2i941x8SPVKtstkGZjid2rHABx0rlSPQW1xTtmJEh9k5byeNyRAnTPaipKcXe7/Jzfh rqWV2wQVAxRVD/aKFCpjAyfyCjbmQeTkLoJjjXbAIVvO8VnkGxkMsd/yjL6M9fyfQwlt cUhw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=rwOlfClFjOkWWM2PUxxGFjT0Rypn1JfWpa8Qo6yo6KU=; fh=Z5kJ0A0VpjYjPiDX1K+wJsRAeS+jW2PvkUk8eVdioDk=; b=SrBKiyjEEvkQzWWH2jNPb9TthdYxk448FJ6Ih8nuQCMVNigUkKLq/sCKmdqTPOMwJD DjolfJvx7e+fFD2QQ3s8DNKKGH2mUf8EYqDpVeCVnxLX04yIkq8syMtD0MYhMOKvLxHN UrBV418rYrkO/LIS06lQAMLToaHQmU88GzphPniOsRrjcipC1K4tMenIfeHVXVJ8wFgk pdUSUPAbazWO3uIaNyvzm+JwO1kdjqXLmRSFqRExQCTk4Q31nx+5AEgR9in/ttLT/NUj v7syvF7U6tIbILkodXVqP8vdYGT786O2/ll2zzprJnpV6yerWdPn4pKtSmLNpUYOE3vo wneA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=adC2gtcw; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-188128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68221b732c1si200970a12.123.2024.05.23.16.57.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 16:57:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=adC2gtcw; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-188128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DDED6B20A95 for ; Thu, 23 May 2024 23:56:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E1C91292D2; Thu, 23 May 2024 23:56:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="adC2gtcw" Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3875127E28 for ; Thu, 23 May 2024 23:56:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716508583; cv=none; b=ZrevaQ6+D0vk5gfHIB9va4XDZWyS0yH28jkaMc/66CC3HxnLojv+SqXmxuwFieEUYDkUsJJt9lF8h++/KRww8G7nwqsu0dGBAL7eqbsgTgeuCueorkSejpayiM9zJxEvM4CyMoGiwZqNJg+pS/A5N0ECxaiewf1XemDM7s7MqtE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716508583; c=relaxed/simple; bh=Q+KvU0oLvca8ovAHLR6eF077NY2tGTdk+AFMRrDUktQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=twP7RUCTkn2zi/t7f5bzyaBCyxPABAiH2pNa0rz3MuJ2zuFgIGrdtl/vuAn/sCHWfKJjfkFLPaiN4Eqgdnzu/MpLjp9Ztmiyr9eOXSvDnDyneR/2nP1SJmnP/lSFoJrfP/gXz/rukWsTPe7pclsLFRQrXPiU0Pr90MKkKWGKyW0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=adC2gtcw; arc=none smtp.client-ip=203.254.224.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20240523235616epoutp0264598e1ceb6df909d91197ffdadf7e40~SQ3Sz2VUL0928409284epoutp02l for ; Thu, 23 May 2024 23:56:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20240523235616epoutp0264598e1ceb6df909d91197ffdadf7e40~SQ3Sz2VUL0928409284epoutp02l DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1716508576; bh=rwOlfClFjOkWWM2PUxxGFjT0Rypn1JfWpa8Qo6yo6KU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=adC2gtcwpHZi+D0VjLUBiI9swjzVc/wzgQv+XqHFww44869Y9VXjprOsbFtgUM+98 3muGpHCm/v9D3RaVBPE6ODgeryL/0cPMfEzdvdx0RdYlcw+JtYpkVGUo4/Q5DgaLYI qJmbgcB7iyi2aBCRNovmK2f3x7/a5e9ujMZ7bINc= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20240523235615epcas1p45cc0b38562bcde2cdde65bc5e51f2bdb~SQ3ST332r0266102661epcas1p4y; Thu, 23 May 2024 23:56:15 +0000 (GMT) Received: from epsmgec1p1.samsung.com (unknown [182.195.36.222]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4VllSH3xY7z4x9Q1; Thu, 23 May 2024 23:56:15 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmgec1p1.samsung.com (Symantec Messaging Gateway) with SMTP id B0.EF.09696.F97DF466; Fri, 24 May 2024 08:56:15 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20240523235615epcas1p282b2405bed41b94ef8a40633066f1d4c~SQ3Rf2n6t0712807128epcas1p2q; Thu, 23 May 2024 23:56:15 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240523235614epsmtrp1f19aa23990c3339365ae0e36957fc8ea~SQ3RaVsmb3240532405epsmtrp1S; Thu, 23 May 2024 23:56:14 +0000 (GMT) X-AuditID: b6c32a36-553ff700000025e0-88-664fd79fa749 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 02.83.09238.E97DF466; Fri, 24 May 2024 08:56:14 +0900 (KST) Received: from lee.. (unknown [10.253.100.232]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240523235614epsmtip190345a8816f60141ab7a0f270931bdda~SQ3RNMoMq1202612026epsmtip1Y; Thu, 23 May 2024 23:56:14 +0000 (GMT) From: Chanwoo Lee To: cw9316.lee@samsung.com Cc: James.Bottomley@HansenPartnership.com, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, martin.petersen@oracle.com, powen.kao@mediatek.com, quic_cang@quicinc.com, quic_nguyenb@quicinc.com, stanley.chu@mediatek.com, yang.lee@linux.alibaba.com Subject: Re: Re: [PATCH] ufs:mcq:Fixing Error Output for ufshcd_try_to_abort_task in ufshcd_mcq_abort Date: Fri, 24 May 2024 08:56:13 +0900 Message-Id: <20240523235613.1103161-1-cw9316.lee@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240523002257.1068373-1-cw9316.lee@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHJsWRmVeSWpSXmKPExsWy7bCmvu786/5pBmeOSVk8mLeNzeLlz6ts FtM+/GS2mHGqjdViYz+HxeVdc9gsuq/vYLNYfvwfk8Xbu/9ZLCZd28BmMfXFcXaLpVtvMlq8 azzM6MDrcfmKt8e0SafYPHY+tPRoObmfxePj01ssHhP31Hn0bVnF6PF5k5xH+4FupgDOqGyb jNTElNQihdS85PyUzLx0WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58AXbfMHKCjlRTKEnNK gUIBicXFSvp2NkX5pSWpChn5xSW2SqkFKTkFZgV6xYm5xaV56Xp5qSVWhgYGRqZAhQnZGUt7 lrIU3OapuPxQq4FxJlcXIyeHhICJxPObX1i6GLk4hAR2MErMPNfCDuF8YpTYuu0gI4TzjVHi 28WNjDAtbzdvYQOxhQT2Mkrsb9eFKHrCKPFk7nKgWRwcbAJaErePeYPUiAhISczeMZcJpIZZ 4ASTxOrvc9lBEsIC6RJflu1lB6lnEVCVeNqsBxLmFbCV6Jh8HGqXvMT+g2eZQWxOATuJ9Ysv sEPUCEqcnPmEBcRmBqpp3jqbGWS+hMBaDom1k/tZIJpdJF7v/M8MYQtLvDq+hR3ClpJ42d/G DtHQzCix8M1xqO4JjBJfPt5mg6iyl2hubWYDuY5ZQFNi/S59iG18Eu++9rCChCUEeCU62oQg qlUk5nSdY4OZ//HGY1YI20Ni0tuH0CCdyCjx4/ML1gmM8rOQPDELyROzELYtYGRexS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qXrJefnbmIER4uWxg7Ge/P/6R1iZOJgPMQowcGsJMIbvdI3TYg3JbGyKrUoP76oNCe1 +BCjNAeLkjiv4YzZKUIC6YklqdmpqQWpRTBZJg5OqQamh+suvz5pWj7ztsWyNUymmz3/rJ/8 L27RyaW+ghUcTpcVDNberGM/dmXZ7VY7g6lT6r4r+0/NWzjvbNzrOsE/U84KyNjvPNWyu+xO jqQTb9iyKd8cmV/caF4atjRjv8Hp7JDE1ZXuvzi1BG/NKvY8Epyo1ZKSY+qSbGF1zcTmeser upiZp88Gi+gu/KC/SqP0x68q3SjXqI0Ha8/aNf0+07bhwZoP0xKzek/JV2cVVggf+1kZWLl0 uu/GA6/EZ6Y//fs+njl/Qk7YPx05J+mn86+IrpWz+R92xmDms/UfzNIW/dvqu7BrXZPIiVc/ SmY/nXXDj/ezzfuyvErfX4qfwwRuc/y3uKT7IvNyOxv7ISWW4oxEQy3mouJEABU6Dk8FAwAA X-CMS-MailID: 20240523235615epcas1p282b2405bed41b94ef8a40633066f1d4c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240523235615epcas1p282b2405bed41b94ef8a40633066f1d4c References: <20240523002257.1068373-1-cw9316.lee@samsung.com> On 5/23/24 22:43, Bart Van Assche wrote: >On 5/22/24 17:22, Chanwoo Lee wrote: >> An error unrelated to ufshcd_try_to_abort_task is being output and >> can cause confusion. So, I modified it to output the result of abort >> fail. This modification was similarly revised by referring to the >> ufshcd_abort function. >> >> Signed-off-by: Chanwoo Lee >> --- >> drivers/ufs/core/ufs-mcq.c | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/ufs/core/ufs-mcq.c b/drivers/ufs/core/ufs-mcq.c >> index 005d63ab1f44..fc24d1af1fe8 100644 >> --- a/drivers/ufs/core/ufs-mcq.c >> +++ b/drivers/ufs/core/ufs-mcq.c >> @@ -667,9 +667,11 @@ int ufshcd_mcq_abort(struct scsi_cmnd *cmd) >> * in the completion queue either. Query the device to see if >> * the command is being processed in the device. >> */ >> - if (ufshcd_try_to_abort_task(hba, tag)) { >> + err = ufshcd_try_to_abort_task(hba, tag); >> + if (err) { >> dev_err(hba->dev, "%s: device abort failed %d\n", __func__, err); >> lrbp->req_abort_skip = true; >> + err = FAILED; >> goto out; >> } > >Why does the word "Fixing" occur in the title of this patch? I think >that this patch does not affect the value returned by >ufshcd_mcq_abort(). From the start of that function: > >int err = FAILED; > >Thanks, > >Bart. I thought this patch would be appropriate to "fix" the following log. * dev_err(hba->dev, "%s: device abort failed %d\n", __func__, err); If "Fixing" is not appropriate, could you suggest another word? Thanks, Chanwoo Lee.