Received: by 10.213.65.68 with SMTP id h4csp35402imn; Mon, 19 Mar 2018 18:41:32 -0700 (PDT) X-Google-Smtp-Source: AG47ELuw1x4wdAni2FFjXR7JEtElzGgj3meuoID+xJ6a7hXTd/7b/ozbjiVQAwM9YLfWsjLDcoP3 X-Received: by 10.99.186.14 with SMTP id k14mr10840171pgf.43.1521510092425; Mon, 19 Mar 2018 18:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521510092; cv=none; d=google.com; s=arc-20160816; b=UONTdkvIGozbAOFvx07yGxQYg6DVzJbP1LRVKvfbsoyTfQn7xeuRif/0LQcWv0A39F oTcQavhTHzmDRnGdHODuyVROThaJzYs2arg+y5BgF7pYkflNRicNrAt/TIlP3v5zGibe IPZ0qw+1KquJAtIi1E6a4aFxIS+qnYde3kB8ddtumDWp9Bd4KPcasIpCtuaBzUNFhzgh r6/67ItkJZ/2Oa26S+zq1V7SzP5rVxCaFEEzJQ1e3Dwkb71PH5nrM/7C8T4wkHrjSCme LPNqou1L/G33QvVDe4mQjdBTgQVOel+1BSzMTQ7UyNPKdTzAwshFyskOKqj3ju+TRZOj P0yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=lN3GH5xkIiY+BdnH7+khHXHfvW25m1DYsf1rXRm5lP0=; b=z8ao7qS4dJm7/ICZULc1SFrU3G1weNYkKgfp/rUZid9MV0sWHFAGBJEZXeXVxYPEOS dNT5wNpa7GfB8owWSilNGzKik/g59MiDRqD3v4CAa7tfK478hQDR8ycg8I7dIiQgN15S 73NAGUu7lLTBrZnvn62+j7IluFyoeojPC7Axwa6kdPVLNqc6SiuVEzOfoksKpwonrwvG /LfDt9aKmrvIqblRVOPsS017g+r0qyMEJWa+dE0e40nILBUTor0rUHUoTOtJQah68Vi7 UYcVvmSjqM9QBBpAwfuRWtIoRqJGKv4iy+MoNm7YHbJe8JFJ+s67HZ68yvPtKY0KqKr4 1PLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=R8CwC5i9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l69si438803pfk.180.2018.03.19.18.41.18; Mon, 19 Mar 2018 18:41:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=R8CwC5i9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968378AbeCSRxh (ORCPT + 99 others); Mon, 19 Mar 2018 13:53:37 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:33561 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965733AbeCSRxd (ORCPT ); Mon, 19 Mar 2018 13:53:33 -0400 Received: by mail-wr0-f195.google.com with SMTP id z73so15277827wrb.0 for ; Mon, 19 Mar 2018 10:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=lN3GH5xkIiY+BdnH7+khHXHfvW25m1DYsf1rXRm5lP0=; b=R8CwC5i9hvlL/sHXcJKT+CigSQmiBJGSABQFoo4wzDPr/3xEU+X3rjvIqJaFKhxBNL zmDFnEJ2ngiey2aetgEKGVXr5R5g13W84k0TA3SIf9a29TksXkmD/1sL+gtGFuP4SkbD lEFUhcuFZYv2KbLdFoB9tfQZ8zVxgwutnodYWNu/QE2M/vBXR+1qqn8NSMtCfMldr3S3 fO8TnK7DWiv6H2hzyMJakTYggU8bZgjYy2WUzwNVWJQ3KzbWPP9DoeedkLQ4YwnB0IA5 hpV1iKUOpStDSgIEFE093sSLi1XhmDzOiaYx514diCNBek9EHd2o+qy6Q8D+Sf3aTa7i /rLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=lN3GH5xkIiY+BdnH7+khHXHfvW25m1DYsf1rXRm5lP0=; b=j2JOzv1actKjwUV8MMvhsbNb6QmxNQ/LQgQqHv22KGDhicePiKYanUG1oIVMImR2Nj fJ2rHJ/j+wQygTco/bWSqr27bBv4ZcvLvS7ij/V8HirMxzqaAmX10KWgoKx+gDm0aX9/ VmVvMmHJ060x8JKLzxIbC8LbOzRiprT1lOLxNndLM/fRhs/vPMupn4pSdtywgVNeje5r q0buuXBzHrLh+S4+fZ7gwTlGYdF/3uFP/nHSz0+VesLjfiHAmowu4oNKQwMA6O/lFWN8 LNF3hSSb7Eb7ydi/fcmrvH85lj0AxMlPLOUJeNwOqEMNeHEojSr7rXCne5V4qp7P12jJ BP/g== X-Gm-Message-State: AElRT7EvR6xc49v0EfTKVmlE+yYKEs/+LyQJVEv+jkUWTW3AHoKmJMqd 32VyGV0HELaumfvqY3yS6Vsgmw== X-Received: by 10.223.197.11 with SMTP id q11mr9828669wrf.213.1521482012160; Mon, 19 Mar 2018 10:53:32 -0700 (PDT) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id n64sm1095428wmd.11.2018.03.19.10.53.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Mar 2018 10:53:31 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.86_2) (envelope-from ) id 1exyyO-0000NY-FT; Mon, 19 Mar 2018 11:53:28 -0600 Date: Mon, 19 Mar 2018 11:53:28 -0600 From: Jason Gunthorpe To: Honggang LI Cc: dledford@redhat.com, matanb@mellanox.com, leonro@mellanox.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, noaos@mellanox.com Subject: Re: [PATCH] IB/mlx5: Set the default active rate and width to QDR and 4X Message-ID: <20180319175328.GF1225@ziepe.ca> References: <20180316023713.30323-1-honli@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180316023713.30323-1-honli@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 16, 2018 at 10:37:13AM +0800, Honggang LI wrote: > From: Honggang Li > > commit f1b65df5a232 ("IB/mlx5: Add support for active_width and > active_speed in RoCE"). Before this patch applied, the mlx5_ib > driver set default active_width and active_speed to IB_WIDTH_4X > and IB_SPEED_QDR. > > When the RoCE port is down, the RoCE port did not negotiate the > active width with remote side. The active width is zero. If run > ibstat to require the port status, ibstat will panic as it read > invalid width from sys file. > > This patch restores the original behavior. > > Fixes: f1b65df5a232 ("IB/mlx5: Add support for active_width and active_speed in RoCE"). > Signed-off-by: Honggang Li > Reviewed-by: Hal Rosenstock > Reviewed-by: Noa Osherovich > drivers/infiniband/hw/mlx5/main.c | 3 +++ > 1 file changed, 3 insertions(+) Applied to for-next, thanks Jason