Re: [PATCH] PCI: controller: Mark controllers which cannot do lockless config access with !PCI_LOCKLESS_CONFIG

From: Marek Vasut
Date: Sun Jan 04 2026 - 16:53:20 EST


On 10/17/25 12:33 PM, Manivannan Sadhasivam wrote:
On Thu, Sep 25, 2025 at 03:49:45PM +0200, Marek Vasut wrote:
Add 'depends on !PCI_LOCKLESS_CONFIG' to controllers which cannot do config
access without PCI subsystem level spinlock.

May I know on what basis you have added the Kconfig dependency? Because, all
non-x86 and um drivers are going to suffer from the race if PCI_LOCKLESS_CONFIG
is selected. But you've only added the dependency to selected drivers.
Sorry for the late reply.

I added those !PCI_LOCKLESS_CONFIG to all controllers which I know are used on ARM/ARM64 where the locking is needed, to assure those systems won't accidentally have PCI_LOCKLESS_CONFIG=y which would break PCIe on them, and to indicate they require the !PCI_LOCKLESS_CONFIG is this is ever going to be enabled on non-x86 .