Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3480403imm; Wed, 5 Sep 2018 00:28:05 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYQ8+D3voEaznLJ6lZVhRMcigSpnwhtTfS6ZTdtBNid5IHPphj2LF5t2H+HqLVzu7HXMuYd X-Received: by 2002:a62:2b50:: with SMTP id r77-v6mr38626108pfr.51.1536132485138; Wed, 05 Sep 2018 00:28:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536132485; cv=none; d=google.com; s=arc-20160816; b=Kfr+b4oVB8P2lSQ6OG6vMPUIVK1kkoLX0yEMZYcJ1KjCYTt7gg1ZQwZBD5BaTz7Jho fY+1Po+0zf1XaWp99MDjfEvN+2BQcBwHf6bZZALdEH5F4a77JUvr/pk0Twwyb/CUjRbU /0Zo01qZ7MJnwFxyoVxZ251x+kGdmH5LSzjl88E/LGg7gomMjb4/nTpYbvMrhG6uW1jj blsSQmVPaWOjG0XuJl2EWrXEU5pQVQ4zQaUqqoRNFgvaQVJ/0gBwZdNYKwOeothZa5em pvkw/szPpxtInTb2ckxmLA8Gl6cg7veTLTwsWffx5buSbvQKFDBg++IQcXbukvbzv8qN 2Ilw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Jae+EmGq5p8s8nGSsDorbl689s1ssA2JG8mQDCdF7ys=; b=wcFfA8qqhhc1yAIKz9FKd+bmWQmgpGPhHkd4V793Y1cQZJJxdEt2fY/cvXsug1JwhR d1+iWf6UaMfsWvdksUuFSLdBIqIIIN4jxWVmFE4U69IIKX873tf46V9q9f8LdNtlinDm PBmW/XE8nMgbFlY6dn+xdvThGfQ6Wyo8VSUrtjjO6l5b8SONuWBqLYZ6qGOfEi6eZBl1 fg5xW8C9jrCX/0UoiOogTtNuVyTA4BG8fGPdmLaQ6kewlB/CVpgiYVdl/MBPmB/sWuYh OnRcSLE9ifovhPwRwwZ3vQIZ9ULdIJi06PCsW+XhfKqP0RWxp52KG6QPFvukS6umNXKN biUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=huAdsO4e; 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 gn19si1173044plb.360.2018.09.05.00.27.49; Wed, 05 Sep 2018 00:28:05 -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=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=huAdsO4e; 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 S1727794AbeIELzI (ORCPT + 99 others); Wed, 5 Sep 2018 07:55:08 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:36690 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727657AbeIELzH (ORCPT ); Wed, 5 Sep 2018 07:55:07 -0400 Received: by mail-ed1-f65.google.com with SMTP id f4-v6so5249900edq.3 for ; Wed, 05 Sep 2018 00:26:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Jae+EmGq5p8s8nGSsDorbl689s1ssA2JG8mQDCdF7ys=; b=huAdsO4eia/vlrtqbzDuPyKfUyv+t+/p6PFKGfE6buF8FKQxgRhZPZZxJwlQw0JKB8 W0i0mwTGKYut6vUqxe9t69Rr+MDaSPNDhHQgn9aUiCxgfyp9/y/GDEmLJdPpN7FKKeko U7xqJBvuClKxVru7HcjstntQCAg9Tku+ya6aQ8ogF9jRDjNm77Gy2ufu2qEdJbWhsBQk BnzImmu/PIRm53bECn6wom45d28m4O0LwhckChUtvxH9vV18qeWhHI2oMX47Tlw5zVc0 LJ374FCdWPciZGWRmpOphC8VXDm8oGYiIOyBrResaeAOI1+ExVdOeKEWh/YN7ANPvrRU UKxw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Jae+EmGq5p8s8nGSsDorbl689s1ssA2JG8mQDCdF7ys=; b=eNRNLb0FggRF26bPJ3YwmXDeGEjqhpnOUmkAlVPs9LVsrNQdXjAdnZI6iRjBeKIK2Z nvmpESODV83+GXrTkNxml4hfWa5Upq4SLzTS61wn62BfFIaC92kWU1JTgJh0woIk1bLM vXGFSD8CmlSLzLVglmUYhiUtqqVr5A+9Hh5TkxdisZYzrMuidzuQLRf6RaswXK7LaldZ IXeqR/RRX9OmltZ/t1Eg27OkmzkM3bkR4kt6UK1LZKRhS2kP95NwLBX4CNxeAqR8IfF/ 7Q2pdYIPZWHyPAmeqmxg+77NbqTwzg0oVxR1V+XqM+N3Uz3cx2jfze/VUpf4Sy6zzH7w MYFA== X-Gm-Message-State: APzg51CC8sD0aWaCiwcmUeIEdwWR7EFl56A5Bvz2v5BpQrNVAwkhGAYO PLGrklUIvGnAaBb+xXyAAJolcw== X-Received: by 2002:aa7:c5cd:: with SMTP id h13-v6mr39984524eds.27.1536132375188; Wed, 05 Sep 2018 00:26:15 -0700 (PDT) Received: from shemminger-XPS-13-9360 ([31.216.236.195]) by smtp.gmail.com with ESMTPSA id c24-v6sm786122ede.53.2018.09.05.00.26.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Sep 2018 00:26:14 -0700 (PDT) Date: Wed, 5 Sep 2018 08:26:05 +0100 From: Stephen Hemminger To: Alexandru Gagniuc Cc: linux-pci@vger.kernel.org, bhelgaas@google.com, keith.busch@intel.com, alex_gagniuc@dellteam.com, austin_bolen@dell.com, shyam_iyer@dell.com, 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: Re: [PATCH 1/9] PCI: sysfs: Export available PCIe bandwidth Message-ID: <20180905082605.69d9e5a0@shemminger-XPS-13-9360> In-Reply-To: <20180903180242.14504-2-mr.nuke.me@gmail.com> References: <20180903180242.14504-1-mr.nuke.me@gmail.com> <20180903180242.14504-2-mr.nuke.me@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 3 Sep 2018 13:02:28 -0500 Alexandru Gagniuc wrote: > For certain bandwidth-critical devices (e.g. multi-port network cards) > it is useful to know the available bandwidth to the root complex. This > information is only available via the system log, which doesn't > account for link degradation after probing. > > With a sysfs attribute, we can computes the bandwidth on-demand, and > will detect degraded links. > > Signed-off-by: Alexandru Gagniuc In other places (like /sys/class/net/eth0/speed) only the raw value is printed without suffix. The general convention in sysfs is that it should be one value per file and in more raw format. So why not just print it in bits/sec without suffix?