mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeff Mock <jeff@mock.com>
To: linux-kernel@vger.kernel.org
Subject: Vertical blanking interrupts
Date: Sat, 15 Feb 2003 12:26:16 -0800	[thread overview]
Message-ID: <5.1.0.14.2.20030215113708.01c398e0@ns.mock.com> (raw)

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







             reply	other threads:[~2003-02-15 20:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-15 20:26 Jeff Mock [this message]
2003-02-15 23:22 ` Matan Ziv-Av

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.1.0.14.2.20030215113708.01c398e0@ns.mock.com \
    --to=jeff@mock.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®