From owner-freebsd-hackers@freebsd.org Fri Mar 3 22:52:32 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D88C4CF6CAA for ; Fri, 3 Mar 2017 22:52:32 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x231.google.com (mail-it0-x231.google.com [IPv6:2607:f8b0:4001:c0b::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9DC221564 for ; Fri, 3 Mar 2017 22:52:32 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x231.google.com with SMTP id 203so22298607ith.0 for ; Fri, 03 Mar 2017 14:52:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=BgfL7rMnZsym8lJyeswPPzsSnIRH4mIEZIFv+W8DTg0=; b=cipVqD0FFLxXhGPbzOCFU39jY5Ef+e5CCL5+Nld98hFiQZNW1pf0mwm/xX+qpuoUQ5 IlcFxwvBXOol0X7ZVyZfIw0r0uvLoTQ3EUAVtjKiNS8F7bh8tWaJLw65MlVwBTKI5uvu 8ZmDpgX2HqAyH186V3mSjMC852knVx+neIgkfxWB3LNTm3W321fjkSuE+8H41YbNA5LX YP7q+ZdnmLzy82eNWy6DX+gua/KelLa2+SMS/5a1+4X6Ae1HkP6kjnuPL+Xnk3EI1+iV P0ZuAuTPpRAv9zMOpkW/0j2Aus02SuSKOUNgJIrx+v/CT7oq0veWzf8sdgoWjnKeHEsm IRcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=BgfL7rMnZsym8lJyeswPPzsSnIRH4mIEZIFv+W8DTg0=; b=twtkWaesNmPGfEoiyD5kL/e0wxCKWgHSBczBUQ7w4xgRBdJ50QhGW5zVKx6i2j5/JO zfYMQI7k9GoEFpKiiIKEXAY8v92dVYAaTlOjJdWnjpE/f/u6r44JtcjJ1RkAUI99MN5O XCbN9u+mbbrhKTa5e2wTqrBrzh4er7H+KHbT3+/CA/o2rniFxeh02rGO1hf2vygqRyrG Y489O0Rtwh55T76karXU5o8iL8AmSO6RJLwAPoKoM854cpj6OjS+9XjC/YLiybAlOhOP ILtOaw7A+rIj3UPoPJwU5lCB0FX9kTLD3WtLQr3xR+V+CA5AdPupI6zrwlElpqDWMmVd egfw== X-Gm-Message-State: AMke39kWfMqXufQkQ0OiJ0Oc+N9P+ipMEGVpSpPZDTbjx5MJn9mCBQwNXhBoXzWYj08BvAjvDdxyF5mFt2M8hg== X-Received: by 10.36.58.201 with SMTP id m192mr5008631itm.103.1488581551930; Fri, 03 Mar 2017 14:52:31 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.134.129 with HTTP; Fri, 3 Mar 2017 14:52:31 -0800 (PST) X-Originating-IP: [50.253.99.174] In-Reply-To: <03745A05-DE0E-4071-B432-BFE58C3A7E16@webweaving.org> References: <03745A05-DE0E-4071-B432-BFE58C3A7E16@webweaving.org> From: Warner Losh Date: Fri, 3 Mar 2017 15:52:31 -0700 X-Google-Sender-Auth: qn_sE--HXHjcmnMRpicdGInNJ1w Message-ID: Subject: Re: PCI speed To: Dirk-Willem van Gulik Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2017 22:52:32 -0000 On Fri, Mar 3, 2017 at 3:34 PM, Dirk-Willem van Gulik wrote: > Forgive me my ignorance - but for some cards - pciconf(8) nicely lists the speed of the bus: > >> ciss0@pci0:12:0:0: class=0x010400 card=0x3243103c chip=0x323a103c rev=0x01 hdr=0x00 > ... >> cap 10[70] = PCI-Express 2 endpoint max data 128(256) RO NS >> link x4(x8) speed 5.0(5.0) >> cap 11[ac] = MSI-X supports 16 messages, enabled >> Table in map 0x10[0x1c2000], PBA in map 0x10[0x1c4000] >> PCI-e errors = Correctable Error Detected >> Fatal Error Detected >> Unsupported Request Detected > > and that matches exactly with what it is. While for other cards it does not seem to report that: So you have a x8 card in a x4 slot. Hope that's OK. It's also reporting errors on the PCIe link level. That doesn't sound too correct. >> mpt4@pci0:7:8:1: class=0x010000 card=0x10b01000 chip=0x00301000 rev=0x08 hdr=0x00 > .... >> cap 01[50] = powerspec 2 supports D0 D1 D2 D3 current D0 >> cap 05[58] = MSI supports 1 message, 64 bit >> cap 07[68] = PCI-X 64-bit supports 133MHz, 2048 burst read, 8 split transactions >> cap 00[70] = unknown > > and in fact seems to mis report the bus - this is a PCIe Gen 2 x4 bus with a x8 Connector Width > holding a LSI 22320SE Ultra320 SCSI dual channel PCIe X4 card. > How should one interpret this ? That's odd. I'd have expected it to report correctly... It does for us at work. What version of FreeBSD? Warner