Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp870909pxb; Wed, 15 Sep 2021 15:34:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcluZPfaYJIJ0Hmi1ciC2QRK1jnc71jSLLjLRPt12aN+gHKFe6Y9xphVSYHKW2h7p6fEn2 X-Received: by 2002:a17:906:584:: with SMTP id 4mr2628817ejn.56.1631745282830; Wed, 15 Sep 2021 15:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631745282; cv=none; d=google.com; s=arc-20160816; b=p+743vERLl+fuH+S6WO+96J/cIgSsVO4xgrlTXcktMlNs5ArzdU5XplBZXDBK/qgR/ WhXpxpTtdKnPtk8v2ETzfwBTOLysGIASRbudb0Q6+uHMxCMCQrYMEowwg8YMitsWPDCv UqGuU5AgO5i8qIqtSGr0N6lF90hjzDGWlYZOvmkRYCO6YyJFzGbgTqu/0w6Es/+iXeU5 5g4zI1v1k+l0Rr8oK/+BYVP0XBtmfkfILoouJ1vvlICqz27lKILBEnMkwk2x7b5NP1J9 rrSxaiT3TmjFAZ/eSuT//buB2yF96yHMA5rFVeNl7CoG60L2gQutst8MVa6xOsn+RWjC lAig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=6xoZ1sfA2hRYbk5sdFwwljE7S+7N8aQzcdsa4PGsG10=; b=kFSdLi8wa1eHl8+8swT/XANIuhIh5IXyCNoGFplyER5eAVYNdQmHqWlXHwCKqFbJXr 38YC5Gzv/TvJke4ojBTe8tUlai+L5BPdoZLoDBxOB/HDIZ4M6NsC2+54x3MRxvs5GWkK lvc0kskIJecos7duq7JaCsLRM6ZJFsCPu62sysmyOENx9c5EJ6kb7kKI/plDFaL9v++1 1AaY5+oOdtb+rYF3VJZu1wD6r3u5AkOph3KcB478EI9yCVFYP1++vXyvyi5mdTWUE0kG U7WMZ3DGcqF5lgoymhyWnNDEeeZT6WT7IJSYH1zYl0LXfD72UDLJK1Wbu7kqpFP4JQK4 IiuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ucJB253O; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si1709663ejo.47.2021.09.15.15.34.19; Wed, 15 Sep 2021 15:34:42 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ucJB253O; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232712AbhIOWdk (ORCPT + 99 others); Wed, 15 Sep 2021 18:33:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:45656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232640AbhIOWdk (ORCPT ); Wed, 15 Sep 2021 18:33:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3E6E5603E9; Wed, 15 Sep 2021 22:32:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631745140; bh=K3iyOGBt+lTyO/0wz6hOdUlzVS8jaZ4L1n8aHs0PUGk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ucJB253ObmQzY8kH4snfqMPbQRHyc2K1XWf+qPBI+9IMs3Z+307VFle8dTNF4iKHn TsGbAIpvYyw0qK4+INSmkMsjwguarg7V+hkG3KzGe0Bd+7zgc5Uo18fAE2aYt7Qvy/ RVwVFKr8HLNv82+YfxTqnSvKPlgaqZAW41p9URYsxrY0K5Yg9upnVxj/RmbM5NA7nN Rb8ZJN5mVK+gqpXgiUnp0yltZ/tW54yBOBwHaAO7gX0T5Tx68F1Hr/maijyIqRKNKX 7OefslAWO0kI5jSSK5QgDSmPZ6eWGTPAhlkBV1z/J3XG/dAFJOopL7HhjP0VOjlPH/ NL2+SbQanR72A== Date: Wed, 15 Sep 2021 17:32:18 -0500 From: Bjorn Helgaas To: Hisashi T Fujinaka Cc: Heiner Kallweit , Dave Jones , "linux-pci@vger.kernel.org" , Linux Kernel Mailing List , intel-wired-lan , Bjorn Helgaas Subject: Re: [Intel-wired-lan] Linux 5.15-rc1 - 82599ES VPD access isue Message-ID: <20210915223218.GA1542966@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1eba46af-e9d1-36aa-4bb7-9968b92a932f@twofifty.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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