[Prism54-devel] RE: Interrupt Polling

Andriy Korud a.korud at vector.com.pl
Wed Aug 11 11:16:06 UTC 2004


Very simple - I've posted it here, but it was rejected.


diff -ur prism54-cvs-latest/ksrc/islpci_dev.c prism54-cvs-latest-fix/ksrc/islpci
_dev.c
--- prism54-cvs-latest/ksrc/islpci_dev.c        2004-05-29 18:06:49.000000000 +0
300
+++ prism54-cvs-latest-fix/ksrc/islpci_dev.c    2004-06-29 18:52:02.006520304 +0
300
@@ -773,6 +773,7 @@
 struct net_device *
 islpci_setup(struct pci_dev *pdev)
 {
+       u_int8_t cz;
        islpci_private *priv;
        struct net_device *ndev = alloc_etherdev(sizeof (islpci_private));

@@ -785,6 +786,12 @@
        SET_NETDEV_DEV(ndev, &pdev->dev);
 #endif

+       pci_read_config_byte(pdev, PCI_CACHE_LINE_SIZE, &csz);
+        if (csz == 0) {
+               csz = L1_CACHE_BYTES / sizeof(u_int32_t);
+               pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, csz);
+       }
+
        /* setup the structure members */
        ndev->base_addr = pci_resource_start(pdev, 0);
        ndev->irq = pdev->irq;

Andriy

-----Original Message-----
From:	Margit Schubert-While [mailto:margitsw at t-online.de]
Sent:	Wed 11.08.2004 13:03
To:	prism54-devel at prism54.org
Cc:	Andriy Korud
Subject:	Re: Interrupt Polling

Andriy scribeth:
 > Prism54 driver - 1.2 with simple patch to fix PCI performance.

Yes, what patch ?

Margit 







More information about the Prism54-devel mailing list