[haiku-bugs] Re: [Haiku] #14355: Unloading/reloading an atheroswifi device ends in vm_page_fault KDL

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 28 Aug 2018 19:12:43 -0000

#14355: Unloading/reloading an atheroswifi device ends in vm_page_fault KDL
-------------------------------------------+----------------------------
   Reporter:  v.vill                       |      Owner:  waddlesplash
       Type:  bug                          |     Status:  new
   Priority:  normal                       |  Milestone:  Unscheduled
  Component:  Drivers/Network/atheroswifi  |    Version:  R1/Development
 Resolution:                               |   Keywords:
 Blocked By:                               |   Blocking:  14411
Has a Patch:  0                            |   Platform:  All
-------------------------------------------+----------------------------

Comment (by waddlesplash):

 OK, so, [http://xref.plausible.coop/source/xref/haiku/src/add-
 ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/if_ath.c#2740
 ath_reset_grablock] just calls "pause", which is defined as a macro
 
[http://xref.plausible.coop/source/xref/haiku/src/libs/compat/freebsd11_network/compat/sys/systm.h#96
 here].
 
[http://xref.plausible.coop/source/xref/haiku/src/libs/compat/freebsd11_network/synch.c#42
 _pause] then calls
 
[http://xref.plausible.coop/source/xref/haiku/src/libs/compat/freebsd11_network/compat/sys/systm.h#97
 tsleep], also a macro, which calls msleep but with a NULL mutex.
 
[http://xref.plausible.coop/source/xref/haiku/src/libs/compat/freebsd11_network/synch.c#16
 msleep] apparently tries to unconditionally lock or unlock the mutex,
 which seems pretty strange. I need to look at what FreeBSD does here.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/14355#comment:7>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: