]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme-apple: Reset q->sq_tail during queue init
authorNick Chan <towinchenmi@gmail.com>
Thu, 14 May 2026 13:16:01 +0000 (21:16 +0800)
committerKeith Busch <kbusch@kernel.org>
Thu, 14 May 2026 14:40:35 +0000 (07:40 -0700)
commita6ab75639e23169a741b0b2e12191fd8acb32c73
treeb2099f09d1e9ac597d5b0a6d406d015a265cdad1
parent37953cec775ed34e59cf9a7d7bb9b0610daa3f3e
nvme-apple: Reset q->sq_tail during queue init

Fixes a "duplicate tag error for tag 0" firmware crash during controller
reset while setting up a  queue on Apple A11 / T8015 caused by stale
entries in the submission queue due to an invalid sq_tail offset after
reset.

Fixes: 04d8ecf37b5e ("nvme: apple: Add Apple A11 support")
Cc: stable@vger.kernel.org
Suggested-by: Yuriy Havrylyuk <yhavry@gmail.com>
Reviewed-by: Sven Peter <sven@kernel.org>
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/apple.c