118983 Commits

Author SHA1 Message Date
jhb
7d639ae56e MFC: Remove extraneous PHOLD() in kthread_create().
Approved by:	re (scottl)
2006-03-01 20:53:24 +00:00
jhb
1729bc3f72 MFC: Hold the proc lock while calling proc_sstep().
Approved by:	re (scottl)
2006-03-01 20:52:10 +00:00
wkoszek
dbe3338f30 Forced commit in order to note, that I brought style(9) changes together with
functional changes. It was done by accident. Proper comment to the previous
commit should be:

MFC:
   Extend kldunload(8) functionality and fix minor problems:
   o multiple modules can be unloaded at once (specified either by id or be
     module name)
   o exit with EX_USAGE after usage() is called.
   o remove unused variables, since we keep command line flags as bitmask,
     in 'opt'.
   o 'kldload -n ...' does nothing. Add comment to this options.

   Additionally:
   o Update manual page to conform new functionality.
   o Increace WARNS to 6. Because we can.

   o Bump a date in .Dd field. Spotted by brueffer@.

   Approved by:	cognet (mentor)

Approved by:	re (scottl)
2006-03-01 20:51:53 +00:00
andre
0d82649a50 MFC: Replace 4k mbuf clusters with PAGE_SIZE clusters.
Note: The jumbo mbuf cluster API has been MFC'd only recently and
never shipped in a release.  Thus the API change does not violate
our stable branch guidelines with regard to API compatibility.

Requested by:	glebius, gallatin
Sponsored by:	TCP/IP Optimization Fundraise 2005
Approved by:	re (scottl)
2006-03-01 20:51:49 +00:00
jhb
1169153605 MFC: Change the x86 interrupt code to allocate IDT vectors on-demand.
Approved by:	re (scottl)
2006-03-01 20:50:10 +00:00
jhb
f9dfac8905 MFC: Various apic fixes and tweaks from io_apic.c 1.16 and
local_apic.c 1.18.

Approved by:	re (scottl)
2006-03-01 20:46:52 +00:00
wkoszek
681b13e95d MFC:
Big style(9) fix. This commit brings no functional change.

   Approved by:	cognet (mentor)

Approved by:	re (scottl)
2006-03-01 20:29:50 +00:00
sos
ada2531dd6 MFC:
Keep the parent device (in this case the channel) around in ata_request,
so we dont panic device removal or failure.
Clean up ata_fail_requests to prevent the queue munging to fail.
Fix ata_reinit so it does things in the right order to prevent panic's.
Lock the channel so master/slave setups wont trash during reinit.
Work around the deadlock that occours when ATA waits for the taskqueue
to call back for completition and something else is holding the taskqueue
waiting for ATA to return data.
This should clear up the "semaphore timeout !! DANGER Will Robinson !!"
in most situations, and log "taskqueue timeout - completing request directly"
instead, with a delayed "WARNING - freeing taskqueue zombie request" when
the taskqueue finally calls us back with the now stale request.
(It would have been nice if there was a way to remove a scheduled item from
the taskqueue finally calls us back with the now stale request.

Approved by:	re@ (scottl)
2006-03-01 18:36:43 +00:00
imp
1bd3ed3bb8 Back out latest cardbus MFC. This breaks stuff in a lot of weird and
unknown ways.  Until that breakage is sorted out, be conservative.  I'm
not backing this out in current so I can track down the issues.

I'm also not backing out the pci parts of this commit because with the
old cardbus code they work perfectly as far as I've been able to test.
I'm leaving cardbus_device.c in place as well since I anticipate being
able to reconnect it when I resolve this issue in head and cvs rm +
cvs add on branches can be a pita...

Approved by: re@ (scottl)
2006-03-01 18:19:33 +00:00
pjd
8d7bed0cec MFC: sys/nfsclient/nfs_diskless.c 1.12,1.13
Add boot.nfsroot.options loader tunable.
It allows to specify options for NFS root file system.
Currently supported options are: soft, intr, conn, lockd.

I'm adding this functionality mostly for 'lockd' option, which is only
honored when performing the initial mount and will be silently ignored
if used while updating the mount options.

This will allow to use flock(2) without the need of using varmfs or
rpc.lockd and friends.

Example of use:
boot.nfsroot.options="intr,lockd"

Approved by:	re (scottl)
2006-03-01 18:01:28 +00:00
pjd
87912fc17a MFC: sys/geom/geom_slice.c 1.59
sys/geom/geom_slice.h	1.18

Allow to use g_slice_orphan() from outside.

Approved by:	re (scottl)
2006-03-01 17:57:11 +00:00
pjd
0536624c24 MFC: Sync with HEAD.
Approved by:	re (scottl)
2006-03-01 17:55:29 +00:00
jhb
5b50f145a7 MFC: Fix the hw.realmem sysctl on alpha, ia64, and sparc64.
Approved by:	re (scottl)
2006-03-01 16:30:51 +00:00
simon
0fb8aa442e Add FreeBSD-SA-06:10.nfs.
Approved by:	re (scottl)
2006-03-01 15:36:41 +00:00
simon
f150897cb8 Correct a remote kernel panic when processing zero-length RPC records
via TCP. [06:10]

Security:	FreeBSD-SA-06:10.nfs
Approved by:	re (scottl)
2006-03-01 14:18:10 +00:00
wkoszek
8d656c8e43 MFC:
Use 'ipfw list' instead of 'ipfw l', since it's deprecated (and warning is
  printed on system startup).

  Approved by:    cognet (mentor)

Approved by:	re (scottl)
2006-03-01 11:36:01 +00:00
sam
ae10cec2e9 MFC ncpus: test program to check cpu counting
Approved by:	re (scottl)
2006-03-01 06:03:55 +00:00
sam
9c034455ca guard function decls with _KERNEL so user code can include this file
Approved by:	re (scottl)
2006-03-01 06:02:42 +00:00
sam
ba697e3f0c MFC 1.223: guard function decls with _KERNEL so user code can include this file
Approved by:	re (scottl)
2006-03-01 05:57:15 +00:00
emax
9d63596533 MFC: Make ukbd(4) to not delay break scancodes in "raw" mode.
Developed with:		Norbert Koch < NKoch at demig dot de >
No response from:	freebsd-current@
Tested by:		Norbert Koch < NKoch at demig dot de >
Approved by:		re (scottl)
2006-03-01 02:34:16 +00:00
iedowse
bd3612b266 MFC: save and restore the data toggle value when a pipe to an
endpoint is closed and then reopened. This is reported to fix
timeouts with USB scanners and some other USB devices that were
seen since the recent removal of the clear-stall-on-open code.

Approved by:	re (scottl)
2006-03-01 01:59:05 +00:00
emaste
d60341afdc Belatedly add a note about the i386 loader defaulting to the serial
rate set by the previous boot stage, if the console is already set
to the comconsole.

Approved by:    re (scottl)
2006-02-28 19:15:36 +00:00
jkoshy
127a12c38d MFC r1.17, r1.18:
- Fix a memory leak (Found by: Coverity).
 - Plug a memory leak: free up per-cpu sample buffers at module unload
   time.
 - Correct a few style nits.

Approved by:	re (scottl)
2006-02-28 18:32:57 +00:00
cvs2svn
bb0d528a2b This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-02-28 17:48:34 +00:00
emax
9b157c5fd8 MFC
Disable custom locking in the vkbd(4) for now and make it rely on the
Giant mutex (just like the rest of keyboard drivers and syscons(4) do).

Approved by:	re (scottl)
2006-02-28 02:37:47 +00:00
emax
fdeed73c57 MFC: Plug memory leak
Approved by:	re (scottl)
2006-02-28 02:36:13 +00:00
sam
d490e0775f MFC 1.9: use the specified key index for non-group keys
Approved by:	re (scottl)
2006-02-28 02:04:14 +00:00
sam
287e53e251 MFC 1.45: honor user-specified key index for global key slots
Approved by:	re (scottl)
2006-02-28 02:02:43 +00:00
wkoszek
4a59009fe0 MFC:
src/tools/tools/ministat/ministat.c:
  1. rev. 1.6 -> 1.7
     Add option -w to specify graph width.
     Use COLUMNS, terminal width for default graph width.
  2. rev 1.7 -> 1.8
     Fix the way in which median is calculated. If the data source has even
     number of data points, value should be calculated by adding two middle
     elements and dividing them by 2.

[1] Reviewed by:	rwatson
[2] Approved by:	cognet (mentor)

Approved by:	re (scottl)
2006-02-27 22:34:36 +00:00
jkim
4b9085eff1 MFC: src/gnu/usr.bin/dialog/dialog.1 1.8
src/gnu/usr.bin/dialog/dialog.c	1.15

- Add default choice option for --yesno box.
- Reduce trivial code duplications.

Approved by:	re (scottl)
2006-02-27 20:10:09 +00:00
jkim
0881282f7c MFC: usr.sbin/sysinstall/disks.c 1.156
- Back out 1.155.  I mismerged my ancient local patch.  Luckily it was
completely noop.
- Geometry sanitization for non-interactive mode is moved to correct place.

Approved by:	re (scottl)
2006-02-27 20:01:31 +00:00
jkoshy
b9176d70bc MFC r1.6: Fix pmccontrol(8) on Intel Xeon's running in 64 bit mode.
Approved by:	re (mux)
PR:		kern/93773
2006-02-27 17:36:01 +00:00
marck
35ecff45e6 MFC:
Remove &release.prev.historic;.

	This should fix www build.

Approved by:	re (hrs)
2006-02-27 13:21:37 +00:00
emax
936e4e0ac7 MFC recent changes to kbdmux(4)
Fix hard lockup caused by kbdmux(4) when kbdmux(4), PS/2 keyboard
(atkbd(4)) and PS/2 mouse (psm(4)) are used together.

Turns out that atkbd(4) check_char() method may return "true" while
read_char() method returns NOKEY. When this happens kbdmux(4) was
simply stuck in the dead loop. Avoid dead loop in kbdmux(4) by breaking
out of the loop if read_char() method returns NOKEY.

It almost seems like a bug in atkkbd(4), atkbd_check_char() calls
kbdc_data_ready(), and, the later will return "true" if there are
pending data in either kbd or aux queue. However, because both aux
and kbd are on the same controller, I'm not sure if this is a bug
or feature.

While I'm here fix a couple of whitespaces.

Tested by:	markus
Approved by:	re (scottl)
2006-02-27 06:24:26 +00:00
bmah
59d9980fa5 MFC: GNOME 2.12.3, KDE 3.5.1, Perl 5.8.8, X.org 6.9.0.
Approved by:	    re (scottl)
2006-02-27 01:15:59 +00:00
cognet
dfded97bdf MFC rev 1.6:
revision 1.6
date: 2006/01/23 14:03:14;  author: cognet;  state: Exp;  lines: +5 -3
Donc recompute the io port address if it's already the good one.

Approved by:	re (mux)
2006-02-27 01:12:16 +00:00
cognet
a7df9916a5 Partially MFC rev 1.23/1.24:
revision 1.23
date: 2005/10/03 14:07:57;  author: cognet;  state: Exp;  lines: +47 -4
Don't try to dereference map if it's NULL.

Approved by:	re (mux)
2006-02-27 01:11:43 +00:00
markus
0e235fa343 MFC recent updates to hccontrol:
- Use official version strings for LMP and HCI version reporting and add
    version strings up to Bluetooth 2.0
  - Update manufacturer list

Revisions:

	hccontrol.h	rev. 1.5
	info.c		rev. 1.4
	link_control.c	rev. 1.10
	util.c		rev. 1.6

Approved by:	re (scottl), emax
2006-02-27 00:38:02 +00:00
davidxu
f5028de3c4 MFC revision 1.325.
Approved by: re (scottl)
2006-02-27 00:22:04 +00:00
davidxu
c3b8740b48 MFC following revisions to fix sleep queue and thread
suspension race:
    sys/proc.h                  revision 1.453
    sys/sleepqueue.h            revision 1.7
    kern/subr_sleepqueue        revision 1.24 - 1.26
    kern/kern_sig.c             revision 1.321, 1.323, 1.324
    kern/kern_synch.c           revision 1.276, 1.278
    kern/kern_condvar.c         revision 1.54, 1.55
    kern/kern_kse.c             revision 1.325
    kern/kern_thread.c          revision 1.228, 1.229

Approved by: re (scottl)
2006-02-27 00:19:40 +00:00
davidxu
c60c425416 MFC revision 1.219.
Approved by: re (scottl)
2006-02-27 00:01:15 +00:00
davidxu
b8ee4ad4ee MFC revision 1.42.
Approved by: re (scottl)
2006-02-26 23:59:00 +00:00
iedowse
b78ca41482 MFC: when deregistering a bus, attempt to flush out all outstanding
operations before returning, and point the bus at a dummy cam_sim
structure. This avoids crashes in camisr() when umass devices are
unplugged during probing.

It may however be better to simply sleep in xpt_bus_deregister()
until all operations have completed, but it is still useful to have
this MFC'd in the meantime.

Approved by:	re (scottl)
2006-02-26 22:38:39 +00:00
yar
9ee4d90385 MFC rev. 1.17:
Tell the truth about a) how to get the first fileid, and
  b) what return values from kldstat(2) can be expected.

Approved by:	re (mux)
2006-02-26 16:18:29 +00:00
yar
9e29747cec MFC rev. 1.9: Document the relation between $command and $foo_program.
Approved by:	re (mux)
2006-02-26 16:11:54 +00:00
ume
b4b37f8628 MFC: Mention NO_NLS_CATALOGS.
share/examples/etc/make.conf:	1.274
	share/man/man5/make.conf.5:	1.133

Approved by:	re (hrs)
2006-02-26 14:52:33 +00:00
ceri
49f3f2b1e6 Sync with -HEAD.
Approved by:	re (hrs)
2006-02-26 13:21:27 +00:00
ume
e12fa4aebe MFC: Enable NLS catalog of csh(1).
The tcsh 6.14 uses libiconv to convert catalogs to appropriate charset
dynamically.  However, we don't have libiconv in our tree.  So, I made
some hack to load libiconv dynamically.  If libiconv is available, you
can use catalogs for more locales than the locales which catalog is
actually installed.
To use this feature, you need to symlink catalogs to appropriate
locales.  You can do this by installing ports/shells/tcsh_nls.

	bin/csh/Makefile:			1.38
	bin/csh/config.h:			1.13
	bin/csh/iconv.h:			1.1
	bin/csh/iconv_stub.c:			1.1
	contrib/tcsh/nls/C/charset:		1.1.1.1
	contrib/tcsh/nls/et/charset		1.1.1.1
	contrib/tcsh/nls/finnish/charset	1.1.1.1
	contrib/tcsh/nls/french/charset		1.1.1.1
	contrib/tcsh/nls/german/charset		1.1.1.1
	contrib/tcsh/nls/greek/charset		1.1.1.1
	contrib/tcsh/nls/italian/charset	1.1.1.1
	contrib/tcsh/nls/ja/charset		1.1.1.1
	contrib/tcsh/nls/pl/charset		1.1.1.1
	contrib/tcsh/nls/russian/charset	1.1.1.1
	contrib/tcsh/nls/spanish/charset	1.1.1.1
	contrib/tcsh/nls/ukrainian/charset	1.1.1.1

Approved by:	re (hrs)
2006-02-26 06:17:59 +00:00
mnag
bb7b6e16f5 - Change dumpdev default to "NO". Only HEAD is set to "AUTO"
Discussed with:	re
Approved by:	re (scottl)
2006-02-25 22:53:40 +00:00
jmg
70efe36b03 MFC: sleep.9 v1.47
>  allow timo to be 0 when mtx is not NULL (KASSERT allowed this as
>  pointed out by jhb)

Approved by:	re (scottl)
2006-02-25 21:50:20 +00:00