Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2720286lqz; Wed, 3 Apr 2024 06:51:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzEOzltq0ry4tTMFEGAPkFM0iyuLWwbtxqOKw9Z93t3xx/bd2YmIR8Lyhx9tlr+ul1dbbVC5BbxIh357eX3asTDbjT1R0hXJc7AhMmUg== X-Google-Smtp-Source: AGHT+IEuz/vpqvfE5FhMIFYAw2KfLhQT+ZnJUPyoFY8Z1xuG9HY3Yc/8CKz+hnK7YsU9KJp3F/yd X-Received: by 2002:aa7:8893:0:b0:6ea:9117:bc61 with SMTP id z19-20020aa78893000000b006ea9117bc61mr20300485pfe.20.1712152288544; Wed, 03 Apr 2024 06:51:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712152288; cv=pass; d=google.com; s=arc-20160816; b=pvXi7DKGwkeRkSWz2RvaWDg/hRLZiwHA+KrqjfBN9XIHn3m9Us50W4NrGfTGrHt4dw 38/BPU4leWOJJhlVE1uLnlg9K8+gTxW+wHmeVTX7vhq4CimlbUiqm/sWEVhNU1NFyG0u 2/OYe1zt5Qz9E4D8e+lnV3Y6yZJ84ooE3tev8YgSjcAHnsOGI/66IRr9oVg4Ikq8ApDr L7Y5CRw6k5d2G6Y0FGKpzQz/Irkd4yT6XuaqQ7Vj6nX4FLR0+Y1gSRE5zQBJQ0FVPVxM NJFTULO+1jTcnnjTalhBHm2j4pEpgaOVaW1H7b6bjROngWCyW3YfZ+GYl/KPFHHdwTji y9pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=f7pIzWrkcLxbGwLKhe5BWqkH4QaoGIyBQXlY1niD1ok=; fh=ycbUwD/YugAxhwBg5Aom50jU5mGj4TaxwUQa+RhokOI=; b=VDR46a3ygk1DJDq3kp/tZc8FrMKKMicaDlYBDATHNHsfGgOxOi0Di2WiZ8R78kyEnL zzxWkpcgfd+XPXLvGv6oQcsGmaE2r4hwR8qf98siLCSqAcIky0Z92l+JZZhP4i9Sxb6h sNWccpP0UvX6X3x+aXpbdRFxu9D32ZHGbjfBqLeycq4x6i6dnByFyGSnygg1Ghjb/NdQ ojKUjchi68VA20cPAwQN26QoW7UW4zbqzg+RChg/Bk7rZqddFsBUDpqGGytQNd9vYt4p eoZB+xHNDk/cmI6kIvthMaaEb5S3gjy1ARFqlXU3f04pkhKCTogpNDYGn+PXhcZGFcMO Gr7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="CfbCHv/6"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-129880-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lm7-20020a056a003c8700b006eaab856030si13456003pfb.86.2024.04.03.06.51.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:51:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129880-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="CfbCHv/6"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-129880-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129880-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0551128C009 for ; Wed, 3 Apr 2024 13:50:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B99CF286A6; Wed, 3 Apr 2024 13:50:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CfbCHv/6" Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75BCE1487DE for ; Wed, 3 Apr 2024 13:50:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712152224; cv=none; b=o6ec459fM07ZS6Yui4rMieplEPx3nZGvqbqMNhAYsTZySddWyH75Nrin2YdOX4O8DhqY8U3ckE6keFnI0zaHECFK3RpZ3XJNkvnTNdMmw8Rygvd229xng/lzkp3qZvsy/iCMjmJHGOvrY1rCgQc0njuNyHoZ2Zqo5WMUKvahXsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712152224; c=relaxed/simple; bh=X2XAS/oTqinlQY0bqWZ9HdUjhcK3j05vJH/5bNcOweY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SCm5xQ4MRsOVFDM2Gi9DHqAJQ69efRgbT17qf31DobG+KuT8PSxYfbyXu9cfQtFlV8BOtQiUeBIpPMzcfm0CanWxrLL7+8luGZfR8qs8qQ6IBRqN8blDsIyMBJGxwEIeWq9KTCPNZ0cl/Kgj3SyczN8BMcR8pYKPUSkbijrrPxg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=CfbCHv/6; arc=none smtp.client-ip=209.85.216.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-2a2601f0562so1428954a91.0 for ; Wed, 03 Apr 2024 06:50:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712152223; x=1712757023; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=f7pIzWrkcLxbGwLKhe5BWqkH4QaoGIyBQXlY1niD1ok=; b=CfbCHv/6SIBCP1W72SXIpI4tjNL00nPcURc0KlN7pXRYdfRnQrWcBTC0ARABICVeUQ DJuDL7aC7W6+KpB95X5mGEBTy84QWkRzIoYBEygT3LK5k/GLKYf5/EYQ561R3Px3Vu+G 5acaV4S/9j1d3Z2IP+xGbUmqVLds3dt3XLN9GnWwchtdQFPAQFkZhkzwqmpRpK9GWQw/ BjqdIy7lkvwxwl5uhI3hCCdIq1uHDpM+YYTBsY555YFKhYZ8UJI6UjiDIPFCAY1GZbly Ij/KfL0GviUiDC4ZgxuE8YYRQ1TTQkJe/2Dc503l5PjJC9rHc9TExb7TmVuLAMJ6a2CN N4cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712152223; x=1712757023; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f7pIzWrkcLxbGwLKhe5BWqkH4QaoGIyBQXlY1niD1ok=; b=vix0RWXs/LjvtOHMAC8dbSSmoQGI2Grd27IreVbmCSHNCx31C2jIJHXglQ3nABn436 OwsokScgzcyKxsO9g5AL90pOoYIw09UCLdD1OrEiqY3HZ/eLMefs4efy9XBrW+52c3ne U+eUVy5BADyzZRXKnyBEh+si4acXaAh1sj+txLwA/G0NmX+OApVZmRWPrs10qlI5xVNl Uq2bdMSD42XTMFo8khPZoDHXTICPZpdEYnegmjsISKV6nXvTd0kD5LX35jKsk8w7DA9I mY9Bkn2T2RI9f2n5GUc+DlhmcL65K6e+jkyNrFpws7jbwoMmhggpks2cfyAG1yF9ZWUe HQtg== X-Forwarded-Encrypted: i=1; AJvYcCVo+NUhQz5fNunLYyPyMk2eNTVJHp1wM28a/lQM7LW8GBRJ6tqZwdzW/XqpEpPC4SPyy4VQFY+sO+I26TA7efDP27KEmVbd804/2N1P X-Gm-Message-State: AOJu0Ywf7GWvyEZ3e+aJQ2IzNOw1jrFqmm7s3NVAS+Rhckm6uuvHG7vP VUga0t4wQJukUG0ReLnNuDY6AO239FdYasitXpeerL5lmz9m04vshbZpndsHRQ== X-Received: by 2002:a17:90a:4b8e:b0:2a2:6e60:b53c with SMTP id i14-20020a17090a4b8e00b002a26e60b53cmr3886528pjh.20.1712152222504; Wed, 03 Apr 2024 06:50:22 -0700 (PDT) Received: from thinkpad ([103.28.246.48]) by smtp.gmail.com with ESMTPSA id m10-20020a17090a34ca00b0029b9954a02asm2196137pjf.0.2024.04.03.06.50.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 06:50:22 -0700 (PDT) Date: Wed, 3 Apr 2024 19:20:15 +0530 From: Manivannan Sadhasivam To: Dmitry Baryshkov Cc: Bjorn Andersson , Konrad Dybcio , Alim Akhtar , Avri Altman , Bart Van Assche , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Andy Gross , "James E.J. Bottomley" , "Martin K. Petersen" , linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] arm64: dts: qcom: msm8996: Add missing UFS host controller reset Message-ID: <20240403135015.GN25309@thinkpad> References: <20240129-ufs-core-reset-fix-v1-0-7ac628aa735f@linaro.org> <20240129-ufs-core-reset-fix-v1-3-7ac628aa735f@linaro.org> <20240130065550.GF32821@thinkpad> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Apr 02, 2024 at 10:25:32PM +0300, Dmitry Baryshkov wrote: > On Tue, 2 Apr 2024 at 20:35, Bjorn Andersson wrote: > > > > On Fri, Feb 09, 2024 at 10:16:25PM +0200, Dmitry Baryshkov wrote: > > > On Tue, 30 Jan 2024 at 08:55, Manivannan Sadhasivam > > > wrote: > > > > > > > > On Mon, Jan 29, 2024 at 11:44:15AM +0200, Dmitry Baryshkov wrote: > > > > > On Mon, 29 Jan 2024 at 09:55, Manivannan Sadhasivam > > > > > wrote: > > > > > > > > > > > > UFS host controller reset is required for the drivers to properly reset the > > > > > > controller. Hence, add it. > > > > > > > > > > > > Fixes: 57fc67ef0d35 ("arm64: dts: qcom: msm8996: Add ufs related nodes") > > > > > > Signed-off-by: Manivannan Sadhasivam > > > > > > > > > > I think I had issues previously when I attempted to reset the > > > > > controller, but it might be because of the incomplete clocks > > > > > programming. Let met check whether it works first. > > > > > > > > > > > > > Sure. Please let me know. > > > > > > With the clocking fixes in place (I'll send them in a few minutes) and > > > with this patch the UFS breaks in the following way: > > > > > > > Was this further reviewed/investigated? What would you like me to do > > with this patch? > > I'd say, hold until we can understand what is going on. > > Mani, If you have any ideas what can be causing the issue, I'm open to > testing any ideas or any patches from your side. > Judging that the UFS breaks after toggling the reset, we might be > missing some setup steps. > I've bombarded the Qcom UFS team with too many questions, but didn't get answer for all of them. And this is one of those questions. Let me try to dig further and come back. - Mani -- மணிவண்ணன் சதாசிவம்