linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/2] lspci: Decode VF 10-Bit Tag Requester
@ 2021-03-09 13:35 Dongdong Liu
  2021-03-09 13:35 ` [PATCH V2 1/2] " Dongdong Liu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Dongdong Liu @ 2021-03-09 13:35 UTC (permalink / raw)
  To: mj, helgaas, kw, linux-pci

The patchset is to decode VF 10-Bit Tag Requester and
update the tests files.

V1->V2: Fix comments suggested by Krzysztof Wilczyński.

Dongdong Liu (2):
  lspci: Decode VF 10-Bit Tag Requester
  lspci: Update tests files with VF 10-Bit Tag Requester

 lib/header.h        | 2 ++
 ls-ecaps.c          | 8 ++++----
 tests/cap-dvsec-cxl | 4 ++--
 tests/cap-ea-1      | 4 ++--
 tests/cap-pcie-2    | 4 ++--
 5 files changed, 12 insertions(+), 10 deletions(-)

--
1.9.1


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

* [PATCH V2 1/2] lspci: Decode VF 10-Bit Tag Requester
  2021-03-09 13:35 [PATCH V2 0/2] lspci: Decode VF 10-Bit Tag Requester Dongdong Liu
@ 2021-03-09 13:35 ` Dongdong Liu
  2021-03-09 13:35 ` [PATCH V2 2/2] lspci: Update tests files with " Dongdong Liu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Dongdong Liu @ 2021-03-09 13:35 UTC (permalink / raw)
  To: mj, helgaas, kw, linux-pci

Decode VF 10-Bit Tag Requester Supported and Enable bit
in SR-IOV Capabilities Register.

Sample output:
  IOVCap: Migration- 10BitTagReq- Interrupt Message Number: 000
  IOVCtl: Enable+ Migration- Interrupt- MSE+ ARIHierarchy- 10BitTagReq-

Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
---
 lib/header.h | 2 ++
 ls-ecaps.c   | 8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/lib/header.h b/lib/header.h
index 170e5c1..bff49c2 100644
--- a/lib/header.h
+++ b/lib/header.h
@@ -1126,6 +1126,7 @@
 /* Single Root I/O Virtualization */
 #define PCI_IOV_CAP		0x04	/* SR-IOV Capability Register */
 #define  PCI_IOV_CAP_VFM	0x00000001 /* VF Migration Capable */
+#define  PCI_IOV_CAP_VF_10BIT_TAG_REQ 0x00000004 /* VF 10-Bit Tag Requester Supported */
 #define  PCI_IOV_CAP_IMN(x)	((x) >> 21) /* VF Migration Interrupt Message Number */
 #define PCI_IOV_CTRL		0x08	/* SR-IOV Control Register */
 #define  PCI_IOV_CTRL_VFE	0x0001	/* VF Enable */
@@ -1133,6 +1134,7 @@
 #define  PCI_IOV_CTRL_VFMIE	0x0004	/* VF Migration Interrupt Enable */
 #define  PCI_IOV_CTRL_MSE	0x0008	/* VF MSE */
 #define  PCI_IOV_CTRL_ARI	0x0010	/* ARI Capable Hierarchy */
+#define  PCI_IOV_CTRL_VF_10BIT_TAG_REQ_EN 0x0020 /* VF 10-Bit Tag Requester Enable */
 #define PCI_IOV_STATUS		0x0a	/* SR-IOV Status Register */
 #define  PCI_IOV_STATUS_MS	0x0001	/* VF Migration Status */
 #define PCI_IOV_INITIALVF	0x0c	/* Number of VFs that are initially associated */
diff --git a/ls-ecaps.c b/ls-ecaps.c
index 99c55ff..1cea315 100644
--- a/ls-ecaps.c
+++ b/ls-ecaps.c
@@ -369,13 +369,13 @@ cap_sriov(struct device *d, int where)
     return;
 
   l = get_conf_long(d, where + PCI_IOV_CAP);
-  printf("\t\tIOVCap:\tMigration%c, Interrupt Message Number: %03x\n",
-	FLAG(l, PCI_IOV_CAP_VFM), PCI_IOV_CAP_IMN(l));
+  printf("\t\tIOVCap:\tMigration%c 10BitTagReq%c Interrupt Message Number: %03x\n",
+	FLAG(l, PCI_IOV_CAP_VFM), FLAG(l, PCI_IOV_CAP_VF_10BIT_TAG_REQ), PCI_IOV_CAP_IMN(l));
   w = get_conf_word(d, where + PCI_IOV_CTRL);
-  printf("\t\tIOVCtl:\tEnable%c Migration%c Interrupt%c MSE%c ARIHierarchy%c\n",
+  printf("\t\tIOVCtl:\tEnable%c Migration%c Interrupt%c MSE%c ARIHierarchy%c 10BitTagReq%c\n",
 	FLAG(w, PCI_IOV_CTRL_VFE), FLAG(w, PCI_IOV_CTRL_VFME),
 	FLAG(w, PCI_IOV_CTRL_VFMIE), FLAG(w, PCI_IOV_CTRL_MSE),
-	FLAG(w, PCI_IOV_CTRL_ARI));
+	FLAG(w, PCI_IOV_CTRL_ARI), FLAG(w, PCI_IOV_CTRL_VF_10BIT_TAG_REQ_EN));
   w = get_conf_word(d, where + PCI_IOV_STATUS);
   printf("\t\tIOVSta:\tMigration%c\n", FLAG(w, PCI_IOV_STATUS_MS));
   w = get_conf_word(d, where + PCI_IOV_INITIALVF);
-- 
1.9.1


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

* [PATCH V2 2/2] lspci: Update tests files with VF 10-Bit Tag Requester
  2021-03-09 13:35 [PATCH V2 0/2] lspci: Decode VF 10-Bit Tag Requester Dongdong Liu
  2021-03-09 13:35 ` [PATCH V2 1/2] " Dongdong Liu
@ 2021-03-09 13:35 ` Dongdong Liu
  2021-05-22  9:43 ` [PATCH V2 0/2] lspci: Decode " Dongdong Liu
  2022-01-21 13:03 ` Martin Mareš
  3 siblings, 0 replies; 5+ messages in thread
From: Dongdong Liu @ 2021-03-09 13:35 UTC (permalink / raw)
  To: mj, helgaas, kw, linux-pci

Update the tests files with the new field 10BitTagReq
in SR-IOV Capabilities Register.

Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
---
 tests/cap-dvsec-cxl | 4 ++--
 tests/cap-ea-1      | 4 ++--
 tests/cap-pcie-2    | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/cap-dvsec-cxl b/tests/cap-dvsec-cxl
index c499d0e..a24e3fb 100644
--- a/tests/cap-dvsec-cxl
+++ b/tests/cap-dvsec-cxl
@@ -79,8 +79,8 @@
                 PTMControl: Enabled:- RootSelected:-
                 PTMEffectiveGranularity: Unknown
         Capabilities: [b80 v1] Single Root I/O Virtualization (SR-IOV)
-                IOVCap: Migration-, Interrupt Message Number: 000
-                IOVCtl: Enable- Migration- Interrupt- MSE- ARIHierarchy-
+                IOVCap: Migration- 10BitTagReq- Interrupt Message Number: 000
+                IOVCtl: Enable- Migration- Interrupt- MSE- ARIHierarchy- 10BitTagReq-
                 IOVSta: Migration-
                 Initial VFs: 6, Total VFs: 6, Number of VFs: 0, Function Dependency Link: 00
                 VF offset: 16, stride: 2, Device ID: 0d52
diff --git a/tests/cap-ea-1 b/tests/cap-ea-1
index df88ba9..776839d 100644
--- a/tests/cap-ea-1
+++ b/tests/cap-ea-1
@@ -57,8 +57,8 @@
 		ARICtl:	MFVC- ACS-, Function Group: 0
 	Capabilities: [108 v1] Vendor Specific Information: ID=00a0 Rev=1 Len=040 <?>
 	Capabilities: [180 v1] Single Root I/O Virtualization (SR-IOV)
-		IOVCap:	Migration-, Interrupt Message Number: 000
-		IOVCtl:	Enable+ Migration- Interrupt- MSE+ ARIHierarchy+
+		IOVCap:	Migration- 10BitTagReq- Interrupt Message Number: 000
+		IOVCtl:	Enable+ Migration- Interrupt- MSE+ ARIHierarchy+ 10BitTagReq-
 		IOVSta:	Migration-
 		Initial VFs: 128, Total VFs: 128, Number of VFs: 128, Function Dependency Link: 00
 		VF offset: 1, stride: 1, Device ID: a034
diff --git a/tests/cap-pcie-2 b/tests/cap-pcie-2
index 47c8953..9bde139 100644
--- a/tests/cap-pcie-2
+++ b/tests/cap-pcie-2
@@ -48,8 +48,8 @@
 		ARICap:	MFVC- ACS-, Next Function: 1
 		ARICtl:	MFVC- ACS-, Function Group: 0
 	Capabilities: [160] Single Root I/O Virtualization (SR-IOV)
-		IOVCap:	Migration-, Interrupt Message Number: 000
-		IOVCtl:	Enable+ Migration- Interrupt- MSE+ ARIHierarchy-
+		IOVCap:	Migration- 10BitTagReq- Interrupt Message Number: 000
+		IOVCtl:	Enable+ Migration- Interrupt- MSE+ ARIHierarchy- 10BitTagReq-
 		IOVSta:	Migration-
 		Initial VFs: 8, Total VFs: 8, Number of VFs: 1, Function Dependency Link: 00
 		VF offset: 384, stride: 2, Device ID: 10ca
-- 
1.9.1


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

* Re: [PATCH V2 0/2] lspci: Decode VF 10-Bit Tag Requester
  2021-03-09 13:35 [PATCH V2 0/2] lspci: Decode VF 10-Bit Tag Requester Dongdong Liu
  2021-03-09 13:35 ` [PATCH V2 1/2] " Dongdong Liu
  2021-03-09 13:35 ` [PATCH V2 2/2] lspci: Update tests files with " Dongdong Liu
@ 2021-05-22  9:43 ` Dongdong Liu
  2022-01-21 13:03 ` Martin Mareš
  3 siblings, 0 replies; 5+ messages in thread
From: Dongdong Liu @ 2021-05-22  9:43 UTC (permalink / raw)
  To: mj, helgaas, kw, linux-pci


kindly ping...

On 2021/3/9 21:35, Dongdong Liu wrote:
> The patchset is to decode VF 10-Bit Tag Requester and
> update the tests files.
>
> V1->V2: Fix comments suggested by Krzysztof Wilczyński.
>
> Dongdong Liu (2):
>   lspci: Decode VF 10-Bit Tag Requester
>   lspci: Update tests files with VF 10-Bit Tag Requester
>
>  lib/header.h        | 2 ++
>  ls-ecaps.c          | 8 ++++----
>  tests/cap-dvsec-cxl | 4 ++--
>  tests/cap-ea-1      | 4 ++--
>  tests/cap-pcie-2    | 4 ++--
>  5 files changed, 12 insertions(+), 10 deletions(-)
>
> --
> 1.9.1
>
> .
>

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

* Re: [PATCH V2 0/2] lspci: Decode VF 10-Bit Tag Requester
  2021-03-09 13:35 [PATCH V2 0/2] lspci: Decode VF 10-Bit Tag Requester Dongdong Liu
                   ` (2 preceding siblings ...)
  2021-05-22  9:43 ` [PATCH V2 0/2] lspci: Decode " Dongdong Liu
@ 2022-01-21 13:03 ` Martin Mareš
  3 siblings, 0 replies; 5+ messages in thread
From: Martin Mareš @ 2022-01-21 13:03 UTC (permalink / raw)
  To: Dongdong Liu; +Cc: helgaas, kw, linux-pci

Hello!

> The patchset is to decode VF 10-Bit Tag Requester and
> update the tests files.
> 
> V1->V2: Fix comments suggested by Krzysztof Wilczyński.
> 
> Dongdong Liu (2):
>   lspci: Decode VF 10-Bit Tag Requester
>   lspci: Update tests files with VF 10-Bit Tag Requester
> 
>  lib/header.h        | 2 ++
>  ls-ecaps.c          | 8 ++++----
>  tests/cap-dvsec-cxl | 4 ++--
>  tests/cap-ea-1      | 4 ++--
>  tests/cap-pcie-2    | 4 ++--
>  5 files changed, 12 insertions(+), 10 deletions(-)

Applied, sorry for the delay.

					Martin

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

end of thread, other threads:[~2022-01-21 13:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 13:35 [PATCH V2 0/2] lspci: Decode VF 10-Bit Tag Requester Dongdong Liu
2021-03-09 13:35 ` [PATCH V2 1/2] " Dongdong Liu
2021-03-09 13:35 ` [PATCH V2 2/2] lspci: Update tests files with " Dongdong Liu
2021-05-22  9:43 ` [PATCH V2 0/2] lspci: Decode " Dongdong Liu
2022-01-21 13:03 ` Martin Mareš

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).