From: Tejun Heo <tj@kernel.org>
To: David Milburn <dmilburn@redhat.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH 0/2] libata: hotplug link speed
Date: Sat, 21 Oct 2017 09:53:31 -0700 [thread overview]
Message-ID: <20171021165331.GX1302522@devbig577.frc2.facebook.com> (raw)
In-Reply-To: <1508437836-31649-1-git-send-email-dmilburn@redhat.com>
Hello, David.
On Thu, Oct 19, 2017 at 01:30:34PM -0500, David Milburn wrote:
> During hotplug, it is possible for 6Gbps link speed to
> be limited all the way down to 1.5 Gbps which may lead
> to a slower link speed when drive is re-connected.
>
> This behavior has been seen on a Intel Lewisburg SATA
> controller (8086:a1d2) with HGST HUH728080ALE600 drive
> where SATA link speed was limited to 1.5 Gbps and
> when re-connected the link came up 3.0 Gbps. ata_dev_init
> initializes link->spd to 0, but, the 0001 patch will
> reset it once the link comes online. The 0002 patch will
> allow the error handler to reset link->spd only if the
> link is online; otherwise, it will always get set to 0.
>
> This patch set was retested on above configuration and
> showed the hotplugged link to come back online at max
> speed (6Gbps). I did not see the downgrade when testing
> on Intel C600/X79, but retested patched linux-4.14-rc5
> kernel and didn't see any side effects from these
> changes. Also, successfully retested hotplug on port
> multiplier 3Gbps link.
While the problem seems valid, I'm not sure the patches are in the
right direction. Isn't the root cause the decision we're making in
sata_down_spd_limit() where the code is explicitly choosing 1.5Gbps if
spd information isn't available? It'd make more sense to make better
decisions there rather than faking the information going into them.
Thanks.
--
tejun
next prev parent reply other threads:[~2017-10-21 16:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-19 18:30 [PATCH 0/2] libata: hotplug link speed David Milburn
2017-10-19 18:30 ` [PATCH 1/2] libata: initialize link speed from sstatus if online David Milburn
2017-10-21 16:48 ` Tejun Heo
2017-10-19 18:30 ` [PATCH 2/2] Allow error handler to change speed only if link is online David Milburn
2017-10-21 16:53 ` Tejun Heo [this message]
2017-10-23 19:38 ` [PATCH 0/2] libata: hotplug link speed David Milburn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171021165331.GX1302522@devbig577.frc2.facebook.com \
--to=tj@kernel.org \
--cc=dmilburn@redhat.com \
--cc=linux-ide@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox