From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7E254F68C3; Wed, 30 Sep 2026 15:38:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790782740; cv=none; b=hQbsnZ0izInvWxOfyXJ+x/ZXwD4Fgc5rEjxJJO7AVQxyWrQza3Usc984xgrZdPS8ZIUH1ssXfW+04TMUIJ43L0w7rVtT98gKNVMxR6Jeqp9JKH0qXgq2L1e6MUSTQA4eYjPKv1vKID3cIyh9q15jlGNJgtRmYVUTFOlslz580Mw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790782740; c=relaxed/simple; bh=j8CyGueCorRrHK4ZxuKSCzml0A9HXkRV48LMAMtEc7c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MR6KYnyXzHHBN3mwqDMcID9vwZ4RQ9qCwef+h9nHu5qktkRoJf4x+gTWpvg3MfmNEB62lwnEgtLV3U+eUmhcYZBTRPXDIaCnRY+rdP3fxED0MXEuyPQEFL1ZPbWEHzyAIjJ4qZ3z03+dqLXtBPDAuZ79rtBb+QPlnWXSnGd4d7I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dwRCwIhd; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="dwRCwIhd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 303CC1F00898; Wed, 30 Sep 2026 15:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790782737; bh=4nxuXO0MMUBHQKUkyZtUw900z0+k3ORVhRfxlJj7X0A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=dwRCwIhd/49JJMEovFfIAmJ5U81fHiRuOOSZ6Jwpvh0mnjHG9dFNa7XDchkYDa3tn JeTlBDqPHGAcdzsroUwlEUqriq5FBZArX53PYCEJOISK0/3q5ekvPVT4NSZyMfDuZR wGjvs+zvhwnutnzwF8R+Gh6KbFtx4L7pS98hkFy4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Xu Rao , Damien Le Moal , Niklas Cassel , Sasha Levin Subject: [PATCH 5.10 115/595] ata: libata-pmp: add JMicron JMS562 quirk Date: Wed, 30 Sep 2026 17:20:08 +0200 Message-ID: <20260930152350.212209109@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152347.700140858@linuxfoundation.org> References: <20260930152347.700140858@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Xu Rao [ Upstream commit c62aff1174cf88e10716c7513702443c47551fc6 ] JMicron JMS562, as used in QNAP QDA-A2AR RAID1 adapters, may keep the exported ATA device not ready while the array is rebuilding. In this state, libata may repeatedly try to softreset and classify the fan-out link. On the affected adapter, this can time out, make PMP/SCR access fail, and eventually disable the fan-out link before the RAID volume is exported. A failing boot shows the fan-out link failing SRST, PMP access timing out, SCR read failing, and the link being disabled: ata4.00: softreset failed (device not ready) ata4.15: qc timeout after 3000 msecs (cmd 0xe4) ata4.00: failed to read SCR 0 (Emask=0x4) ata4.00: failed to recover link after 3 tries, disabling After that, the root filesystem on the exported RAID volume cannot be found. Add JMS562 to the existing JMicron PMP quirk that disables LPM, avoids softreset on fan-out links, and assumes an ATA device. This prevents libata from dropping the exported RAID volume during rebuild recovery. Signed-off-by: Xu Rao Reviewed-by: Damien Le Moal Signed-off-by: Niklas Cassel Signed-off-by: Sasha Levin --- drivers/ata/libata-pmp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c index 79f2aeeb482ab..452baa43d77ef 100644 --- a/drivers/ata/libata-pmp.c +++ b/drivers/ata/libata-pmp.c @@ -446,8 +446,13 @@ static void sata_pmp_quirks(struct ata_port *ap) * otherwise. Don't try hard to recover it. */ ap->pmp_link[ap->nr_pmp_links - 1].flags |= ATA_LFLAG_NO_RETRY; - } else if (vendor == 0x197b && (devid == 0x2352 || devid == 0x0325)) { + } else if (vendor == 0x197b && + (devid == 0x0562 || devid == 0x2352 || devid == 0x0325)) { /* + * 0x0562: JMicron JMS562, as used in QNAP QDA-A2AR RAID1 + * adapters. The exported device may stay not ready + * while the array is rebuilding, and SRST/classify can + * time out before the RAID volume is exported. * 0x2352: found in Thermaltake BlackX Duet, jmicron JMB350? * 0x0325: jmicron JMB394. */ -- 2.53.0