opnsense-src/sys/compat/linuxkpi/common/include
Jessica Clarke 82098c8bb5 LinuxKPI: Support lazy BAR allocation
Linux KPIs like pci_resource_start/len assume that BARs have been
allocated, but FreeBSD lazily allocates BARs if it cannot allocate the
firmware-allocated BARs. Thus using the Linux KPIs must force allocation
of the BARs rather than returning 0 for the start and length, which can
crash drm-kmod drivers that assume the BARs are valid. This is needed
for the AMDGPU driver to be able to attach on SiFive's HiFive Unmatched.

Reviewed by:	hselasky, jhb, mav
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D32447
2021-10-17 15:32:35 +01:00
..
acpi LinuxKPI: Implement ACPI bits required by drm-kmod in base system 2020-11-09 13:20:14 +00:00
asm LinuxKPI: Add dummy pgprot_decrypted() implementation 2021-09-29 23:14:58 +03:00
linux LinuxKPI: Support lazy BAR allocation 2021-10-17 15:32:35 +01:00
net LinuxKPI: add nexthdr definitions for IPv6 2021-07-27 15:00:21 +00:00