Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1851150imm; Mon, 3 Sep 2018 11:05:14 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbn1j4j37R1AM/IWNK8rfW/nlJ7yCRJFhysRMn231F8cmBX3q2NtQ2u44aqQxmC0usJEZT1 X-Received: by 2002:a63:f54c:: with SMTP id e12-v6mr27518052pgk.286.1535997914833; Mon, 03 Sep 2018 11:05:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535997914; cv=none; d=google.com; s=arc-20160816; b=h121ruLNdl9z0VSqNmfPSsl4Qc4SJT7YbtLP2BIIqDVU8B+nm6onKDxbhLwg5lAldR exZHxiWMZTv79fD8+X435S3gs3O4yoRWJwKgtQDIe1qoh67WwRK1euN/tNnRKxCf8OLk cuKVvZzPlvZXpddbGy+WgncXHQFMeGrTdo3SFKmqOHmxTD1IZ8F4Jfd7Sdt/UrYnrEHx Cma9eaH2TsO79vD6CVGyWmB7nHbmLRNIQB3tA1dZ+5+O7RxeLlr7Ixm636708cohFD2V TxtT3/6abIo7oGpCco+N/vBM7n5BukjrmQqv26TqszAnS1HReaMGMGsQoCpzJR49UXNM Y/wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=od+FfEhfZ2c4L0WVWY/ZAmVtThCFnh9arWHU9+Uiz+s=; b=o8K4jdpc8UQBxgcVj//o8Ev6KZ/r/HDPwDonRSv0hSppEafMRO/mhmjzPmWbfNl+BO gz67PP0XyxlK9ipD78okZBzk2uCmjDkHRy2hHIwg8206AYa8o6XShc6iCQTG3eczRJh7 vLbrqJ4xo3T7u1hg2s3xCToWJ4VknkD7tvEFzxQK1pFuzsP2QGUpO2YlmqULww7G//8H RKF+8fiUBl5SARRlMmDqLXxaHjOhwqQgY/MwELki+T46loDnp8zbe6p758x2we8P+VTm jSM5X8npm+dvRob5OQX8nZQvtIJaKSYi9aGsnUzubDhMCEtkpNjz5zxOtzRVoOF/GoDk e+TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W8cVEYyy; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y63-v6si17768327pgd.435.2018.09.03.11.04.59; Mon, 03 Sep 2018 11:05:14 -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=@gmail.com header.s=20161025 header.b=W8cVEYyy; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728140AbeICWYu (ORCPT + 99 others); Mon, 3 Sep 2018 18:24:50 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:38310 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727271AbeICWYt (ORCPT ); Mon, 3 Sep 2018 18:24:49 -0400 Received: by mail-oi0-f67.google.com with SMTP id x197-v6so2252199oix.5; Mon, 03 Sep 2018 11:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=od+FfEhfZ2c4L0WVWY/ZAmVtThCFnh9arWHU9+Uiz+s=; b=W8cVEYyyRcTk6UAfP6KB4nwVa+GxHzJMwwozVrkD0k5xF5dXd/J6/C899Sm8ZUJvF1 LLjPyFcq19xUqQqqGgPPFJt4RzMOaOBDv1pmEceRFHW9bBc5/SF0mYnWt4wrDo6ULRCw O3k2xH1OnGwIOSRzaevRlr9/xhQ/iwuOzGY1xG5j+xHC8MvEPRQOSayiJfX0JZNlKDYw iosmVZfA5LD7g25Xhzi2r1UhGPQ3WvUkp1A174sb801OQbZxdjb0TmXpOaO0KuyEr/Yq VdWZCnY9kieJFZYXUdPrW9toFwZqHMcZVNEQ6kKYroH5wboUnMNScIAwgLNW7CNp5GpQ O/mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=od+FfEhfZ2c4L0WVWY/ZAmVtThCFnh9arWHU9+Uiz+s=; b=tWp+phQ1RwiUkETmmzW0W9cQw6hWL8ejszI9zt9A56Rtxj40tvynJA4osiQzptiNRe 18zzwBC2jiwPy2r3YjNJyPowCHR10XkdZwo4/2M7FiKlVXDOYRptydlR76zatO3yi22J PybEVWQKoxsqACiH+FY7o8WoEu5asBliKvl3bI9EH1I+DTvcMa6lh/y4TGfixNCWst+1 zrJ4Xq/c6m8BYejlfEeUrwGkY6yDP/+e99Fcbf91Ira8w028ek29z1KSS//5dZ9HBaBn 0ZFmsond526xk3hOXSXSxeV9onUwXysLbIgbshwf0WH5c8zpvx/cQ3zV71PA+aFbOJGG S/OA== X-Gm-Message-State: APzg51DEa3++F5AFSWBwWbE01bG/5+tJXolSXbsjZM18w1C3Otc/BTqC 6C9W7gPQKJstSINsaXeWyQTX6Lj/1Mc= X-Received: by 2002:aca:b985:: with SMTP id j127-v6mr19741517oif.257.1535997811674; Mon, 03 Sep 2018 11:03:31 -0700 (PDT) Received: from nuclearis2-1.lan (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id q124-v6sm15785737oif.8.2018.09.03.11.03.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Sep 2018 11:03:31 -0700 (PDT) From: Alexandru Gagniuc To: linux-pci@vger.kernel.org, bhelgaas@google.com Cc: keith.busch@intel.com, alex_gagniuc@dellteam.com, austin_bolen@dell.com, shyam_iyer@dell.com, Alexandru Gagniuc , Ariel Elior , everest-linux-l2@cavium.com, "David S. Miller" , Michael Chan , Ganesh Goudar , Jeff Kirsher , Tariq Toukan , Saeed Mahameed , Leon Romanovsky , Jakub Kicinski , Dirk van der Merwe , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-rdma@vger.kernel.org, oss-drivers@netronome.com Subject: [PATCH 6/9] ixgbe: Do not call pcie_print_link_status() Date: Mon, 3 Sep 2018 13:02:33 -0500 Message-Id: <20180903180242.14504-7-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180903180242.14504-1-mr.nuke.me@gmail.com> References: <20180903180242.14504-1-mr.nuke.me@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is now done by the PCI core to warn of sub-optimal bandwidth. Signed-off-by: Alexandru Gagniuc --- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c index 9a23d33a47ed..9663419e0ceb 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c @@ -241,28 +241,6 @@ static inline bool ixgbe_pcie_from_parent(struct ixgbe_hw *hw) } } -static void ixgbe_check_minimum_link(struct ixgbe_adapter *adapter, - int expected_gts) -{ - struct ixgbe_hw *hw = &adapter->hw; - struct pci_dev *pdev; - - /* Some devices are not connected over PCIe and thus do not negotiate - * speed. These devices do not have valid bus info, and thus any report - * we generate may not be correct. - */ - if (hw->bus.type == ixgbe_bus_type_internal) - return; - - /* determine whether to use the parent device */ - if (ixgbe_pcie_from_parent(&adapter->hw)) - pdev = adapter->pdev->bus->parent->self; - else - pdev = adapter->pdev; - - pcie_print_link_status(pdev); -} - static void ixgbe_service_event_schedule(struct ixgbe_adapter *adapter) { if (!test_bit(__IXGBE_DOWN, &adapter->state) && @@ -10792,10 +10770,6 @@ static int ixgbe_probe(struct pci_dev *pdev, const struct pci_device_id *ent) break; } - /* don't check link if we failed to enumerate functions */ - if (expected_gts > 0) - ixgbe_check_minimum_link(adapter, expected_gts); - err = ixgbe_read_pba_string_generic(hw, part_str, sizeof(part_str)); if (err) strlcpy(part_str, "Unknown", sizeof(part_str)); -- 2.17.1