Re: page fault in igb driver on 8.0-RC2

From: Mykola Dzham <freebsd_at_levsha.org.ua>
Date: Thu, 12 Nov 2009 17:18:53 +0200
 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)
> _at__at_ -2654,7 +2654,7 _at__at_
>      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 */
> _at__at_ -2867,7 +2867,7 _at__at_
>       * 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 */
> _at__at_ -3554,7 +3554,7 _at__at_
>      ** 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
Received on Thu Nov 12 2009 - 14:18:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:57 UTC