Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Nov 2010 23:49:48 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/bge if_bge.c
Message-ID:  <201011022349.oA2NnsQM030495@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
yongari     2010-11-02 23:49:48 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/dev/bge          if_bge.c 
  Log:
  SVN rev 214711 on 2010-11-02 23:49:48Z by yongari
  
  MFC r213522,213587,213711:
  r213522:
    Fix a long standing bug which regarded some revisions of controller
    as 5788. This caused BGE_MISC_LOCAL_CTL register is used to
    generate link state change interrupt for non-5788 controllers. The
    interrupt handler may or may not detect link state attention as
    status block wouldn't be updated when an interrupt was generated
    with BGE_MISC_LOCAL_CTL register. All controllers except 5700 and
    5788 should use host coalescing mode register to trigger an
    interrupt.
  
  r213587:
    Do not blindly UP the interface when interface's MTU is changed. If
    driver is not running there is no need to up the interface. While
    I'm here hold driver lock before modifying MTU as it is referenced
    in RX handler.
  
  r213711:
    The IFF_DRV_RUNNING flag is set at the end of bge_init_locked. But
    before setting the flag, interrupt was already enabled such that
    interrupt handler could be run before setting IFF_DRV_RUNNING flag.
    This can lose initial link state change interrupt which in turn
    make bge(4) think that it still does not have valid link. Fix this
    race by protecting the taskqueue with a driver lock.
    While I'm here move reenabling interrupt code after handling of link
    state chage.
  
    Reviewed by:  davidch
  
  Revision    Changes    Path
  1.198.2.57  +25 -19    src/sys/dev/bge/if_bge.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011022349.oA2NnsQM030495>