msi broken?

Robert Noland rnoland at FreeBSD.org
Tue Mar 10 16:47:43 PDT 2009


On Wed, 2009-03-11 at 00:36 +0100, Arno J. Klaassen wrote:
> John Baldwin <jhb at freebsd.org> writes:
> 
> > On Tuesday 10 March 2009 3:00:00 pm Arno J. Klaassen wrote:
> >> John Baldwin <jhb at freebsd.org> writes:
> >> 
> >> > On Tuesday 10 March 2009 10:08:59 am Arno J. Klaassen wrote:
> >> >> 
> >> >> Hello,
> >> >> 
> >> >> when upgrading this morning from a March 1 -current, if_bge
> >> >> stopped working (and irq256: bge0 not showing up in
> >> >> vmstat -i ). Setting hw.pci.enable_msi="0" makes it work again.
> >> >
> >> > Can you get a verbose dmesg (boot -v) with MSI enabled?
> >
> > Ok, so you are getting MSI interrupts assigned and routed ok.  Can you try 
> > disabling the code that sets the INTx_MASK flag in the PCI command register 
> > in sys/dev/pci/pci.c:pci_setup_intr()?
> 
> grr : "rid" sure is 1 for the if_bge interrupt. Please tell me which
> lines of code set the INTx_MASK flag. Thanx, more tomorrow.

if rid is 0, the chip should be using INTx.  if rid > 0 then it should
be using MSI.


                        }
                        mte->mte_handlers++;
                }
#if 0 /* Comment this out/*
                /* Make sure that INTx is disabled if we are using MSI/MSIX */
                pci_set_command_bit(dev, child, PCIM_CMD_INTxDIS);
#endif
        bad:
                if (error) {
                        (void)bus_generic_teardown_intr(dev, child, irq,
                            cookie);
                        return (error);

robert.

> Arno
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
-- 
Robert Noland <rnoland at FreeBSD.org>
FreeBSD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20090310/e0b29840/attachment.pgp


More information about the freebsd-current mailing list