]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ntb_hw_intel: fix xeon NTB gen3 bar disable logic
authorDavid Bright <dab@FreeBSD.org>
Mon, 27 Sep 2021 13:18:46 +0000 (06:18 -0700)
committerDavid Bright <dab@FreeBSD.org>
Mon, 4 Oct 2021 14:05:38 +0000 (07:05 -0700)
commit50c20d90f97f7fe417ac111aebebe99aa8c943a6
tree8715de9a04a8466757d7ffb72bd9c9ac56aafb6e
parent2c0fcd0ae01a1896c60d9dab173fe7538f9befd8
ntb_hw_intel: fix xeon NTB gen3 bar disable logic

In NTB gen3 driver, it was supposed to disable NTB bar access by
default, but due to incorrect register access method, the bar disable
logic does not work as expected. Those registers should be modified
through NTB bar0 rather than PCI configuration space.

Besides, we'd better to protect ourselves from a bad buddy node so
ingress disable logic should be implemented together.

Submitted by:   Austin Zhang (austin.zhang@dell.com)
Sponsored by:   Dell EMC

(cherry picked from commit e3cf7ebc1d36d068f1d1a83ea73ce2eed547e3cb)
sys/dev/ntb/ntb_hw/ntb_hw_intel.c