Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Dongdong Liu <liudongdong3@huawei.com>
To: "Krzysztof Wilczyński" <kw@linux.com>
Cc: <mj@ucw.cz>, <helgaas@kernel.org>, <linux-pci@vger.kernel.org>
Subject: Re: [PATCH RESEND] lspci: Decode VF 10-Bit Tag Requester
Date: Mon, 8 Mar 2021 22:47:53 +0800	[thread overview]
Message-ID: <0a2925d2-5f2a-18e8-179c-f1bd6bb259ec@huawei.com> (raw)
In-Reply-To: <YEQwTRKNmnNk1OY+@rocinante>


Hi Krzysztof

Many thanks for your review.

On 2021/3/7 9:45, Krzysztof Wilczyński wrote:
> Hi,
>
> [+cc Bjorn who was workingo on making commas usage more consistent]
>
> Thank you for sending the patch over.
>
>> 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+
> [...]
>
> Would you be able to move the "10BitTagReq" in the "IOVCtl" after the
> "Migration" so that its placement is consistent with the "IOVCap"?  This
> would be also along the lines of how the same files is already used in
> the ls-caps.c file.

To be honest, I am not sure this is suitable.
PCIe 5.0r1.0 spec section 9.3.3.2 SR-IOV Capabilities Register
VF 10-Bit Tag Requester Supported defined in BIT[2].

9.3.3.3 SR-IOV Control Register (Offset 08h)
VF 10-Bit Tag Requester Enable defined in BIT[5] and this is after the 
BIT[4] ARI Capable Hierarchy.

Howerver if we need to keep consistent with the "IOVCap". I can
move the "10BitTagReq" in the "IOVCtl" after the "Migration".

>
> Bjorn was also working on making a lot of the commas usage throughout to
> follow the best practice, thus I believe that the commas there would not
> be needed.  Having said that, it might be better to follow the current
> style present there at the moment.
>
> See 018f413 ("lspci: Use commas more consistently") for more details on
> Bjorn's work to normalise the usage of commas.

Good suggestion, will fix.
>
> Additionally, with the new fields, would you also have to update some of
> the tests files?  For example:
>
>   Index File                Line Content
>       0 tests/cap-dvsec-cxl   81 Capabilities: [b80 v1] Single Root I/O Virtualization (SR-IOV)
>       1 tests/cap-dvsec-cxl   82 IOVCap: Migration-, Interrupt Message Number: 000
>       2 tests/cap-dvsec-cxl   83 IOVCtl: Enable- Migration- Interrupt- MSE- ARIHierarchy-
>       3 tests/cap-dvsec-cxl   84 IOVSta: Migration-
>       4 tests/cap-pcie-2      50 Capabilities: [160] Single Root I/O Virtualization (SR-IOV)
>       5 tests/cap-pcie-2      51 IOVCap:  Migration-, Interrupt Message Number: 000
>       6 tests/cap-pcie-2      52 IOVCtl:  Enable+ Migration- Interrupt- MSE+ ARIHierarchy-
>       7 tests/cap-pcie-2      53 IOVSta:  Migration-
>       8 tests/cap-ea-1        59 Capabilities: [180 v1] Single Root I/O Virtualization (SR-IOV)
>       9 tests/cap-ea-1        60 IOVCap:  Migration-, Interrupt Message Number: 000
>      10 tests/cap-ea-1        61 IOVCtl:  Enable+ Migration- Interrupt- MSE+ ARIHierarchy+
>      11 tests/cap-ea-1        62 IOVSta:  Migration-
>
OK, will do.

Thanks,
Dongdong
> Otheriwse, it looks good!  Thank you!
>
> Krzysztof
> .
>

  reply	other threads:[~2021-03-08 14:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-03 11:14 [PATCH RESEND] lspci: Decode VF 10-Bit Tag Requester Dongdong Liu
2021-03-07  1:45 ` Krzysztof Wilczyński
2021-03-08 14:47   ` Dongdong Liu [this message]
2021-03-08 15:09     ` Krzysztof Wilczyński

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0a2925d2-5f2a-18e8-179c-f1bd6bb259ec@huawei.com \
    --to=liudongdong3@huawei.com \
    --cc=helgaas@kernel.org \
    --cc=kw@linux.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=mj@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox