lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20220727032745.31728-4-stanley.chu@mediatek.com> Date: Wed, 27 Jul 2022 11:27:43 +0800 From: Stanley Chu <stanley.chu@...iatek.com> To: <linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>, <martin.petersen@...cle.com>, <avri.altman@....com>, <alim.akhtar@...sung.com>, <jejb@...ux.ibm.com>, <bvanassche@....org> CC: <peter.wang@...iatek.com>, <chun-hung.wu@...iatek.com>, <alice.chao@...iatek.com>, <powen.kao@...iatek.com>, <mason.zhang@...iatek.com>, <qilin.tan@...iatek.com>, <lin.gui@...iatek.com>, <eddie.huang@...iatek.com>, <tun-yu.yu@...iatek.com>, <cc.chou@...iatek.com>, <chaotian.jing@...iatek.com>, <jiajie.hao@...iatek.com>, <stanley.chu@...iatek.com> Subject: [PATCH v1 3/5] scsi: ufs: ufs-mediatek: Dump more registers From: Peter Wang <peter.wang@...iatek.com> Dump more proprietary UFSHCI status registers for easier issue breakdown. Signed-off-by: Peter Wang <peter.wang@...iatek.com> Signed-off-by: Stanley Chu <stanley.chu@...iatek.com> --- drivers/ufs/host/ufs-mediatek.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c index b590fb267c20..ddbfcf1ab925 100644 --- a/drivers/ufs/host/ufs-mediatek.c +++ b/drivers/ufs/host/ufs-mediatek.c @@ -1246,13 +1246,16 @@ static int ufs_mtk_resume(struct ufs_hba *hba, enum ufs_pm_op pm_op) static void ufs_mtk_dbg_register_dump(struct ufs_hba *hba) { - ufshcd_dump_regs(hba, REG_UFS_REFCLK_CTRL, 0x4, "Ref-Clk Ctrl "); + /* Dump ufshci register 0x140 ~ 0x14C */ + ufshcd_dump_regs(hba, REG_UFS_XOUFS_CTRL, 0x10, + "XOUFS Ctrl (0x140): "); ufshcd_dump_regs(hba, REG_UFS_EXTREG, 0x4, "Ext Reg "); + /* Dump ufshci register 0x2200 ~ 0x22AC */ ufshcd_dump_regs(hba, REG_UFS_MPHYCTRL, REG_UFS_REJECT_MON - REG_UFS_MPHYCTRL + 4, - "MPHY Ctrl "); + "MPHY Ctrl (0x2200): "); /* Direct debugging information to REG_MTK_PROBE */ ufs_mtk_dbg_sel(hba); -- 2.18.0
Powered by blists - more mailing lists