|
@@ -25,8 +25,32 @@
|
|
|
|
|
|
#include <core/pci.h>
|
|
|
|
|
|
+void
|
|
|
+g84_pci_init(struct nvkm_pci *pci)
|
|
|
+{
|
|
|
+ /* The following only concerns PCIe cards. */
|
|
|
+ if (!pci_is_pcie(pci->pdev))
|
|
|
+ return;
|
|
|
+
|
|
|
+ /* Tag field is 8-bit long, regardless of EXT_TAG.
|
|
|
+ * However, if EXT_TAG is disabled, only the lower 5 bits of the tag
|
|
|
+ * field should be used, limiting the number of request to 32.
|
|
|
+ *
|
|
|
+ * Apparently, 0x041c stores some limit on the number of requests
|
|
|
+ * possible, so if EXT_TAG is disabled, limit that requests number to
|
|
|
+ * 32
|
|
|
+ *
|
|
|
+ * Fixes fdo#86537
|
|
|
+ */
|
|
|
+ if (nvkm_pci_rd32(pci, 0x007c) & 0x00000020)
|
|
|
+ nvkm_pci_mask(pci, 0x0080, 0x00000100, 0x00000100);
|
|
|
+ else
|
|
|
+ nvkm_pci_mask(pci, 0x041c, 0x00000060, 0x00000000);
|
|
|
+}
|
|
|
+
|
|
|
static const struct nvkm_pci_func
|
|
|
g84_pci_func = {
|
|
|
+ .init = g84_pci_init,
|
|
|
.rd32 = nv40_pci_rd32,
|
|
|
.wr08 = nv40_pci_wr08,
|
|
|
.wr32 = nv40_pci_wr32,
|