Received: by 10.213.65.68 with SMTP id h4csp1526020imn; Thu, 15 Mar 2018 02:04:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELtZQFA5+hNZtZESHNUyRi82zFmy/ozz2+UOdbPkKffSG2GPSndqzKU8lcj3/hUMFsZ+LpQn X-Received: by 10.99.110.133 with SMTP id j127mr6253011pgc.79.1521104698150; Thu, 15 Mar 2018 02:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521104698; cv=none; d=google.com; s=arc-20160816; b=B+xEvunk4UYgN2gaWWs2XDPaN4r4JXcFvFHzByq1l50xkqf3Gc9xLb2zEPNAI+a7Gj lKl9QRJgYoQzYfAtxdkGA3hlffbIMZDcQuqM72GOTuTl1i9hI94qOvU8tsbCUeIlSYLy MYlCkv2toDMEg9DP1kdXh5iKmzcQuh0SwJQ42dKON/py+RIgR++0gstlRZPAIWJ73E5d IZzOoBecReTyj+IclkjIvAegls6LTy/o1H9RcQ6u6C8WGl5cJ6jdYntNLk1qFQwUCAdK rjNW6+lkxdTVVu3jUKl8GoVy/wdmpE2bFcNiWST1ucDAIkgyYyslArkskIxtYPWUOhlz WNPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=K8PdBBHjaOO2NYdJlfIxKeZNL0bfI5RfALbxUehNoes=; b=0umdFGCx9L8raSKIkSSH9qmjf26wsvNQ5axLGoyXJfHE0Xxwj0nex0xgE7fN7dSkLb UlUk7LV3IUSajq690jrYr2XtJi85Glkimq9IZ/OTfHImi2zJVcbtUu8k1mDSGWm7LYny tPrCqCD3YB7xcbQtPZKbJDMsY/de/6cFaHKqeHv8XO+lWcu0v8NwYT+rPrftSCcGqKDQ vQpuIEg0IY/n3hCynWtOTrO+h/XlgRj6tVAye//PBmqZNJkMRhmrS0+KfQYiwP/19NO9 4/sC07yJiGoLeM95VFkKx2O1pWoyOSVWVpBmMkWD/P8noMO4iGiQvdk9IJV7iYL5nJyg Au+A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11-v6si3650509pln.350.2018.03.15.02.04.43; Thu, 15 Mar 2018 02:04:58 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751790AbeCOJCU (ORCPT + 99 others); Thu, 15 Mar 2018 05:02:20 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:38560 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751095AbeCOJCS (ORCPT ); Thu, 15 Mar 2018 05:02:18 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 629CC4023156; Thu, 15 Mar 2018 09:02:18 +0000 (UTC) Received: from dhcp-13-42.nay.redhat.com (unknown [10.66.128.195]) by smtp.corp.redhat.com (Postfix) with ESMTP id 203992026DFD; Thu, 15 Mar 2018 09:02:15 +0000 (UTC) From: Honggang LI To: dledford@redhat.com, jgg@ziepe.ca, linux-rdma@vger.kernel.org Cc: noaos@mellanox.com, linux-kernel@vger.kernel.org, honli@redhat.com Subject: [PATCH 0/2] IB/core: Set invalid active widths to 1X when port is not active Date: Thu, 15 Mar 2018 17:02:12 +0800 Message-Id: <20180315090214.21706-1-honli@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 15 Mar 2018 09:02:18 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 15 Mar 2018 09:02:18 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'honli@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Honggang Li Before the mlx5 RoCE port negotiate the active rate and width with remote side, the mlx5_ib driver set them to zero. The tool 'ibstat' of 'infiniband-diags' package will panic as it read invalid width from the sys file. Set the active widths to lowest valid vaule as what ib_core module did for invalid rates. Honggang Li (2): IB/core: Set speed string to SDR for invalid active rates IB/core: Set width to 1X for invalid active widths when port is down drivers/infiniband/core/sysfs.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) -- 2.14.GIT