Files
kernel_xiaomi_raphael/include/linux
Naveen Naidu dcea2cf5d7 PCI: Add PCI_ERROR_RESPONSE and related definitions
[ Upstream commit 57bdeef4716689d9b0e3571034d65cf420f6efcd ]

A config or MMIO read from a PCI device that doesn't exist or doesn't
respond causes a PCI error. There's no real data to return to satisfy the
CPU read, so most hardware fabricates ~0 data.

Add a PCI_ERROR_RESPONSE definition for that and use it where appropriate
to make these checks consistent and easier to find.

Also add helper definitions PCI_SET_ERROR_RESPONSE() and
PCI_POSSIBLE_ERROR() to make the code more readable.

Suggested-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/55563bf4dfc5d3fdc96695373c659d099bf175b1.1637243717.git.naveennaidu479@gmail.com
Signed-off-by: Naveen Naidu <naveennaidu479@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Pali Rohár <pali@kernel.org>
Stable-dep-of: c625dabbf1c4 ("x86/amd_nb: Check for invalid SMN reads")
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 4c003aef56d5642aefd4d11ee9d7e6755d4c1a6e)
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
2024-08-08 15:52:19 +00:00
..
2024-03-06 11:04:03 +00:00
2022-10-26 13:17:05 +02:00
2024-04-16 10:30:27 +00:00
2018-02-22 15:42:23 +01:00
2017-08-30 14:40:40 +02:00
2023-08-08 19:48:23 +02:00
2023-12-20 15:32:35 +01:00
2018-08-03 07:50:38 +02:00
2017-08-24 13:23:03 -07:00
2019-11-24 08:22:48 +01:00
2021-12-08 08:46:55 +01:00
2020-04-02 16:34:21 +02:00
2018-02-22 15:42:24 +01:00
2022-10-26 13:17:08 +02:00
2019-12-17 20:38:50 +01:00
2021-03-03 18:22:46 +01:00
2022-08-25 11:11:25 +02:00
2021-02-07 14:47:41 +01:00
2017-09-07 11:53:11 +02:00
2019-12-31 12:37:21 +01:00
2021-07-11 12:48:09 +02:00
2024-07-15 17:44:32 +00:00
2017-09-25 08:56:05 -06:00
2024-03-08 08:21:33 +00:00
2020-03-20 10:54:12 +01:00
2019-06-11 12:21:48 +02:00
2023-11-28 16:45:44 +00:00
2020-04-02 16:34:36 +02:00
2017-08-16 16:28:47 -07:00
2018-11-13 11:15:11 -08:00
2024-03-06 11:04:02 +00:00
2020-04-02 16:34:36 +02:00
2017-08-31 18:50:14 +02:00
2021-12-14 10:16:55 +01:00
2017-08-15 09:02:07 -07:00
2017-08-15 09:02:08 -07:00