[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1r0s8k5sn.fsf@ca-mkp.ca.oracle.com>
Date: Mon, 24 Apr 2023 23:19:30 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Alice Chao <alice.chao@...iatek.com>
Cc: Alim Akhtar <alim.akhtar@...sung.com>,
Avri Altman <avri.altman@....com>,
Bart Van Assche <bvanassche@....org>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>,
Can Guo <quic_cang@...cinc.com>,
Asutosh Das <quic_asutoshd@...cinc.com>,
Stanley Chu <stanley.chu@...iatek.com>,
Manivannan Sadhasivam <mani@...nel.org>,
<peter.wang@...iatek.com>, <chun-hung.wu@...iatek.com>,
<powen.kao@...iatek.com>, <naomi.chu@...iatek.com>,
<cc.chou@...iatek.com>, <chaotian.jing@...iatek.com>,
<jiajie.hao@...iatek.com>, <tun-yu.yu@...iatek.com>,
<eddie.huang@...iatek.com>, <wsd_upstream@...iatek.com>,
<linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>
Subject: Re: [PATCH v3 1/1] scsi: ufs: core: Fix &hwq->cq_lock deadlock issue
Alice,
> When ufshcd_err_handler() is executed, CQ event interrupt can enter
> waiting for the same lock. It could happened in upstream code path
> ufshcd_handle_mcq_cq_events() and also in ufs_mtk_mcq_intr(). This
> warning message will be generated when &hwq->cq_lock is used in IRQ
> context with IRQ enabled. Use ufshcd_mcq_poll_cqe_lock() with
> spin_lock_irqsave instead of spin_lock to resolve the deadlock issue.
Applied to 6.4/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists