Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2014 14:22:48 -0500
From:      Ryan Stone <rysto32@gmail.com>
To:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   [PATCH] Add MSI support to puc(9)
Message-ID:  <CAFMmRNy9EG3byRV1b=4W5MejMiAz8yV6UnnEMjcJmY-FyMj2sg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
The Exar XR17V358 is a PCIe device and it supports a single MSI
interrupt.  This patch will make puc(9) use an MSI interrupt on
devices that declare that they support it:

http://people.freebsd.org/~rstone/patches/puc_msi.diff

This patch may be overly paranoid; I was worried that it's wasn't
guaranteed that I could always call pci_alloc_msi() (forgetting that
the P in puc stands for PCI) so I added a new puc_cfg_cmd that
individual device config methods could implement to advertise support
rather than depending on pci_alloc_msi() to behave sanely.

I have tested the patch on both a XR17V358 and a XR17V258 (which is a
legacy PCI device that does not support PCI)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNy9EG3byRV1b=4W5MejMiAz8yV6UnnEMjcJmY-FyMj2sg>