Files
twx-linux/include/linux
Mark Tomlinson 10705a4305 PCI: Reduce warnings on possible RW1C corruption
[ Upstream commit 92c45b63ce ]

For hardware that only supports 32-bit writes to PCI there is the
possibility of clearing RW1C (write-one-to-clear) bits. A rate-limited
messages was introduced by fb26592301, but rate-limiting is not the best
choice here. Some devices may not show the warnings they should if another
device has just produced a bunch of warnings. Also, the number of messages
can be a nuisance on devices which are otherwise working fine.

Change the ratelimit to a single warning per bus. This ensures no bus is
'starved' of emitting a warning and also that there isn't a continuous
stream of warnings. It would be preferable to have a warning per device,
but the pci_dev structure is not available here, and a lookup from devfn
would be far too slow.

Suggested-by: Bjorn Helgaas <helgaas@kernel.org>
Fixes: fb26592301 ("PCI: Warn on possible RW1C corruption for sub-32 bit config writes")
Link: https://lore.kernel.org/r/20200806041455.11070-1-mark.tomlinson@alliedtelesis.co.nz
Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-15 14:18:15 +02:00
..
2020-02-19 19:53:09 +01:00
2021-01-30 13:54:11 +01:00
2020-03-25 08:25:58 +01:00
2021-05-19 10:08:30 +02:00
2019-12-13 08:42:53 +01:00
2021-03-04 10:26:29 +01:00
2021-02-07 15:35:49 +01:00
2021-11-17 09:48:17 +01:00
2019-12-13 08:43:18 +01:00
2021-06-30 08:47:51 -04:00
2020-07-29 10:18:36 +02:00
2021-09-03 10:08:12 +02:00
2020-03-18 07:17:46 +01:00
2020-04-02 15:11:00 +02:00
2021-03-07 12:20:49 +01:00
2020-12-11 13:23:28 +01:00
2020-04-02 15:11:00 +02:00
2021-12-14 14:49:02 +01:00
2021-06-10 13:37:14 +02:00