Re: [REVIEW/TEST] polling(4) changes

From: Bruce Evans (bde_at_zeta.org.au)
Date: 10/01/05

  • Next message: Gavin Atkinson: "vlan(4), bge(4) and bringing parent interface up"
    Date: Sat, 1 Oct 2005 23:15:32 +1000 (EST)
    To: Gleb Smirnoff <glebius@FreeBSD.org>
    
    

    On Fri, 30 Sep 2005, Gleb Smirnoff wrote:

    > The attached patch removes:
    > ...
    > - poll in trap feature. Sorry, we can't acquire mutexes in trap(). Anyone
    > used it, anyway?

    This is the most broken part of DEVICE_POLLING (which I consider to be
    mostly broken). Hopefully no one used it. Poll in trap even polled in
    debugger traps, so userland could invoke polling by debugging any program,
    and ether_poll() was reentered if it was debugged (in RELENG_4, there is
    no relevant locking so ether_poll() then just raced itself; in old versions
    of -current I think Giant locking allowed the same since Giant is recursive;
    in -current I think this causes deadlock since poll_mtx is not recursive).

    > The attached patch touches only em(4) and fxp(4). I will write patches for all
    > other drivers ASAP. But I don't have all the hardware, so if you are using polling(4)
    > and you run FreeBSD 6 or 7, please help me with testing. ATM only em(4) driver patch
    > is tested.

    While you are there, please fix the configuration so that DEVICE_POLLING
    is a normal option. It is very far from being a global option.

    Bruce
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Gavin Atkinson: "vlan(4), bge(4) and bringing parent interface up"

    Relevant Pages

    • SNMP Adtran TA devices.
      ... am trying to POLL, not TRAP Frame Slips and Error seconds from an ... I've grabbed all the Adtran mibs and do see ... the trap reference in adIadSys.mi2 and could trap, ...
      (comp.protocols.snmp)
    • Help With Crash Dump Analysis
      ... Here is a crash dump file I analyzed in the debugger does anyone have any ... Loading Kernel Symbols ... Use!analyze -v to get detailed debugging information. ... This means a trap occurred in kernel mode, and it's a trap of a kind ...
      (microsoft.public.windowsxp.general)
    • STOP MESSAGE - Possibly Causes
      ... Here is the diagnose of the dump file from the debugger: ... Copyright Microsoft Corporation. ... Loading Kernel Symbols ... This means a trap occurred in kernel mode, and it's a trap of a kind ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: What is a stack frame?
      ... larger than that without using a debugger. ... Neither do I, so, even if I wrote the compiler, debugging ... This makes programs that "run with MSVC" trap sometimes, ... jacob at jacob point remcomp point fr ...
      (comp.lang.c)
    • Re: Other ways to debug a program
      ... that record pointer. ... Basically I want to trap a command where I issue those ... seek or any other command that can affect my record position. ... In the debugger you can ask it to stop execution as soon as ...
      (microsoft.public.fox.vfp.forms)