aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap/netmap_generic.c
diff options
context:
space:
mode:
authorWei Hu <whu@FreeBSD.org>2021-11-27 06:42:34 +0000
committerEd Maste <emaste@FreeBSD.org>2022-01-10 14:51:54 +0000
commitdfca965af4e11523467f168f36dd0236260e5080 (patch)
tree88ff711a3abce33aa8a628b4cce16d8077a9fce1 /sys/dev/netmap/netmap_generic.c
parentf2caded7f590b8d834892682450d8f9b98e91f21 (diff)
Hyper-V: vPCI: Prepopulate device bars
In recent Hyper-V releases on Windows Server 2022, vPCI code does not initialize the last 4 bit of device bar registers. This behavior change could result weird problems cuasing PCI code failure when configuring bars. Just write all 1's to those bars whose probed values are not the same as current read ones. This seems to make Hyper-V vPCI and pci_write_bar() to cooperate correctly on these releases. Reported by: khng@freebsd.org Tested by: khng@freebsd.org MFC after: 2 weeks Sponsored by: Microsoft (cherry picked from commit 75412a521f60d4b0393c730ffb284e7c6ff9d2de) (cherry picked from commit d11e9de955ea01fe01dce58c7eb090fe0352bced) Approved by: so Errata: FreeBSD-EN-22:03.hyperv
Diffstat (limited to 'sys/dev/netmap/netmap_generic.c')
0 files changed, 0 insertions, 0 deletions