diff options
author | Slava Grigorev <slava.grigorev@amd.com> | 2020-03-23 20:27:01 -0400 |
---|---|---|
committer | Flora Cui <flora.cui@amd.com> | 2020-04-24 15:15:58 +0800 |
commit | a6799a6a23095f6a8e381e55efa6ea01b7f7dcbc (patch) | |
tree | 78bfdec11e653e6dbff42de89601d590f8d2cbf1 /include | |
parent | 2b943281fb551e87ac255ccc9bf4781ab930b3e5 (diff) |
amd/amdkcl: make sure to enable PCIe Extended Tags if supported
Change-Id: Ie78ce51540681cc83e04c16ec777e21f5020df31
Signed-off-by: Slava Grigorev <slava.grigorev@amd.com>
Reviewed-by: Flora Cui <flora.cui@amd.com>
Signed-off-by: Yifan Zhang <Yifan1.Zhang@amd.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/kcl/kcl_pci.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/kcl/kcl_pci.h b/include/kcl/kcl_pci.h index 4a8854188dae..2bec661c53eb 100644 --- a/include/kcl/kcl_pci.h +++ b/include/kcl/kcl_pci.h @@ -112,13 +112,13 @@ u32 pcie_bandwidth_available(struct pci_dev *dev, struct pci_dev **limiting_dev, } #endif -#if defined(BUILD_AS_DKMS) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)) +#if !defined(HAVE_PCI_CONFIGURE_EXTENDED_TAGS) void _kcl_pci_configure_extended_tags(struct pci_dev *dev); #endif static inline void kcl_pci_configure_extended_tags(struct pci_dev *dev) { -#if defined(BUILD_AS_DKMS) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)) +#if !defined(HAVE_PCI_CONFIGURE_EXTENDED_TAGS) _kcl_pci_configure_extended_tags(dev); #endif } |