Commit Graph

166355 Commits

Author SHA1 Message Date
wiz 1a4ecbe12b Use more markup. 2008-01-29 07:05:30 +00:00
rafal 77f8afb936 Adapt to renamelock_{enter, exit} addition to struct vfsops. 2008-01-29 04:06:46 +00:00
xtraeme 1cc7b13a55 coretemp_refresh: run xc_unicast() regardless if sc->sc_ci is curcpu()
or not, this fixes a deadlock seen by Greg Oster in a Dual Quad Core
machine with 8 coretemp instances.
2008-01-28 22:49:49 +00:00
jmcneill ab245e294e PCI Power Management 1.2 says that system software should wait 10ms after
transitioning a device to or from D3hot, 200us to or from D2, and no wait
for D1 transitions. Update pci_set_powerstate_int to match the spec,
rather than naively waiting 1ms after every state transition.
2008-01-28 22:48:43 +00:00
jmcneill a0a5798f83 Change synaptics 'unusual delay' printf to aprint_debug. I'm tired of
seeing it over and over again.
2008-01-28 22:30:27 +00:00
jmcneill 1ec278b34c Don't call do_enable on synaptics resume if !sc->sc_enabled 2008-01-28 22:29:00 +00:00
jmcneill 6d105ec7c2 De-noisify resume handler. 2008-01-28 22:28:32 +00:00
pooka feea4545b8 For code clarity typedef void *puffs_cookie_t.
No functional change.
2008-01-28 21:06:36 +00:00
garbled 9c0d5a87e0 Pull another instance of bridge mode avoiding the BATs.
Fix FIRMWORKSBUGS.  The #else on one of the ifdefs for it made it so that
it would never work on a machine that didn't need it.  This caused IBM
machines to be unable to talk to OFW if the option was enabled.  Replace
the #else with a branch and call it good.
2008-01-28 21:06:29 +00:00
jmcneill ef5ded9b39 No need to operate in polling mode in ehci_resume. 2008-01-28 20:58:23 +00:00
jmcneill b7cf8d358c The Thinkpad T61/x61 family powers off the USB power resource on resume
from S3 sleep. Until we get proper ACPI power resource support, simply
call \\_SB.PCI0.LPC.EC.PUBS._ON() on resume if the method exists.

Fixes kern/37279 by Steven M Bellovin.
2008-01-28 20:31:55 +00:00
xtraeme fd81136064 Pass the same size to both kmem_alloc(9) and kmem_free(9), this fixes
the kmem_poison_check in DEBUG kernels.
2008-01-28 20:19:06 +00:00
ad a77566d7d5 Authorize using the LWP cached credentials, not process credentials. 2008-01-28 20:09:06 +00:00
ad eb97d34997 More file/proc locking fixes. 2008-01-28 20:05:21 +00:00
ad 5ba557a53c - Update global counters using atomics before allocating. When freeing,
update the couters afterwards.
- Cosmetic / code generation changes.
2008-01-28 20:01:50 +00:00
ad 40fb254ec2 Fix error in previous. Spotted by yamt@. 2008-01-28 19:58:32 +00:00
ad 2b43ec397e Enablel locking that was stubbed out. 2008-01-28 19:57:43 +00:00
pooka 704ded372f Don't add asserts between testing and commit - especially not
if you're going to write "assert(foo = 0)"
2008-01-28 18:51:03 +00:00
pooka 7c2ddc1d53 Bump version for lazy contexts (probably not necessary, but it's
been a long time since I bumbed the version ;)
2008-01-28 18:42:09 +00:00
pooka d1d05d65b9 Implement lazy contexts for file systems using puffs_mainloop().
Previously each request was executed on its own callcontext and
switched to every time the request was being processed.  Now requests
borrow the mainloop context and switch only if/when they yield.
This takes two context switches away from a file system request
bringing down the typical amounts 2->0 (e.g. dtfs) and 4->2 (e.g.
psshfs).

The interfaces for manually executing requests changed a bit:
puffs_dispatch_create() and puffs_dispatch_exec() must now be used.
They are not tested, as nothing in-tree wants them and I doubt
anyone else is really interested in them either.

Also do some misc code cleanup related to execution contexts.  The
"work-in-progress checkpoint" committed over a year ago was starting
to look slightly weed-infested.
2008-01-28 18:35:49 +00:00
dyoung f3b8aacb17 Make one call to rtcache_lookup() out of calls to rtcache_setdst()
and rtcache_init().
2008-01-28 18:28:31 +00:00
garbled 7636840ee2 Apparently BRIDGE mode allows BAT registers, so re-enable that code.
Change the pegasos PCI_NETBSD_CONFIGURE arguments around to wire up mem
space into the correct area, and move the io regs a little to make it
work properly. Just avoid the secondary PCI entirely.
Change the list of things that we fiddle with in pci_conf_hook.  Map mem
on the fwohci, avoid display cards, avoid IO on the auvia.
Change some printf's to aprint_*
Yank a call to genppc_pci_indirect_make_tag and change it to the
bus-independant pci call instead. (in pci_conf_hook)
2008-01-28 18:24:21 +00:00
dyoung a2a7fac20f Don't open-code CIRCLEQ, but use CIRCLEQ_*() macros, instead. 2008-01-28 18:24:05 +00:00
dyoung deacc0dc3b Don't run ctags on unichromreg.h, its #definitions cover important
symbols.
2008-01-28 18:22:36 +00:00
dyoung 37b0eea62f Remove dead code and associated comments. 2008-01-28 18:18:37 +00:00
dyoung fd68f1fdfd If something still holds a reference to our scsipi_adapter, do not
warn and complete the detachment, but return EBUSY.
2008-01-28 18:17:05 +00:00
dyoung 0974448cd1 Do not allow the system console to detach, because that will lead
to a panic.
2008-01-28 18:12:29 +00:00
hannken 89cea1c2c4 - Always destroy si_vnlock after use.
- Take care of vnodes without file system data.
2008-01-28 17:49:06 +00:00
tsutsui 03242949ba - account idepth in all interrupt handlers
- use idepth for CLKF_INTR()
2008-01-28 17:07:19 +00:00
tsutsui 57e395fd49 - account idepth in a clock interrupt handler too
- use idepth for CLKF_INTR()
2008-01-28 16:21:19 +00:00
macallan 671b15c8ef get rid of the shutdown hook, add suspend and resume handlers instead
XXX: ahc_suspend panics here so suspend calls ahc_shutdown and resume does
nothing.
This fixes a hangup and subsequent panic which occured when the shutdown hooks
were called and /afterwards/ the sd suspend handler tried to flush caches
through an already shut down ahc.
2008-01-28 16:08:37 +00:00
pooka 4f8496ecf6 compile genfs_vfsops.c (hi dh2 ;) 2008-01-28 15:48:18 +00:00
pooka 4b72de18c5 update name to 4.99.51 (hi dh ;) 2008-01-28 15:38:13 +00:00
dholland 764ffd05f0 Part of the rename patches *doh* 2008-01-28 15:17:54 +00:00
dholland 36801625f9 Welcome to 4.99.51 - new vfsops for rename locking. 2008-01-28 14:34:36 +00:00
njoly 4eecf433ec Make shmctl + {IPC,SHM}_STAT work an amd64, by forcing use of IPC_64.
Following the Linux kernel behaviour.
2008-01-28 14:31:35 +00:00
dholland 717e1785a5 Fix some race conditions in rename.
Introduce a per-FS rename lock and new vfsops to manipulate it.
Get this lock while renaming. Also add another relookup() in do_sys_rename,
which is a hack to kludge around some of the worst deficiencies of
ufs_rename.
reviewed-by: pooka (and an earlier rev by ad)
posted on tech-kern with no objections.
2008-01-28 14:31:15 +00:00
njoly ff7363568f Update struct linux_shmid64_ds for 64bits archs.
- shm_segsz should be of type size_t, not int.
- Disable padding fields used on 32bits archs.
2008-01-28 14:14:48 +00:00
njoly 29158b16e8 shmctl fixes.
- SHM_STAT take an index as input, and return the corresponding shmid.
- IPC_INFO and SHM_INFO returns the highest used index.
- SHM_INFO expected the total used pages (not bytes) in shm_tot field
  of struct shm_info.
2008-01-28 14:05:32 +00:00
christos 8a85bb4332 remove Protocol=2 line; from Jukka Salmi 2008-01-28 13:57:02 +00:00
yamt 1a5be26b7e wrap a long line. 2008-01-28 12:23:42 +00:00
yamt 52838e34f5 remove a special allocator for uareas, which is no longer necessary.
use pool_cache instead.
2008-01-28 12:22:46 +00:00
pooka cc7f05eb50 Do puffs_fakecc instead of puffs_usethreads for now. 2008-01-28 11:52:38 +00:00
yamt 12ff4ba098 save a word in pv_entry by making pv_hash SLIST.
although this can slow down pmap_sync_pv if hash lists get long,
we should keep them short anyway.
2008-01-28 11:06:42 +00:00
yamt d8a5645f80 nfs_check_wccdata: unifdef wcc kludge messages. 2008-01-28 10:44:51 +00:00
yamt aa144d4a0b regen. 2008-01-28 10:33:32 +00:00
yamt 80d10710d5 check off_t alignment. 2008-01-28 10:31:37 +00:00
yamt 4ad8bf4c8a pool_cache_get_paddr: don't bother to clear pcgo_va unless DIAGNOSTIC. 2008-01-28 10:26:12 +00:00
yamt 21832401a4 lwp_free: add assertions. 2008-01-28 10:24:45 +00:00
dholland d4f48e67da Make the default WARNS for games 4. The only game that needs to set WARNS
to anything else now is rogue, so clear WARNS from the other makefiles.
2008-01-28 07:03:58 +00:00