Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F05C7C433F5 for ; Wed, 30 Mar 2022 11:44:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2FB7A10E153; Wed, 30 Mar 2022 11:44:40 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id E388510E153 for ; Wed, 30 Mar 2022 11:44:38 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 30F2C615ED; Wed, 30 Mar 2022 11:44:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0A55C340EE; Wed, 30 Mar 2022 11:44:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648640678; bh=ouH2LCtUegSceCgA5onVzRXsBm7StFk8kuTkYiJ93ac=; h=Date:From:To:Cc:Subject:From; b=pyKuAE7xg3DkSg+9Dqj6CLflFyGU4nZq00ohvoux9KxQjxEFdDXMJ9SqYUd/2+49z ZD35YR8boR5u4guyU4KXvqJzCKDf6Ol6j9Rb0g9Ok1cuDeG6QnAgzk1WghEPdmubSF 8ev3QkGHI5UftsX8QpCevjzFtTyWO6/ccRqmfdghAbJ8hRKadh4prAmtK46YE6+JrP a3n7UEZDSJlfYmnpWFIu1+wlCzt1FXvFAClW+FOKS7tNkeWvWSFgGN1mZeaAMF66c8 dQ3hOtXuo9FxFj2L/t3VL5rHEQWx4eouTObc7o8rlTSq2P+43wKFgVRELe0uP61AUr 72yxGhKFSvjGQ== Date: Wed, 30 Mar 2022 06:44:36 -0500 From: Bjorn Helgaas To: linux-pci@vger.kernel.org Subject: RX 5500 XT: PCIe link speed stuck at Gen1 2.5GT/s by default Message-ID: <20220330114436.GA1683263@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alex Deucher , Robert Hancock , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" See https://gitlab.freedesktop.org/drm/amd/-/issues/1447 This report was against DRM, but I'm mentioning it here because we've been talking about some link speed init issues lately, and AFAICT the gitlab reports don't show up anywhere in lore. Robert Hancock reported: > I'm using a RX 5500 XT card on an Asus PRIME H270-PRO motherboard, > Intel i5-7500 CPU, with kernel 5.10.9 under Fedora 33. I noticed > that in Linux, "lspci -vv" always showed the GPU PCIe link running > at 2.5GT/s link speed and never seemed to change regardless of the > application being run, while in Windows, GPU-Z shows the link > running at the max supported 8GT/s speed when under graphical load. > > It seems like the driver thinks that 2.5GT/s is the max allowable > speed, based on the pp_dpm_pcie file: > > > cd /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/ > > cat pp_dpm_pcie > 0: 2.5GT/s, x8 81Mhz * > 1: 2.5GT/s, x8 619Mhz * > > I'm assuming that something is going wrong with the PCIe link speed > detection in the driver. Using the "amdgpu.pcie_gen_cap=0x70007" > kernel command line option seems to result in the driver detecting > the proper 8GT/s maximum speed. > > lspci -vv output from booting without overriding the speed is > attached.