Re: [PATCH v7 3/4] PCI: Introduce disable_acs_redir quirk

From: Alex Williamson
Date: Tue Jul 17 2018 - 13:48:52 EST


On Tue, 17 Jul 2018 11:02:03 -0600
Logan Gunthorpe <logang@xxxxxxxxxxxx> wrote:

> Intel SPT PCH hardware has an implementation of the ACS bits that
> does not comply with the PCI express standard. To deal with this
> the existing code has an enable_acs() quirk for the hardware.
>
> In order to be able to correctly disable the ACS redirect bits for
> all hardware we need an analagous quirk to disable those bits.
>
> This adds the function pci_dev_specific_disable_acs_redir() which
> behaves similarly to pci_dev_specific_enable_acs() but uses a new
> function pointer for quirks which disables the ACS redirect bits.
>
> Signed-off-by: Logan Gunthorpe <logang@xxxxxxxxxxxx>
> ---
> drivers/pci/quirks.c | 78 ++++++++++++++++++++++++++++++++++++++++++++--------
> include/linux/pci.h | 5 ++++
> 2 files changed, 71 insertions(+), 12 deletions(-)

Reviewed-by: Alex Williamson <alex.williamson@xxxxxxxxxx>