DragonFly bugs List (threaded) for 2007-07
DragonFly BSD
DragonFly bugs List (threaded) for 2007-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Inspiron 9400 freezes when enabling bfe0


From: "Sepherosa Ziehau" <sepherosa@xxxxxxxxx>
Date: Fri, 13 Jul 2007 09:48:10 +0800

On 7/13/07, Matthew Dillon <dillon@apollo.backplane.com> wrote:
:    This implies that the BFE driver may have limited DMA range, which
:    we can program for in the busdma setup for bfe.
:

DING! The FreeBSD driver limits DMA to the low 1G of ram.

Try this patch.

I think I included this in my patch :) My question is: Should EINPROGRESS from bus_dmamap_load() be taken as fatal error?

Best Regards,
sephe


-Matt Matthew Dillon <dillon@backplane.com>

Index: if_bfe.c
===================================================================
RCS file: /cvs/src/sys/dev/netif/bfe/if_bfe.c,v
retrieving revision 1.30
diff -u -p -r1.30 if_bfe.c
--- if_bfe.c    25 Oct 2006 20:55:56 -0000      1.30
+++ if_bfe.c    13 Jul 2007 01:04:05 -0000
@@ -192,7 +192,7 @@
        /* parent tag */
        error = bus_dma_tag_create(NULL,  /* parent */
                        PAGE_SIZE, 0,             /* alignment, boundary */
-                       BUS_SPACE_MAXADDR_32BIT,  /* lowaddr */
+                       0x3FFFFFFF,               /* lowaddr */
                        BUS_SPACE_MAXADDR,        /* highaddr */
                        NULL, NULL,               /* filter, filterarg */
                        MAXBSIZE,                 /* maxsize */



--
Live Free or Die



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]