svn commit: r195679 - in stable/7/sys: . contrib/pf dev/pci

Robert Noland rnoland at FreeBSD.org
Tue Jul 14 15:26:43 UTC 2009


On Tue, 2009-07-14 at 14:56 +0000, John Baldwin wrote:
> Author: jhb
> Date: Tue Jul 14 14:56:01 2009
> New Revision: 195679
> URL: http://svn.freebsd.org/changeset/base/195679
> 
> Log:
>   MFC: Enable MSI in the MSI capability registers any time that the first
>   message in an MSI group is enabled, not just if the address/data pair are
>   not initialized.

With this MFC, Intel drm on 965+ chipsets should suck substantially less
than before.  i.e. This should fix interrupts after a VT Switch issue.
I'll follow on and MFC the rest of the changes from HEAD in the next day
or so.

robert.

> Modified:
>   stable/7/sys/   (props changed)
>   stable/7/sys/contrib/pf/   (props changed)
>   stable/7/sys/dev/pci/pci.c
> 
> Modified: stable/7/sys/dev/pci/pci.c
> ==============================================================================
> --- stable/7/sys/dev/pci/pci.c	Tue Jul 14 14:41:48 2009	(r195678)
> +++ stable/7/sys/dev/pci/pci.c	Tue Jul 14 14:56:01 2009	(r195679)
> @@ -2869,8 +2869,10 @@ pci_setup_intr(device_t dev, device_t ch
>  					goto bad;
>  				dinfo->cfg.msi.msi_addr = addr;
>  				dinfo->cfg.msi.msi_data = data;
> -				pci_enable_msi(child, addr, data);
>  			}
> +			if (dinfo->cfg.msi.msi_handlers == 0)
> +				pci_enable_msi(child, dinfo->cfg.msi.msi_addr,
> +				    dinfo->cfg.msi.msi_data);
>  			dinfo->cfg.msi.msi_handlers++;
>  		} else {
>  			KASSERT(dinfo->cfg.msix.msix_alloc > 0,
-- 
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/svn-src-stable/attachments/20090714/9c88b32a/attachment.pgp


More information about the svn-src-stable mailing list