page fault in igb driver on 8.0-RC2

Mykola Dzham freebsd at levsha.org.ua
Thu Nov 12 15:18:45 UTC 2009


 Jack Vogel wrote:
> This is a fix for this problem, please apply and test this.
> 
> Jack
> 
> ------- if_igb.c    (revision 197079)
> +++ if_igb.c    (working copy)
> @@ -2654,7 +2654,7 @@
>      int error;
> 
>      error = bus_dma_tag_create(bus_get_dma_tag(adapter->dev), /* parent */
> -                IGB_DBA_ALIGN, 0,    /* alignment, bounds */
> +                1, 0,            /* alignment, bounds */
>                  BUS_SPACE_MAXADDR,    /* lowaddr */
>                  BUS_SPACE_MAXADDR,    /* highaddr */
>                  NULL, NULL,        /* filter, filterarg */
> @@ -2867,7 +2867,7 @@
>       * Setup DMA descriptor areas.
>       */
>      if ((error = bus_dma_tag_create(NULL,        /* parent */
> -                   PAGE_SIZE, 0,        /* alignment, bounds */
> +                   1, 0,            /* alignment, bounds */
>                     BUS_SPACE_MAXADDR,    /* lowaddr */
>                     BUS_SPACE_MAXADDR,    /* highaddr */
>                     NULL, NULL,        /* filter, filterarg */
> @@ -3554,7 +3554,7 @@
>      ** it may not always use this.
>      */
>      if ((error = bus_dma_tag_create(NULL,        /* parent */
> -                   PAGE_SIZE, 0,    /* alignment, bounds */
> +                   1, 0,        /* alignment, bounds */
>                     BUS_SPACE_MAXADDR,    /* lowaddr */
>                     BUS_SPACE_MAXADDR,    /* highaddr */
>                     NULL, NULL,        /* filter, filterarg */

This patch fix my problem too: 4 hour uptime on patched 8.0-RC2 with
high network load without any problems.
Thanks!

-- 
LEFT-(UANIC|RIPE)
JID: levsha at jabber.net.ua
PGP fingerprint: 1BCD 7C80 2E04 7282 C944  B0E0 7E67 619E 4E72 9280


More information about the freebsd-current mailing list