[PATCH v5 06/11] drm/radeon: Use RMW accessors for changing LNKCTL

Ilpo Järvinen ilpo.jarvinen at linux.intel.com
Mon Aug 21 09:57:39 UTC 2023


On Fri, 18 Aug 2023, Deucher, Alexander wrote:

> [Public]
> 
> > -----Original Message-----
> > From: Ilpo Järvinen <ilpo.jarvinen at linux.intel.com>
> > Sent: Monday, July 17, 2023 8:05 AM
> > To: linux-pci at vger.kernel.org; Bjorn Helgaas <bhelgaas at google.com>; Lorenzo
> > Pieralisi <lorenzo.pieralisi at arm.com>; Rob Herring <robh at kernel.org>;
> > Krzysztof Wilczyński <kw at linux.com>; Emmanuel Grumbach
> > <emmanuel.grumbach at intel.com>; Rafael J . Wysocki <rafael at kernel.org>;
> > Heiner Kallweit <hkallweit1 at gmail.com>; Lukas Wunner <lukas at wunner.de>;
> > Andy Shevchenko <andriy.shevchenko at linux.intel.com>; Deucher, Alexander
> > <Alexander.Deucher at amd.com>; Koenig, Christian
> > <Christian.Koenig at amd.com>; Pan, Xinhui <Xinhui.Pan at amd.com>; David
> > Airlie <airlied at gmail.com>; Daniel Vetter <daniel at ffwll.ch>; amd-
> > gfx at lists.freedesktop.org; dri-devel at lists.freedesktop.org; linux-
> > kernel at vger.kernel.org
> > Cc: Dean Luick <dean.luick at cornelisnetworks.com>; Jonas Dreßler
> > <verdre at v0yd.nl>; Ilpo Järvinen <ilpo.jarvinen at linux.intel.com>;
> > stable at vger.kernel.org
> > Subject: [PATCH v5 06/11] drm/radeon: Use RMW accessors for changing
> > LNKCTL
> >
> > Don't assume that only the driver would be accessing LNKCTL. ASPM policy
> > changes can trigger write to LNKCTL outside of driver's control.
> > And in the case of upstream bridge, the driver does not even own the device
> > it's changing the registers for.
> >
> > Use RMW capability accessors which do proper locking to avoid losing
> > concurrent updates to the register value.
> >
> > Fixes: 8a7cd27679d0 ("drm/radeon/cik: add support for pcie gen1/2/3
> > switching")
> > Fixes: b9d305dfb66c ("drm/radeon: implement pcie gen2/3 support for SI")
> > Suggested-by: Lukas Wunner <lukas at wunner.de>
> > Signed-off-by: Ilpo Järvinen <ilpo.jarvinen at linux.intel.com>
> > Cc: stable at vger.kernel.org
> 
> For this and the amdgpu patch:
> Acked-by: Alex Deucher <alexander.deucher at amd.com>
> I'm not sure if this is stable material however.  Is there some issue today?

These were added without Cc stable into pci.git/pcie-rmw.

-- 
 i.


More information about the amd-gfx mailing list