Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Aug 2010 00:15:20 +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:  <201008310015.o7V0Ff1G063053@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
yongari     2010-08-31 00:15:20 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    sys/pci              if_rl.c 
  Log:
  SVN rev 212039 on 2010-08-31 00:15:20Z by yongari
  
  MFC r211648:
    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.
  
  Revision   Changes    Path
  1.189.2.3  +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?201008310015.o7V0Ff1G063053>