PCI: Avoid FLR for SolidRun SNET DPU rev 1
authorAlvaro Karsz <alvaro.karsz@solid-run.com>
Tue, 10 Jan 2023 16:56:37 +0000 (18:56 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Feb 2023 00:26:55 +0000 (19:26 -0500)
commitd089d69cc1f824936eeaa4fa172f8fa1a0949eaa
treee17c7b2863cc11862ea87ef0bf146f2b7cb2a37d
parentdb6c4dee4c104f50ed163af71c53bfdb878a8318
PCI: Avoid FLR for SolidRun SNET DPU rev 1

This patch fixes a FLR bug on the SNET DPU rev 1 by setting the
PCI_DEV_FLAGS_NO_FLR_RESET flag.

As there is a quirk to avoid FLR (quirk_no_flr), I added a new quirk
to check the rev ID before calling to quirk_no_flr.

Without this patch, a SNET DPU rev 1 may hang when FLR is applied.

Signed-off-by: Alvaro Karsz <alvaro.karsz@solid-run.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Message-Id: <20230110165638.123745-3-alvaro.karsz@solid-run.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/pci/quirks.c