lkml.org 
[lkml]   [2003]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectVertical blanking interrupts
I'm trying to write a driver for an embedded application that supports
vertical blanking interrupts from a VGA graphics controller. This is
to allow for smooth, frame accurate animation in the frame buffer.
I'm doing this work on a 2.4.20 kernel.

In particular, the platform is a VIA mini-ITX motherboard that uses
a VIA PLE133 combined northbridge and Trident Cyberblade graphics
controller.

VGAs have a legacy feature to generate a vertical blanking interrupt.
I don't think windows or linux use this feature.

I'm having trouble getting the vertical blanking interrupt to work. I'm
a bit out of my depth with this thing, so be gentle.

The BIOS setup program for my target motherboard has a suspicious
option for "Assign IRQ to VGA", which I have enabled.

When I init the driver I find that the IRQ in the PCI configuration
space for the device has assigned an IRQ (10 in my case). I
call pci_find() and it also reveals IRQ 10.

The problem starts when I call pci_enable_device(). pirq_get_info()
is unable to find the VGA adapter in the IRQ routing table.
request_irq() succeeds, but I get no interrupts. The VGA appears
on bus number 1, but the other devices in the system appear on bus
number 0 in the PCI configuration space, I guess this is because
the graphics controller integrated into the northbridge is an
AGP device.

I'm also a little suspicious about this endeavor because there is
some code in pcibios_lookup_irq() that does not set the irq routing
table if the device is in the PCI_CLASS_DISPLAY_VGA class. Hmph.

Does anyone out there have experience getting VGA vertical blanking
interrupts to work? Why would the VGA device not show up in the
IRQ routing table? Is this a BIOS bug or are VGA interrupts just not
supported by the hardware anymore? Any advice appreciated.

thanks,
jeff






-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.032 / U:1.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site