Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Apr 2016 10:09:55 -0500
From:      Eric van Gyzen <eric@vangyzen.net>
To:        Oliver Pinter <oliver.pinter@hardenedbsd.org>, John Baldwin <jhb@freebsd.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>, Hans Petter Selasky <hps@selasky.org>
Subject:   Re: svn commit: r297501 - head/usr.sbin/pciconf
Message-ID:  <570283C3.1020702@vangyzen.net>
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 04/02/2016 04:49, Oliver Pinter wrote:
>
>     +       printf(" slot %d", (cap & PCIEM_SLOT_CAP_PSN) >> 19);
>     +       printf(" power limit %d mW", slot_power(cap));
>     +       if (cap & PCIEM_SLOT_CAP_HPC)
>     +               printf(" HotPlug(%s)", sta & PCIEM_SLOT_STA_PDS ?
>     "present" :
>     +                   "empty");
>     +       if (cap & PCIEM_SLOT_CAP_HPS)
>     +               printf(" surprise");
>
>
> What is this surprise string or state? Or is this a forgotten debug
> string?

>From the "PCI EXPRESS BASE SPECIFICATION, REV. 3.1a":

"""
6.7.2.9.  Port Capabilities and Slot Information Registers

Hot-Plug Surprise (Slot Capabilities) – When Set, this bit indicates
that adapter removal from the
system without any prior notification is permitted for the associated
form factor.
"""

However, John committed this on April 1, so it /could/ be an easter egg,
intended for Hans Petter Selasky.  ;-)

>     +       if (cap & PCIEM_SLOT_CAP_APB)
>     +               printf(" Attn Button");
>     +       if (cap & PCIEM_SLOT_CAP_PCP)
>     +               printf(" PC(%s)", ctl & PCIEM_SLOT_CTL_PCC ? "on"
>     : "off");
>     +       if (cap & PCIEM_SLOT_CAP_MRLSP)
>     +               printf(" MRL(%s)", sta & PCIEM_SLOT_STA_MRLSS ?
>     "open" :
>     +                   "closed");
>      }
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?570283C3.1020702>