Commit Graph

182666 Commits

Author SHA1 Message Date
dsl 68a8748cf1 Change arguments to decimal() to be int64_t.
They need to be able to hold disk sector numbers > 2^31 and also -1.
Should fix PR/34807
2009-08-05 21:31:50 +00:00
dsl f687cf7e68 If the current locale doesn't define the 'thousands' grouping info
then use sane defaults (',' every 3 digits).
Fixes PR/40714
2009-08-05 20:46:01 +00:00
jym bba2c41d59 Add Intel SpeedStep and AMD PowerNow! support in Xen dom0. MSR operations
are now compiled in by default.

Note that MSR support in Xen depends on its version. rdmsr() should always
succeed, but wrmsr() to certain registers can end in a NOOP. In that case,
the error will be logged (see xm dmesg).

Setting CPU frequency (SpeedStep) requires Xen 3.3 with the option
cpufreq="dom0-kernel" passed down to hypervisor during boot.

Compiled and tested for SpeedStep under i386 for XEN3_DOM0 and XEN3PAE_DOM0
by jym@. amd64 was tested by Joel Carnat.

See also http://mail-index.netbsd.org/port-xen/2009/08/02/msg005213.html .

Commit requested by bouyer@.
2009-08-05 20:15:36 +00:00
dsl 8b926bc93c Fix ktrace of data from iovec based system calls.
Fixes PR/41819
2009-08-05 19:53:42 +00:00
dsl 8129ef72eb lockf() passes its arguments through to fcntl() but is supposed to
support -ve lengths (lock area before current offset).
Nothing in libc or the kernel allowed for this, so some random part
of the file would get locked (no idea which bits).
Although this could probably be fixed in libc, the stubs for posix file
locks for emulations could easily get into the kernel with -ve lengths.
So fixing in the kernel avoids those problems.
This also fixes PR/41620 (attempting to lock negative offsets) - which
is what I was looking into!
2009-08-05 19:39:50 +00:00
christos 4b76b4506c don't use char values for functions that can return -1; chars are not always
signed.
2009-08-05 19:34:09 +00:00
christos 0eff0ff3d3 mention new openssl. 2009-08-05 19:10:56 +00:00
wiz 8356afb2c1 Fix typos in comment. 2009-08-05 19:08:28 +00:00
christos bb8cb2851b resolve conflicts 2009-08-05 18:38:21 +00:00
christos 86adef1b84 import 20090805 snapshot. 2009-08-05 18:31:57 +00:00
joerg eb96fdd9a2 ffs(3) lives in strings.h, so include the correct header. ANSIfy. 2009-08-05 16:08:00 +00:00
pooka b828513eea Compensate v_numoutput & nestbuf for lfs's rather peculiar I/O habits. 2009-08-05 15:39:57 +00:00
cegger ab159a84fa make RX hw checksum available by default.
TX hw checksum locks up interface.
2009-08-05 15:29:51 +00:00
joerg 466a3e5dee Revert to revision 1.8. Blindly ignoring options is not acceptable
behavior and hides more problems than it is fixing.

Discussion:
http://mail-index.netbsd.org/current-users/2009/02/03/msg007761.html

Approved by: core@
2009-08-05 15:17:02 +00:00
joerg 0c2684fa82 Fix a comment to not be self-referencing. 2009-08-05 15:04:15 +00:00
cegger 3b3738c161 fix typo 2009-08-05 14:41:12 +00:00
pooka e7780eca66 remember to nestiobuf_done() too 2009-08-05 14:37:01 +00:00
pooka a19ded3606 g/c uvm_aio_biodone1(). not used anymore. 2009-08-05 14:11:57 +00:00
pooka 1252aada83 kill uvm_aio_biodone1(). only user was lfs and that uses nestiobuf now. 2009-08-05 14:11:32 +00:00
pooka 5bd015d57e add some advice symbols we'll eventually need 2009-08-05 14:10:33 +00:00
pooka 307631b2c8 Use nestiobuf instead of homerolled equivalent. 2009-08-05 14:09:26 +00:00
pooka 095aaa3428 Clear PG_PAGEOUT in uvm_aio_aiodone() 2009-08-05 14:05:22 +00:00
reinoud 7c5a396997 Typo fix 2009-08-05 13:45:48 +00:00
jun 3a6e583f13 fix pcic kthread creation timing.
see http://mail-index.netbsd.org/current-users/2008/07/15/msg003526.html

fix kern/41791 & port-hpcmips/41164.
ok by uwe & tsutsui
2009-08-05 13:29:16 +00:00
tteras 4180506456 From Paul Wernau: Fix transport mode per-port security associations that
got broke during NAT-T fixes.
2009-08-05 13:16:01 +00:00
cegger 6d027845ab - Don't access VPD even if hardware advertised the capability.
It seems that some revisions of the controllers hang while accessing
  the VPD. Because VPD access routine is now unused, nuke it.
- Let TWSI reload EEPROM if VPD capability is detected. Reloading
  the EEPROM will also set the Ethernet address, so age(4) now reads
  AGE_PAR0 and AGE_PAR1 register to get the Ethernet address. This removes
  removes a lot of hacks and enhance readability a lot.
- Double PHY reset timeout as it takes more time to take the PHY out of
  power-saving state.
- Explicitly check power-saving state by checking undocumented PHY
  registers. If link is not up, poke undocumented registers to take
  PHY out of power-saving state. This is the same thing done by the
  Linux driver.
- Don't rely on auto-clearing feature of master reset bit, just wait
  1ms and check idle status of MAC.

From FreeBSD via OpenBSD.
2009-08-05 12:07:16 +00:00
cegger b297f62c5a support flow control. from OpenBSD.
tested by Kevin Lahey
2009-08-05 07:03:04 +00:00
dholland f5d4590c31 Use getopt instead of hand-rolled options code. Document all the arguments
and options. Don't allow the previously undocumented method to change the
maximum number of scores kept per user to be used on the system-wide high
score file. Sort options list in the man page. Bump its date.
2009-08-05 04:03:47 +00:00
pooka b2ae25b4cd Use uvm_vnode.c instead of homerolled stuff. 2009-08-05 00:04:08 +00:00
pooka b46117f3cd * support uvm_pagermapin/out(), adapt uvm_pageratop()
Instead of doing actual page remapping, which we can't portably
  do in userspace without extensive trickery (read: signals), simply
  allocate the kva window with new physical backing, copy page
  contents, return, and copy contents back in mapout.  Since the
  pages are locked during the mapping cycle, we can do this without
  hazard.

* add lots of stubbies necessary for new stuff coming soon
2009-08-04 23:58:29 +00:00
pooka e0fc658a3c uvm_vnp_zerorange() logically and by implementation more a part of
ubc than uvm_vnode, so move it over.
2009-08-04 23:31:57 +00:00
jmcneill bb3158c0b1 Reading the fan speed is expensive, so set the undocumented SME_POLL_ONLY
flag on this sensor to ensure that the data is only refreshed on demand.
2009-08-04 23:23:39 +00:00
pooka c4e6a098a1 kernel opt polish: g/c unnecessary fs_nfs.h and opt_ddb.h 2009-08-04 23:03:01 +00:00
dyoung bb61b3608a Use malloc(...|M_ZERO) instead of malloc(...) followed by memset(,0,). 2009-08-04 22:04:23 +00:00
pooka c8c1730cc4 terminate comment too 2009-08-04 20:01:06 +00:00
pooka 16de900c99 * supply pager flags in ubc_uiomove()
* implement uvm_aio_aiodone() (which is almost identical to the "real" one)
2009-08-04 19:54:16 +00:00
wiz cbc70c1e23 Use .Nm instead Xr to itself. 2009-08-04 18:59:05 +00:00
jmcneill c143874ff6 Add name to last entry, and fix a typo in another entry while here. 2009-08-04 17:21:14 +00:00
jmcneill 0d15c60b95 acpi wakedev support 2009-08-04 17:11:14 +00:00
jmcneill 5baf678bf3 remove extra semicolon, spotted by snj 2009-08-04 17:06:10 +00:00
jmcneill f5e82b659b add hw.wake.* sysctl subtree for toggling which devices are allowed to
restore the system from sleep. set/clear wake GPEs as specified before
entering sleep.

by default, the following devices are enabled for wake:
 - sleep/power buttons
 - lid switch
 - pc kbd controller

reviewed by: joerg
2009-08-04 14:20:40 +00:00
pooka 6e1d010d65 supply proper flags to pager 2009-08-04 13:39:18 +00:00
cegger 32258d719a support flow control. from OpenBSD.
tested by hans@
2009-08-04 13:17:55 +00:00
pooka 3ec4aae3c4 Do std vnode locking for specnodes located on rumpfs. 2009-08-04 12:40:42 +00:00
pooka 1752ac9b33 If opening the device fails, skip etfs registration only if it is
because of ENOENT.  Otherwise, let the file system handle it.
2009-08-04 12:37:14 +00:00
kiyohara 56ab546296 Fix GPIO configurations.
http://mail-index.netbsd.org/port-arm/2009/07/08/msg000807.html
    3. I misstake sinse 2007/08/21.
	 :

Details:
  Remove hwuart_gpioconf.  PXA270 not have HWUART.
  Add ohci_gpioconf.  However all selectable.
  Fix pSKTSEL of pcic is selectable.
  Fix MMDAT<1-3> of mci is optional.
2009-08-04 12:11:33 +00:00
martin 9c3d37432b Fix small oversight in device_t/softc split. Pointed out by <jdc>. 2009-08-04 09:26:26 +00:00
taca a86c093e69 Fix a bug of BGE_RDMA_MODE_FIFO_LONG_BURST definition.
Confirmed by msaito@.
2009-08-04 08:49:02 +00:00
dsl 42c6f77e6e Add #if NPCI > 1 around call to mp_pci_childdetached()
Fixes rst of PR/41301
2009-08-04 06:55:26 +00:00
pooka fd3da5f6fe g/c cachepgmtx, i have no idea what it was supposed to be useful for. 2009-08-03 23:32:06 +00:00