Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Aug 2010 21:26:35 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/pci if_rl.c
Message-ID:  <201008222126.o7MLQntH078946@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
yongari     2010-08-22 21:26:35 UTC

  FreeBSD src repository

  Modified files:
    sys/pci              if_rl.c 
  Log:
  SVN rev 211648 on 2010-08-22 21:26:35Z by yongari
  
  It seems some newer RTL8139 controllers provides only memory space
  register mapping. I'm not sure whether it comes from the fact that
  controllers live behind certain PCI brdge(PLX PCI 6152 33BC) and
  the bridge has some issues in handling I/O space register mapping.
  Unfortunately it's not possible to narrow down to an exact
  controller that shows this issue because RealTek used the same PCI
  device/revision id again. In theory, it's possible to check parent
  PCI bridge device and change rl(4) to use memory space register
  mapping if the parent PCI bridge is PLX PCI 6152. But I didn't try
  to do that and we wouldn't get much benefit with added complexity.
  
  Blindly switching to use memory space register mapping for rl(4)
  may make most old controllers not to work. At least, I don't want
  to take potential risk from such change. So use I/O space register
  mapping by default but give users chance to override it via a
  tunable. The tunable to use memory space register mapping would be
  given by adding the following line to /boot/loader.conf file.
  
  dev.rl.%d.prefer_iomap="0"
  
  This change makes P811B quad-port work with this tunable.
  
  Tested by:      Nikola Kalpazanov ( n.kalpazanov <> gmail dot com )
  MFC after:      1 week
  
  Revision  Changes    Path
  1.192     +27 -23    src/sys/pci/if_rl.c



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