Page MenuHomeFreeBSD

linuxkpi: Define `PCI_POSSIBLE_ERROR()` macro
ClosedPublic

Authored by dumbbell on Sun, Jan 4, 10:17 AM.
Tags
None
Referenced Files
F141879018: D54487.diff
Sun, Jan 11, 9:52 PM
Unknown Object (File)
Sat, Jan 10, 8:45 AM
Unknown Object (File)
Sat, Jan 10, 5:39 AM
Unknown Object (File)
Fri, Jan 9, 10:32 PM
Unknown Object (File)
Fri, Jan 9, 7:14 PM
Unknown Object (File)
Fri, Jan 9, 6:05 AM
Unknown Object (File)
Fri, Jan 9, 2:05 AM
Unknown Object (File)
Thu, Jan 8, 5:52 PM
Subscribers

Details

Summary

It comes with PCI_ERROR_RESPONSE and PCI_SET_ERROR_RESPONSE() but we don't use them so far. Therefore PCI_POSSIBLE_ERROR() will always reture false.

As written in the comment, this macro is a bit weird given the Linux `pci_read_*() functions can return an error code separately from the read value.

The PCI_POSSIBLE_ERROR() macro started to be used by the amdgpu DRM driver in Linux 6.10.

This is part of the update of DRM drivers to Linux 6.10.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable