summaryrefslogtreecommitdiff
path: root/c/src/lib/libbsp/sparc/shared/pci/gr_rasta_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/pci/gr_rasta_io.c')
-rw-r--r--c/src/lib/libbsp/sparc/shared/pci/gr_rasta_io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/pci/gr_rasta_io.c b/c/src/lib/libbsp/sparc/shared/pci/gr_rasta_io.c
index 42e7397d65..071636ba45 100644
--- a/c/src/lib/libbsp/sparc/shared/pci/gr_rasta_io.c
+++ b/c/src/lib/libbsp/sparc/shared/pci/gr_rasta_io.c
@@ -264,6 +264,12 @@ int gr_rasta_io_hw_init(struct gr_rasta_io_priv *priv)
}
#endif
+ /* Setup cache line size. Default cache line size will result in
+ * poor performance (256 word fetches), 0xff will set it according
+ * to the max size of the PCI FIFO.
+ */
+ pci_cfg_w8(priv->pcidev, PCI_CACHE_LINE_SIZE, 0xff);
+
/* Scan AMBA Plug&Play */
/* AMBA MAP bar0 (in CPU) ==> 0x80000000(remote amba address) */