]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r201210:
trasz [Tue, 6 Apr 2010 10:32:26 +0000 (10:32 +0000)]
MFC r201210:

Remove pppd, it's gone.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206262 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205534:
delphij [Tue, 6 Apr 2010 00:50:23 +0000 (00:50 +0000)]
MFC r205534:

Add PCI ID for MCS9901's parallel port.

PR: kern/144713
Submitted by: gcooper

git-svn-id: svn://svn.freebsd.org/base/stable/8@206227 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205520:
delphij [Tue, 6 Apr 2010 00:46:49 +0000 (00:46 +0000)]
MFC r205520:

Correct cross reference.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206225 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204267: Allow cxgbtool to build with WARNS=6
np [Mon, 5 Apr 2010 23:55:04 +0000 (23:55 +0000)]
MFC r204267: Allow cxgbtool to build with WARNS=6

git-svn-id: svn://svn.freebsd.org/base/stable/8@206224 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of tzdata2010h:
edwin [Mon, 5 Apr 2010 23:43:23 +0000 (23:43 +0000)]
MFC of tzdata2010h:

From tzdata2010h:

- Tunis will not go into DST this year.
- Pakistan will not go into DST this year.

From tzdata2010g:

- Bangladesh cancels DST.
- Palestine goes into DST one day later than expected.

- Russian timezones update:
  Europe/Samara goes to Moscow time.
  Asia/Kamchatka goes to Moscow+8 time.
  Asia/Anadyr goes to Moscow+8 time.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206221 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agocxgb(4) MFCs: r204271,r204274,r204348,r204921,r205944,r205945,r205946,r205947,r205948...
np [Mon, 5 Apr 2010 23:29:27 +0000 (23:29 +0000)]
cxgb(4) MFCs: r204271,r204274,r204348,r204921,r205944,r205945,r205946,r205947,r205948,r205949,r205950,r206109

r204271:
Accessing an mbuf after it has been handed off to the hardware is a bad
race as it could already have been tx'd and freed by that time.  Place
the bpf tap just _before_ writing the gen bit.

This fixes a panic when running tcpdump on a cxgb interface.

r204274:
There is no need to test __FreeBSD_version for features that have
been around for a long time now (7.1-ish or even earlier); assume
they are present.  These includes MSI, TSO, LRO, VLAN, INTR_FILTERS,
FIRMWARE, etc.

Also, eliminate some dead code and clean up in other places as part
of this quick once-over.

r204348:
Support IFCAP_VLANHWTSO in cxgb(4).  It works with or without vlanhwtag.
While here, remove old DPRINTFs and tidy up the capability code a bit.

r204921:
Better TwinAx transceiver detection.

Originally submitted by: <Bruno dot Bittner at isilon dot com>
(This is a rewritten, corrected version of that patch)

r205944:
Refresh the firmware version immediately after it is upgraded (or downgraded).

r205945:
Improved PHY EDC settings.

r205946:
Do not attempt to retrieve interrupt information before it is available.

r205947:
Fix build with "nooptions INET"

r205948:
Fix tx drop statistics.

r205949:
Fix signed/unsigned mix-up that allowed txq->in_use to grow beyond txq->size.

r205950:
Multiple fixes related to queue set sizing and resources:

- Only the tunnelq (TXQ_ETH) requires a buf_ring, an ifq, and the watchdog/timer
  callouts.  Do not allocate these for the other tx queues.

- Use 16k jumbo clusters only on offload capable cards by default.

- Do not allocate a full tx ring for the offload queue if the card is not
  offload capable.

- Slightly better freelist size calculation.

- Fix nmbjumbo4 typo, remove unneeded global variables.

r206109:
Increase response queue size to avoid starvation, add a counter
to track it when it does occur.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206220 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoAdd missing module Makefile for ixgbe and em MFCs
jfv [Mon, 5 Apr 2010 21:43:22 +0000 (21:43 +0000)]
Add missing module Makefile for ixgbe and em MFCs

git-svn-id: svn://svn.freebsd.org/base/stable/8@206215 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of the em/igb drivers
jfv [Mon, 5 Apr 2010 20:39:44 +0000 (20:39 +0000)]
MFC of the em/igb drivers

git-svn-id: svn://svn.freebsd.org/base/stable/8@206211 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of version 2.1.7 of the ixgbe driver.
jfv [Mon, 5 Apr 2010 18:46:29 +0000 (18:46 +0000)]
MFC of version 2.1.7 of the ixgbe driver.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206204 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoThis is an MFC of 205712.
mjacob [Mon, 5 Apr 2010 18:36:47 +0000 (18:36 +0000)]
This is an MFC of 205712.

D'oh- isp_handle_index' logic was reversed (not used in FreeBSD).

git-svn-id: svn://svn.freebsd.org/base/stable/8@206202 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoHandle the missing props changes for my MFC of 205698 (206196)
mjacob [Mon, 5 Apr 2010 18:33:42 +0000 (18:33 +0000)]
Handle the missing props changes for my MFC of 205698 (206196)

git-svn-id: svn://svn.freebsd.org/base/stable/8@206201 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r206086
marius [Mon, 5 Apr 2010 18:25:30 +0000 (18:25 +0000)]
MFC: r206086

- Try do deal gracefully with correctable ECC errors.
- Improve the reporting of unhandled kernel and user traps.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206198 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoThis is an MFC of 205698
mjacob [Mon, 5 Apr 2010 18:22:42 +0000 (18:22 +0000)]
This is an MFC of 205698

Clean up some printing stuff so that we can have a bit finer control
on debug output. Add a new platform function requirement to allow
for printing based upon the ITL nexus instead of the isp unit plus
channel, target and lun. This allows some printouts and error messages
from the core code to appear in the same format as the platform's
subsystem (in FreeBSD's case, CAM path).

git-svn-id: svn://svn.freebsd.org/base/stable/8@206196 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r206020
marius [Mon, 5 Apr 2010 18:04:01 +0000 (18:04 +0000)]
MFC: r206020

Use device_get_nameunit(9) rather than device_get_name(9) so one can
identify the reporting bridge in machines with multiple PCI domains.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206192 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r206019
marius [Mon, 5 Apr 2010 17:58:47 +0000 (17:58 +0000)]
MFC: r206019

Don't re-implement device_get_nameunit(9).

git-svn-id: svn://svn.freebsd.org/base/stable/8@206191 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r206018
marius [Mon, 5 Apr 2010 17:56:40 +0000 (17:56 +0000)]
MFC: r206018

- Take advantage of the INTCLR_* macros.
- Right-justify the backslashes as per style(9).

git-svn-id: svn://svn.freebsd.org/base/stable/8@206188 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205095
jkim [Mon, 5 Apr 2010 17:37:35 +0000 (17:37 +0000)]
MFC: r205095

Fix a style(9) nit.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206187 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205858
jkim [Mon, 5 Apr 2010 17:32:49 +0000 (17:32 +0000)]
MFC: r205858

Check the pointer to JIT binary filter before its de-allocation.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206185 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204907, r204913, r205402, r205573, r205573
alc [Mon, 5 Apr 2010 16:11:42 +0000 (16:11 +0000)]
MFC r204907, r204913, r205402, r205573, r205573
  Implement AMD's recommended workaround for Erratum 383 on Family 10h
  processors.

  Enable machine check exceptions by default.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206183 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of 2 items to fix the csum for v6 issue:
rrs [Mon, 5 Apr 2010 13:48:23 +0000 (13:48 +0000)]
MFC of 2 items to fix the csum for v6 issue:
Revision 205075 and 205104:

---------205075----------
With the recent change of the sctp checksum to support offload,
no delayed checksum was added to the ip6 output code. This
causes cards that do not support SCTP checksum offload to
have SCTP packets that are IPv6 NOT have the sctp checksum
performed. Thus you could not communicate with a peer. This
adds the missing bits to make the checksum happen for these cards.
-------------------------
---------205104----------
The proper fix for the delayed SCTP checksum is to
have the delayed function take an argument as to the offset
to the SCTP header. This allows it to work for V4 and V6.
This of course means changing all callers of the function
to either pass the header len, if they have it, or create
it (ip_hl << 2 or sizeof(ip6_hdr)).
-------------------------
PR: 144529

git-svn-id: svn://svn.freebsd.org/base/stable/8@206181 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC of 204670:
rrs [Mon, 5 Apr 2010 13:33:54 +0000 (13:33 +0000)]
MFC of 204670:
-------------------------
sched_getparam was just plain broke for time-share
processes. It did not return an error but instead
just let garbage be passed back. This I fix so
it actually properly translates the priority the
process is at to a posix's high means more priority.
I also fix it so that if the ULE scheduler has bumped
it up to a realtime process you get back a sane value
i.e. the highest priority (63 for time-share).

sched_setscheduler() had the setting of the
timeshare class priority disabled. With some notes
about rejecting the posix high numbers is greater
priority and use nice instead. This fix also
adjusts that to work, with the cavet that a t-s
process may well get bumped up or down i.e. the
setscheduler() will NOT change the nice value only
the current priority. I think this is reasonable
considering if the user wants to play with nice then
he can. At least all the posix'ish interfaces now
respond sanely.
-----------------------

git-svn-id: svn://svn.freebsd.org/base/stable/8@206180 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205120,r205126
rnoland [Sun, 4 Apr 2010 15:46:46 +0000 (15:46 +0000)]
MFC r205120,r205126

Add drm support for Intel Pineview chips.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206166 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r203289,r203367
rnoland [Sun, 4 Apr 2010 15:42:52 +0000 (15:42 +0000)]
MFC r203289,r203367

Enable MTRR on all VIA CPUs that claim support

git-svn-id: svn://svn.freebsd.org/base/stable/8@206165 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205096, r205102
rnoland [Sun, 4 Apr 2010 15:37:47 +0000 (15:37 +0000)]
MFC r205096, r205102

Add AGP support for Intel Pineview and Ironlake chipsets.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206164 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205269
marius [Sun, 4 Apr 2010 14:57:46 +0000 (14:57 +0000)]
MFC: r205269

o Add support for UltraSparc-IV+:
  - Swap the configuration of the first and second large dTLB as with
    US-IV+ these can only hold entries of certain page sizes each, which
    we happened to chose the non-working way around.
  - Additionally ensure that the large iTLB is set up to hold 8k pages
    (currently this happens to be a NOP though).
  - Add a workaround for US-IV+ erratum #2.
  - Turn off dTLB parity error reporting as otherwise we get seemingly
    false positives when copying in the user window by simulating a
    fill trap on return to usermode. Given that these parity errors can
    be avoided by disabling multi issue mode and the problem could be
    reproduced with a second machine this appears to be a silicon bug of
    some sort.
  - Add a membar #Sync also before the stores to ASI_DCACHE_TAG. While
    at it, turn of interrupts across the whole cheetah_cache_flush() for
    simplicity instead of around every flush. This should have next to no
    impact as for cheetah-class machines we typically only need to flush
    the caches a few times during boot when recovering from peeking/poking
    non-existent PCI devices, if at all.
  - Just use KERNBASE for FLUSH as we also do elsewhere as the US-IV+
    documentation doesn't seem to mention that these CPUs also ignore the
    address like previous cheetah-class CPUs do. Again the code changing
    LSU_IC is executed seldom enough that the negligible optimization of
    using %g0 instead should have no real impact.

  With these changes FreeBSD runs stable on V890 equipped with US-IV+
  and -j128 buildworlds in a loop for days are no problem. Unfortunately,
  the performance isn't were it should be as a buildworld on a 4x1.5GHz
  US-IV+ V890 takes nearly 3h while on a V440 with (theoretically) less
  powerfull 4x1.5GHz US-IIIi it takes just over 1h. It's unclear whether
  this is related to the supposed silicon bug mentioned above or due to
  another issue. The documentation (which contains a sever bug in the
  description of the bits added to the context registers though) at least
  doesn't mention any requirements for changes in the CPU handling besides
  those implemented and the cache as well as the TLB configurations and
  handling look fine.
o Re-arrange cheetah_init() so it's easier to add support for SPARC64
  V up to VIIIfx CPUs, which only require parts of this initialization.

Committed from: EH2010

git-svn-id: svn://svn.freebsd.org/base/stable/8@206162 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205652
alc [Sat, 3 Apr 2010 15:43:28 +0000 (15:43 +0000)]
MFC r205652
  A ptrace(2) by one process may trigger a page size promotion in the
  address space of another process.  Modify pmap_promote_pde() to handle
  this.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206138 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205998:
fabient [Sat, 3 Apr 2010 07:12:35 +0000 (07:12 +0000)]
MFC r205998:
If there is multiple PMCs for the same interrupt ignore new post.
This will indirectly fix a bug where the thread will be pinned
forever if the assert is not compiled.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206121 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205637:
bz [Fri, 2 Apr 2010 17:52:50 +0000 (17:52 +0000)]
MFC r205637:

  We are holding a write lock here so avoid aquiring it twice calling
  the "locked" version rather than the wrapper function.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206110 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205789:
bz [Fri, 2 Apr 2010 17:48:01 +0000 (17:48 +0000)]
MFC r205789:

  When tearing down IPsec as part of a (virtual) network stack,
  do not try to free the same list twice but free both the
  acquiring list and the security policy acquiring list.

  Reviewed by:  anchie

git-svn-id: svn://svn.freebsd.org/base/stable/8@206108 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205854: calendar.freebsd: add my entry
avg [Fri, 2 Apr 2010 15:33:24 +0000 (15:33 +0000)]
MFC r205854: calendar.freebsd: add my entry

git-svn-id: svn://svn.freebsd.org/base/stable/8@206099 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoPropagate merge-info from sys/net to sys for r206024.
bz [Fri, 2 Apr 2010 14:37:55 +0000 (14:37 +0000)]
Propagate merge-info from sys/net to sys for r206024.
Also record mergeinfo for r206042.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206096 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205317:
kib [Fri, 2 Apr 2010 13:43:16 +0000 (13:43 +0000)]
MFC r205317:
Remove dead statement.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206092 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205316:
kib [Fri, 2 Apr 2010 13:39:30 +0000 (13:39 +0000)]
MFC r205316:
Fix two style issues.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206091 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMerge r205082, r205083 that fix 'netstat -f netgraph' functionality.
glebius [Fri, 2 Apr 2010 11:07:55 +0000 (11:07 +0000)]
Merge r205082, r205083 that fix 'netstat -f netgraph' functionality.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206088 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 205268
qingli [Fri, 2 Apr 2010 05:15:27 +0000 (05:15 +0000)]
MFC 205268

Set the device capabilities to include dynamic link-state for
those modern drivers.

Reviewed by: imp (and suggested by imp)

git-svn-id: svn://svn.freebsd.org/base/stable/8@206071 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 205222
qingli [Fri, 2 Apr 2010 05:12:46 +0000 (05:12 +0000)]
MFC 205222

Verify interface up status using its link state only
if the interface has such capability. The interface
capability flag indicates whether such capability
exists. This approach is much more backward compatible.
Physical device driver changes will be part of another
commit.

Also updated the ifconfig utility to show the LINKSTATE
capability if present.

Reviewed by:  rwatson, imp, juli

git-svn-id: svn://svn.freebsd.org/base/stable/8@206069 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 205024
qingli [Fri, 2 Apr 2010 05:05:51 +0000 (05:05 +0000)]
MFC 205024

The if_tap interface is of IFT_ETHERNET type, but it
does not set or update the if_link_state variable.
As such RT_LINK_IS_UP() fails for the if_tap interface.

Also, the RT_LINK_IS_UP() needs to bypass all loopback
interfaces because loopback interfaces are considered
up logically as long as the system is running.

This patch fixes the above issues by setting and updating
the if_link_state variable when the tap interface is
opened or closed respectively. Similary approach is
already done in the if_tun device.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206068 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 204902
qingli [Fri, 2 Apr 2010 05:02:50 +0000 (05:02 +0000)]
MFC 204902

One of the advantages of enabling ECMP (a.k.a RADIX_MPATH) is to
allow for connection load balancing across interfaces. Currently
the address alias handling method is colliding with the ECMP code.
For example, when two interfaces are configured on the same prefix,
only one prefix route is installed. So connection load balancing
among the available interfaces is not possible.

The other advantage of ECMP is for failover. The issue with the
current code, is that the interface link-state is not reflected
in the route entry. For example, if there are two interfaces on
the same prefix, the cable on one interface is unplugged, new and
existing connections should switch over to the other interface.
This is not done today and packets go into a black hole.

Also, there is a small bug in the kernel where deleting ECMP routes
in the userland will always return an error even though the command
is successfully executed.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206067 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 201131
qingli [Fri, 2 Apr 2010 04:58:17 +0000 (04:58 +0000)]
MFC 201131

introduce a local variable rte acting as a cache of ro->ro_rt
within ip_output, achieving (in random order of importance):
- a reduction of the number of 'r's in the source code;
- improved legibility;
- a reduction of 64 bytes in the .text

git-svn-id: svn://svn.freebsd.org/base/stable/8@206066 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 205077
qingli [Thu, 1 Apr 2010 20:23:43 +0000 (20:23 +0000)]
MFC 205077

The flow-table module retrieves the destination and source
address as well as the transport protocol port information
from the outbound packets. The routing code is generic and
compares every byte in the given sockaddr object. Therefore
the temporary sockaddr objects must be cleared due to padding
bytes. In addition, the port information must be stripped
or the route search will either fail or return the incorrect
route entry.

Unit testing is done using OpenVPN over the if_tun interface.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206055 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205409
marius [Thu, 1 Apr 2010 15:17:50 +0000 (15:17 +0000)]
MFC: r205409

- The firmware of Sun Fire V1280 has a misfeature of setting %wstate to
  7 which corresponds to WSTATE_KMIX in OpenSolaris whenever calling into
  it which totally screws us even when restoring %wstate afterwards as
  spill/fill traps can happen while in OFW. The rather hackish OpenBSD
  approach of just setting the equivalent of WSTATE_KERNEL to 7 also is
  no option as we treat %wstate as a bit field. So in order to deal with
  this problem actually implement spill/fill handlers for %wstate 7 which
  just act as the WSTATE_KERNEL ones except of theoretically also handling
  32-bit, turn off interrupts completely so we don't even take IPIs while
  in OFW which should ensure we only take spill/fill traps at most and
  restore %wstate after calling into OFW once we have taken over the trap
  table. While at it, actually set WSTATE_{,PROM}_KMIX before calling into
  OFW just like OpenSolaris does, which should at least help testing this
  change on non-V1280.
- Remove comments referring to the %wstate usage in BSD/OS.
- Remove the no longer used RSF_ALIGN_RETRY macro.
- Correct some trap table addresses in comments.
- Ensure %wstate is set to WSTATE_KERNEL when taking over the trap table.
- Ensure PSTATE_AM is off when entering or exiting to OFW as well as that
  interrupts are also completely off when exiting to OFW as the firmware
  trap table shouldn't be used to handle our interrupts.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206044 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204694,204719,205370
nwhitehorn [Thu, 1 Apr 2010 13:27:27 +0000 (13:27 +0000)]
MFC r204694,204719,205370

Update the page table locking for the 64-bit PMAP. One of these revisions
largely reverted the other, so there is a small amount of churn and the
addition of some mtx_assert()s.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206042 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205163:
nwhitehorn [Thu, 1 Apr 2010 13:21:04 +0000 (13:21 +0000)]
MFC r205163:

Fix two small bugs. The PowerPC 970 does not support non-coherent memory
access, and reflects this by autonomously writing LPTE_M into PTE entries.
As such, we should not panic if LPTE_M changes by itself. While here,
fix a harmless typo in moea64_sync_icache().

git-svn-id: svn://svn.freebsd.org/base/stable/8@206041 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 199602, 200739, 203177, 203350, 203352, 205495, 205527,
marcel [Thu, 1 Apr 2010 02:41:50 +0000 (02:41 +0000)]
MFC rev 199602, 200739, 203177, 203350, 203352, 205495, 205527,
205535 and 205569:

Sync MPC85xx/Book-E with 9-current.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206031 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r197542:
imp [Thu, 1 Apr 2010 02:03:28 +0000 (02:03 +0000)]
MFC: r197542:
  - When we run our trap cleanup handler, echo that we are running this
    handler to make it more clear why we are 'suddenly' running df,
    umount, and mdconfig.
  - Remove trap handler again after we have unconfigured the memory
    device etc.  Before we could end up running the trap handler if a
    later stage failed, which was a bit confusing and not really useful.
  MFC after:      2 weeks

git-svn-id: svn://svn.freebsd.org/base/stable/8@206030 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205656:
delphij [Thu, 1 Apr 2010 00:38:38 +0000 (00:38 +0000)]
MFC r205656:

Check that gl_pathc is bigger than zero before derefencing gl_pathv.
When gl_pathc == 0, the content of gl_pathv is undefined.

PR: bin/144761
Submitted by: David BERARD <contact davidberard fr>
Obtained from: OpenBSD

git-svn-id: svn://svn.freebsd.org/base/stable/8@206025 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC 205066, 205069, 205093, 205097, 205488:
kmacy [Thu, 1 Apr 2010 00:36:40 +0000 (00:36 +0000)]
MFC 205066, 205069, 205093, 205097, 205488:

r205066:

Log:
 - restructure flowtable to support ipv6
 - add a name argument to flowtable_alloc for printing with ddb commands
 - extend ddb commands to print destination address or 4-tuples
 - don't parse ports in ulp header if FL_HASH_ALL is not passed
 - add kern_flowtable_insert to enable more generic use of flowtable
   (e.g. system calls for adding entries)
 - don't hash loopback addresses
 - cleanup whitespace
 - keep statistics per-cpu for per-cpu flowtables to avoid cache line contention
 - add sysctls to accumulate stats and report aggregate

r205069:
Log:
 fix stats reporting sysctl

r205093:
Log:
 re-update copyright to 2010
 pointed out by danfe@

r205097:

Log:
 flowtable_get_hashkey is only used by a DDB function - move under #ifdef DDB

 pointed out by jkim@

r205488:

Log:
 - boot-time size the ipv4 flowtable and the maximum number of flows
 - increase flow cleaning frequency and decrease flow caching time
   when near the flow limit
 - stop allocating new flows when within 3% of maxflows don't start
   allocating again until below 12.5%

git-svn-id: svn://svn.freebsd.org/base/stable/8@206024 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205399
marius [Wed, 31 Mar 2010 22:05:49 +0000 (22:05 +0000)]
MFC: r205399

Improve the KVA space sizing of r186682; on machines with large dTLBs we
can actually use all of the available lockable entries of the tiny dTLB
for the kernel TSB. With this change the KVA space sizing happens to be
more in line with the MI one so up to at least 24GB machines KVA doesn't
need to be limited manually. This is just another stopgap though, the
real solution is to take advantage of ASI_ATOMIC_QUAD_LDD_PHYS on CPUs
providing it so we don't need to lock the kernel TSB pages into the dTLB
in the first place.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206013 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205263
marius [Wed, 31 Mar 2010 22:00:22 +0000 (22:00 +0000)]
MFC: r205263

Add macros for the VER.impl of SPARC64 II to VIIIfx.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206011 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205258
marius [Wed, 31 Mar 2010 21:57:48 +0000 (21:57 +0000)]
MFC: r205258

- Add TTE and context register bits for the additional page sizes supported
  by UltraSparc-IV and -IV+ as well as SPARC64 V, VI, VII and VIIIfx CPUs.
- Replace TLB_PCXR_PGSZ_MASK and TLB_SCXR_PGSZ_MASK with TLB_CXR_PGSZ_MASK
  which just is the complement of TLB_CXR_CTX_MASK instead of trying to
  assemble it from the page size bits which vary across CPUs.
- Add macros for the remainder of the SFSR bits, which are useful for at
  least debugging purposes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206009 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r204153
marius [Wed, 31 Mar 2010 21:41:00 +0000 (21:41 +0000)]
MFC: r204153

Starting with UltraSPARC IV CPUs the CPU caches are described with different
OFW properties.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206007 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r204152, r204164
marius [Wed, 31 Mar 2010 21:32:52 +0000 (21:32 +0000)]
MFC: r204152, r204164

Some machines can not only consist of CPUs running at different speeds
but also of different types, f.e. Sun Fire V890 can be equipped with a
mix of UltraSPARC IV and IV+ CPUs, requiring different MMU initialization
and different workarounds for model specific errata. Therefore move the
CPU implementation number from a global variable to the per-CPU data.
Functions which are called before the latter is available are passed the
implementation number as a parameter now.

git-svn-id: svn://svn.freebsd.org/base/stable/8@206005 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205855
jkim [Wed, 31 Mar 2010 16:01:48 +0000 (16:01 +0000)]
MFC: r205855

Print memory model of the video mode except for planar memory model.
'P', 'D', 'C', 'H', and 'V' mean packed pixel, direct color, CGA, Hercules,
and VGA X memory models respectively where they have fixed number of planes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205985 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r197185
jkim [Wed, 31 Mar 2010 15:49:10 +0000 (15:49 +0000)]
MFC: r197185

Enable BIOS modes on amd64.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205984 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205557, r205558, r205564, r205566, r205604, r205653
jkim [Wed, 31 Mar 2010 15:45:11 +0000 (15:45 +0000)]
MFC: r205557, r205558, r205564, r205566, r205604, r205653

Sync. pixel mode support for VESA and VGA frame buffers with HEAD.

- Map entire video memory again.  Although we do not use them all directly,
it seems VGA renderer may access unmapped memory region and cause kernel
panic.
- Fall back to VGA palette functions if VESA function failed and DAC is
still in 6-bit mode.  Although we have to check non-VGA compatibility bit
here, it seems there are too many broken VESA BIOSes out to rely on it.
- Be careful when we determine bytes per scan line information.  We compare
mode table data against minimum value.  If the mode table does not make
sense, we set the minimum in the mode info.
- Teach VGA framebuffer about 8-bit palette format for VESA.
- Add my copyright here.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205983 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205550, r205605, r205865
jkim [Wed, 31 Mar 2010 15:39:46 +0000 (15:39 +0000)]
MFC: r205550, r205605, r205865

Sync. pixel mode support for syscons(4) with HEAD.

- Separate 24-bit pixel draw from 32-bit case.  Although it is slower, we do
not want to write a useless zero to inaccessible memory region.
- We only want the dummy palette for direct color mode.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205982 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205297, r205347, r205452, r205455, r205649, r205650
jkim [Wed, 31 Mar 2010 15:32:36 +0000 (15:32 +0000)]
MFC: r205297, r205347, r205452, r205455, r205649, r205650

Sync. x86bios with HEAD.

- Detect illegal access to unmapped memory within real mode emulator.
- Map EBDA if available and support memory wraparound above 1MB as VM86 does.
- Set initial %ds to 0x40 as X.org int10 handler does.
- Print the initial memory map when bootverbose is set.
- Optimize real mode page table lookup.
- Add strictly aligned memory access for distant future.
- Update copyright date.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205981 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205606
gahr [Wed, 31 Mar 2010 13:51:31 +0000 (13:51 +0000)]
MFC r205606
Remove const'ness from dlerror(3) prototype, for consistency with POSIX.

Approved by: cognet

git-svn-id: svn://svn.freebsd.org/base/stable/8@205979 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204705:
mav [Wed, 31 Mar 2010 08:17:32 +0000 (08:17 +0000)]
MFC r204705:
Add links to cam(4).

git-svn-id: svn://svn.freebsd.org/base/stable/8@205976 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204565:
mav [Wed, 31 Mar 2010 08:15:32 +0000 (08:15 +0000)]
MFC r204565:
Some style and language improvements.

Submitted by: ru

git-svn-id: svn://svn.freebsd.org/base/stable/8@205975 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204704:
mav [Wed, 31 Mar 2010 08:14:07 +0000 (08:14 +0000)]
MFC r204704:
Reflect added CAM ATA support.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205974 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204655:
mav [Wed, 31 Mar 2010 08:12:22 +0000 (08:12 +0000)]
MFC r204655:
Add some more supported controllers.
Crosslink with CAM ATA man pages.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205973 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205734:
mav [Wed, 31 Mar 2010 08:03:49 +0000 (08:03 +0000)]
MFC r205734:
Fix lock leakage.

PR:             kern/145081

git-svn-id: svn://svn.freebsd.org/base/stable/8@205972 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205413:
mav [Wed, 31 Mar 2010 08:02:16 +0000 (08:02 +0000)]
MFC r205413:
Add some more codec IDs.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205971 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205422:
mav [Wed, 31 Mar 2010 07:56:32 +0000 (07:56 +0000)]
MFC r205422:
- Spec tells that CCC interrupt is edge triggered. Acknowledge it as such.
- Do not try to enable CCC if it is not supported.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205970 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205074:
mav [Wed, 31 Mar 2010 07:49:59 +0000 (07:49 +0000)]
MFC r205074:
Mask disk_idx to avoid panic because of extra bits set.

PR:             kern/102211
Submitted by:   yoichi

git-svn-id: svn://svn.freebsd.org/base/stable/8@205968 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205809:
fabient [Wed, 31 Mar 2010 07:10:40 +0000 (07:10 +0000)]
MFC r205809:
Wait for pmc name in the log before displaying data.
This will solve an abort in case of low throughput PMCs.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205965 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years ago<machine/nexusvar.h>, <machine/sapicreg.h> and <machine/sapicvar.h>
marcel [Wed, 31 Mar 2010 05:23:35 +0000 (05:23 +0000)]
<machine/nexusvar.h>, <machine/sapicreg.h> and <machine/sapicvar.h>
removed on ia64.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205961 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 199727, 200888, 201031, 202904, 203054, 203106, 203572, 203884,
marcel [Wed, 31 Mar 2010 05:05:28 +0000 (05:05 +0000)]
MFC rev 199727, 200888, 201031, 202904, 203054, 203106, 203572, 203884,
204183, 204184, 204185, 204425, 204904, 204905, 205172, 205234, 205357,
205428, 205429, 205431, 205432, 205433, 205434, 205435, 205454, 205665,
205713, 205723, 205726 and 205727:

Bring ia64 machine-dependent changes from 9-current to 8-stable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205960 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC revs 199502, 199566 and 199574:
marcel [Wed, 31 Mar 2010 03:20:14 +0000 (03:20 +0000)]
MFC revs 199502, 199566 and 199574:
Add a seatbelt to the Nested TLB Fault handler to give us a chance
to panic when we have an unexpected TLB fault while interrupt
collection is disabled.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205958 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 198431:
marcel [Wed, 31 Mar 2010 03:14:40 +0000 (03:14 +0000)]
MFC rev 198431:
Have the early USB takeover only enabled for i386 and amd64
by default. This also avoids a panic on PowerPC.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205957 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC rev 198341 and 198342:
marcel [Wed, 31 Mar 2010 02:43:58 +0000 (02:43 +0000)]
MFC rev 198341 and 198342:
o   Introduce vm_sync_icache() for making the I-cache coherent with
    the memory or D-cache, depending on the semantics of the platform.
    vm_sync_icache() is basically a wrapper around pmap_sync_icache(),
    that translates the vm_map_t argumument to pmap_t.
o   Introduce pmap_sync_icache() to all PMAP implementation. For powerpc
    it replaces the pmap_page_executable() function, added to solve
    the I-cache problem in uiomove_fromphys().
o   In proc_rwmem() call vm_sync_icache() when writing to a page that
    has execute permissions. This assures that when breakpoints are
    written, the I-cache will be coherent and the process will actually
    hit the breakpoint.
o   This also fixes the Book-E PMAP implementation that was missing
    necessary locking while trying to deal with the I-cache coherency
    in pmap_enter() (read: mmu_booke_enter_locked).

git-svn-id: svn://svn.freebsd.org/base/stable/8@205956 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoA last-minute change in the previous commit broke rule deletion,
luigi [Wed, 31 Mar 2010 01:51:08 +0000 (01:51 +0000)]
A last-minute change in the previous commit broke rule deletion,
so i am fixing it, this time with a more detailed description
of what the code is supposed to do.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205953 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204533:
delphij [Wed, 31 Mar 2010 00:41:32 +0000 (00:41 +0000)]
MFC r204533:

Add PCI ID for MCS9901.

Submitted by: gcooper
PR: kern/144397

git-svn-id: svn://svn.freebsd.org/base/stable/8@205951 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203846
marius [Tue, 30 Mar 2010 20:46:10 +0000 (20:46 +0000)]
MFC: r203846

Predict KASSERTs to be true.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205936 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203845
marius [Tue, 30 Mar 2010 20:44:04 +0000 (20:44 +0000)]
MFC: r203845

- Add the 'cmp' and 'core' pseudo-busses which are used to group CPU cores
  to the exclusion lists as the CPU nodes aren't handled as regular devices
  either. Also add the pseudo-devices found in Sun Fire V1280.
- Allow nexus_attach() and nexus_alloc_resource() to be used by drivers
  derived from nexus(4) for subordinate busses.
- Don't add the zero-sized memory resources of glue devices to the resource
  lists.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205933 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203843
marius [Tue, 30 Mar 2010 20:39:47 +0000 (20:39 +0000)]
MFC: r203843

Resurrect nexusvar.h from r167307.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205930 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203839
marius [Tue, 30 Mar 2010 20:38:18 +0000 (20:38 +0000)]
MFC: r203839

Style fixes

git-svn-id: svn://svn.freebsd.org/base/stable/8@205928 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203838
marius [Tue, 30 Mar 2010 20:29:45 +0000 (20:29 +0000)]
MFC: r203838

- Search the whole OFW device tree instead of only the children of the
  root nexus device for the CPUs as starting with UltraSPARC IV the 'cpu'
  nodes hang off of from 'cmp' (chip multi-threading processor) or 'core'
  or combinations thereof. Also in large UltraSPARC III based machines
  the 'cpu' nodes hang off of 'ssm' (scalable shared memory) nodes which
  group snooping-coherency domains together instead of directly from the
  nexus.
  It would be great if we could use newbus to deal with the different ways
  the 'cpu' devices can hang off of pseudo ones but unfortunately both
  cpu_mp_setmaxid() and sparc64_init() have to work prior to regular device
  probing.
- Add support for UltraSPARC IV and IV+ CPUs. Due to the fact that these
  are multi-core each CPU has two Fireplane config registers and thus the
  module/target ID has to be determined differently so the one specific
  to a certain core is used. Similarly, starting with UltraSPARC IV the
  individual cores use a different property in the OFW device tree to
  indicate the CPU/core ID as it no longer is in coincidence with the
  shared slot/socket ID.
  This involves changing the MD KTR code to not directly read the UPA
  module ID either. We use the MID stored in the per-CPU data instead of
  calling cpu_get_mid() as a replacement in order prevent clobbering any
  registers as side-effect in the assembler version. This requires CATR()
  invocations from mp_startup() prior to mapping the per-CPU pages to be
  removed though.
  While at it additionally distinguish between CPUs with Fireplane and
  JBus interconnects as these also use slightly different sizes for the
  JBus/agent/module/target IDs.
- Make sparc64_shutdown_final() static as it's not used outside of
  machdep.c.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205927 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203833
marius [Tue, 30 Mar 2010 20:12:42 +0000 (20:12 +0000)]
MFC: r203833

- At least the trap table of the Sun Fire V1280 firmware apparently has
  no cleanwindows handler so just remove trying to trigger it from _start
  and the AP trampoline code as that leads to a crash there. This should
  be okay as leaking data from the OFW via the CPU registers on start of
  the kernel should be no real concern.
- Make the comments of _start and the AP trampoline code regarding the
  initializations they perform match each other and reality.
- Make the comments of the AP trampoline code regarding iTLB accesses
  refer to the right macro.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205924 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203830, r203831
marius [Tue, 30 Mar 2010 20:05:20 +0000 (20:05 +0000)]
MFC: r203830, r203831

Use the SUNW,{d,i}tlb-load methods for entering locked TLB entries like
OpenBSD and OpenSolaris do instead of fiddling with the MMUs ourselves.
Unlike direct access the firmware methods don't automatically use the
next free (?) TLB slot, instead the slot to be used has to be specified.
We allocate the TLB slots for the kernel top-down as OpenSolaris suggests
that the firmware will always allocate the ones for its own use bottom-up.
Besides being simpler, according to OpenBSD using the firmware methods is
required to allow booting on Sun Fire E10K with multi-systemboard domains.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205922 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203829
marius [Tue, 30 Mar 2010 20:02:26 +0000 (20:02 +0000)]
MFC: r203829

- Assert that HEAPSZ is a multiple of PAGE_SIZE as at least the firmware
  of Sun Fire V1280 doesn't round up the size itself but instead lets
  claiming of non page-sized amounts of memory fail.
- Change parameters and variables related to the TLB slots to unsigned
  which is more appropriate.
- Search the whole OFW device tree instead of only the children of the
  root nexus device for the BSP as starting with UltraSPARC IV the 'cpu'
  nodes hang off of from 'cmp' (chip multi-threading processor) or 'core'
  or combinations thereof. Also in large UltraSPARC III based machines
  the 'cpu' nodes hang off of 'ssm' (scalable shared memory) nodes which
  group snooping-coherency domains together instead of directly from the
  nexus.
- Add support for UltraSPARC IV and IV+ BSPs. Due to the fact that these
  are multi-core each CPU has two Fireplane config registers and thus the
  module/target ID has to be determined differently so the one specific
  to a certain core is used. Similarly, starting with UltraSPARC IV the
  individual cores use a different property in the OFW device tree to
  indicate the CPU/core ID as it no longer is in coincidence with the
  shared slot/socket ID.
  While at it additionally distinguish between CPUs with Fireplane and
  JBus interconnects as these also use slightly different sizes for the
  JBus/agent/module/target IDs.
- Check the return value of init_heap(). This requires moving it after
  cons_probe() so we can panic when appropriate. This should be fine as
  the PowerPC OFW loader uses that order for quite some time now.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203731
marius [Tue, 30 Mar 2010 19:52:45 +0000 (19:52 +0000)]
MFC: r203731

Some style(9) fixes

git-svn-id: svn://svn.freebsd.org/base/stable/8@205918 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203341
marius [Tue, 30 Mar 2010 19:37:47 +0000 (19:37 +0000)]
MFC: r203341

- Remove the BUS_HANDLE_MIN checking in the __BUS_DEBUG_ACCESS macro;
  for UPA it should have fulfilled its purpose by now and Fireplane-
  and JBus-based machines are way to messy in organization to implement
  something equivalent.
- Fix a bunch of style(9) bugs.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205913 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203335
marius [Tue, 30 Mar 2010 19:36:00 +0000 (19:36 +0000)]
MFC: r203335

- Const'ify the bus_stream_asi and bus_type_asi arrays.
- Replace hard-coded functions names missed in bus_machdep.c with __func__.
- Break some long lines.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205911 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r203334
marius [Tue, 30 Mar 2010 19:33:09 +0000 (19:33 +0000)]
MFC: r203334

Sync with the other archs and declare the memory location referenced by
the address argument of the bus_space_write_multi_*() familiy as const.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205910 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205410
marius [Tue, 30 Mar 2010 19:13:37 +0000 (19:13 +0000)]
MFC: r205410

Avoid aliasing which leads to incorrect results when compiling with the
default strict aliasing rules.

PR: 144900
Submitted by: Peter Jeremy

git-svn-id: svn://svn.freebsd.org/base/stable/8@205905 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205397
marius [Tue, 30 Mar 2010 19:08:02 +0000 (19:08 +0000)]
MFC: r205397

- While SPARC V9 allows tininess to be detected either before or after
  rounding (impl. dep. #55), the SPARC JPS1 responsible for SPARC64 and
  UltraSPARC processors defines that in all cases tinyness is detected
  before rounding, therefore rounding up to the smallest normalised
  number should set the underflow flag.
- If an infinite result is rounded down, the result should have an
  exponent 1 less than the value for infinity.

PR: 144900
Submitted by: Peter Jeremy

git-svn-id: svn://svn.freebsd.org/base/stable/8@205902 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205396
marius [Tue, 30 Mar 2010 19:06:31 +0000 (19:06 +0000)]
MFC: r205396

Division should take both arguments' signs into account when the
the dividend is infinity or zero and the divisor is not the same.

PR: 144900
Submitted by: Peter Jeremy

git-svn-id: svn://svn.freebsd.org/base/stable/8@205896 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205395
marius [Tue, 30 Mar 2010 19:05:08 +0000 (19:05 +0000)]
MFC: r205395

FPU_DEBUG requires <stdio.h>.

PR: 144900
Submitted by: Peter Jeremy

git-svn-id: svn://svn.freebsd.org/base/stable/8@205893 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205394
marius [Tue, 30 Mar 2010 19:03:26 +0000 (19:03 +0000)]
MFC: r205394

Ensure that __fpu_ftox() both returns the high bits and res[1] contains
the low bits also in the default case.

PR: 144900
Obtained from: OpenBSD

git-svn-id: svn://svn.freebsd.org/base/stable/8@205890 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205393
marius [Tue, 30 Mar 2010 18:58:07 +0000 (18:58 +0000)]
MFC: r205393

- Remove a bogus forward declaration.
- Fix whitespace.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205887 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205167:
attilio [Tue, 30 Mar 2010 12:06:18 +0000 (12:06 +0000)]
MFC r205167:
Make the code more readable and compiling on 64-bits arch different
than amd64.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@205878 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205160:
attilio [Tue, 30 Mar 2010 11:46:43 +0000 (11:46 +0000)]
MFC r205160:
Checkin a facility for specifying a passthrough FIB from userland.
arcconf tool by Adaptec already seems to use for identifying the
Serial Number of the devices.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@205876 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204641, r204753:
attilio [Tue, 30 Mar 2010 11:19:29 +0000 (11:19 +0000)]
MFC r204641, r204753:
Improving the clocks auto-tunning by firstly checking if the atrtc may be
correctly initialized and just then assign to softclock/profclock.

Sponsored by:   Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@205875 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r204383:
delphij [Mon, 29 Mar 2010 22:52:51 +0000 (22:52 +0000)]
MFC r204383:

Add several necessary .El's

git-svn-id: svn://svn.freebsd.org/base/stable/8@205866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r205702:
delphij [Mon, 29 Mar 2010 18:24:08 +0000 (18:24 +0000)]
MFC r205702:

Remove GNU cpio after fix of CVE-2010-0624.

Note that this is actually a no-op for most users, as this GNU
cpio was broken on -HEAD and 8-STABLE since last March until
the recent fix.

FreeBSD 8.0+ uses BSD cpio by default and the code is being
actively maintained.

git-svn-id: svn://svn.freebsd.org/base/stable/8@205848 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC: r205647
jkim [Mon, 29 Mar 2010 15:59:37 +0000 (15:59 +0000)]
MFC: r205647

Fix stupid typos.  Some VESA BIOSes directly call BIOS interrupt handlers
within the VBE interrupt handler.  Unfortunately it was causing real mode
page faults because we were fetching instructions from bogus addresses.

PR: kern/144654

git-svn-id: svn://svn.freebsd.org/base/stable/8@205837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agoMFC r199852, r202387, r202441, r202534:
attilio [Mon, 29 Mar 2010 15:39:17 +0000 (15:39 +0000)]
MFC r199852, r202387, r202441, r202534:
Handling all the three clocks with the LAPIC may lead to aliasing for
softclock and profclock.
Revert the change when the LAPIC started taking charge of all three of
them.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@205836 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

14 years agomfc 205830:
luigi [Mon, 29 Mar 2010 12:32:16 +0000 (12:32 +0000)]
mfc 205830:
fixes to rule set handling (including potential kernel panics)

git-svn-id: svn://svn.freebsd.org/base/stable/8@205833 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f