Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp581508pxb; Tue, 14 Sep 2021 04:28:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmZqE0aGtPgwuCQXzUL3zBV826D0Sg3ASczLVKTyJ0yLKRAFTFrpcevb3ZRdqaH/Wddg2y X-Received: by 2002:a05:6402:2792:: with SMTP id b18mr18654362ede.173.1631618909318; Tue, 14 Sep 2021 04:28:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631618909; cv=none; d=google.com; s=arc-20160816; b=KEwrZ/Z1xWB5HNAY/kcWaWtezpanxY5cdi9ZRucibV0BQTHLRBwATd/0Kpr7HZJmHm fNKL0LyEqM3gsjRFcuO5xhRHqiBG3v7sAVheOq2cUlkdakVsBHXCuI1Gbuui/R5ZOKOE K4rmfAV2N77Ws+ZwJHFR5/HqUrsVGgPltRYRZ9hK8kV0ifnleiR/AIxk03AwTlxVA25y 5PET29cnXDsFO6upROGrXoGEd4temjVLKQFEo3/LNyl5Yy9i+qSHK70YvwzpF6Tu2nQX vKvtGBNfe9ozZ0Sb5HXsmmQ+uyhC4yArv5KBIfUtOjnxeUeEp0738xZteEv99qPERMyK dDuA== 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=SlQpO1N9mNg14A89qpa140Umbd0SI6MnaeRw2jepQ3I=; b=X/dwRYpa8a1NyssaD7GGcI6dKH8XJGrjf15IGHMLd0R4sHYkHIwnQVljkLWmFmOOmW sguxjKjZ6uBZ+B0IM5LJfj4G5XereI+t2qhuGjO85RiXIw9W7WGYKgNOeIr6Yl2zb+eG 6TrtNmaYqyw8cBOpVfb9KQAv3DcbyrRQDBlVehmxLv3NgNDAA+pRpglh6vvCbFBZTA7o dHcGWppJwtmrrf5pAiwS4cT9+qxP31L+te1KXAfT0GeMvzJvVzg7VmYcUCos5pB5pWoR ah+YxGg4Ve/R7Zbk8rA3musvJHeddQgTDcCEqlIvtyR+kQ52StOeOsYqZUWjA7LwvXse 4wsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=htNEbtOR; 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 hg13si5772373ejc.330.2021.09.14.04.28.04; Tue, 14 Sep 2021 04:28:29 -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=htNEbtOR; 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 S232027AbhINL1s (ORCPT + 99 others); Tue, 14 Sep 2021 07:27:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:45954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231941AbhINL1r (ORCPT ); Tue, 14 Sep 2021 07:27:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 181086108B; Tue, 14 Sep 2021 11:26:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631618790; bh=z17rkFjIwbMfar/Gaqd/jjuffYq/yJJhF9L7K2YXTPM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=htNEbtOR8qIlDyRjbMOB9WHAN23xw30njyo4Z42xUf66tdcFROqF99j61kAILuWku EEi7WY+kqZM0x4c9s0vRVj+qvX97IYAP7YCguzD7doP/d0i3WtzTNwiMZWCM1g1HFQ h1C1FGtxXJolrKsVRIi2uMdxG/ItX9HWzsVhsYGZhe5Mc0D3rOH11ZlDjfE2jyvlV9 AylWfFbbnWCwxI4ElWshfq4Rjx8Bs7GgtCsGMgg/uefYgQ8V8gC7v0Fp34a4O/2ZTP OO9l5SwILc7PDBXMizpfqhfgpbSUvUiuL6azvn9pqzh3X9Mxv9vg9mh1mCUO+tV5oS 7bowPvbgqGsBw== Date: Tue, 14 Sep 2021 06:26:28 -0500 From: Bjorn Helgaas To: Heiner Kallweit Cc: Dave Jones , Linus Torvalds , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: Linux 5.15-rc1 Message-ID: <20210914112628.GA1412445@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <870c3332-db60-9cf5-0439-247f91ce7808@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 14, 2021 at 08:21:46AM +0200, Heiner Kallweit wrote: > On 14.09.2021 01:46, Bjorn Helgaas wrote: > > +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATTANSIC, PCI_ANY_ID, quirk_blacklist_vpd); > > /* > > Leaving the quirks in FIXUP_HEADER stage would have the advantage that for > blacklisted devices the vpd sysfs attribute isn't visibale. The needed > changes to the patch are minimal. What do you have in mind? The only thing I can think of would be to add a "pci_dev.no_vpd" bit. "vpd.cap == 0" means the device has no VPD, and "vpd.len == 0" means we haven't determined the size yet. All devices start off with vpd.cap == 0 and vpd.len == 0, so a FIXUP_HEADER quirk would have to set a sentinel value or some other bit. Bjorn