Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp916940pxb; Wed, 15 Sep 2021 16:51:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1Dl40wh98Jgde9da8GWxHjVsjiSNEd7nm4/cvAMyaVALci4YeQp8o/7pBNL/UxH0EIULW X-Received: by 2002:a17:906:3845:: with SMTP id w5mr2887301ejc.22.1631749860738; Wed, 15 Sep 2021 16:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631749860; cv=none; d=google.com; s=arc-20160816; b=sjZ70/veOzMFgIVOftJuwwjVRcUYGiSM7H4B1IOL3UU3rUiZ5q9TACLQyxeJVMpk0e /QsnoMSvsYwZKViO4Fq5JkESoQfveMqvU46+7XMTg1f3+iywuadBsssMAmC+71cSi3Rc SsEk5+pBx8tdLQSIFa/xOsJk4nzZzqF1YVDNSBhcssl0gPAjvHszYVb52Ih2uiV7Pb6M aqPAPNAQOMqPZx5NVC1OXG/yJsOij9TYkjnZHAad+7XWCJmvbkCCiJvQLydzJIt00yhk azOl3GLxqzxShYtBUS1y7cYCo6b83IxVz7zvYD3ej3FwbXvCJHQNzbHU414iTlqQpYeP 6ZYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date; bh=x4EvMwrzgm0MDUEwZ7rjzgTWO1B76xPMqhoofNDaFLI=; b=JpZNI5YkiKs9RxpafRXKmssCmh/ryvuCaxcvCObfNhFdBDkbKT7MksX7jASvZWrw0g FjwZV1d/LcUmPnzTXyty+YZ/rbeA7bEjuUJub7/fXduLnSWcXdCIC7rMzi7NzigIx0RR aWuTzjb+KfT9SXz0cVU4qZXc5YRjkWJeoq8T7i4jT0Cq+JOYuudt4HiUaaQwCkDeqk8T 5dVhYgvjXRoHzQtoiwT8zm4hFLNoYOJWbiwmWeYV6g/AgwOwyJsyegbmpJ8fFW7SvLCG gZ60WBI3DsVhMyYgGabtZv627Je2BXkDMN0FiA619gqRRwztOKXWLciXHdG3wPkvIKZS XPgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp5si1882689ejc.447.2021.09.15.16.50.37; Wed, 15 Sep 2021 16:51:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233156AbhIOXsR (ORCPT + 99 others); Wed, 15 Sep 2021 19:48:17 -0400 Received: from mail.i8u.org ([75.148.87.25]:63648 "EHLO chris.i8u.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232975AbhIOXsQ (ORCPT ); Wed, 15 Sep 2021 19:48:16 -0400 Received: by chris.i8u.org (Postfix, from userid 1000) id 1609216C94F8; Wed, 15 Sep 2021 16:46:54 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by chris.i8u.org (Postfix) with ESMTP id 147C316C9353; Wed, 15 Sep 2021 16:46:54 -0700 (PDT) Date: Wed, 15 Sep 2021 16:46:54 -0700 (PDT) From: Hisashi T Fujinaka To: Bjorn Helgaas cc: Dave Jones , "linux-pci@vger.kernel.org" , Linux Kernel Mailing List , intel-wired-lan , Bjorn Helgaas , Heiner Kallweit Subject: Re: [Intel-wired-lan] Linux 5.15-rc1 - 82599ES VPD access isue In-Reply-To: <20210915223218.GA1542966@bjorn-Precision-5520> Message-ID: References: <20210915223218.GA1542966@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 15 Sep 2021, Bjorn Helgaas wrote: > On Wed, Sep 15, 2021 at 09:16:47AM -0700, Hisashi T Fujinaka wrote: >> On Wed, 15 Sep 2021, Heiner Kallweit wrote: >>> On 15.09.2021 16:18, Hisashi T Fujinaka wrote: >>>> On Tue, 14 Sep 2021, Heiner Kallweit wrote: >>>>> On 14.09.2021 22:00, Hisashi T Fujinaka wrote: > >>>>>> I have confirmation that this should be a valid image. The >>>>>> VPD is just a series of 3's. There are changes to preboot >>>>>> header, flash and BAR size, and as far as I can tell, a >>>>>> nonsense subdevice ID, but this should work. >>>>>> >>>>>> What was the original question? >>>>>> >>>>> "lspci -vv" complains about an invalid short tag 0x06 and the >>>>> PCI VPD code resulted in a stall. So it seems the data doesn't >>>>> have valid VPD format as defined in PCI specification. >>>>> >>>>> 01:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01) >>>>> Subsystem: Device 1dcf:030a >>>>> ... >>>>> Capabilities: [e0] Vital Product Data >>>>> *Unknown small resource type 06, will not decode more.* >>>>> >>>>> Not sure which method is used by the driver to get the EEPROM >>>>> content. For the issue here is relevant what is exposed via >>>>> PCI VPD. >>>>> >>>>> The related kernel error message has been reported few times, >>>>> e.g. here: https://access.redhat.com/solutions/3001451 Only >>>>> due to a change in kernel code this became a more prominent >>>>> issue now. >>>>> >>>>> You say that VPD is just a series of 3's. This may explain why >>>>> kernel and tools complain about an invalid VPD format. VPD >>>>> misses the tag structure. >>>> >>>> I think I conflated two issues and yours may not be the one with the >>>> weird Amazon NIC. In any case, the VPD does not match the spec and two >>>> people have confirmed it's just full of 3's. With the bogus subvendor >>>> ID, I'm thinking this is not an Intel NIC. > > A series of 0x03 0x03 0x03 ... bytes would decode as "small items of > type 00", so I assume the VPD contains a series of 0x33 0x33 0x33 ... > bytes. That would decode to a series of "small items of type 06", > each of length four (one byte for the tag, three bytes of data). > > Prior to v5.15, we would complain "invalid short VPD tag 06" and stop > reading. As of v5.15, I think we'll just keep reading looking for a > valid "end" tag, but we'll never find one. > > I think in v5.15 there will be no error message because the series of > four-byte small data items happens to fit exactly in the maximum 32KB > size of VPD and is technically legal syntactic structure, even though > it makes no sense. > > But it will be much slower and might account for the boot slowdown > Dave reported. > >>> In an earlier mail in this thread was stated that subvendor id is unknown. >>> Checking here https://pcisig.com/membership/member-companies?combine=1dcf >>> it says: Beijing Sinead Technology Co., Ltd. >> >> Huh. I didn't realize there was an official list beyond pciids.ucw.cz. >> >> In any case, that's who you need to talk to about the unlisted (to >> Linux) vendor ID and also the odd VPD data. > > https://pci-ids.ucw.cz/ is definitely unofficial in the sense that it > is basically crowd-sourced data, not the "official" Vendor IDs > controlled by the PCI SIG. > > I submitted an addition to https://pci-ids.ucw.cz/ > > Bjorn Just for my edumacation, do they keep track of device IDs, subvendor IDs (which are probably just the same as vendor IDs), and subdevice IDs in the PCI SIG? Or even the branding strings? Todd Fujinaka