From owner-svn-src-all@FreeBSD.ORG Tue Dec 10 19:30:12 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 69899B28; Tue, 10 Dec 2013 19:30:12 +0000 (UTC) Received: from mail-ea0-x233.google.com (mail-ea0-x233.google.com [IPv6:2a00:1450:4013:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5C3A9185C; Tue, 10 Dec 2013 19:30:11 +0000 (UTC) Received: by mail-ea0-f179.google.com with SMTP id r15so2461842ead.24 for ; Tue, 10 Dec 2013 11:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=W6xCtS2rF97H5U+L8kYWZJS2Tdi1xpEz2DwnfkWGOwQ=; b=p2f7oRoMyJbnsgsgAplYQEE9J2ukH8k5sWH8Y79lGpApxozrqG1P1Wz/OvQi4AwUGG eqHlNbIExTgZOIRApfxCxbJnme2jAuerMMSG/nAfZt7JS5A2NjkbIF/5R40WYifTtAQ8 MEU0anyGk6zspGNgfBqG1j3XJ85QYkdmYesGYvRUHvdW5a/H3qEF5mSSR6DbDMw1KmGb Q+2or2u8a9dQ0sKbE6B/2mMpZGzE/Z/OtFA5s80fNPxOL09FVdZHysJEfo2p1r99a74d Hd+1SXswQFd+k0NsxcBPajgUEUo9477IDV2owBp4qxbBqGSbYpbUzJq+usH600rEgxe2 7hMQ== X-Received: by 10.14.215.67 with SMTP id d43mr3988965eep.108.1386703809667; Tue, 10 Dec 2013 11:30:09 -0800 (PST) Received: from mavbook.mavhome.dp.ua ([178.137.150.35]) by mx.google.com with ESMTPSA id 4sm14860693eed.14.2013.12.10.11.30.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Dec 2013 11:30:08 -0800 (PST) Sender: Alexander Motin Message-ID: <52A76BBE.5030903@FreeBSD.org> Date: Tue, 10 Dec 2013 21:30:06 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Gleb Smirnoff , Adrian Chadd Subject: Re: svn commit: r259150 - head/sys/dev/cxgbe References: <201312100007.rBA074Qq055579@svn.freebsd.org> <20131210192650.GK4615@FreeBSD.org> In-Reply-To: <20131210192650.GK4615@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Dec 2013 19:30:12 -0000 On 10.12.2013 21:26, Gleb Smirnoff wrote: > On Tue, Dec 10, 2013 at 12:07:04AM +0000, Adrian Chadd wrote: > A> Author: adrian > A> Date: Tue Dec 10 00:07:04 2013 > A> New Revision: 259150 > A> URL: http://svnweb.freebsd.org/changeset/base/259150 > A> > A> Log: > A> Print out the full PCIe link negotiation during dmesg. > A> > A> I found this useful when checking whether a NIC is in a PCIE 3.0 8x slot > A> or not. > A> > A> Reviewed by: np > A> Sponsored by: Netflix, inc. > > Shouldn't this be done with common code for all drivers > on PCI bus(es)? > > This is definitely useful for all devices, not to cxgbe(4) only. Why not just read `pciconf -lc` output for that? -- Alexander Motin