linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] lspci: Correct Root Capabilities "CRS Software Visibility" bit
@ 2014-09-02  4:03 Bjorn Helgaas
  2014-09-02  6:32 ` Rajat Jain
  2014-11-01 15:25 ` Martin Mares
  0 siblings, 2 replies; 3+ messages in thread
From: Bjorn Helgaas @ 2014-09-02  4:03 UTC (permalink / raw)
  To: Martin Mares; +Cc: linux-pci, rajatxjain

lspci incorrectly tests bit 4, not bit 0, for "CRS Software Visibility" in
the Root Capabilities register, so it shows "RootCap: CRSVisible-" even for
devices that do support Software Visibility.

Use the correct definition for PCI_EXP_RTCAP_CRSVIS.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 lib/header.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/header.h b/lib/header.h
index db85df1..8ee7565 100644
--- a/lib/header.h
+++ b/lib/header.h
@@ -842,7 +842,7 @@
 #define  PCI_EXP_RTCTL_PMEIE	0x0008	/* PME Interrupt Enable */
 #define  PCI_EXP_RTCTL_CRSVIS	0x0010	/* Configuration Request Retry Status Visible to SW */
 #define PCI_EXP_RTCAP		0x1e	/* Root Capabilities */
-#define  PCI_EXP_RTCAP_CRSVIS	0x0010	/* Configuration Request Retry Status Visible to SW */
+#define  PCI_EXP_RTCAP_CRSVIS	0x0001	/* Configuration Request Retry Status Visible to SW */
 #define PCI_EXP_RTSTA		0x20	/* Root Status */
 #define  PCI_EXP_RTSTA_PME_REQID   0x0000ffff /* PME Requester ID */
 #define  PCI_EXP_RTSTA_PME_STATUS  0x00010000 /* PME Status */


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] lspci: Correct Root Capabilities "CRS Software Visibility" bit
  2014-09-02  4:03 [PATCH] lspci: Correct Root Capabilities "CRS Software Visibility" bit Bjorn Helgaas
@ 2014-09-02  6:32 ` Rajat Jain
  2014-11-01 15:25 ` Martin Mares
  1 sibling, 0 replies; 3+ messages in thread
From: Rajat Jain @ 2014-09-02  6:32 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: Martin Mares, linux-pci

Thanks, this will help.

Best Regards,

Rajat

On Mon, Sep 1, 2014 at 9:03 PM, Bjorn Helgaas <bhelgaas@google.com> wrote:
> lspci incorrectly tests bit 4, not bit 0, for "CRS Software Visibility" in
> the Root Capabilities register, so it shows "RootCap: CRSVisible-" even for
> devices that do support Software Visibility.
>
> Use the correct definition for PCI_EXP_RTCAP_CRSVIS.
>
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> ---
>  lib/header.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/header.h b/lib/header.h
> index db85df1..8ee7565 100644
> --- a/lib/header.h
> +++ b/lib/header.h
> @@ -842,7 +842,7 @@
>  #define  PCI_EXP_RTCTL_PMEIE   0x0008  /* PME Interrupt Enable */
>  #define  PCI_EXP_RTCTL_CRSVIS  0x0010  /* Configuration Request Retry Status Visible to SW */
>  #define PCI_EXP_RTCAP          0x1e    /* Root Capabilities */
> -#define  PCI_EXP_RTCAP_CRSVIS  0x0010  /* Configuration Request Retry Status Visible to SW */
> +#define  PCI_EXP_RTCAP_CRSVIS  0x0001  /* Configuration Request Retry Status Visible to SW */
>  #define PCI_EXP_RTSTA          0x20    /* Root Status */
>  #define  PCI_EXP_RTSTA_PME_REQID   0x0000ffff /* PME Requester ID */
>  #define  PCI_EXP_RTSTA_PME_STATUS  0x00010000 /* PME Status */
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] lspci: Correct Root Capabilities "CRS Software Visibility" bit
  2014-09-02  4:03 [PATCH] lspci: Correct Root Capabilities "CRS Software Visibility" bit Bjorn Helgaas
  2014-09-02  6:32 ` Rajat Jain
@ 2014-11-01 15:25 ` Martin Mares
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Mares @ 2014-11-01 15:25 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: linux-pci, rajatxjain

Hi!

> lspci incorrectly tests bit 4, not bit 0, for "CRS Software Visibility" in
> the Root Capabilities register, so it shows "RootCap: CRSVisible-" even for
> devices that do support Software Visibility.
> 
> Use the correct definition for PCI_EXP_RTCAP_CRSVIS.

Thanks, applied.

				Have a nice fortnight
-- 
Martin `MJ' Mares                          <mj@ucw.cz>   http://mj.ucw.cz/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"The generation of random numbers is too important to be left to chance."

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-01 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-02  4:03 [PATCH] lspci: Correct Root Capabilities "CRS Software Visibility" bit Bjorn Helgaas
2014-09-02  6:32 ` Rajat Jain
2014-11-01 15:25 ` Martin Mares

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).