Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Nov 2008 01:57:23 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/fxp if_fxp.c if_fxpreg.h if_fxpvar.h
Message-ID:  <200811270157.mAR1vYZ4033012@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
yongari     2008-11-27 01:57:23 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/fxp          if_fxp.c if_fxpreg.h if_fxpvar.h 
  Log:
  SVN rev 185354 on 2008-11-27 01:57:23Z by yongari
  
  Add basic WOL support for 82550/82551/82558 and 82559 based
  controllers. ICH based controllers are treated as 82559. 82557,
  earlier revision of 82558 and 82559ER have no WOL capability.
   o WOL support requires help of a firmware so add check whether
     hardware is capable of handling magic frames by reading EEPROM.
   o Enable accepting WOL frames only when hardware is about to
     suspend or shutdown. Previously fxp(4) used to allow receipt of
     magic frame under normal operation mode which could cause
     hardware hang if magic frame is received by hardware. Datasheet
     clearly states driver should not allow WOL frames under normal
     operation mode.
   o Disable WOL frame reception in device attach so have fxp(4)
     immunize against system hang which can be triggered by magic
     packets when the hardware is not in fully initialized state.
   o Don't reset all hardware configuration data in fxp_stop()
     otherwise important configuration data is lost and this would
     reset WOL configuration to default state which in turn cause
     hardware hang on receipt of magic frames. To fix the issue,
     preserve hardware configuration data by issuing a selective
     reset.
   o Explicitly disable interrupts after issuing selective reset as
     reset may unmask interrupts.
  
  Tested by:      Alexey Shuvaev < shuvaev <> physik DOT uni-wuerzburg DOT de >
  
  Revision  Changes    Path
  1.278     +77 -11    src/sys/dev/fxp/if_fxp.c
  1.42      +1 -0      src/sys/dev/fxp/if_fxpreg.h
  1.45      +2 -0      src/sys/dev/fxp/if_fxpvar.h



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