Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: liziyao@uniontech.com
Cc: "Lorenzo Pieralisi" <lpieralisi@kernel.org>,
	"Krzysztof Wilczyński" <kwilczynski@kernel.org>,
	"Manivannan Sadhasivam" <mani@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	niecheng1@uniontech.com, zhanjun@uniontech.com,
	guanwentao@uniontech.com, "Kexy Biscuit" <kexybiscuit@aosc.io>,
	linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
	loongarch@lists.linux.dev,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	stable@vger.kernel.org, "Lain Fearyncess Yang" <fsf@live.com>,
	"Ayden Meng" <aydenmeng@yeah.net>,
	"Mingcong Bai" <jeffbai@aosc.io>,
	"Xi Ruoyao" <xry111@xry111.site>,
	"Huacai Chen" <chenhuacai@kernel.org>
Subject: Re: [PATCH v5] PCI: loongson: Override PCIe bridge supported speeds for Loongson-3C6000 series
Date: Tue, 13 Jan 2026 16:06:47 -0600	[thread overview]
Message-ID: <20260113220647.GA783058@bhelgaas> (raw)
In-Reply-To: <20260113-loongson-pci1-v5-1-264c9b4a90ab@uniontech.com>

On Tue, Jan 13, 2026 at 03:58:48PM +0800, Ziyao Li via B4 Relay wrote:
> From: Ziyao Li <liziyao@uniontech.com>
> 
> Older steppings of the Loongson-3C6000 series incorrectly report the
> supported link speeds on their PCIe bridges (device IDs 0x3c19, 0x3c29)
> as only 2.5 GT/s, despite the upstream bus supporting speeds from
> 2.5 GT/s up to 16 GT/s.
> 
> As a result, since commit 774c71c52aa4 ("PCI/bwctrl: Enable only if more
> than one speed is supported"), bwctrl will be disabled if there's only
> one 2.5 GT/s value in vector `supported_speeds`.
> 
> Also, amdgpu reads the value by pcie_get_speed_cap() in amdgpu_device_
> partner_bandwidth(), for its dynamic adjustment of PCIe clocks and
> lanes in power management. We hope this can prevent similar problems
> in future driver changes (similar checks may be implemented in other
> GPU, storage controller, NIC, etc. drivers).

Don't split amdgpu_device_partner_bandwidth() across lines; that makes
it hard to copy and grep for it.

Bjorn

      reply	other threads:[~2026-01-13 22:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-13  7:58 [PATCH v5] PCI: loongson: Override PCIe bridge supported speeds for Loongson-3C6000 series Ziyao Li via B4 Relay
2026-01-13 22:06 ` Bjorn Helgaas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260113220647.GA783058@bhelgaas \
    --to=helgaas@kernel.org \
    --cc=aydenmeng@yeah.net \
    --cc=bhelgaas@google.com \
    --cc=chenhuacai@kernel.org \
    --cc=fsf@live.com \
    --cc=guanwentao@uniontech.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jeffbai@aosc.io \
    --cc=kexybiscuit@aosc.io \
    --cc=kwilczynski@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=liziyao@uniontech.com \
    --cc=loongarch@lists.linux.dev \
    --cc=lpieralisi@kernel.org \
    --cc=mani@kernel.org \
    --cc=niecheng1@uniontech.com \
    --cc=robh@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=xry111@xry111.site \
    --cc=zhanjun@uniontech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox