Date: Sun, 03 Apr 2016 15:55:54 -0700 From: John Baldwin <jhb@freebsd.org> To: Oliver Pinter <oliver.pinter@hardenedbsd.org> Cc: "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org> Subject: Re: svn commit: r297501 - head/usr.sbin/pciconf Message-ID: <1801560.qVehiR5EY7@ralph.baldwin.cx> In-Reply-To: <CAPQ4ffv5=Lzy-nHka13PtyWDRD0zaeuB=%2BMB7jcQUpp-JFrtrQ@mail.gmail.com> References: <201604020159.u321xr2V087305@repo.freebsd.org> <CAPQ4ffv5=Lzy-nHka13PtyWDRD0zaeuB=%2BMB7jcQUpp-JFrtrQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday, April 02, 2016 11:49:53 AM Oliver Pinter wrote: > > + if (cap & PCIEM_SLOT_CAP_HPS) > > + printf(" surprise"); > > > What is this surprise string or state? Or is this a forgotten debug string? It's an actual thing in the spec. "Surprise" insertion/removal means that devices can be hotplugged without requiring notification to the OS ahead of time. The expresscard slots in my x220 actually report this: pcib3@pci0:0:28:3: class=0x060400 card=0x21da17aa chip=0x1c168086 rev=0xb4 hdr=0x01 cap 10[40] = PCI-Express 2 root port max data 128(128) link x0(x1) speed 0.0(5.0) ASPM L0s/L1(L0s/L1) slot 3 power limit 100 mW HotPlug(empty) surprise cap 05[80] = MSI supports 1 message cap 0d[90] = PCI Bridge card=0x21da17aa cap 01[a0] = powerspec 2 supports D0 D3 current D0 and after inserting a card: pcib3@pci0:0:28:3: class=0x060400 card=0x21da17aa chip=0x1c168086 rev=0xb4 hdr=0x01 cap 10[40] = PCI-Express 2 root port max data 128(128) link x1(x1) speed 2.5(5.0) ASPM disabled(L0s/L1) slot 3 power limit 100 mW HotPlug(present) surprise cap 05[80] = MSI supports 1 message cap 0d[90] = PCI Bridge card=0x21da17aa cap 01[a0] = powerspec 2 supports D0 D3 current D0 -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1801560.qVehiR5EY7>