[PATCH] Shrink saa7134 mmio mapped size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The saa7134 driver attempts to map 4K starting from the base address of 
its mmio area, although lspci shows the size of the area is only 1K. The 
excessive mapping goes un-noticed on bare-metal, but is detected and 
denied when the card is used with pci passthrough to a xen domU. If 
shared IRQ is used the "pollirq" kernel option may be required in dom0.

Signed-off-by: Andy Burns <andy@xxxxxxxxx>
--- drivers/media/video/saa7134/saa7134-core.c.orig     2008-07-01 
16:46:49.000000000 +0100
+++ drivers/media/video/saa7134/saa7134-core.c  2008-07-01 
16:47:10.000000000 +0100
@@ -908,7 +908,7 @@
                        dev->name,(unsigned long 
long)pci_resource_start(pci_dev,0));
                 goto fail1;
         }
-       dev->lmmio = ioremap(pci_resource_start(pci_dev,0), 0x1000);
+       dev->lmmio = ioremap(pci_resource_start(pci_dev,0), 0x400);
         dev->bmmio = (__u8 __iomem *)dev->lmmio;
         if (NULL == dev->lmmio) {
                 err = -EIO;



_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux