From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 6CE324C6D for ; Tue, 18 Mar 2025 06:35:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742279715; cv=none; b=uQZlwzZKPH1AwEt/qkLzRDM9PJ3zxDc2EoyQW8UGRsy84Bm1JH8OtqY5qomC1Iz3jTzDGHKH9hQ/BzazxnsR4zXwTIeaxtkNAb4ZQ6wEGzlKNb3SM9dtldM3Te6PScXUTFqoSdMe0eCY8i4x+KO1NS6XP77lBpc1HOrq+23mc98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742279715; c=relaxed/simple; bh=PryEXhcXzXzoSLQ+jG9MOOOhQkkDY7IE0CkRSj18qSo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=chk898RpBvdJr8iOyLf6xSc+v1EjNDRFQAeRMElbGWgbjwFXpHnp7/NvHccD/CTdmtHT6WMmkGPW5AQxLllZL2lws3z9IL07O/qLq+G02vTtB3KPnIxzSCx8BWJtBnKDI/0yvixPJ9RK6oxQ0RltmDvuDbhR3eftOBpLH/h7E64= 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=vbFoi6uv; arc=none smtp.client-ip=209.85.214.173 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vbFoi6uv" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-223fb0f619dso86443225ad.1 for ; Mon, 17 Mar 2025 23:35:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1742279713; x=1742884513; 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=U6F27MGkl6WcOKIJ4ECnYu/HOFV7Uz3She2p4aXiUWw=; b=vbFoi6uvanuqNU+e3irnqgpyWhyo4pngagj0m938yePxHWczYQAcJYYKxVxGFDdaBs 7ca0mvYX17QhnMLNeWFEGsyp9zxoW8tbHIubjEIlJ5tcm2R53/KRZu8czaZcr0huLDWq nUwTe4kmrEk86cU2knNLzHHqW3cDLTv3VwLzmh2DS2To/zky61+/kQoy+wZOAEXk/cFF psM9p7ZywQypam7o3lAGIdx6RCzdtlqsGeWT1OiavYUe9pgxBKjHfpf9O6H20zHqYCnJ Bde7bTMSPM2WsWNpUw7DEqfT0efduEkOLp44Co6mOzcnjo5FtHI70uunFCWzCuG37KEA tljg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742279713; x=1742884513; 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=U6F27MGkl6WcOKIJ4ECnYu/HOFV7Uz3She2p4aXiUWw=; b=wrE9kfuHS5FXC8Y5+DjEvpD1T3UbCQ+h3XCEEqcwLQ8ukGQFi8Ml6EySKmGmmnXHB/ ZoE1l4Jv/EsgSHGBsCATbdEovZJmeggo2GQpnM7c2qmh7D+3H/4m/b6RRSPHvzf7ypES wHr+hcDvNvR+6OMNTGAgafk3vVoRBqqArfS5f7QO7NRoBz654ymoPYbpngCt1a5Bc5R0 2/rUyi+UaP9pUorE7BhXlzqnywAG3rG/RsKLAzJaZE8xwBskEawPfMhx28uNjcfRhlTX EJXD3If8wFIA3tw8/JTXyF4OlYg6qIR8ZcFrncnG6cXvHYTKP6ErC0bvIDsUawYqnsPD PV/g== X-Forwarded-Encrypted: i=1; AJvYcCXiwJUem3iTxh/jw/hkDJLR53z1XC6OyDom8GQbFlfVp8v4uXSydehS4clkcNbEkxFJXgxHa7FWNstOn6U=@vger.kernel.org X-Gm-Message-State: AOJu0YwcaddpKpyWjZo6adINFWDphfE7AoUlOdz9Ff0iH6gBr3LzdnB6 ICRJLrMusroT2v2hoOOeWiWOS1+yXaKkvQJO1iVgDMe/QOjaBtxta7Rpb9zc+w== X-Gm-Gg: ASbGncuJmX6bcPGTwaXCIOvM7ZxiLDtNBzwQiQ6EmOpcAhcRuNUegz3aUPKHzVQCOa+ bXwvsVUbsOVgjKibAiP0DNq2UztIfr6grFJnaEMEptyBoM3dwUPsRrsm4g+S167y9jpX9WGobmS 2esCBTK71hZtqViH+nRW4Ikb++7oSEbb2YDgjrdstE181/owEKFsouVFDLwdk4BoI7juj40BV5b GVPAABC/Ip2bvoutW55uDCWGt5CKj08hv43hH9XOfbhXfFhQBe+tDLbKIM2udTkAIKlgVKb+vnk 1Qy+OiqGgjSlPrh2cHWYes58pILRQcgpLnIAxPTuHKMyzw0YI/1XjieW X-Google-Smtp-Source: AGHT+IHCqFm9csE2qkE4bmWGh9NkZBAUBiZ2j02yr8s8ij2xHhs7et8fWqAp4EPwKF4QP8r/SzWwdQ== X-Received: by 2002:a05:6a21:918c:b0:1f5:6a1a:329b with SMTP id adf61e73a8af0-1f5c12cd543mr23504218637.32.1742279712736; Mon, 17 Mar 2025 23:35:12 -0700 (PDT) Received: from thinkpad ([120.56.195.170]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-737113d71fbsm8711029b3a.0.2025.03.17.23.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Mar 2025 23:35:12 -0700 (PDT) Date: Tue, 18 Mar 2025 12:05:08 +0530 From: Manivannan Sadhasivam To: Manish Pandey Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, quic_nitirawa@quicinc.com, quic_cang@quicinc.com, quic_nguyenb@quicinc.com Subject: Re: [PATCH V3 1/3] scsi: ufs-qcom: Add support for dumping HW and SW hibern8 count Message-ID: <20250318063508.4iz4olthqq2rhjce@thinkpad> References: <20250313051635.22073-1-quic_mapa@quicinc.com> <20250313051635.22073-2-quic_mapa@quicinc.com> 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: <20250313051635.22073-2-quic_mapa@quicinc.com> On Thu, Mar 13, 2025 at 10:46:33AM +0530, Manish Pandey wrote: > This patch adds functionality to dump both hardware and software No 'patch' in description. Once the patch is merged, it will become as 'commit'. Also, please use imperative mood to describe the change. I don't know why this is not followed since I believe, I've given this comment before also (if you didn't read the process documentation). > hibern8 enter counts. This enhancement will aid in monitoring and > debugging hibern8 state transitions by providing detailed count > information. > > Signed-off-by: Manish Pandey > --- > drivers/ufs/host/ufs-qcom.c | 9 +++++++++ > drivers/ufs/host/ufs-qcom.h | 9 +++++++++ > 2 files changed, 18 insertions(+) > > diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c > index 1b37449fbffc..f5181773c0e5 100644 > --- a/drivers/ufs/host/ufs-qcom.c > +++ b/drivers/ufs/host/ufs-qcom.c > @@ -1573,6 +1573,15 @@ static void ufs_qcom_dump_dbg_regs(struct ufs_hba *hba) > > host = ufshcd_get_variant(hba); > > + dev_err(hba->dev, "HW_H8_ENTER_CNT=%d\n", ufshcd_readl(hba, REG_UFS_HW_H8_ENTER_CNT)); > + dev_err(hba->dev, "HW_H8_EXIT_CNT=%d\n", ufshcd_readl(hba, REG_UFS_HW_H8_EXIT_CNT)); > + > + dev_err(hba->dev, "SW_H8_ENTER_CNT=%d\n", ufshcd_readl(hba, REG_UFS_SW_H8_ENTER_CNT)); > + dev_err(hba->dev, "SW_H8_EXIT_CNT=%d\n", ufshcd_readl(hba, REG_UFS_SW_H8_EXIT_CNT)); > + > + dev_err(hba->dev, "SW_AFTER_HW_H8_ENTER_CNT=%d\n", > + ufshcd_readl(hba, REG_UFS_SW_AFTER_HW_H8_ENTER_CNT)); > + > ufshcd_dump_regs(hba, REG_UFS_SYS1CLK_1US, 16 * 4, > "HCI Vendor Specific Registers "); > > diff --git a/drivers/ufs/host/ufs-qcom.h b/drivers/ufs/host/ufs-qcom.h > index d0e6ec9128e7..a41db017009f 100644 > --- a/drivers/ufs/host/ufs-qcom.h > +++ b/drivers/ufs/host/ufs-qcom.h > @@ -75,6 +75,15 @@ enum { > UFS_UFS_DBG_RD_EDTL_RAM = 0x1900, > }; > > +/* Vendor-specific Hibern8 count registers for the QCOM UFS host controller. */ Get rid of 'for the QCOM UFS host controller'. - Mani -- மணிவண்ணன் சதாசிவம்