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 2E3CE51C05A; Wed, 30 Sep 2026 16:08:10 +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=1790784498; cv=none; b=d1dm+XGmC1uwGPHqxkLW5wTQ6JA3dGyqemkTB+M6u/WWMZsifOWGVkE2BmLMKd0KJgumcPVTLDEs4UVcA7iJwY8VofovZuMgmIQRX299h2zA8SjeTYpogAUv6JGbqnCq8OjTWAU2frRo21aoB27z5AwWCHBChQdFIE1KmIoMlHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790784498; c=relaxed/simple; bh=HC7fHh4bcGSzCrJhXz87Uj8hdbDCbAt6UaWmRc19pjs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aILdSBd4dAIpUAZ27sZ+hkjYs+PuggqoPLS8H1NOT1k96SvmWxjLvIf9F3L11Z488Uzf/u7mX5sJglnBNFFgH9hk5DO2Zpmwbz6kyz3EDzRYavbkgYcfnScPZlvNdLY4108MjUAnrGTtNNHAt0ZLEms/EuAQxz8K2ZMdl2sLZXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XwzGUr/6; 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="XwzGUr/6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 351FC1F00893; Wed, 30 Sep 2026 16:08:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790784490; bh=9XJcMZv+KsR/tFmX2bhlk/LkoPz8taknZeUqz9Ogan4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=XwzGUr/6SVNRTGpkYYtOqNxX9VbpQRv9W70hC4VTYoBME4y9iysyeJVZzrc9VIZLY MT80BkrBe2nLj9ovKLXSDj1k48eHXJwe+RvvIpdCAIq+dGidvThAFsbNNizSAT41fI fortSelTAIBBRwd5H/eHu7mUEU1GL2zoX78D4u0s= 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.1 175/982] ata: libata-pmp: add JMicron JMS562 quirk Date: Wed, 30 Sep 2026 17:15:11 +0200 Message-ID: <20260930152420.573995515@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152416.775402466@linuxfoundation.org> References: <20260930152416.775402466@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.1-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