Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2572674pxu; Mon, 7 Dec 2020 09:49:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEmna8hK1LPmHu5rGA/00irq3MThZM3cH7n6Y42rqeMb9F9M1WBvIE+UaYKQxcw8C9u5h1 X-Received: by 2002:a17:907:2d0f:: with SMTP id gs15mr62376ejc.455.1607363383733; Mon, 07 Dec 2020 09:49:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607363383; cv=none; d=google.com; s=arc-20160816; b=IflDsYeZdfm/3HHkUTFZT0eUNiKc9h4Z6KH31VMAdbK+atDrTREqV0pO3cisookWEF YxbJ/0ARPu+IYl3jnrtvHnXmLQp5tMJhD9gPd+zbHa1Teuf7+6vTBd5IEAfXVDF0FKJf JUXBrG9EBSHcxH35A26mDEKUvEmD6qXfCj2NldAgRCxG03sJkgMXHZhzLRItNgRjxKUG llW8cWKI/uj3gv/omg2P/ntGc57D8hNV02t8D67Msy5cGaofbSY0WS2DGOi6eMBxWaQA VfmgfE2Xx7XezXKcWTPcdvb9OJqEGugd1IRpk4os/D+hV7ExP96Z/IpUsh1wB5yLAzuY SqLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=HJz46qYuFRcmNkgVFOb8dKXnAlGhmytN5fHlgYL2Iok=; b=a+CLGqFULZiGs3hNAvqCxuBahpQG8c3sa4Y+/5NwhC9Zl+xKhSY1/xxnqaQ6j6KGfm HKSys8ATvdSjt7Lfly/UsQ2gBQUGG20j62ar+bdX4lDUZ+kzRmi80hsFUKO/pDpYYX2w D5jfkamufOeCP0tK2eyJfwcNs2E7Q5LwF2RpomoFS8SxRoiWLLfVVcCITI9UnT1w8vVc PejG6m3YyxA4cUWNLhVQ6ABt+P1NbkdqiqvmTvlJq8kATlolXNDgyRvnye84609SeYGp P2x1qhU/JHjyGHBpxikC9QdJudSlBu38RqSvW6mLTNl+a2+EBN66vwmvEE3dTCnUvQbn ttew== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si8466201eda.107.2020.12.07.09.49.19; Mon, 07 Dec 2020 09:49:43 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726190AbgLGRqJ (ORCPT + 99 others); Mon, 7 Dec 2020 12:46:09 -0500 Received: from mga11.intel.com ([192.55.52.93]:39122 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbgLGRqJ (ORCPT ); Mon, 7 Dec 2020 12:46:09 -0500 IronPort-SDR: 6Sdb+hBa6PfEtWIws/R/7BGw3ERGeJPmHkP+Cepvqun5M/FZAtIWKkV4eC+dYeeTa5efwzQmH3 CTBEwbkb2DEw== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="170233171" X-IronPort-AV: E=Sophos;i="5.78,400,1599548400"; d="scan'208";a="170233171" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2020 09:44:23 -0800 IronPort-SDR: TImwrDxpD+lTqqwCKWBLXUGiSMULU6r2XFc4UJRoAELo4kzpsbipwrEdm5fpW39JWMDlKoFXM6 ceDTmnWZN5pQ== X-IronPort-AV: E=Sophos;i="5.78,400,1599548400"; d="scan'208";a="317271565" Received: from unknown (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.209.92.217]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2020 09:44:23 -0800 Subject: Re: pci 0000:00:07.0: DPC: RP PIO log size 0 is invalid To: Paul Menzel Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, LKML , Mario Limonciello , Mika Westerberg References: <084ea8e2-baae-0e2d-c60d-73fb055bdc1d@molgen.mpg.de> From: "Kuppuswamy, Sathyanarayanan" Message-ID: <672a0bc2-717a-2545-6a19-8ca7e209c523@linux.intel.com> Date: Mon, 7 Dec 2020 09:44:20 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <084ea8e2-baae-0e2d-c60d-73fb055bdc1d@molgen.mpg.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 12/7/20 5:08 AM, Paul Menzel wrote: > [Bringing the issue up on the list in case the Linux Bugzilla is not monitored/used.] > > > Dear Linux folks, > > > On Intel Tiger Lake Dell laptop, Linux logs the error below [1]. > >     [    0.507307] pci 0000:00:07.0: DPC: RP PIO log size 0 is invalid >     [    0.508835] pci 0000:00:07.2: DPC: RP PIO log size 0 is invalid > >     $ lspci -nn -s 00:07 >     00:07.0 PCI bridge [0604]: Intel Corporation Tiger Lake-LP Thunderbolt PCI Express Root Port #0 > [8086:9a23] (rev 01) >     00:07.2 PCI bridge [0604]: Intel Corporation Tiger Lake-LP Thunderbolt PCI Express Root Port #2 > [8086:9a27] (rev 01) > > Commit 2700561817 (PCI/DPC: Cache DPC capabilities in pci_init_capabilities()) [1] probably > introduced it in Linux 5.7. > > What does this error actually mean? > >     pdev->dpc_rp_log_size = (cap & PCI_EXP_DPC_RP_PIO_LOG_SIZE) >> 8; >     if (pdev->dpc_rp_log_size < 4 || pdev->dpc_rp_log_size > 9) { >         pci_err(pdev, "RP PIO log size %u is invalid\n", >             pdev->dpc_rp_log_size); >         pdev->dpc_rp_log_size = 0; As per PCIe spec r5.0, sec 7.9.15.2, valid RP log size is 4 or greater. Please see the text copied from spec - - - - RP PIO Log Size - This field indicates how many DWORDs are allocated for the RP PIO log registers, comprised by the RP PIO Header Log, the RP PIO ImpSpec Log, and RP PIO TLP Prefix Log. If the Root Port supports RP Extensions for DPC, the value of this field must be 4 or greater; otherwise, the value of this field must be 0. See Section 7.9.15.11 , Section 7.9.15.12 , and Section 7.9.15.13 . - - - - In this case, since "(!(cap & PCI_EXP_DPC_CAP_RP_EXT))" condition is false, RP EXT is supported. If RP EXT is supported, valid log size should be at-least 4. >     } > > (I guess `cap & PCI_EXP_DPC_RP_PIO_LOG_SIZE` is zero too?) > > Is it a firmware issue or a hardware issue? I think this could be hardware issue. > > > Kind regards, > > Paul > > > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=209943 >      "pci 0000:00:07.0: DPC: RP PIO log size 0 is invalid" > [2]: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=27005618178ef9e9bf9c42fd91101771c92e9308 > -- Sathyanarayanan Kuppuswamy Linux Kernel Developer