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 04B173AFAE2; Wed, 30 Sep 2026 18:53:33 +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=1790794414; cv=none; b=U+gETtZ4noJJf7A35ekP23Q1whgHmzszaIcnOe7V106onaLibOLsM9F9FiFte3pvNivLtxg4W+cq9CgTYjSWEBAhocLobO51n3CdUZwotFKbcDqNBNUf880Fs8EjicOmus8OlguDe2a7nouNhpX/lu53HGuBVL7/b6umhmoqUaA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790794414; c=relaxed/simple; bh=Md/P8LgpzaA8cp7agUBo+KRwTYcEeoVP989Pa4dko2I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PjX8fDd6UAxac9rxoTkTg8Ui6Arc5ZhCBnJgzgrrJ3I+boVZ3ITHwd5VncpZYuiYQISYBabjLgaUQnZwybRXobQsjAUBaBLKj/cD/tWHQ9Bruv3u48iVbIggXwiGFb9qyaDOJrlZ9FUQ/OIkTvdpN1CxyXgT+5PEd4mJ6WUIeaM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ROfFVFS0; 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="ROfFVFS0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 617511F00898; Wed, 30 Sep 2026 18:53:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790794412; bh=nADfc9sCdo5T3QQ0AlYdR4vmgy48o6j4XRiQSLP/i30=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ROfFVFS0CDeqClbqfI65JDy9UK/cenLZuyzk+U4wPgWd30vp/fFLUxkcyqGaAECVT L57Ejmw5YI+eyU1LpSsFGoPwTUlaepm20hizMkNZ3L3AxRhRPCvpcWZ1Fp1v3S3sU4 05ZdEWHEiTs1Lndlnj62ECblhLSgGxnPOCttc8HU= 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 6.6 0203/1193] ata: libata-pmp: add JMicron JMS562 quirk Date: Wed, 30 Sep 2026 17:14:47 +0200 Message-ID: <20260930152438.719690467@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152434.301151190@linuxfoundation.org> References: <20260930152434.301151190@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 6.6-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 e2e9cbd405fa0..97f9fe5f5fb02 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