]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoasr(4) is not amd64-clean, not amr(4).
Maxim Sobolev [Mon, 19 Jan 2009 08:51:20 +0000 (08:51 +0000)]
asr(4) is not amd64-clean, not amr(4).

Pointy hat to: myself
Submitted by: scottl

15 years agoComment amr(4) out - according to scottl it's not 64-bit clean.
Maxim Sobolev [Mon, 19 Jan 2009 08:25:41 +0000 (08:25 +0000)]
Comment amr(4) out - according to scottl it's not 64-bit clean.

15 years agoWhitespace-only: reduce diff to the i386 GENERIC.
Maxim Sobolev [Mon, 19 Jan 2009 07:18:32 +0000 (07:18 +0000)]
Whitespace-only: reduce diff to the i386 GENERIC.

15 years agoAdd asr(4) and stge(4) from i386 GENERIC. Both drivers compile on amd64 and
Maxim Sobolev [Mon, 19 Jan 2009 07:10:11 +0000 (07:10 +0000)]
Add asr(4) and stge(4) from i386 GENERIC. Both drivers compile on amd64 and
there is no particular reason for them to be i386-only.

MFC after: 2 weeks

15 years ago- Add support for multibyte decimal_point encodings, e.g., U+066B.
David Schultz [Mon, 19 Jan 2009 06:19:51 +0000 (06:19 +0000)]
- Add support for multibyte decimal_point encodings, e.g., U+066B.
  A forthcoming gdtoa import is needed to make this fully work.
- Improve the way "nan(...)" is parsed.

15 years agoAdd support for multibyte decimal_point encodings, e.g., U+066B.
David Schultz [Mon, 19 Jan 2009 06:19:38 +0000 (06:19 +0000)]
Add support for multibyte decimal_point encodings, e.g., U+066B.

15 years agoSometimes RTL8168B seems to take long time to access GMII registers
Pyun YongHyeon [Mon, 19 Jan 2009 02:31:27 +0000 (02:31 +0000)]
Sometimes RTL8168B seems to take long time to access GMII registers
in device attach phase. Double GMII register access timeout value
to fix the issue.

Reported by: wkoszek
Tested by: wkoszek

15 years agoAlso strip the machine arch from SRCDIR in case it is a cross build so
Andrew Thompson [Sun, 18 Jan 2009 23:21:04 +0000 (23:21 +0000)]
Also strip the machine arch from SRCDIR in case it is a cross build so
svnversion works.

15 years agoIf source mbuf chain consists of only one mbuf, use it directly as source
Alexander Motin [Sun, 18 Jan 2009 21:09:34 +0000 (21:09 +0000)]
If source mbuf chain consists of only one mbuf, use it directly as source
buffer to avoid extra copying.

15 years agoTeach m_copyback() to use trailing space of the last mbuf in chain.
Alexander Motin [Sun, 18 Jan 2009 20:19:55 +0000 (20:19 +0000)]
Teach m_copyback() to use trailing space of the last mbuf in chain.

15 years agoUse m_unshare()+m_copyback() instead of m_freem()+m_devget() to keep
Alexander Motin [Sun, 18 Jan 2009 19:25:36 +0000 (19:25 +0000)]
Use m_unshare()+m_copyback() instead of m_freem()+m_devget() to keep
original mbuf chain headers. It can be less efficient in some cases, but it
looks better then mess of copying headers into the nonempty chain.

15 years ago- Eliminate warnings in debug print macros by explicitly converting all
Stanislav Sedov [Sun, 18 Jan 2009 15:10:46 +0000 (15:10 +0000)]
- Eliminate warnings in debug print macros by explicitly converting all
  field to unsigned long.

15 years ago- Whitespace fixes.
Stanislav Sedov [Sun, 18 Jan 2009 14:54:46 +0000 (14:54 +0000)]
- Whitespace fixes.
- s_bmask field doesn't exist.
- Use correct flags in debug printf.

15 years ago- Obtain inode sizes and location of the first inode based on the contents
Stanislav Sedov [Sun, 18 Jan 2009 14:04:56 +0000 (14:04 +0000)]
- Obtain inode sizes and location of the first inode based on the contents
  of superblock rather than using hardcoded values. This fixes ext2fs on
  filesystems with inode sized other than 128.

Submitted by: Alex Lyashkov <Alexey.Lyashkov@Sun.COM> (based on)
MFC after: 2 weeks

15 years agoAdjust the padding of struct pcpu to r187357.
Marius Strobl [Sun, 18 Jan 2009 13:04:38 +0000 (13:04 +0000)]
Adjust the padding of struct pcpu to r187357.

15 years agoRemove strict limitation on minimal multilink MRRU. RFC claims that MRRU
Alexander Motin [Sun, 18 Jan 2009 12:03:43 +0000 (12:03 +0000)]
Remove strict limitation on minimal multilink MRRU. RFC claims that MRRU
of 1500 must be supported, but allows smaller values to be negotiated.
Enforce specified MRRU for outgoing frames.

MFC after: 2 weeks

15 years agoFix regression introduced in rev. 173124:
Alexander Motin [Sun, 18 Jan 2009 11:38:35 +0000 (11:38 +0000)]
Fix regression introduced in rev. 173124:
0.0.0.0/1 is not the same as 0.0.0.0/0.

MFC after: 1 month

15 years agoDon't forget to mark the color translation array as const.
Ed Schouten [Sun, 18 Jan 2009 09:44:33 +0000 (09:44 +0000)]
Don't forget to mark the color translation array as const.

Spotted by: Christoph Mallon <christoph mallon gmx de>

15 years agoCorrect an error in revision 1.170 of this file. When get_pv_entry() is
Alan Cox [Sun, 18 Jan 2009 08:00:55 +0000 (08:00 +0000)]
Correct an error in revision 1.170 of this file.  When get_pv_entry() is
forced to reclaim pv entries, the one pv entry that it returns should not
be freed.

15 years agoremove too noisy DIAGNOSTIC code
Sam Leffler [Sun, 18 Jan 2009 07:20:02 +0000 (07:20 +0000)]
remove too noisy DIAGNOSTIC code

Reviewed by: qingli

15 years ago - Add summary information to the title once the file is parsed rather than
Jeff Roberson [Sun, 18 Jan 2009 05:44:31 +0000 (05:44 +0000)]
 - Add summary information to the title once the file is parsed rather than
   printing it to the terminal.  Now only parse errors go to the terminal.
 - Speedup drawing by raising and lowering tags only once everything has
   been drawn.  Surprisingly, it now takes a little longer to parse than
   it does to draw.
 - Parameterize the layout with X_ and Y_ defines that determine the sizes
   of various things.
 - Remove unnecessary tags.

15 years agoJust put the ifnet pointer first in the softc like it needs to be rather than
Andrew Thompson [Sun, 18 Jan 2009 05:35:58 +0000 (05:35 +0000)]
Just put the ifnet pointer first in the softc like it needs to be rather than
adding another deliciously evil pointer.

15 years ago - Significantly speedup hiding and displaying multiple rows by writing an
Jeff Roberson [Sun, 18 Jan 2009 04:49:01 +0000 (04:49 +0000)]
 - Significantly speedup hiding and displaying multiple rows by writing an
   optimized single pass function for each.  This reduces the number of
   tkinter calls required to the minimum.
 - Add a right-click context menu for sources.  Supported commands hide
   the source, hide the whole group the source is in, and bring up a stat
   window.
 - Add a source stat frame that gives an event frequency table as well as
   the total duration for each event type that has a duration.  This can
   be used to see, for example, the total time a thread spent running or
   blocked by a wchan or lock.

15 years agoAdd support for CMedia CMI120.
Giorgos Keramidas [Sun, 18 Jan 2009 04:29:42 +0000 (04:29 +0000)]
Add support for CMedia CMI120.

PR: kern/123640
Approved by: ariff
MFC after: 2 weeks

15 years agoFix for my previous commit: color mapping is not 1:1.
Ed Schouten [Sat, 17 Jan 2009 23:01:40 +0000 (23:01 +0000)]
Fix for my previous commit: color mapping is not 1:1.

Cons25 doesn't seem to use a straight 1:1 mapping to the ANSI colors,
but uses the same color numbers as at least used by syscons on i386. I
suspect if you change the definitions on a different architecture,
things may break? Not sure.

Add a small array to convert syscons-style color codes to ANSI
equivalents, which are used by libteken internally. I didn't notice this
bug, because I only tested my code with black, white and green, all of
them shared the same numbers.

15 years agoMake vidcontrol's color setting work again.
Ed Schouten [Sat, 17 Jan 2009 22:53:53 +0000 (22:53 +0000)]
Make vidcontrol's color setting work again.

It turns out I forgot to implement two escape sequences that allows the
user to change the default foreground and background colors. I thought
they were implemented by syscons itself, but vidcontrol just generates
some escape sequences, which get interpreted by the terminal emulator.

Reported by: mgp (forums)

15 years agoFix typo
Poul-Henning Kamp [Sat, 17 Jan 2009 21:31:47 +0000 (21:31 +0000)]
Fix typo

Spotted by: juli

15 years agoRelease the evil twin of nanobsd.sh: sysbuild.sh
Poul-Henning Kamp [Sat, 17 Jan 2009 20:30:06 +0000 (20:30 +0000)]
Release the evil twin of nanobsd.sh: sysbuild.sh

quoth the README:

I have been running -current on my laptop since before FreeBSD 2.0 was
released and along the way developed this little trick to making the
task easier.

sysbuild.sh is a way to build a new FreeBSD system on a computer from
a specification, while leaving the current installation intact.

sysbuild.sh assume you have two partitions that can hold your rootfs
and can be booted, and roughly speaking, all it does is build a new
system into the one you don't use, from the one you do use.

A partition named /freebsd is assumed to be part of your layout, and
that is where the sources and ports will be found.

If you know how nanobsd works, you will find a lot of similarity.

15 years agoWhen f[w]printf() is called on an unbuffered file like stdout, it
David Schultz [Sat, 17 Jan 2009 18:57:12 +0000 (18:57 +0000)]
When f[w]printf() is called on an unbuffered file like stdout, it
sets up a fake buffered FILE and then effectively calls itself
recursively. Unfortunately, gcc doesn't know how to do tail call
elimination in this case, and actually makes things worse by
inlining __sbprintf(). This means that f[w]printf() to stderr was
allocating about 5k of stack on 64-bit platforms, much of which was
never used.

I've reorganized things to eliminate the waste. In addition to saving
some stack space, this improves performance in my tests by anywhere
from 5% to 17% (depending on the test) when -fstack-protector is
enabled. I found no statistically significant performance difference
when stack protection is turned off. (The tests redirected stderr to
/dev/null.)

15 years agoConvert battery capacity/rate from mA to mW only when summary is requested.
Alexander Motin [Sat, 17 Jan 2009 17:40:44 +0000 (17:40 +0000)]
Convert battery capacity/rate from mA to mW only when summary is requested.
Unconditional conversion causes incorrect rate units reported by acpiconf.

MFC after: 2 weeks

15 years agoAllow experimental libteken features to be tested without changing code.
Ed Schouten [Sat, 17 Jan 2009 16:37:13 +0000 (16:37 +0000)]
Allow experimental libteken features to be tested without changing code.

The teken library already supports UTF-8 handling and xterm emulation,
but we have reasons to disable this right now. Because we should make it
easy and interesting for people to experiment with these features, allow
them to be set in kernel configuration files.

Before this commit we had a flag called `TEKEN_CONS25' to enable
cons25-style emulation. I'm calling it the opposite now, `TEKEN_XTERM',
because we want to enable it in kernel configuration files explicitly.

Requested by: kib

15 years agoFix handling of pts(4) device names in comsat(8). Also catch fork() errors.
Ed Schouten [Sat, 17 Jan 2009 15:56:38 +0000 (15:56 +0000)]
Fix handling of pts(4) device names in comsat(8). Also catch fork() errors.

Pseudo-terminals allocated with posix_openpt(2) will have more slashes
in their path names than comsat(8) allows, so allow slashes when the
character device name starts with "pts/".

This patch is loosely based on NetBSD's changes, revision 1.33. Because
it also included the changes to fork(), I imported them here as well.
Maybe we could import even more fixes from the other BSD's?

Original commit message from the NetBSD folks:

PR/30170: Markus W Kilbinger: src/libexec/comsat complains
about: '/' in "/dev/pts/1"

Reported by: Robert Huff <roberthuff rcn com>

15 years agos,unmount 8,umount 8, it is unmount(2) which I did not mean.
Bjoern A. Zeeb [Sat, 17 Jan 2009 14:52:26 +0000 (14:52 +0000)]
s,unmount 8,umount 8, it is unmount(2) which I did not mean.

Submitted by: pluknet@gmail.com
MFC after: 1 week

15 years agoThe FTP_TIMEOUT and HTTP_TIMEOUT environment variables were ignored because
Dag-Erling Smørgrav [Sat, 17 Jan 2009 13:34:56 +0000 (13:34 +0000)]
The FTP_TIMEOUT and HTTP_TIMEOUT environment variables were ignored because
T_secs already had a non-zero default.  Unbreak by moving the default to
ftp_timeout / http_timeout.

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
MFC after: 2 weeks

15 years agoBail on ENXIO, you won't get any further any way.
Poul-Henning Kamp [Sat, 17 Jan 2009 11:57:32 +0000 (11:57 +0000)]
Bail on ENXIO, you won't get any further any way.

Submitted by: tobez

15 years ago - Add a new source configuration menu option that allows hiding and
Jeff Roberson [Sat, 17 Jan 2009 11:19:15 +0000 (11:19 +0000)]
 - Add a new source configuration menu option that allows hiding and
   displaying sources.
 - Add functions to the main SchedGraph to facilitate source hiding.  The
   source is simply moved off screen and all other sources are moved to
   compensate.

15 years ago - Rewrite the parser to support the new generic schedgraph interface.
Jeff Roberson [Sat, 17 Jan 2009 07:24:25 +0000 (07:24 +0000)]
 - Rewrite the parser to support the new generic schedgraph interface.
   This no longer requires any custom classes or parsers to support new
   event types.
 - Add an optional command line argument for specifying the clock frequency
   in ghz.  This is useful for traces that do not include KTR_SCHED.

Sponsored by: Nokia

 - Add support for sorting rows by clicking and dragging them to their new
   position.
 - Add support for configuring the cpu background colors.
 - Improve the scaling so a better center is maintained as you zoom.  This
   is not perfect due to precision loss with floats used in the window
   views.
 - Add new colors and a random assignment for unknown event types.  A table
   is used for known event types.  This is the only event specific
   information.

15 years ago - Implement generic macros for producing KTR records that are compatible
Jeff Roberson [Sat, 17 Jan 2009 07:17:57 +0000 (07:17 +0000)]
 - Implement generic macros for producing KTR records that are compatible
   with src/tools/sched/schedgraph.py.  This allows developers to quickly
   create a graphical view of ktr data for any resource in the system.
 - Add sched_tdname() and the pcpu field 'name' for quickly and uniformly
   identifying records associated with a thread or cpu.
 - Reimplement the KTR_SCHED traces using the new generic facility.

Obtained from: attilio
Discussed with: jhb
Sponsored by: Nokia

15 years agoSimplify printf's inlined output buffering routines. On amd64, this
David Schultz [Sat, 17 Jan 2009 05:38:14 +0000 (05:38 +0000)]
Simplify printf's inlined output buffering routines. On amd64, this
reduces the code size by about 10% and improves performance slightly.

15 years agoDisable decoding of BARs by devices before we trash the value in the BAR
John Baldwin [Fri, 16 Jan 2009 22:22:30 +0000 (22:22 +0000)]
Disable decoding of BARs by devices before we trash the value in the BAR
by writing all 1's to it to determine its length.  This fixes issues with
MCFG on at least some machines where a trashed BAR claimed subsequent
attempts at PCI config transactions because the addresses in the MCFG
window fell in the decoding range of the BAR.

In general it is a bad idea to leave the BARs enabled while we are
frobbing with them in this manner.

Sleuthing by:  tegge
MFC after:     1 week

15 years agoCorrect the sense of the "use32" terenary operator so that it uses
John Baldwin [Fri, 16 Jan 2009 22:16:54 +0000 (22:16 +0000)]
Correct the sense of the "use32" terenary operator so that it uses
'lib32' for 32-bit binaries on amd64 and 'lib' for 64-bit binaries.
Remove an #ifdef __i386__ that defined use32 to the wrong value on
i386 to workaround the bug in the terenary operator.

MFC after: 1 month

15 years agoexport PSB frequencies
Sam Leffler [Fri, 16 Jan 2009 20:44:45 +0000 (20:44 +0000)]
export PSB frequencies

15 years agorevert r187343
Sam Leffler [Fri, 16 Jan 2009 20:42:43 +0000 (20:42 +0000)]
revert r187343

15 years agoadd FCC4 SKU to expose Public Safety Band (PSB) frequencies; this is
Sam Leffler [Fri, 16 Jan 2009 20:40:50 +0000 (20:40 +0000)]
add FCC4 SKU to expose Public Safety Band (PSB) frequencies; this is
modeled after the Atheros SKU of the same name

15 years agoFix 1/2 and 1/4 width channel handling for non-GSM operation:
Sam Leffler [Fri, 16 Jan 2009 20:38:42 +0000 (20:38 +0000)]
Fix 1/2 and 1/4 width channel handling for non-GSM operation:
o correct typo that caused random channel selection
o explicitly add 1/2 and 1/4 width channels because channel lookups match
  flags that include IEEE80211_CHANNEL_HALF and IEEE80211_CHANNEL_QUARTER

15 years agoUpdate URL.
Marius Strobl [Fri, 16 Jan 2009 19:43:21 +0000 (19:43 +0000)]
Update URL.

15 years agoRemove a duplicate #include.
Olivier Houchard [Fri, 16 Jan 2009 19:31:27 +0000 (19:31 +0000)]
Remove a duplicate #include.

15 years agoAdd some information in SYNOPSIS, HARDWARE and BUGS sections.
Alexander Motin [Fri, 16 Jan 2009 19:28:25 +0000 (19:28 +0000)]
Add some information in SYNOPSIS, HARDWARE and BUGS sections.

15 years agoBe more Solaris-friendly.
Pawel Jakub Dawidek [Fri, 16 Jan 2009 18:09:49 +0000 (18:09 +0000)]
Be more Solaris-friendly.

Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>

15 years agoAllow jot(1) regression tests to be checked out on Windows filesystems.
Ed Schouten [Fri, 16 Jan 2009 15:47:35 +0000 (15:47 +0000)]
Allow jot(1) regression tests to be checked out on Windows filesystems.

The jot(1) regression tests directory contained two tests named `wx' and
`wX', which doesn't work on case insensitive filesystems. Rename `wX' to
`wX1'.

MFC after: 1 month

15 years agoRename mail(1)'s aux.c to util.c.
Ed Schouten [Fri, 16 Jan 2009 15:00:30 +0000 (15:00 +0000)]
Rename mail(1)'s aux.c to util.c.

The name `aux' is reserved on Windows file systems. aux.c in the mail(1)
directory contains some random utility functions. I'm renaming this file
to util.c to make it possible to check out this directory on Windows.

MFC after: 1 month

15 years agoRemove unused files from the digi(4) driver.
Ed Schouten [Fri, 16 Jan 2009 14:45:48 +0000 (14:45 +0000)]
Remove unused files from the digi(4) driver.

The digi(4) driver directory contains some files that cannot be checked
out on Windows filesystems. This isn't a big deal, but the files aren't
used anyway.

There are still some other places where checkouts on Windows don't work,
such as VFS_MOUNT.9/vfs_mount.9. This should already be a small
improvement.

MFC after: 1 month

15 years agoThe RTF_LLINFO was revived unconditionally, but within the kernel the
Qing Li [Fri, 16 Jan 2009 09:01:45 +0000 (09:01 +0000)]
The RTF_LLINFO was revived unconditionally, but within the kernel the
check on the sysctl argument value being RTF_LLINFO is conditioned on
the COMPAT_ROUTE_FLAGS kernel option. This mismatch caused the L2
table retrieval failure, and the arp/ndp -an command displays empty L2
tables.

Reviewed by:   pjd

15 years agoEliminate the PMAP_INLINE macro. It isn't really used here. If we
Warner Losh [Fri, 16 Jan 2009 08:38:03 +0000 (08:38 +0000)]
Eliminate the PMAP_INLINE macro.  It isn't really used here.  If we
need to bring it back, we can.

15 years agoRemove unused variable.
Warner Losh [Fri, 16 Jan 2009 08:30:22 +0000 (08:30 +0000)]
Remove unused variable.
Minor style nits.

15 years agoAdd hardware MAC statistics support. Also added some reserved
Pyun YongHyeon [Fri, 16 Jan 2009 08:06:55 +0000 (08:06 +0000)]
Add hardware MAC statistics support. Also added some reserved
statistics register definition. Users can get current MAC
statistics from dev.msk.%d.stats sysctl node(%d is unit number of
a device).

15 years agoadd athrd tool that dumps ath hal regulatory info; note this is soon to
Sam Leffler [Thu, 15 Jan 2009 23:38:21 +0000 (23:38 +0000)]
add athrd tool that dumps ath hal regulatory info; note this is soon to
obsolete but commit now so it's available for anyone that's interested

15 years agoRevert revision 186833 and try a different strategy to allow this device to
Nathan Whitehorn [Thu, 15 Jan 2009 23:14:59 +0000 (23:14 +0000)]
Revert revision 186833 and try a different strategy to allow this device to
work when the bus attaches its own children. Instead of hardcoding a unit
number and returning BUS_PROBE_NOWILDCARD, which will break multiple iicbus
systems, check in the probe routine whether the device address is 0. Real
I2C devices will never have this address, but devices added with
BUS_ADD_CHILD() will.

Requested by: jhb
Reviewed by: jhb

15 years ago- pmap_track_modified was retired in r178606. Reintroducing it was a mistake.
Oleksandr Tymoshenko [Thu, 15 Jan 2009 23:03:27 +0000 (23:03 +0000)]
- pmap_track_modified was retired in r178606. Reintroducing it was a mistake.

Spotted by: alc@

15 years agoReflect newly added PCI IDs to bce(4).
Xin LI [Thu, 15 Jan 2009 22:41:48 +0000 (22:41 +0000)]
Reflect newly added PCI IDs to bce(4).

MFC after: 2 months

15 years agoChanges to match "Marketing Description" from Broadcom for HP servers.
Xin LI [Thu, 15 Jan 2009 22:28:05 +0000 (22:28 +0000)]
Changes to match "Marketing Description" from Broadcom for HP servers.

Submitted by: davidch
MFC after: 2 months

15 years agoDon't cross-reference gem(4) and hme(4); maybe this made some sense
Marius Strobl [Thu, 15 Jan 2009 22:06:53 +0000 (22:06 +0000)]
Don't cross-reference gem(4) and hme(4); maybe this made some sense
back when these two were the only two NIC drivers working on sparc64
but it no longer does nowadays.

MFC after: 3 days

15 years agoSync the description of jumbo frame support with reality as of r185812;
Marius Strobl [Thu, 15 Jan 2009 22:00:22 +0000 (22:00 +0000)]
Sync the description of jumbo frame support with reality as of r185812;
it's also supported with BCM5702 (matched by BGE_ASICREV_BCM5703) but
bge(4) currently doesn't with neither BCM5714 nor BCM5780.

Prodded by: scf
MFC after: 3 days

15 years agoChange dstp to be const and remove bogus cast.
Roman Divacky [Thu, 15 Jan 2009 20:45:59 +0000 (20:45 +0000)]
Change dstp to be const and remove bogus cast.

Submitted by: christoph.mallon at gmx.de
Approved by: kib (mentor)

15 years agoReduce diffs to p4 that were the result of a mismerge on my part.
Warner Losh [Thu, 15 Jan 2009 19:57:45 +0000 (19:57 +0000)]
Reduce diffs to p4 that were the result of a mismerge on my part.

15 years agoSilent userland warnings about missing prototypes.
Paolo Pisati [Thu, 15 Jan 2009 19:35:23 +0000 (19:35 +0000)]
Silent userland warnings about missing prototypes.

Submitted by: Roman Divacky <rdivacky@freebsd.org>

15 years agoIntroduce a local variable and use it instead of passed in parameter
Roman Divacky [Thu, 15 Jan 2009 18:53:52 +0000 (18:53 +0000)]
Introduce a local variable and use it instead of passed in parameter
to get rid of restrict qualifier discarding. This lets libc compile
cleanly in gnu99 mode.

Suggested by: kib, christoph.mallon at gmx.de
Approved by: kib (mentor)

15 years agoMFp4:
Oleksandr Tymoshenko [Thu, 15 Jan 2009 18:31:36 +0000 (18:31 +0000)]
MFp4:

- Add debug output
- Fix pmap_zero_page and related places: use uncached segments and invalidate
    cache after zeroing memory.
- Do not test for modified bit if it's not neccessary
    (merged from mips-juniper p4 branch)
- Some #includes reorganization

15 years agoName the items of xfer array.
Takanori Watanabe [Thu, 15 Jan 2009 16:04:11 +0000 (16:04 +0000)]
Name the items of xfer array.

15 years agoLock the semaphore identifier lock during semaphore initialization to
Konstantin Belousov [Thu, 15 Jan 2009 12:15:46 +0000 (12:15 +0000)]
Lock the semaphore identifier lock during semaphore initialization to
guarantee atomicity of the operation for other semaphore consumers.
In particular, this should guard against access to the semaphore with
not done or partially done MAC label assignment.

Reviewed by: rwatson
MFC after: 1 month

15 years agoMFi386: 187144
Yoshihiro Takahashi [Thu, 15 Jan 2009 11:54:31 +0000 (11:54 +0000)]
MFi386: 187144

  Documentation-only change:

  - add a reference to the config(5) manpage;
  - hopefully clarify the format of the 'env FILENAME' directive.

15 years agoMFp4:
Warner Losh [Thu, 15 Jan 2009 08:01:50 +0000 (08:01 +0000)]
MFp4:

Remove Maxmem.  It isn't used elsewhere in the system at this point...
realmem is used instead.

15 years agoCall platform_reset() instead of looping forever on reboot.
Warner Losh [Thu, 15 Jan 2009 07:51:17 +0000 (07:51 +0000)]
Call platform_reset() instead of looping forever on reboot.
# We likely need to have a default one of these that jumps to the rom boot
# address that's defined in the MIPS ISA.

15 years agoReverse order of dumpsys and cpu_idle_wakeup to reduce diffs to p4.
Warner Losh [Thu, 15 Jan 2009 07:48:37 +0000 (07:48 +0000)]
Reverse order of dumpsys and cpu_idle_wakeup to reduce diffs to p4.

15 years agoMFp4:
Warner Losh [Thu, 15 Jan 2009 07:45:40 +0000 (07:45 +0000)]
MFp4:

Remove #if'd 0 code.  It is interfering with other diffs.

15 years agofix a ehci's bug that it's occurred when the xfers are aborted under
Weongyo Jeong [Thu, 15 Jan 2009 07:11:14 +0000 (07:11 +0000)]
fix a ehci's bug that it's occurred when the xfers are aborted under
heavy loads or working.  It looks this bug exists since r158869
so needs to revert a part of the previous.

Reviewed by: imp
Tested by: sam
MFC after: 3 weeks

15 years agoRevert previous change, since revision 187103 fixed the problem.
Craig Rodrigues [Thu, 15 Jan 2009 06:54:59 +0000 (06:54 +0000)]
Revert previous change, since revision 187103 fixed the problem.
So now, if you:
- specify "makeoptions DEBUG=-g" in your kernel config
- make buildkernel WITH_CTF=1,

then "-g" will be added to CTFFLAGS.

However, "-g" will still not be added to CTFFLAGS when building
kernel modules, if the above steps are performed.  This needs to be fixed.

Noticed by: thompsa

15 years agoAdd TCP Appropriate Byte Counting (RFC 3465) support to kernel.
Lawrence Stewart [Thu, 15 Jan 2009 06:44:22 +0000 (06:44 +0000)]
Add TCP Appropriate Byte Counting (RFC 3465) support to kernel.

The new behaviour is on by default, and can be disabled by setting the
net.inet.tcp.rfc3465 sysctl to 0 to obtain previous behaviour.

The patch changes struct tcpcb in sys/netinet/tcp_var.h which breaks
the ABI. Bump __FreeBSD_version to 800061 accordingly. User space tools
that rely on the size of struct tcpcb (e.g. sockstat) need to be recompiled.

Reviewed by: rpaulo, gnn
Approved by: gnn, kmacy (mentors)
Sponsored by: FreeBSD Foundation

15 years agoReduce code duplication by moving functions that are identical in both
David Schultz [Thu, 15 Jan 2009 04:49:43 +0000 (04:49 +0000)]
Reduce code duplication by moving functions that are identical in both
vfprintf.c and vfwprintf.c (except for char/wchar_t differences) to a
common header file.

15 years agoConvert the insidious macros that handle printf()'s buffering into
David Schultz [Thu, 15 Jan 2009 04:29:02 +0000 (04:29 +0000)]
Convert the insidious macros that handle printf()'s buffering into
slightly less evil inline functions, and move the buffering state into
a struct. This will make it possible for helper routines to produce
output for printf() directly, making it possible to untangle the code
somewhat.

In wprintf(), use the same buffering mechanism to reduce diffs to
printf(). This has the side-effect of causing wprintf() to catch write
errors that it previously ignored.

15 years agoAdd KERNFAST define. When defined, it skips all the config, depends
Warner Losh [Thu, 15 Jan 2009 04:19:03 +0000 (04:19 +0000)]
Add KERNFAST define.  When defined, it skips all the config, depends
and clean steps.  KERNFAST was selected to complement KERNCONF which
is typically used in these scenarios (especially with cross building).

Reviewed by: arch@

15 years agoDriver for Apple Keywest I2C controllers found in MacIO ASICs. Used for
Nathan Whitehorn [Thu, 15 Jan 2009 02:52:31 +0000 (02:52 +0000)]
Driver for Apple Keywest I2C controllers found in MacIO ASICs. Used for
power and thermal control, as well as GPIOs on Xserves and controlling
sound codecs for Apple built-in audio.

Submitted by: Marco Trillo
Obtained from: NetBSD

15 years agoImport an Open Firmware I2C bus module. This attaches firmware device tree
Nathan Whitehorn [Thu, 15 Jan 2009 02:46:43 +0000 (02:46 +0000)]
Import an Open Firmware I2C bus module. This attaches firmware device tree
indicated I2C devices, and provides an ofw_bus interface for driver probing.
This should be MI, but is currently provided only on PowerPC due to lack of
sparc64 hardware with an I2C controller.

Discussed on: freebsd-arch

15 years agoWhen building up the command-line for the DTrace ctfmerge and ctfconvert
Craig Rodrigues [Thu, 15 Jan 2009 02:41:26 +0000 (02:41 +0000)]
When building up the command-line for the DTrace ctfmerge and ctfconvert
utilities, add the ${DEBUG} variable from the kernel config.  Otherwise,
if we build a kernel with WITH_CTF=1 set, ctfmerge will not have
the -g flag set.  In this case, the cc has -g specified, so the
.o files will have debug information generated, but since ctfmerge
does not have -g set, it will strip out the ELF sections containing
the DWARF debugging info, leading to a kernel without debugging symbols.

Reviewed by: jb

15 years agoName the items in the xfer arrays so they can be identified throughout the
Andrew Thompson [Thu, 15 Jan 2009 02:35:40 +0000 (02:35 +0000)]
Name the items in the xfer arrays so they can be identified throughout the
code.

15 years agosimple scripts to demonstrate tdma setup
Sam Leffler [Wed, 14 Jan 2009 23:53:06 +0000 (23:53 +0000)]
simple scripts to demonstrate tdma setup

15 years agouse correct interface name when setting flags; fixes ifconfig ... create ... up
Sam Leffler [Wed, 14 Jan 2009 22:55:49 +0000 (22:55 +0000)]
use correct interface name when setting flags; fixes ifconfig ... create ... up

Noticed by: Chris Anderson

15 years agoo Code cleanup, remove unused fields of idtpci_softc
Oleksandr Tymoshenko [Wed, 14 Jan 2009 22:46:13 +0000 (22:46 +0000)]
o Code cleanup, remove unused fields of idtpci_softc

15 years agoo Simplify code: trade 15 lines of case for one multiplication
Oleksandr Tymoshenko [Wed, 14 Jan 2009 22:32:43 +0000 (22:32 +0000)]
o Simplify code: trade 15 lines of case for one multiplication

15 years agoReword some entries for NTFS and DOS.
Luigi Rizzo [Wed, 14 Jan 2009 22:05:51 +0000 (22:05 +0000)]
Reword some entries for NTFS and DOS.
Add entries for DELL and ASUS recovery partitions.

MFC after: 3 days

15 years agoAdd missing 'break' statement.
Edward Tomasz Napierala [Wed, 14 Jan 2009 21:31:22 +0000 (21:31 +0000)]
Add missing 'break' statement.

Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
Found with: Coverity Prevent(tm)
CID: 3667

15 years agoAnother change from Christoph:
Luigi Rizzo [Wed, 14 Jan 2009 21:31:09 +0000 (21:31 +0000)]
Another change from Christoph:
replace the table of partition with a simpler and faster array of strings.
The change in the array is done mechanically, using vi commands.
Most entries in the table are probably 15+ years old and largely outdated,
so the next step is to remove stale entries with more current values.

Submitted by: Christoph Mallon, with small changes from me
MFC after: 3 days

15 years agoFix use after free.
Edward Tomasz Napierala [Wed, 14 Jan 2009 21:29:20 +0000 (21:29 +0000)]
Fix use after free.

Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
Found with: Coverity Prevent(tm)
CID: 3712

15 years agoRemove unused variable.
Edward Tomasz Napierala [Wed, 14 Jan 2009 21:27:30 +0000 (21:27 +0000)]
Remove unused variable.

Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
Found with: Coverity Prevent(tm)
CID: 3665

15 years agoAdd missing 'break' statement.
Edward Tomasz Napierala [Wed, 14 Jan 2009 21:25:17 +0000 (21:25 +0000)]
Add missing 'break' statement.

Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
Found with: Coverity Prevent(tm)
CID: 3927

15 years agomore changes from Christoph:
Luigi Rizzo [Wed, 14 Jan 2009 21:08:19 +0000 (21:08 +0000)]
more changes from Christoph:
pass a pointer instead of an index to print_part()
so it does not depend on a static variable.

Submitted by: Christoph Mallon
MFC after: 3 days

15 years agoremove unused argument to print_s0()
Luigi Rizzo [Wed, 14 Jan 2009 20:53:46 +0000 (20:53 +0000)]
remove unused argument to print_s0()

Submitted by: Christoph Mallon
MFC after: 3 days

15 years agoo Make debug output conditional
Oleksandr Tymoshenko [Wed, 14 Jan 2009 20:36:58 +0000 (20:36 +0000)]
o Make debug output conditional

15 years agoo NO_DMA is no longer required as bug with PIIX4 emulation has been fixed in GXEmul
Oleksandr Tymoshenko [Wed, 14 Jan 2009 20:27:49 +0000 (20:27 +0000)]
o NO_DMA is no longer required as bug with PIIX4 emulation has been fixed in GXEmul

15 years agoo Move $FreeBSD$ from comment to __FBSDID macro
Oleksandr Tymoshenko [Wed, 14 Jan 2009 20:16:44 +0000 (20:16 +0000)]
o Move $FreeBSD$ from comment to __FBSDID macro
o Be a bit more verbose about CPU type during boot process (print
    manufacturer, chip info, MMU and cache parameters)