diff options
author | Jessica Clarke <jrtc27@FreeBSD.org> | 2021-10-17 14:32:35 +0000 |
---|---|---|
committer | Jessica Clarke <jrtc27@FreeBSD.org> | 2021-10-17 14:32:35 +0000 |
commit | 82098c8bb5b303c7c8b48e7537fadfe74b375bd3 (patch) | |
tree | 8deb00de65cf11a9de61f0327cd18df8b94aac25 /sbin/mdconfig/Makefile.depend | |
parent | 60d962e0410340f107d062e8f4389c0d467613a2 (diff) | |
download | src-82098c8bb5b303c7c8b48e7537fadfe74b375bd3.tar.gz src-82098c8bb5b303c7c8b48e7537fadfe74b375bd3.zip |
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
Diffstat (limited to 'sbin/mdconfig/Makefile.depend')
0 files changed, 0 insertions, 0 deletions