From nobody Wed Nov 27 11:45:43 2024 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 38A5A1F9409 for ; Thu, 10 Oct 2024 07:42:32 +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=1728546155; cv=none; b=DpWVKFs0jRwZwJum2fyFbfS4oDv1mqRNK7D4bDyfO+dlE/LA3M5ZuxBvB863NjCe4Toslf6NGw8FEOskX6Hpuy2ThiYTK9mhPg2l+3VZ6LeS28b+Z3j0+wTsC0QBmeKqutgqSFI9xbxQtP/HIiczAoco+VsC18h93jzYQs/fM7Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728546155; c=relaxed/simple; bh=WTtjtG47vymHfMOTZHiAGXAiV8ozOqMHl1YVg0JFja8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=pUPDES0TWgSa+q8L1Y8kHBHXI0Motz/648Z2yAm6HqCpxMlPecOb1J14S/Z/IilHqlYti+0VYMFnVfhEbrR/1Ui5TNwdNEYSa3v59c17u+j0DqcCQ1SzW13aeLDXwCkZW91BBKI9CzGozQqa7k5Y7CmXJH3cLCL+/SWPX8+IDUs= 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=BUzUcLh7; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="BUzUcLh7" Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20241010074230epoutp02a81cce9462634444ab9a850d8beff623~9B5Dr3xmb0624506245epoutp02g for ; Thu, 10 Oct 2024 07:42:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20241010074230epoutp02a81cce9462634444ab9a850d8beff623~9B5Dr3xmb0624506245epoutp02g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1728546151; bh=RUnIJ9K+YQ0p0ZcKfT070l16YRpaY6+jaXV37dAh/TY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BUzUcLh7X15eaLtUc1OnMGqtyZn1J1uvmZUCZr8Q3CXsJy3ihXhW4an8Yu1BhpYyt PjGG2e8UoboAdOC2+E19jd0k1/m45iBMQU4Rhdtn37MHBFun5bOpjIi3S+nwd1sFQB 55kvsC0i/JtsiDK1ERueMXXTsCXZ7T1cXdLHuX00= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20241010074230epcas2p2fb966134b612c96d455b45a68a9bc639~9B5DUnjhC2794227942epcas2p2Y; Thu, 10 Oct 2024 07:42:30 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.68]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4XPMD55Nn6z4x9Py; Thu, 10 Oct 2024 07:42:29 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id D3.33.09776.56587076; Thu, 10 Oct 2024 16:42:29 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20241010074229epcas2p31ecc33731a96be7958cdd93908a1ce86~9B5CEiaNl3202132021epcas2p39; Thu, 10 Oct 2024 07:42:29 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20241010074229epsmtrp1f6956eac7e1c699b95675d828e9a8a49~9B5CDek_80182601826epsmtrp1X; Thu, 10 Oct 2024 07:42:29 +0000 (GMT) X-AuditID: b6c32a47-d53fa70000002630-e2-6707856566ef Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 44.55.08227.56587076; Thu, 10 Oct 2024 16:42:29 +0900 (KST) Received: from rack03.dsn.sec.samsung.com (unknown [10.229.95.126]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20241010074228epsmtip2c8730b7f4dd4d673d12d86dc231b3010~9B5B0Hrfi1861218612epsmtip2m; Thu, 10 Oct 2024 07:42:28 +0000 (GMT) From: SEO HOYOUNG To: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com, martin.petersen@oracle.com, beanhuo@micron.com, bvanassche@acm.org, kwangwon.min@samsung.com, kwmad.kim@samsung.com, sh425.lee@samsung.com, quic_nguyenb@quicinc.com, cpgs@samsung.com, h10.kim@samsung.com, grant.jung@samsung.com, junwoo80.lee@samsung.com, wkon.kim@samsung.com Cc: SEO HOYOUNG Subject: [PATCH v3 1/2] scsi: ufs: core: check asymmetric connected lanes Date: Thu, 10 Oct 2024 16:52:28 +0900 Message-Id: X-Mailer: git-send-email 2.26.0 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA01TfUwbZRzOe3dcD0zJrdvklYytnErGkkLLaHkh4Ja44G3TCDo3BRN2oWch lLbpFUQXtW7jYxuhI0M+CuwDBQPMEZBChY3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SbujYz+5qm5Oyw8WzT/PK7yUzrdfMbynbzHnv2iIzfeslcxK5nAV//jRe fZWz7HDyrVs997e2nviWsS1ngvyq5uO26yU0exr6xaoijCxFjk17JDy9YfIGQyarnoZgJZbi jERDLeai4kQAVDbNax0DAAA= X-CMS-MailID: 20241010074229epcas2p31ecc33731a96be7958cdd93908a1ce86 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-CPGSPASS: Y DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20241010074229epcas2p31ecc33731a96be7958cdd93908a1ce86 References: Performance problems may occur if there is a problem with the asymmetric connected lane such as h/w failure. Currently, only check connected lane for rx/tx is checked if it is not 0. But it should also be checked if it is asymmetrically connected. Signed-off-by: SEO HOYOUNG Reviewed-by: Bart Van Assche --- drivers/ufs/core/ufshcd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index 24a32e2fd75e..387eec6f19ef 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -4540,6 +4540,14 @@ static int ufshcd_get_max_pwr_mode(struct ufs_hba *h= ba) return -EINVAL; } =20 + if (pwr_info->lane_rx !=3D pwr_info->lane_tx) { + dev_err(hba->dev, "%s: asymmetric connected lanes. rx=3D%d, tx=3D%d\n", + __func__, + pwr_info->lane_rx, + pwr_info->lane_tx); + return -EINVAL; + } + /* * First, get the maximum gears of HS speed. * If a zero value, it means there is no HSGEAR capability. --=20 2.26.0 From nobody Wed Nov 27 11:45:43 2024 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 9F8411F940E for ; Thu, 10 Oct 2024 07:42:35 +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=1728546157; cv=none; b=SYCr/Zb9xQpa+tosePBUZiTDuGUUMDWxr6lUwzkN55h1514fFtHUjJE15C6vZ0FxYq+tufXBw57cbCb4vwoqyA2uczV0akjrx0MkvebNS+92OEDv1kd6dpK5/2NIJMUVufjb29cxKywHPn150eLwDHgYB+hxhR2UZqaG/U7igZU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728546157; c=relaxed/simple; bh=eN7X38t2A1GojgdAPRHihJ4Ptnr5GRtZho/F6GVYf/A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=Mqz+wGuVFIX5khWLYabU53WzBYYsIz/CRonIngGwmFJqzY3eea+z66BOQvwJ7xuwgeeOvoabeK3ApER+vxil/v/7pxhEJd3YcY+y+TUmkoheQ+WIgklpaNXLSw/HrHzs3J+no6MYhsv3B7Heb8/R2EiqvF95AQyjOeq1R4M8ivU= 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=aknj+M7/; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="aknj+M7/" Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20241010074233epoutp028dc9f322e5c41192bd9126c5ef70eab5~9B5GeaG0Q0717407174epoutp02y for ; Thu, 10 Oct 2024 07:42:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20241010074233epoutp028dc9f322e5c41192bd9126c5ef70eab5~9B5GeaG0Q0717407174epoutp02y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1728546154; bh=MzEcKQEMsBaalWP6NqvxH0uESA4d9gCI95r0v9wBPL4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aknj+M7/vH0uSksbrpD++qjxTBXo6n6OkvTTgrm/EEXLNpIkNyfgEAB+3ILat8kEc iLE64J1lXAwSBosUe0mcyzjyGGih5uZJHMO92LiA4ZjJwTmNoT6QQsFx4llOgnq1Cz sShbZQWeiAQ69svjk8o+mL6V/VMlIgqi/AEJ/+t0= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20241010074233epcas2p3acb07484c15b6e0c38e1dde3118a2d01~9B5F2pXhn1443414434epcas2p3I; Thu, 10 Oct 2024 07:42:33 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.36.101]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4XPMD82cpSz4x9Pw; Thu, 10 Oct 2024 07:42:32 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id B7.08.09396.86587076; Thu, 10 Oct 2024 16:42:32 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20241010074231epcas2p2d15a81d68b68d757039a56e8dd9cca3c~9B5Ea7cLF2794227942epcas2p2c; Thu, 10 Oct 2024 07:42:31 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20241010074231epsmtrp1b66a5fe9757a26bc2cb4fc589383614c~9B5EaFOSz0182601826epsmtrp1b; Thu, 10 Oct 2024 07:42:31 +0000 (GMT) X-AuditID: b6c32a45-671ff700000024b4-5d-670785688f42 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 03.76.08229.76587076; Thu, 10 Oct 2024 16:42:31 +0900 (KST) Received: from rack03.dsn.sec.samsung.com (unknown [10.229.95.126]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20241010074231epsmtip2f358f63f1a26e3804918b72c715ba9b0~9B5EJhQEq1882818828epsmtip2e; Thu, 10 Oct 2024 07:42:31 +0000 (GMT) From: SEO HOYOUNG To: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com, martin.petersen@oracle.com, beanhuo@micron.com, bvanassche@acm.org, kwangwon.min@samsung.com, kwmad.kim@samsung.com, sh425.lee@samsung.com, quic_nguyenb@quicinc.com, cpgs@samsung.com, h10.kim@samsung.com, grant.jung@samsung.com, junwoo80.lee@samsung.com, wkon.kim@samsung.com Cc: SEO HOYOUNG Subject: [PATCH v3 2/2] scsi: ufs: core: reflect function execution result in return Date: Thu, 10 Oct 2024 16:52:29 +0900 Message-Id: <300052382d9d03bf087d71201bd159805b8fd041.1728544727.git.hy50.seo@samsung.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNJsWRmVeSWpSXmKPExsWy7bCmqW5GK3u6Qcd0fosH87axWbz8eZXN 4uDDThaLaR9+Mlu8PKRp8evvenaLv7cvslqsXvyAxWLRjW1MFrv+NjNZbL2xk8Xi5pajLBaX d81hs+i+voPNYvnxf0wWU18cZ7dY+u8ti8XmS99YHIQ8Ll/x9piw6ACjx/f1HWweH5/eYvGY uKfOo2/LKkaPz5vkPNoPdDMFcERl22SkJqakFimk5iXnp2Tmpdsqe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d9cca3c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-CPGSPASS: Y DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20241010074231epcas2p2d15a81d68b68d757039a56e8dd9cca3c References: If an error is returned in the power mode function, it is returned and modified to cause failure in the UFS linkup. If it is an asymmetric connected lane, the UFS init can fail because it is an incorrect situation. Signed-off-by: SEO HOYOUNG --- drivers/ufs/core/ufshcd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index 387eec6f19ef..1381eb7d506a 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -8587,7 +8587,8 @@ static int ufshcd_device_params_init(struct ufs_hba *= hba) hba->dev_info.f_power_on_wp_en =3D flag; =20 /* Probe maximum power mode co-supported by both UFS host and device */ - if (ufshcd_get_max_pwr_mode(hba)) + ret =3D ufshcd_get_max_pwr_mode(hba); + if (ret) dev_err(hba->dev, "%s: Failed getting max supported power mode\n", __func__); --=20 2.26.0