[haiku-bugs] Re: [Haiku] #9099: Unable to boot (KDL) with Atheros L1 Gigabit Ethernet (built in ASUS M51SN laptop)

  • From: "kvark" <trac@xxxxxxxxxxxx>
  • Date: Sat, 03 Nov 2012 16:22:45 -0000

#9099: Unable to boot (KDL) with Atheros L1 Gigabit Ethernet (built in ASUS 
M51SN
laptop)
-------------------------------------------+-------------------------------
   Reporter:  kvark                        |      Owner:  3dEyes
       Type:  bug                          |     Status:  new
   Priority:  normal                       |  Milestone:  R1
  Component:  Drivers/Network/attansic_l1  |    Version:  R1/Development
 Resolution:                               |   Keywords:
 Blocked By:                               |  atheros,ethernet,KDL
Has a Patch:  0                            |   Blocking:  6694
                                           |   Platform:  x86
-------------------------------------------+-------------------------------

Comment (by kvark):

 It turned out that the driver doesn't work when built from code. It just
 has a higher chance to load and not crash, but the connection still says
 "No Link". There are several things I tried to fix, all didn't help:

 1) Occasionally, the callback passed to "''bus_dmamap_load''" is given
 EFBIG error code. The error basically means that the requested dma block
 was not found. I tried reducing the size of the buffers we allocate (from
 256 elements to 128), which cures the EFBIG error but still doesn't fix
 the driver.

 2) The driver code also assumes the callback is called instantly, which is
 a wrong assumption according to FreeBSD doc
 (http://www.freebsd.org/doc/en/books/arch-handbook/isa-driver-
 busmem.html). I tried deferring the result query, which seems to work (but
 still doesn't fix the driver).

 3) Occasionally, the bus_dmamap_load reports a warning that it failed to
 align the memory. Changing the alignment of SMB and CMB blocks cures the
 message but doesn't fix the driver.

 4) Finally, there were messages on the internet that people had problems
 with Atheros L1 under FBSD version 7 (same thing: No Link). They also
 claim it was fixed in 8. Hence, I grabbed and built the latest code from
 FBSD repository. This didn't help either.

 I'm out of ideas for now.... Just going to try FBSD LiveCD to see what
 messages are in the log, and compare them with Haiku ones.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9099#comment:7>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: