]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoThe real contents of this file were repeated twice.
yar [Sun, 26 Nov 2006 19:25:10 +0000 (19:25 +0000)]
The real contents of this file were repeated twice.
The repetition was harmless due to a usual #ifndef _FOO_H_ wrapper.
Fortunately, nobody started to hack the second copy,
so just remove it from the file.

MFC after: 3 days

17 years agoBump the libarchive version number, correct the shell hackery to break
kientzle [Sun, 26 Nov 2006 19:09:42 +0000 (19:09 +0000)]
Bump the libarchive version number, correct the shell hackery to break
the full version down into major/minor values.

17 years agoRemove leading dollar sign in rcvar command output.
flz [Sun, 26 Nov 2006 19:03:19 +0000 (19:03 +0000)]
Remove leading dollar sign in rcvar command output.
There's no dollar use in variable assignment in sh.
Assuming this is can be expected behavior for some
people, this change won't be MFC'ed to RELENG_6.

Discussed with: yar on -rc

17 years agoWrite-blocking cleanup, largely thanks to Colin Percival (cperciva@).
kientzle [Sun, 26 Nov 2006 19:00:50 +0000 (19:00 +0000)]
Write-blocking cleanup, largely thanks to Colin Percival (cperciva@).
   * If write block size is zero, don't block at all.
     This supports the unusual requirement of applications
     that need "no-delay" writes.
   * Expose _write_finish_entry() to give such applications more
     control over write boundaries.  (Normal applications do not
     need this, as entries are completed automatically.)
   * Correct the type of write callbacks; this is a minor API
     change that does not affect the ABI.
   * Correct the error handling in _write_next_header() around
     completing the previous entry.
   * Correct the documentation for block-size markers:  Remove
     docs for the long-defunct _read_set_block_size(); document
     all of the write block size manipulators.

MFC after: 14 days

17 years agoo From the submitter: dos2unixchr will convert to lower case if
maxim [Sun, 26 Nov 2006 18:49:44 +0000 (18:49 +0000)]
o From the submitter: dos2unixchr will convert to lower case if
LCASE_BASE or LCASE_EXT or both are set.  But dos2unixfn uses
dos2unixchr separately for the basename and the extension.  So if
either LCASE_BASE or LCASE_EXT is set, dos2unixfn will convert both
the basename and extension to lowercase because it is blindly
passing in the state of both flags to dos2unixchr.  The bit masks I
used ensure that only the state of LCASE_BASE gets passed to
dos2unixchr when the basename is converted, and only the state of
LCASE_EXT is passed in when the extension is converted.

PR: kern/86655
Submitted by: Micah Lieske
MFC after: 3 weeks

17 years agouse two stage creation of stp ports, this means that the stp variables can be
thompsa [Sun, 26 Nov 2006 18:43:48 +0000 (18:43 +0000)]
use two stage creation of stp ports, this means that the stp variables can be
set before the port is marked STP and they will no longer be overwrittten

17 years agoo Add cam to a list of cscope dirs.
maxim [Sun, 26 Nov 2006 18:27:16 +0000 (18:27 +0000)]
o Add cam to a list of cscope dirs.

17 years agoo Style: remove a w/space before a comma.
maxim [Sun, 26 Nov 2006 17:18:31 +0000 (17:18 +0000)]
o Style: remove a w/space before a comma.

17 years agoo Style(9): trim eol w/spaces, w/spaces to tabs, kill an empty line.
maxim [Sun, 26 Nov 2006 17:15:54 +0000 (17:15 +0000)]
o Style(9): trim eol w/spaces, w/spaces to tabs, kill an empty line.

17 years agoo Add a quirk for X-Micro Flash Disk.
maxim [Sun, 26 Nov 2006 17:13:24 +0000 (17:13 +0000)]
o Add a quirk for X-Micro Flash Disk.

PR: usb/96901
Submitted by: Szalai Andras
Reviewed by: nate (a half of year ago)
MFC after: 3 weeks

17 years agoAdd some old includes to remove.
netchild [Sun, 26 Nov 2006 15:04:30 +0000 (15:04 +0000)]
Add some old includes to remove.

Reported by: kris

17 years agoAdd libusb.h and libusbhid.h.
netchild [Sun, 26 Nov 2006 14:43:45 +0000 (14:43 +0000)]
Add libusb.h and libusbhid.h.

17 years agoFix "make checkdpadd".
ru [Sun, 26 Nov 2006 14:43:03 +0000 (14:43 +0000)]
Fix "make checkdpadd".

17 years agoah_if.m was removed a while ago
netchild [Sun, 26 Nov 2006 14:41:17 +0000 (14:41 +0000)]
ah_if.m was removed a while ago

17 years ago- When building world WITHOUT_LIBPTHREAD, link libthr to libpthread.
ru [Sun, 26 Nov 2006 14:36:34 +0000 (14:36 +0000)]
- When building world WITHOUT_LIBPTHREAD, link libthr to libpthread.
- Don't build ngctl(8) and cached(8) if threading libs aren't built.
- Fix various issues in a cached(8) makefile.

17 years ago- Update the Runtime Configuration, FILES and DIAGNOSTICS sections to
joel [Sun, 26 Nov 2006 12:27:02 +0000 (12:27 +0000)]
-  Update the Runtime Configuration, FILES and DIAGNOSTICS sections to
   the new world order.
-  Use our standard section 4 SYNOPSIS.
-  Minor nits.

Reviewed by: brueffer, ariff

17 years agoWelcome to Once-a-year Sound Mega-Commit. Enjoy numerous updates and fixes
ariff [Sun, 26 Nov 2006 12:24:06 +0000 (12:24 +0000)]
Welcome to Once-a-year Sound Mega-Commit. Enjoy numerous updates and fixes
in every sense.

General
-------

- Multichannel safe, endian safe, format safe
   * Large part of critical pcm filters such as vchan.c, feeder_rate.c,
     feeder_volume.c, feeder_fmt.c and feeder.c has been rewritten so that
     using them does not cause the pcm data to be converted to 16bit little
     endian.
   * Macrosses for accessing pcm data safely are defined within sound.h in
     the form of PCM_READ_* / PCM_WRITE_*
   * Currently, most of them are probably limited for mono/stereo handling,
     but the future addition of true multichannel will be much easier.

- Low latency operation
  * Well, this require lot more works to do not just within sound driver,
    but we're heading towards right direction. Buffer/block sizing within
    channel.c is rewritten to calculate precise allocation for various
    combination of sample/data/rate size. As a result, applying correct
    SNDCTL_DSP_POLICY value will achive expected latency behaviour simmilar
    to what commercial 4front driver do.
  * Signal handling fix. ctrl+c of "cat /dev/zero > /dev/dsp" does not
    result long delay.
  * Eliminate sound truncation if the sound data is too small.
    DIY:
      1) Download / extract
         http://people.freebsd.org/~ariff/lowlatency/shortfiles.tar.gz
      2) Do a comparison between "cat state*.au > /dev/dsp" and
         "for x in state*.au ; do cat $x > /dev/dsp ; done"
         - there should be no "perceivable" differences.
    Double close for PR kern/31445.

  CAVEAT: Low latency come with (unbearable) price especially for poorly
          written applications. Applications that trying to act smarter
  by requesting (wrong) blocksize/blockcount will suffer the most.
  Fixup samples/patches can be found at:
  http://people.freebsd.org/~ariff/ports/

- Switch minimum/maximum sampling rate limit to "1" and "2016000" (48k * 42)
  due to closer compatibility with 4front driver.
  Discussed with: marcus@ (long time ago?)

- All driver specific sysctls in the form of "hw.snd.pcm%d.*" have been
  moved to their own dev sysctl nodes, notably:
  hw.snd.pcm%d.vchans -> dev.pcm.%d.vchans
  Bump __FreeBSD_version.

Driver specific
---------------

- Ditto for sysctls.

- snd_atiixp, snd_es137x, snd_via8233, snd_hda
  * Numerous cleanups and fixes.
  * _EXPERIMENTAL_ polling mode support using simple callout_* mechanisme.
   This was intended for pure debugging and latency measurement, but proven
   good enough in few unexpected and rare cases (such as problematic shared
   IRQ with GIANT devices - USB). Polling can be enabled/disabled through
   dev.pcm.0.polling. Disabled by default.

- snd_ich
  * Fix possible overflow during speed calibration. Delay final
    initialization (pcm_setstatus) after calibration finished.
    PR: kern/100169
    Tested by: Kevin Overman <oberman@es.net>
  * Inverted EAPD for few Nec VersaPro.
    PR: kern/104715
    Submitted by: KAWATA Masahiko <kawata@mta.biglobe.ne.jp>

Thanks to various people, notably Joel Dahl, Yuriy Tsibizov, Kevin Oberman,
those at #freebsd-azalia @ freenode and others for testing.

Joel Dahl will do the manpage update.

17 years agoMFP4 (109713):
netchild [Sun, 26 Nov 2006 11:55:48 +0000 (11:55 +0000)]
MFP4 (109713):
Add OSS_GETVERSION ioctl for compatibility.

Some ports expect this and fail to compile on -current ATM.

Submitted by: ryanb

17 years agoAdd entry and no-UHID quirk for I-tuner networks USB-LCD 2x20 as found
phk [Sun, 26 Nov 2006 11:07:37 +0000 (11:07 +0000)]
Add entry and no-UHID quirk for I-tuner networks USB-LCD 2x20 as found
in http://www.mini-box.com/Mini-Box-M200-LCD

17 years ago- remove dead code
kmacy [Sun, 26 Nov 2006 07:54:44 +0000 (07:54 +0000)]
- remove dead code
- revert a previous change to pmap_enter where we
  could skip invalidates on unmanaged pages

17 years agodevsw.9 removed
imp [Sun, 26 Nov 2006 06:52:54 +0000 (06:52 +0000)]
devsw.9 removed

17 years agoUnbreak libarchive on arm. Two parts of libarchive relied on a
kientzle [Sun, 26 Nov 2006 05:39:28 +0000 (05:39 +0000)]
Unbreak libarchive on arm.  Two parts of libarchive relied on a
traditional shortcut of defining on-disk layouts using structures of
character arrays. Unfortunately, as recently discussed on cvs-all@,
this usage is not actually sanctioned by the standards and
specifically fails on GCC/arm (unless your data structures happen to
be "naturally aligned").

The new code defines offsets/sizes for data fields and accesses
them using explicit pointer arithmetic, instead of casting to
a structure and accessing structure fields.  In particular,
the new code is now clean with WARNS=6 on arm.

MFC after: 14 days

17 years agoadd interrupt cookie hypervisor functions
kmacy [Sun, 26 Nov 2006 04:37:49 +0000 (04:37 +0000)]
add interrupt cookie hypervisor functions

17 years agoTweak the comment about mapping a kernel using large pages.
ru [Sat, 25 Nov 2006 23:00:46 +0000 (23:00 +0000)]
Tweak the comment about mapping a kernel using large pages.

17 years agodevsw() was removed by phk:
imp [Sat, 25 Nov 2006 22:36:09 +0000 (22:36 +0000)]
devsw() was removed by phk:

revision 1.199
date: 2004/09/24 08:30:57;  author: phk;  state: Exp;  lines: +0 -1
Remove the cdevsw() function which is now unused.

(the log is wrong, it was really devsw that was removed).

# we really need to actually document the functions in sys/conf.h as well
# as things like d_open...

17 years agoClarify what non-zero return values mean.
imp [Sat, 25 Nov 2006 22:34:01 +0000 (22:34 +0000)]
Clarify what non-zero return values mean.

17 years ago- In nd6_rtrequest(), when caching an rtentry, don't forget
ru [Sat, 25 Nov 2006 20:38:56 +0000 (20:38 +0000)]
- In nd6_rtrequest(), when caching an rtentry, don't forget
  to add a reference to it; otherwise, we could later access
  a freed memory.  This is believed to fix panics some users
  were observing when running route6d(8), and is similar to
  the fix in sys/netinet/if_ether.c,v 1.139 by glebius@.

PR: kern/93910, kern/105437
Testing by: Wojciech Puchar (still ongoing)

- Add rtentry locking to nd6_output() similar to rt_check().

MFC after: 4 days

17 years agoGrr, fix typo introduced in the previous commit.
brueffer [Sat, 25 Nov 2006 12:12:11 +0000 (12:12 +0000)]
Grr, fix typo introduced in the previous commit.

17 years agoThree minor bug fixes:
cperciva [Sat, 25 Nov 2006 07:30:12 +0000 (07:30 +0000)]
Three minor bug fixes:
1. When downloading metadata files, make sure we only download each
file once; without this fix, "freebsd-update fetch" will fail the first
time it is run if there have been no updates yet for the installed
release.
2. If the FOO kernel is installed in /boot/kernel instead of /boot/FOO
and the /boot/FOO directory does not exist, don't try to update
/boot/FOO.  This is an issue only where an update involves adding a new
kernel module.
3. When removing files and directories, operate in reverse
lexographical order, in order to ensure that files are removed before
the directory which contains them.

MFC after: 3 days

17 years agoThe mountroot prompt will drop into ddb if we don't recognize error codes from
kmacy [Sat, 25 Nov 2006 06:29:46 +0000 (06:29 +0000)]
The mountroot prompt will drop into ddb if we don't recognize error codes from
getchar correctly - we also need to check for HUP and BREAK

17 years agomark tx/rx descriptors COHERENT; we do not sync changes so on
sam [Fri, 24 Nov 2006 22:45:26 +0000 (22:45 +0000)]
mark tx/rx descriptors COHERENT; we do not sync changes so on
architectures like arm this is necessary

MFC after: 1 month

17 years agoMake sure we do not sleep while locks are held. Change the malloc(9)
csjp [Fri, 24 Nov 2006 22:14:37 +0000 (22:14 +0000)]
Make sure we do not sleep while locks are held. Change the malloc(9)
flags from M_WAITOK to M_NOWAIT. This should not cause any problems
since the calling code appears to properly handle failed allocations.

Discussed with: kmacy

17 years agokernel will not compile without genclock, thus move to DEFAULTS
kmacy [Fri, 24 Nov 2006 20:56:43 +0000 (20:56 +0000)]
kernel will not compile without genclock, thus move to DEFAULTS

17 years ago- implement remaining pci functions
kmacy [Fri, 24 Nov 2006 20:47:29 +0000 (20:47 +0000)]
- implement remaining pci functions
- fix build errors

17 years agoAdd instructions for creating a ramdisk root image. These likely need
imp [Fri, 24 Nov 2006 18:53:45 +0000 (18:53 +0000)]
Add instructions for creating a ramdisk root image.  These likely need
to be augmented with instructions for those platforms that have
/boot/loader.

17 years agoImplement mmu functions and cpu_mondo_send
kmacy [Fri, 24 Nov 2006 18:50:56 +0000 (18:50 +0000)]
Implement mmu functions and cpu_mondo_send
fix some more kernel compile fallout

17 years agoremove unused reference to tsb pa
kmacy [Fri, 24 Nov 2006 18:36:04 +0000 (18:36 +0000)]
remove unused reference to tsb pa

17 years agoConnect four new files to the build.
kientzle [Fri, 24 Nov 2006 16:35:54 +0000 (16:35 +0000)]
Connect four new files to the build.
PR: bin/86742

17 years agoRemove reference to a man page of pib, an obscure third-party tool, whose port
pav [Fri, 24 Nov 2006 14:47:25 +0000 (14:47 +0000)]
Remove reference to a man page of pib, an obscure third-party tool, whose port
does not install any manpages.

MFC after: 3 days

17 years agoMake it clear that the device name may contain '/' characters to place
imp [Fri, 24 Nov 2006 13:10:30 +0000 (13:10 +0000)]
Make it clear that the device name may contain '/' characters to place
a device in a subdirectory.  Also explicitly state that the name is
constructed using fmt like printf would print it.

MFC After: 3 days

17 years agoo Xr sendfile(2).
maxim [Fri, 24 Nov 2006 12:00:02 +0000 (12:00 +0000)]
o Xr sendfile(2).

17 years agoPush Giant a bit further off the NFS server in a number of straight
rwatson [Fri, 24 Nov 2006 11:53:16 +0000 (11:53 +0000)]
Push Giant a bit further off the NFS server in a number of straight
forward cases by converting from unconditional acquisition of Giant
around vnode operations to conditional acquisition:

- Remove nfsrv_access_withgiant(), and cause nfsrv_access() to now
  assert that Giant will be held if it is required for the vnode.

- Add nfsrv_fhtovp_locked(), which will drop the NFS server lock if
  required, and modify nfsrv_fhtovp() to conditionally acquire
  Giant if required.

- In the VOP's not dealing with more than one vnode at a time (i.e.,
  not involving a lookup), conditionally acquire Giant.

This removes Giant use for MPSAFE file systems for a number of quite
important RPCs, including getattr, read, write.  It leaves
unconditional Giant acquisitions in vnode operations that interact
with the name space or more than one vnode at a time as these
require further work.

Tested by: kris
Reviewed by: kib

17 years agoNote that, thanks to the work by Alan Cox et al, some arch'es
yar [Fri, 24 Nov 2006 11:44:19 +0000 (11:44 +0000)]
Note that, thanks to the work by Alan Cox et al, some arch'es
don't need sendfile() buffers any more.

The report on the work referenced can be found at
http://usenix.org/events/usenix05/tech/general/elmeleegy.html

MFC after: 1 week

17 years agoEliminate atomic operations in thread cancellation functions, it should
davidxu [Fri, 24 Nov 2006 09:57:38 +0000 (09:57 +0000)]
Eliminate atomic operations in thread cancellation functions, it should
reduce overheads of cancellation points.

17 years agoMake use of mk/ files from a fresh source tree, rather than
delphij [Fri, 24 Nov 2006 09:07:26 +0000 (09:07 +0000)]
Make use of mk/ files from a fresh source tree, rather than
the currently installed ones.  This makes it possible to use
the script against Makefiles that uses bsd.own.mk on an old
system.

Submitted by: bushman

17 years agocomment all remaining documented hypervisor functions except for msi
kmacy [Fri, 24 Nov 2006 07:49:15 +0000 (07:49 +0000)]
comment all remaining documented hypervisor functions except for msi
implement performance counter functions

17 years agodocument and comment all functions outside of MMU and MSI services
kmacy [Fri, 24 Nov 2006 07:11:24 +0000 (07:11 +0000)]
document and comment all functions outside of MMU and MSI services
from those, implement all those whose arguments don't require save/restore

17 years agoI mistakenly committed the wrong version of my patch (sorry).
dougb [Fri, 24 Nov 2006 06:51:49 +0000 (06:51 +0000)]
I mistakenly committed the wrong version of my patch (sorry).

s/O2/O2Micro, as that's how they seem to prefer it, and remove
what is now one blank line too many.

17 years ago- style: use `=' instead of `+=' for initial assignments.
ru [Fri, 24 Nov 2006 06:38:11 +0000 (06:38 +0000)]
- style: use `=' instead of `+=' for initial assignments.

- don't add generated sources' objects to OBJS explicitly;
  GENSRCS is part of SRCS so they were already in OBJS.

17 years agoFill in a couple of missing casts: clarify one narrowing conversion
kientzle [Fri, 24 Nov 2006 05:48:04 +0000 (05:48 +0000)]
Fill in a couple of missing casts: clarify one narrowing conversion
and correct the use of unary minus with an unsigned value.  (The unary
minus here is actually being used as a bitwise operation, which is
unusual enough to deserve a clarifying cast.)

17 years agoA few minor clarifications and corrections.
kientzle [Fri, 24 Nov 2006 05:41:16 +0000 (05:41 +0000)]
A few minor clarifications and corrections.

17 years agoA few minor corrections to the libarchive.3 overview page.
kientzle [Fri, 24 Nov 2006 05:37:38 +0000 (05:37 +0000)]
A few minor corrections to the libarchive.3 overview page.

17 years agoDocument the new _open_FILE() and _open_memory() interfaces.
kientzle [Fri, 24 Nov 2006 05:34:23 +0000 (05:34 +0000)]
Document the new _open_FILE() and _open_memory() interfaces.

PR: bin/86742

17 years ago- Comment most of the remaining hypercalls in hcall.S
kmacy [Fri, 24 Nov 2006 05:27:49 +0000 (05:27 +0000)]
- Comment most of the remaining hypercalls in hcall.S
- implement hypercalls returning a single value
- start fixing the fallout of the recent changes needed to get
  the kernel compiling again

17 years agoFix another parallel make problem with the generated make file.
jb [Fri, 24 Nov 2006 03:56:25 +0000 (03:56 +0000)]
Fix another parallel make problem with the generated make file.

Define the xxx_OBJPATHS earlier and then use it in the xxx_make
target because each obj is actually made through that.

This allows the crunch to work with -j32 on sun4v.

The makefile generated is still poor, though. It really shouldn't use
the general 'make all' to do the submakes in the app directories being
crunched because each of those objects is listed as a dependency in
the generated crunch makefile. Doing that really requires a unique rule
to generate them.

17 years agoadd comments for cpu configuration hypervisor calls
kmacy [Fri, 24 Nov 2006 02:37:51 +0000 (02:37 +0000)]
add comments for cpu configuration hypervisor calls

17 years agoNew hooks for reading/writing archives to/from a FILE * or
kientzle [Fri, 24 Nov 2006 02:00:48 +0000 (02:00 +0000)]
New hooks for reading/writing archives to/from a FILE * or
an in-memory buffer.

PR: bin/86742

17 years agomove CDDL licensed machine description support routine files to cddl directory
kmacy [Fri, 24 Nov 2006 01:56:46 +0000 (01:56 +0000)]
move CDDL licensed machine description support routine files to cddl directory
update files.sun4v accordingly

17 years agoAdd in initial clean room implementation of hypervisor interfaces
kmacy [Thu, 23 Nov 2006 23:47:53 +0000 (23:47 +0000)]
Add in initial clean room implementation of hypervisor interfaces

17 years agoUse a define instead of a "magic" value.
ru [Thu, 23 Nov 2006 21:37:04 +0000 (21:37 +0000)]
Use a define instead of a "magic" value.

17 years agoFinish the PG_NX support at the pmap level.
ru [Thu, 23 Nov 2006 21:36:02 +0000 (21:36 +0000)]
Finish the PG_NX support at the pmap level.

Reviewed by: alc

17 years agoremove CDDL derive hcall.S
kmacy [Thu, 23 Nov 2006 21:29:50 +0000 (21:29 +0000)]
remove CDDL derive hcall.S

17 years agoRemove system critical files with CDDL origin
kmacy [Thu, 23 Nov 2006 21:22:06 +0000 (21:22 +0000)]
Remove system critical files with CDDL origin
with the plan being to create clean room versions

17 years agoseparate out legitimately CDDL code - optimized routines taken from
kmacy [Thu, 23 Nov 2006 19:58:06 +0000 (19:58 +0000)]
separate out legitimately CDDL code - optimized routines taken from
opensolaries

17 years agoAdd a guideline for naming new sysctl nodes.
yar [Thu, 23 Nov 2006 14:28:19 +0000 (14:28 +0000)]
Add a guideline for naming new sysctl nodes.

Discussed in: cvs-src (some time ago)

17 years agoFix and extend the -j option to pkill/pgrep WRT the jail
yar [Thu, 23 Nov 2006 11:55:17 +0000 (11:55 +0000)]
Fix and extend the -j option to pkill/pgrep WRT the jail
wildcard specifications.  Earlier the only wildcard syntax
was "-j 0" for "any jail".  There were at least
two shortcomings in it:  First, jail ID 0 was abused; it
meant "no jail" in other utils, e.g., ps(1).  Second, it
was impossible to match processed not in jail, which could
be useful to rc.d developers.  Therefore a new syntax is
introduced: "-j any" means any jail while "-j none" means
out of jail.  The old syntax is preserved for compatibility,
but now it's deprecated because it's limited and confusing.

Update the respective regression tests.  While I'm here,
make the tests more complex but sensitive:  Start several
processes, some in jail and some out of jail, so we can
detect that only the right processes are killed by pkill
or matched by pgrep.

Reviewed by: gad, pjd
MFC after: 1 week

17 years agoFix the format specifier suitable for uintmax_t.
ru [Thu, 23 Nov 2006 11:51:23 +0000 (11:51 +0000)]
Fix the format specifier suitable for uintmax_t.

17 years agoOops, fix the format specifier to what was intended.
ru [Thu, 23 Nov 2006 11:47:34 +0000 (11:47 +0000)]
Oops, fix the format specifier to what was intended.

17 years agoInitialize a local variable in 2 places just before it is used, not always
bde [Thu, 23 Nov 2006 05:57:15 +0000 (05:57 +0000)]
Initialize a local variable in 2 places just before it is used, not always
at the start of rtalloc1().  This backs out part of revs 1.83 and 1.85.

Profiling on an i386 showed that that for sending tiny packets using
bge, -current takes 7 bzero()s where RELENG_4 takes only 1, and that
bzero()ing is now the dominant overhead (10-12%, up from 1%, but
profiling overestimated this a bit).  This commit backs out 2 of the
6 extra bzero()s (1 in each of 2 calls per packet to rtalloc1()).  They
were the largest ones by byte count (48 bytes each) but perhaps not
by time (small misaligned ones might take longer).

17 years agoremove no longer correct comment above em_read_pcie_cap_reg
kmacy [Thu, 23 Nov 2006 05:48:13 +0000 (05:48 +0000)]
remove no longer correct comment above em_read_pcie_cap_reg

17 years agoMove magic PCIe workaround constant to header - add appropriate comment
kmacy [Thu, 23 Nov 2006 05:43:39 +0000 (05:43 +0000)]
Move magic PCIe workaround constant to header - add appropriate comment

Suggested by: jfvogel

17 years agoBump document date.
grog [Thu, 23 Nov 2006 05:08:06 +0000 (05:08 +0000)]
Bump document date.

Nitpicked by:   ru
MFC after: 1 week

17 years agousage: Include the - in the x flag.
grog [Thu, 23 Nov 2006 05:07:32 +0000 (05:07 +0000)]
usage: Include the - in the x flag.
main: Make -x set the hexdump; there's no obvious reason to toggle it.

Nitpicked by:   ru
MFC after: 1 week

17 years agoAdd watchdog support
kmacy [Thu, 23 Nov 2006 04:59:29 +0000 (04:59 +0000)]
Add watchdog support

17 years agoAdd in missing hypercall numbers
kmacy [Thu, 23 Nov 2006 04:38:14 +0000 (04:38 +0000)]
Add in missing hypercall numbers

17 years agore-name misnamed single character console interfaces
kmacy [Thu, 23 Nov 2006 04:18:21 +0000 (04:18 +0000)]
re-name misnamed single character console interfaces
add in multi character console interfaces

17 years agoAdd hypervisor interfaces for logical domain channels from the hypervisor API docs
kmacy [Thu, 23 Nov 2006 03:52:39 +0000 (03:52 +0000)]
Add hypervisor interfaces for logical domain channels from the hypervisor API docs
remove bogus CDDL

17 years agoIn contrast to the non-obvious and flexible nature of the optimized bcopy in t1_copy...
kmacy [Thu, 23 Nov 2006 02:25:16 +0000 (02:25 +0000)]
In contrast to the non-obvious and flexible nature of the optimized bcopy in t1_copy.S (which
shall retain its CDDL copyright, and thus likely be removed from GENERIC) I have removed the CDDL
from hcall.S because there is zero flexibility in the implementation of hypercalls as they derive
directly from the hypervisor interface which is not copyrighted (ironically the source for the
hypervisor itself is BSD licensed).

It is best to start any bikeshed about this as soon as possible.

Discussed with: bsdimp

17 years agoRemove mount_devfs, mount_ext2fs, mount_fdescfs, mount_linprocfs,
rodrigc [Thu, 23 Nov 2006 01:44:15 +0000 (01:44 +0000)]
Remove mount_devfs, mount_ext2fs, mount_fdescfs, mount_linprocfs,
mount_procfs, mount_std, which are now obsolete.

Requested by: netchild, ache

17 years agoAdd a vendor ID for O2Micro, obtained from
dougb [Thu, 23 Nov 2006 00:58:40 +0000 (00:58 +0000)]
Add a vendor ID for O2Micro, obtained from
http://www.usb.org/developers/tools

Add a product ID for the Dell TrueMobile 350 Bluetooth USB Adapter
obtained from NetBSD's usbdevs file.

17 years agoOops - what people refer to as linux_base-fc4 calls itself linux_base-fc
kensmith [Thu, 23 Nov 2006 00:57:10 +0000 (00:57 +0000)]
Oops - what people refer to as linux_base-fc4 calls itself linux_base-fc
and that's what pkg_add needs.

MFC after: 1 day

17 years agoFix TSO support on sun4v
kmacy [Thu, 23 Nov 2006 00:52:52 +0000 (00:52 +0000)]
Fix TSO support on sun4v

- incorporate csjp's fix for a mishandled endian conversion
- convert PAGE_SIZE to 4096 for PCIe adapter workaround (my page size is not 4k)
- implement em_read_pcie_cap_reg where we set the max read size on pcie to 4k (taken from mxge)

Reviewed by: scottl and jfvogel

17 years agoadd codes for Atheros USB devices; shuffle one ural code to
sam [Thu, 23 Nov 2006 00:50:48 +0000 (00:50 +0000)]
add codes for Atheros USB devices; shuffle one ural code to
avoid conflict

Obtained from: openbsd
MFC after: 1 month

17 years agoAdd USR997902 to the list of devices supported by re(4).
yongari [Thu, 23 Nov 2006 00:28:58 +0000 (00:28 +0000)]
Add USR997902 to the list of devices supported by re(4).

17 years agoAdd option -x to display output values in hex in addition to decimal.
grog [Thu, 23 Nov 2006 00:20:54 +0000 (00:20 +0000)]
Add option -x to display output values in hex in addition to decimal.

17 years agoFix a race in soclose() where connections could be queued to the
mohans [Wed, 22 Nov 2006 23:54:29 +0000 (23:54 +0000)]
Fix a race in soclose() where connections could be queued to the
listening socket after the pass that cleans those queues. This
results in these connections being orphaned (and leaked). The fix
is to clean up the so queues after detaching the socket from the
protocol. Thanks to ups and jhb for discussions and a thorough code
review.

17 years agoMention that the following binaries have been detached
rodrigc [Wed, 22 Nov 2006 23:01:40 +0000 (23:01 +0000)]
Mention that the following binaries have been detached
from the build: mount_devfs, mount_ext2fs,
mount_fdescfs, mount_procfs, mount_linprocfs, and mount_std.

17 years agoDetach mount_devfs, mount_ext2fs, mount_fdescfs, mount_procfs,
rodrigc [Wed, 22 Nov 2006 22:58:10 +0000 (22:58 +0000)]
Detach mount_devfs, mount_ext2fs, mount_fdescfs, mount_procfs,
mount_linprocfs, and mount_std from the build.  They are no longer
used, and can be replaced with "mount -t fstype".

17 years agoRemove mount_ext2fs.
rodrigc [Wed, 22 Nov 2006 22:55:54 +0000 (22:55 +0000)]
Remove mount_ext2fs.

17 years agoUse our standard section 4 SYNOPSIS.
brueffer [Wed, 22 Nov 2006 21:30:02 +0000 (21:30 +0000)]
Use our standard section 4 SYNOPSIS.

MFC after: 3 days

17 years agoo Check that -w width is not above maximum. Use DWIDTH instead of
maxim [Wed, 22 Nov 2006 21:05:17 +0000 (21:05 +0000)]
o Check that -w width is not above maximum.  Use DWIDTH instead of
hardcoded constant.

Reported by: Gruzicki Wlodek on BugTraq
Obtained from: NetBSD, OpenBSD
MFC after: 1 week

17 years agoFix transposition of width and value arguments to pci_config_write()
gallatin [Wed, 22 Nov 2006 18:47:24 +0000 (18:47 +0000)]
Fix transposition of width and value arguments to pci_config_write()
when setting up the read request size.

Pointed out by: kmacy

17 years agoFix coherency issue. From submitter:
imp [Wed, 22 Nov 2006 17:56:36 +0000 (17:56 +0000)]
Fix coherency issue.  From submitter:

I have been debugging the usb problems some more. Your were
right in your assumption (thanks for the pointer) about lack
of calls to bus_dmamap_sync().  In usbdi.c bus_dmamap_sync()
does get used for transfers that move data from PC to USB and
it is used for transfers that move data from USB to PC. But
someone forgot that control transfers consist of possibly two
data chunks : the request itself and optionally a buffer of
data that should be transfered to or from the USB device.  On
requests to the control endpoint without additional data
bus_dmamap_sync() didn't get called. For some reason my first
tests with umass worked (due to enough cache poisening I
guess).  The attached patch adds a call to bus_dmamap_sync()
to usbdi.c and now all devices I have tried work out of the
box.  I have successfully transfered large files using the
if_axe driver and I have mounted several different umass
devices.

submitted by: Daan Vreeken
sponsored by: Vitsch Electronics
reviewed by: cognet@

17 years agoChange error codes returned by protocol operations when an inpcb is
sam [Wed, 22 Nov 2006 17:16:54 +0000 (17:16 +0000)]
Change error codes returned by protocol operations when an inpcb is
marked INP_DROPPED or INP_TIMEWAIT:
o return ECONNRESET instead of EINVAL for close, disconnect, shutdown,
  rcvd, rcvoob, and send operations
o return ECONNABORTED instead of EINVAL for accept

These changes should reduce confusion in applications since EINVAL is
normally interpreted to mean an invalid file descriptor.  This change
does not conflict with POSIX or other standards I checked. The return
of EINVAL has always been possible but rare; it's become more common
with recent changes to the socket/inpcb handling and with finer-grained
locking and preemption.

Note: there are other instances of EINVAL for this state that were
      left unchanged; they should be reviewed.

Reviewed by: rwatson, andre, ru
MFC after: 1 month

17 years agoInitialization bugfixes and enhancements:
gallatin [Wed, 22 Nov 2006 16:33:40 +0000 (16:33 +0000)]
Initialization bugfixes and enhancements:

- Fix bug preventing adoption of running firmware
- Set PCIe max read request size to 4KB
- Read PCIe link width from config space
- Assume aligned completions from the southbridge ports
  of intel E5000 chips
- Use aligned firmware when link width is x4 or less
- Add hw.mxge.force_firmware tunable to allow user to force
  selection of aligned (or unaligned) firmware

17 years agoRemove reference to mount_fdescfs.
rodrigc [Wed, 22 Nov 2006 15:52:24 +0000 (15:52 +0000)]
Remove reference to mount_fdescfs.

Suggested by: ru

17 years agoCross-reference nextboot(8).
jkoshy [Wed, 22 Nov 2006 13:12:34 +0000 (13:12 +0000)]
Cross-reference nextboot(8).

MFC after: 3 days

17 years agoBring in status led support for /dev/led/gpioled on Avila.
kevlo [Wed, 22 Nov 2006 12:57:17 +0000 (12:57 +0000)]
Bring in status led support for /dev/led/gpioled on Avila.

Approved by: cognet

17 years agoRemove reference to mount_devfs(8).
rodrigc [Wed, 22 Nov 2006 11:45:06 +0000 (11:45 +0000)]
Remove reference to mount_devfs(8).

Reminded by: ru

17 years agoIt's been possible to build linprocfs as a module for some time now.
ru [Wed, 22 Nov 2006 10:34:12 +0000 (10:34 +0000)]
It's been possible to build linprocfs as a module for some time now.

Submitted by: rdivacky