Commit Graph

104560 Commits

Author SHA1 Message Date
mrg ffb25b0ea1 avoid some warnings on powerpc64. 2010-03-29 00:13:32 +00:00
njoly 885ee1b247 Cleanup compat netbsd32 nanosleep syscalls to use the common
nanosleep1() call instead of their own stuff.
2010-03-28 22:03:51 +00:00
snj 7f4ce11823 Spell "enough" properly. 2010-03-28 20:46:18 +00:00
pgoyette 0a999d0c06 Update acpiapm_get_powstat() to adjust for the recent changes to
acpi_bat(4).  (The warn_cap and low_cap sensors were removed, and the
values are now stored as the alarm limits of the charge sensor.)
2010-03-28 13:11:23 +00:00
nonaka eb9041c052 return allocated va. 2010-03-28 07:31:59 +00:00
mrg 0edf2f9c9a - add a kmutex_t ci_ctx_lock to struct cpu_info, and initialise it in
cpu_pmap_init() and replace pmap_ctx_lock usage with this new ci_ctx_lock

- replace smp_dcache_flush_page_all() with smp_dcache_flush_page_cpuset(),
  that flushes only on the set of CPUs not, everyone.  add new
  dcache_flush_page_cpuset() to flush this page from the D$ only
  on the specified set of CPUs.

- add a cpuset to pmap_free_page() and use it when freeing PTE pages
  when a pmap is destroyed

- introduce pmap_free_page_noflush(), and use it when we allocated a
  page for PTEs but didn't use it and don't need to flush it

- don't bother with pmap_lock in pmap_extract(), the only potential
  issue is pseg_get() which is already safe


tested on sb2000, sb2500 and ultra80 with a bunch of various heavy
workloads, and seems to give a clear 1-2% speed up for high-forking /
short lived processes, such as ./configure.
2010-03-28 05:24:00 +00:00
mrg 98a4c48317 apply a patch from dennis fergusson:
fix the powerpc64 quirk handling by introducing a prefix quirk and
using it as appropriate.  fix the (postfix) quirk.

now rump and powerpc64 get along nicely.
2010-03-28 04:29:34 +00:00
dholland 33b963cb18 sort a couple things 2010-03-28 00:00:07 +00:00
tnozaki 377cb4e4f9 1. {wctype,wctrans,mbstate}_t: switch MD to MI like other
libc implementation (such as *BSD and glibc2).

2. don't typedef void * wc{type,trans}_t, suggested by soda@-san.
   it may pass through compiler type check, it's harmful.
   so i introduce dummy struct __tag_wc{type,trans}_t(iconv_t already does).

no ABI change was made.
2010-03-27 22:14:09 +00:00
pgoyette aae23aaf98 Constify the args to sysmon_envsys_foreach_sensor()'s callback function. 2010-03-27 13:34:16 +00:00
pgoyette 5dbc4fad52 Fix the locking protocol in sysmon_envsys_foreach_sensor(), and add an
additional argument to control whether or not the sensors are refreshed
before invoking the callback routine.
2010-03-27 13:23:18 +00:00
nonaka 821373d09b Added sdhc at cardbus support. 2010-03-27 03:04:51 +00:00
pooka 6f6b6bc6df \n, police! 2010-03-27 02:37:34 +00:00
pooka 57fb3b92e2 Access fifoinfo only when it's non-NULL. 2010-03-27 02:33:11 +00:00
pgoyette 6c1f2c419a Make this work the way the preceeding comment blocks says it works, and
break out of the while{ } when the callback returns false, not when it
returns true!
2010-03-26 21:06:25 +00:00
mjacob 06aa1abd00 Synchronize with other platforms:
Strongly architect handles so we can more easily detect bogus
	handles. This switches us to a full 32 bits for all handles.

	Handle the case of FC disks disappearing and then reappearing-
	at least at the FC transport level.

	Some better and finer control of debug and non-debug printouts.
2010-03-26 20:52:00 +00:00
pgoyette 1de3adb5f4 Add a routine to iterate over all the sensors on the system. This will
be needed to update acpiapm_get_powstat() which is currently slightly
broken due to recent rearrangement of acpi_bat(4)'s sensors.  (This
approach is in lieu of exporting proplists between kernel entities, and
avoids exposing some internal sysmon_envsys details.)
2010-03-26 20:31:06 +00:00
pooka acd98b55f4 rootfstype is not a vfs stub, so it doesn't belong in vfs_stubs 2010-03-26 18:21:28 +00:00
pooka a183ecd06c Remove unused opt_bluetooth.h
plunky: "feel free"
2010-03-26 18:15:15 +00:00
dyoung bfe5593bc2 In ieee80211_media_init(), change a pointer that we never write
through to a pointer to const.
2010-03-26 17:18:05 +00:00
jakllsch 35c90d315d Use objcopy rather than ld to copy Intel NPE firmware blob into ELF.
Avoids internal error in newer binutils ld.
Should fix PR/42864 and PR/43057.
2010-03-26 15:55:33 +00:00
pooka 54be9a9f62 Catch up with cosmetic changes to output from config(1) 2010-03-26 15:51:55 +00:00
jakllsch c2ca7b837e Fix build of i386 ALL kernel with patch from Greg A. Woods in PR/43056. 2010-03-26 15:46:04 +00:00
pgoyette e235f1e850 Export the sensor device's class. 2010-03-26 12:36:59 +00:00
pooka 929e108067 Convert to config_init/fini_component.
tested by jruoho
2010-03-26 05:59:26 +00:00
pooka 1af4db65a0 define the incredible FLAWLESSCALL macro in one place 2010-03-25 19:54:19 +00:00
pooka 28a9c4ad96 use config_init_component() 2010-03-25 19:54:08 +00:00
pooka 8b70574df1 Add init/fini for components (modules etc.). These eat the standard
driver/attach/data typically present and once some locking is grown
in here, these routines can be made to fail or succeed a component
attachment/detachment atomically.
2010-03-25 19:23:18 +00:00
tnn 7c4a3fc1a3 sys/dev/ic/videomode.h is almost identical to sys/dev/videomode/videomode.h
Remove the former.
2010-03-24 19:33:51 +00:00
njoly 3e46e29198 Fix ENVSYS_DEBUG build. 2010-03-24 19:15:00 +00:00
scw a239f60810 Update with new download link provided by Marcin M. Jessa in
http://mail-index.netbsd.org/port-arm/2010/03/24/msg000912.html.

Add a note about version 3.0 microcode.
2010-03-24 13:55:04 +00:00
pgoyette 7e351badfc In sysmon_envsys_sensor_event(), permit delivery of all events for the
sensor if no event type is specified.
2010-03-24 13:11:41 +00:00
skrll 2bc65cd509 Correct the list of traps that we need to get the va and space from
ii[os]q.

From OpenBSD.
2010-03-24 12:56:30 +00:00
skrll c2008f6d9b Improve panic message. 2010-03-24 12:38:55 +00:00
pgoyette 0c7008e9c3 Set the SME_INIT_REFRESH flag so that the sensors' values (including
charge's max_value) are available when the event monitors are created.
2010-03-24 12:18:54 +00:00
pgoyette f8d161b1f5 Do the initial refresh before creating the event monitors, in case the
event monitors require some of the data loaded by the refresh.  For
example, the initial refresh might load sensor limits and max_value in
addition to the cur_value.
2010-03-24 12:15:54 +00:00
pgoyette c998024539 Only set the APM_BATT_FLAG_NO_SYSTEM_BATTERY if _all_ batteries are
not_present.
2010-03-24 01:45:37 +00:00
dyoung f52f7d91ef Do not use unitialized bus_space_tag_t's. Use the tag(s) from the
attachment arguments.
2010-03-24 01:13:30 +00:00
macallan 4e7878cd4e enable CG12 support 2010-03-24 00:39:07 +00:00
macallan da6c0e814c first stab at a driver for the cg12 / matrox cg3
for now it uses the same monochrome overlay as OBP, otherwise it's got the
usual wsdisplay / vcons goodies
TODO:
- fill in mmap and ioctl methods so we can at least run X in monochrome
- figure out where the 24bit buffer is ( and maybe if there's an 8 bit buffer )
- see if we can do any acceleration
- find the DAC registers
2010-03-24 00:33:06 +00:00
pgoyette d41a3cef46 Split spdmem driver into a bus attachment and a common back-end
probe and ROM decode, to follow similar changes made in OpenBSD:

        http://article.gmane.org/gmane.os.openbsd.cvs/94948
        http://article.gmane.org/gmane.os.openbsd.cvs/94956

There exists at least one alternative attachment (for SGI IP35
systems; see http://article.gmane.org/gmane.os.openbsd.cvs/94947),
and there could be more in the future.

Thanks to Christoph Egger for pointing out the OpenBSD activity.
2010-03-24 00:31:41 +00:00
dyoung 8183d39c9c In the #definition of PCI_HME_BASEADDR, use PCI_BAR(0) instead of the
anonymous constant 0x10.
2010-03-23 21:54:23 +00:00
dyoung e99a7c0550 Put back PCI_HME_BASEADDR. 2010-03-23 21:51:39 +00:00
dyoung a75c1e887e Use the PCI BAR type to decide which I/O enables to set.
TBD: Put back the old BAR #definition, s/PCI_BAR(0)/PCI_HME_BASEADDR/.
2010-03-23 21:22:25 +00:00
dyoung 8c6df9756c dmaiot is supposed to be a bus_space_tag_t, not a bus_space_handle_t.
Make it so.
2010-03-23 21:18:23 +00:00
martin d6bdba5871 Properly convert values according to block size differences between the
underlying device (might be a CD drive) and the sun label when carrying
over defaults from a ISO9660 partition.
2010-03-23 20:01:09 +00:00
martin ce69648c34 If we find a device in non-2048 byte/block mode and manage to switch
it over, we need to adjust the capacity - so just read it again.
2010-03-23 18:56:18 +00:00
pgoyette bc480daf7a Additional info in DPRINTF to help debugging efforts 2010-03-23 16:52:02 +00:00
jakllsch 165a0cf70b Rework module/builtin code so it works in both cases.
(Tested recently in the module case, slightly less recently as builtin.)

<haad> [if it works] go for it
2010-03-23 15:09:45 +00:00
martin 5a5dcf5530 Make cdclose() silent, if we only have the raw partition open (e.g. when
probing for media and not finding any)
2010-03-23 12:42:55 +00:00