stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* FAILED: patch "[PATCH] IB/hfi1: Ensure full Gen3 speed in a Gen4 system" failed to apply to 4.4-stable tree
@ 2019-11-18 15:23 gregkh
  2019-11-25 17:55 ` Sasha Levin
  0 siblings, 1 reply; 3+ messages in thread
From: gregkh @ 2019-11-18 15:23 UTC (permalink / raw)
  To: james.erwin, dennis.dalessandro, jgg, kaike.wan,
	mike.marciniszyn, stable
  Cc: stable


The patch below does not apply to the 4.4-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From a9c3c4c597704b3a1a2b9bef990e7d8a881f6533 Mon Sep 17 00:00:00 2001
From: James Erwin <james.erwin@intel.com>
Date: Fri, 1 Nov 2019 15:20:59 -0400
Subject: [PATCH] IB/hfi1: Ensure full Gen3 speed in a Gen4 system

If an hfi1 card is inserted in a Gen4 systems, the driver will avoid the
gen3 speed bump and the card will operate at half speed.

This is because the driver avoids the gen3 speed bump when the parent bus
speed isn't identical to gen3, 8.0GT/s.  This is not compatible with gen4
and newer speeds.

Fix by relaxing the test to explicitly look for the lower capability
speeds which inherently allows for gen4 and all future speeds.

Fixes: 7724105686e7 ("IB/hfi1: add driver files")
Link: https://lore.kernel.org/r/20191101192059.106248.1699.stgit@awfm-01.aw.intel.com
Cc: <stable@vger.kernel.org>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: James Erwin <james.erwin@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>

diff --git a/drivers/infiniband/hw/hfi1/pcie.c b/drivers/infiniband/hw/hfi1/pcie.c
index 61aa5504d7c3..61362bd6d3ce 100644
--- a/drivers/infiniband/hw/hfi1/pcie.c
+++ b/drivers/infiniband/hw/hfi1/pcie.c
@@ -319,7 +319,9 @@ int pcie_speeds(struct hfi1_devdata *dd)
 	/*
 	 * bus->max_bus_speed is set from the bridge's linkcap Max Link Speed
 	 */
-	if (parent && dd->pcidev->bus->max_bus_speed != PCIE_SPEED_8_0GT) {
+	if (parent &&
+	    (dd->pcidev->bus->max_bus_speed == PCIE_SPEED_2_5GT ||
+	     dd->pcidev->bus->max_bus_speed == PCIE_SPEED_5_0GT)) {
 		dd_dev_info(dd, "Parent PCIe bridge does not support Gen3\n");
 		dd->link_gen3_capable = 0;
 	}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: FAILED: patch "[PATCH] IB/hfi1: Ensure full Gen3 speed in a Gen4 system" failed to apply to 4.4-stable tree
  2019-11-18 15:23 FAILED: patch "[PATCH] IB/hfi1: Ensure full Gen3 speed in a Gen4 system" failed to apply to 4.4-stable tree gregkh
@ 2019-11-25 17:55 ` Sasha Levin
  2019-11-25 18:41   ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Sasha Levin @ 2019-11-25 17:55 UTC (permalink / raw)
  To: gregkh
  Cc: james.erwin, dennis.dalessandro, jgg, kaike.wan,
	mike.marciniszyn, stable

On Mon, Nov 18, 2019 at 04:23:54PM +0100, gregkh@linuxfoundation.org wrote:
>
>The patch below does not apply to the 4.4-stable tree.
>If someone wants it applied there, or to any other stable or longterm
>tree, then please email the backport, including the original git commit
>id to <stable@vger.kernel.org>.
>
>thanks,
>
>greg k-h
>
>------------------ original commit in Linus's tree ------------------
>
>From a9c3c4c597704b3a1a2b9bef990e7d8a881f6533 Mon Sep 17 00:00:00 2001
>From: James Erwin <james.erwin@intel.com>
>Date: Fri, 1 Nov 2019 15:20:59 -0400
>Subject: [PATCH] IB/hfi1: Ensure full Gen3 speed in a Gen4 system
>
>If an hfi1 card is inserted in a Gen4 systems, the driver will avoid the
>gen3 speed bump and the card will operate at half speed.
>
>This is because the driver avoids the gen3 speed bump when the parent bus
>speed isn't identical to gen3, 8.0GT/s.  This is not compatible with gen4
>and newer speeds.
>
>Fix by relaxing the test to explicitly look for the lower capability
>speeds which inherently allows for gen4 and all future speeds.
>
>Fixes: 7724105686e7 ("IB/hfi1: add driver files")
>Link: https://lore.kernel.org/r/20191101192059.106248.1699.stgit@awfm-01.aw.intel.com
>Cc: <stable@vger.kernel.org>
>Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
>Reviewed-by: Kaike Wan <kaike.wan@intel.com>
>Signed-off-by: James Erwin <james.erwin@intel.com>
>Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
>Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
>Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>

I've fixed it up and queued for 4.4 (missing bf400235f392
("staging/rdma/hfi1: Avoid using upstream component if it is not
accessible") ).

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: FAILED: patch "[PATCH] IB/hfi1: Ensure full Gen3 speed in a Gen4 system" failed to apply to 4.4-stable tree
  2019-11-25 17:55 ` Sasha Levin
@ 2019-11-25 18:41   ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2019-11-25 18:41 UTC (permalink / raw)
  To: Sasha Levin
  Cc: james.erwin, dennis.dalessandro, jgg, kaike.wan,
	mike.marciniszyn, stable

On Mon, Nov 25, 2019 at 12:55:29PM -0500, Sasha Levin wrote:
> On Mon, Nov 18, 2019 at 04:23:54PM +0100, gregkh@linuxfoundation.org wrote:
> > 
> > The patch below does not apply to the 4.4-stable tree.
> > If someone wants it applied there, or to any other stable or longterm
> > tree, then please email the backport, including the original git commit
> > id to <stable@vger.kernel.org>.
> > 
> > thanks,
> > 
> > greg k-h
> > 
> > ------------------ original commit in Linus's tree ------------------
> > 
> > > From a9c3c4c597704b3a1a2b9bef990e7d8a881f6533 Mon Sep 17 00:00:00 2001
> > From: James Erwin <james.erwin@intel.com>
> > Date: Fri, 1 Nov 2019 15:20:59 -0400
> > Subject: [PATCH] IB/hfi1: Ensure full Gen3 speed in a Gen4 system
> > 
> > If an hfi1 card is inserted in a Gen4 systems, the driver will avoid the
> > gen3 speed bump and the card will operate at half speed.
> > 
> > This is because the driver avoids the gen3 speed bump when the parent bus
> > speed isn't identical to gen3, 8.0GT/s.  This is not compatible with gen4
> > and newer speeds.
> > 
> > Fix by relaxing the test to explicitly look for the lower capability
> > speeds which inherently allows for gen4 and all future speeds.
> > 
> > Fixes: 7724105686e7 ("IB/hfi1: add driver files")
> > Link: https://lore.kernel.org/r/20191101192059.106248.1699.stgit@awfm-01.aw.intel.com
> > Cc: <stable@vger.kernel.org>
> > Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
> > Reviewed-by: Kaike Wan <kaike.wan@intel.com>
> > Signed-off-by: James Erwin <james.erwin@intel.com>
> > Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
> > Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
> > Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
> 
> I've fixed it up and queued for 4.4 (missing bf400235f392
> ("staging/rdma/hfi1: Avoid using upstream component if it is not
> accessible") ).

Great, thanks for doing that.

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-25 18:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-18 15:23 FAILED: patch "[PATCH] IB/hfi1: Ensure full Gen3 speed in a Gen4 system" failed to apply to 4.4-stable tree gregkh
2019-11-25 17:55 ` Sasha Levin
2019-11-25 18:41   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).