lkml.org 
[lkml]   [2019]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [EXT] VPD access Blocked by commit 0d5370d1d85251e5893ab7c90a429464de2e140b
On Mon, Jun 03, 2019 at 09:30:50PM +0000, Himanshu Madhani wrote:
> On May 30, 2019, at 1:58 PM, Bjorn Helgaas <helgaas@kernel.org> wrote:
>> On Thu, May 30, 2019 at 07:33:01PM +0000, Himanshu Madhani wrote:
>>> We are able to successfully read VPD config data using lspci and cat
>>> command

> Missed the request for xxd output. I got access back today for the system
> and captured it for you
>
> # cat /sys/class/pci_bus/0000\:13/device/0000\:13\:00.0/vpd | xxd
> 00000000: 822d 0051 4c6f 6769 6320 3332 4762 2032 .-.QLogic 32Gb 2
> 00000010: 2d70 6f72 7420 4643 2074 6f20 5043 4965 -port FC to PCIe
> 00000020: 2047 656e 3320 7838 2041 6461 7074 6572 Gen3 x8 Adapter
> 00000030: 9039 0050 4e07 514c 4532 3734 3253 4e0d .9.PN.QLE2742SN.
> 00000040: 4146 4431 3533 3359 3032 3939 3945 430f AFD1533Y02999EC.
> 00000050: 424b 3332 3130 3430 372d 3035 2030 3356 BK3210407-05 03V
> 00000060: 3906 3031 3031 3839 5256 01a0 78 9.010189RV..x
>
> PCIe trace also confirmed there are no READ errors.
> (if you need i can attach .pex file for review)

Thank you! It would be really excellent to have a report at
https://bugzilla.kernel.org with these details (hex VPD dump, .pex
file, QLogic firmware version info) attached. Your patch commit log
could then include the bugzilla URL.

If we had this sort of information for Ethan's original patch, we
would have a good start at making a smarter quirk. But we don't, so I
think all we can assume at this point is that all QLogic firmware
older than your current version is broken and we shouldn't try reading
VPD.

>> If a QLogic firmware update indeed fixed the VPD format, I suggest
>> that you ask the folks responsible for the firmware to identify the
>> specific version where that was fixed and how the OS can figure that
>> out.

> Still waiting on this data.

Don't hold your breath :)

> Since major OEMs are having issues using adapter to extract VPD data, We
> would like to get them relief first and then approach this issue with more
> detailed fix if needed.

I don't think it's a good idea to simply revert 0d5370d1d852. That
would mean any users that have the same QLogic firmware version Ethan
had would start seeing panics.

But I think you could certainly make a quirk that allows VPD access
for the firmware version you have on your card (or newer), leaving the
original "no VPD at all" behavior for older versions.

Bjorn

\
 
 \ /
  Last update: 2019-06-04 00:41    [W:1.788 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site