Permalink
Commits on Mar 3, 2011
  1. Acpi userland: adapt to 20110211 upgrade and sync with FreeBSD 8.0

    randy1 committed Mar 3, 2011
    * acpiconf: show V/A battery units
    * acpidump: add SRAT table support (FreebSD sync), untested
Commits on Mar 1, 2011
  1. Some minor changes

    randy1 committed Mar 1, 2011
    * use AcpiUpdateAllGpes() (from FreeBSD 8.0)
    
    * ACPI_THREAD_ID type is no longer configurable
    
    * sync AcpiOsReadPciConfiguration with FreeBSD 8.0
      (and simplify bitmasking)
    
    * because of AcpiOsDerivePciId() API removal, acpi_bus_number() is
      no longer needed
  2. Don't leave Value32 uinitialized (as it's not completely filled)

    randy1 committed Mar 1, 2011
    OsdHardware.c:AcpiOsReadPort() casts Value to (u_int8_t *) resp.
    (u_int16_t *) when assigning, thus leaving the upper region of Value32
    untouched. If Value32 isn't initialized, random data remains trashing
    the whole value.
    
    Without this every bus_space_read_[12] is virtually screwed up.
  3. Further acpica 20110211 code cleanup

    randy1 committed Mar 1, 2011
    In some files from the original taball, code was repeated n times
    (this one was overseen)
Commits on Feb 24, 2011
  1. acpi: sync GPE with FreeBSD 8.0 (and according the acpi api)

    randy1 committed Feb 24, 2011
    * use AcpiSetGpeWakeMask(), as AcpiEnableGpe() is already done in
      embedded controller initialization code. AcpiSetGpeWakeMask()
      is needed anyway to mark the gpe as wakable.
      (AcpiEnableGpe() enableas automatically only runtime GPEs now)
    
    * using AcpiFinishGpe() in EcGpeQueryHandler() (as fbsd does) seems
      to make the system reactive as it should (was sensibly slowly
      without that)
Commits on Feb 22, 2011
  1. Bring in acpica 20110211, still not ok anyway

    randy1 committed Feb 22, 2011
    (partially) sync with FreeBSD 8:
      * AcpiWalkNamespace post callbacks
      * wakable GPEs in acpi_probe_child()
    
    problems:
      * system reacts slowly
      * temp reads nonsense values
  2. rtld(1), headers, manual pages: Bring in some whitespace, comment etc…

    Sascha Wildner committed Feb 22, 2011
    …. fixes.
    
    These are all non-functional changes that reduce diffs to FreeBSD.
    
    Submitted-by: John Marino <john@marino.st>
    Taken-from:   FreeBSD
  3. <sys/link_elf.h>: Fix include guard.

    Sascha Wildner committed Feb 22, 2011
    Submitted-by: John Marino <john@marino.st>
    Taken-from:   FreeBSD
  4. kernel - Unconditionally clear BRIDGE_MBUF_TAGGED in two cases

    Matthew Dillon committed Feb 22, 2011
    * First unconditionally clear BRIDGE_MBUF_TAGGED if the target MAC
      in the link header points to us, regardless of what we do with the
      packet.
    
    * Second, unconditionally clear BRIDGE_MBUF_TAGGED if IPFW2 redirects
      the packet destination, bad things will happen if the original source
      MAC is kept in the link header.  i.e. the packet becomes routed at
      that point.
  5. kernel/i386: Add -msoft-float to CFLAGS

    Sepherosa Ziehau committed Feb 22, 2011
  6. libstand: Make sure that -march=i386 is specified

    Sepherosa Ziehau committed Feb 22, 2011
    This unbreaks the loader compiled by gcc44
  7. dloader: Make sure that -march=i386 is specified

    Sepherosa Ziehau committed Feb 22, 2011
  8. mptable: Implement stub I/O APIC enumerator

    Sepherosa Ziehau committed Feb 22, 2011
  9. kernel - More if_bridge work + misc fixes

    Matthew Dillon committed Feb 22, 2011
    * When bridging packets sent from one of our own MACs we always override
      the ether_shost in the output packet so it comes from the actual
      interface the packet is being sent out on.
    
    * LINK0 will still nominally keep the ether_shost intact when forwarding
      across a bridge, except in the above case.  That is, any foreign MAC
      set as the source coming in on one interface will be retained as the
      source when being thrown out on another interface.  But any local MAC
      will be replaced with the MAC of the outgoing interface.
    
    * When receiving a unicast frame on one interface which is targetted to
      another interface, retain the original rcvif for any vlan or arp
      processing.  Otherwise (for example) if this were an ARP reply the ARP
      code would associate the reply with the wrong interface.  We would want
      the ARP entry to be associated with the first interface, not the second,
      because the first interface is the one the reply actually came in on.
    
    * Adjust the ARP code in if_ether.c to use rcvif and not ifp, and don't
      log if non-matching interfaces are part of the same bridge (unless
      log_arp_wrong_iface is set to 2).
    
    * Augment the ether_reinput_cpu() API to pass additional flags in,
      allowing the caller to specify that m->m_pkthdr.rcvif not be
      overwritten.  Used to support the above features.
    
    * Clear M_HASH in a few more cases in pf.c
Commits on Feb 21, 2011
  1. rtld.1: Staticize the variable in the _rtld_functrace example.

    Sascha Wildner committed Feb 21, 2011
    Pointed-out-by: corecode
  2. rtld.1: Add an example on how to set up _rtld_functrace.

    Sascha Wildner committed Feb 21, 2011
    While here, put the function's prototype into the SYNOPSIS and add a
    _rtld_functrace(3) MLINK.
  3. Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git…

    Matthew Dillon committed Feb 21, 2011
    …/dragonfly
  4. kernel - Fix extra rel_mplock() in if_tap

    Matthew Dillon committed Feb 21, 2011
    * Fix crash/panic when running openvpn w/if_tap due to dangling
      rel_mplock().
  5. HAMMER - Fix long stalls when writing out core files

    Matthew Dillon committed Feb 21, 2011
    * Fix a long-stall case (hmrwww) due to a broken pipelining algorithm when
      using large write()s to write out large files.
Commits on Feb 20, 2011
  1. newsyslog: Sync with FreeBSD.

    Peter Avalos committed Feb 20, 2011
    -Don't consider non-existence of a PID file an error.
    -Add -P flag which prevents further action if the pidfile is empty or
    doesn't exist.
    -Add a -S switch to override the default syslog pid file.
    -Add support for creating the archived log filenames using a time-stamp
    instead of the traditional simple counter.
    -Add xz(1) support.
    -Rewrite and simplify logfile compression code.
    -Convert newsyslog to using queue(3) macros.
    -Add file include processing.
    
    Obtained-from: FreeBSD
  2. Sync /bin/sh regression tests with FreeBSD.

    Peter Avalos committed Feb 20, 2011
    -Add some tests for omitting whitespace.
    -Split off some special behaviour into separate tests.
    -Do not use "local" in the test runner.
    -Make execution/fork1.0 work even if the basename of ${SH} is not "sh".
    -Test that the read builtin passes through all byte values except NUL,
    newline and backslash.
    -Unset some locale vars in two tests that may cause them to break.
    
    Obtained-from: FreeBSD
  3. <sys/elf_generic.h>: Fix typo in a #warning.

    Sascha Wildner committed Feb 20, 2011
  4. Remove some kref(9) related files via 'make upgrade'.

    Sascha Wildner committed Feb 20, 2011
Commits on Feb 19, 2011
  1. kernel - Clear BRIDGE_MBUF_TAGGED for NAT translations

    Matthew Dillon committed Feb 19, 2011
    * Clear the new BRIDGE_MBUF_TAGGED flag when a NAT or other translation
      changes the source IP for a packet, otherwise packets traversing a bridged
      interface may wind up with a source MAC that has nothing to do with
      the translated source IP.
  2. kernel - Add a transparent MAC bridging feature to if_bridge

    Matthew Dillon committed Feb 19, 2011
    * Defaults to non-transparent (historical) operation, which is safer.
      Set link0 to use in transparent MAC mode.
    
    * Transparent MAC mode will attempt to retain the MAC source in the
      link address header when retransmitting a packet on a different
      interface.
    
      Only IP/IPV6 packets will retain the MAC.  ARP and other ether types
      will get the outgoing interface's MAC address, which is usually
      desireable.
    
    * Note that transparent MAC mode is a bit dangerous, which is why it
      isn't turned on by default.  If a packet with the originating MAC
      winds up being sent out the same interface it came in on with the
      MAC intact, any switches between the two boxes will suddenly think
      the originating machine is somewhere else and will get confused.
    
      The code tries to avoid this situation.
    
      Bridging loops can also cause this sort of behavior even with the spanning
      tree protocol.  link0 is not recommended if you have loops.
    
    * Coded because I needed this for braindead at&t uverse routers which
      do MAC-based security and only allow one IP association for each MAC,
      and whos firewalls cannot be completely disabled, and which cannot deal
      with IPs on routed networks (it expects everything to be directly connected
      on a switched network. sigh).
  3. kernel - Fix minor mistake corrupting an allocation in recent MPTable…

    Matthew Dillon committed Feb 19, 2011
    … work
    
    * Fix an allocation which was too small (sizeof pointer vs structure),
      which fixes an early-boot panic.
    
    Reported-by: Peter Avalos <peter@theshell.com>
  4. kernel - Fix fairq, PF table hash was not being initialized

    Matthew Dillon committed Feb 19, 2011
    * fairq depends on the PF table entry hash, which was not being
      initialized.
    
    * Fixes problems with fairq not queueing fairly.
  5. kernel - Allow rn_inithead() to be called early

    Matthew Dillon committed Feb 19, 2011
    * Allow rn_inithead() to be called earlier than rn_init().  rn_init() is
      called very late and was responsible for creating the all-ones and
      all-zeros keys.  It also required the proto domains to be initialized(?).
    
    * A PF module preload was calling rn_inithead() before the all-ones and
      all-zeros keys could be allocated, resulting in a crash.
Commits on Feb 18, 2011
  1. mptable: Save PCI interrupt pin to I/O APIC pin maps

    Sepherosa Ziehau committed Feb 18, 2011