Commit Graph

168445 Commits

Author SHA1 Message Date
drochner ba327d4301 make this compile again
(it isn't built by default, but anyway)
2008-04-01 19:20:43 +00:00
drochner b5e4e50433 remove stale declarations 2008-04-01 19:19:33 +00:00
xtraeme 3189c49560 Fix previous: use the length of l->l_foo not kl->l_foo and add
two KASSERTs to check for max lenght limits before copying.

As suggested by rmind@.
2008-04-01 18:06:06 +00:00
xtraeme 03c6a6aa65 fill_lwp: when copying l_wmesg and l_name, use the size of the string
not of the variable.

Found and ok by rmind@.
2008-04-01 17:39:58 +00:00
xtraeme 18b1d12d0e Also fix a memleak when the event is already in dictionary
and has been updated.
2008-04-01 17:01:34 +00:00
rmind 4b02b68c59 sme_event_register: fix a memory leaks in two error paths. 2008-04-01 16:48:18 +00:00
xtraeme e3c537a961 Fix previous commit, this Guillemot model was supported already
by rum(4).
2008-04-01 15:26:11 +00:00
xtraeme 8530f5047d Fix fallout from device_t/softc split to mpu(4):
always pass the mpu_softc to mpu_intr(). Found by Takeshi Nakayama.
2008-04-01 13:35:39 +00:00
xtraeme 5ee4eba88d Introduce per-device locking/synchronization and maintain only a
global mutex for the linked list of devices and the global proplib
dictionary.

This has improved locking contention a lot when multiple devices with
multiple monitoring events are running:

New:

 0.30      35      0.33 sme_global_mtx         sysmonioctl_envsys+28b
 0.10      10      0.11 00000000cd97feac       sysmon_envsys_acquire+4c
 0.08       6      0.09 00000000cd97feac       sme_update_dictionary+24f
 0.01       4      0.01 00000000cd97feac       sme_events_worker+2f
 0.01      10      0.01 00000000cd97fe2c       sysmon_envsys_acquire+4c
 0.00       1      0.00 00000000cd97fe2c       sysmon_envsys_release+3b
28.38      94      9.16 sme_global_mtx         sysmonioctl_envsys+28b
 4.54      74      1.47 00000000cd97fe2c       sysmon_envsys_acquire+4c
 0.06       3      0.02 00000000cd97fe2c       sysmon_envsys_release+3b
 0.03       1      0.01 00000000cd97fe2c       sme_events_worker+2f
 1.40      19      0.45 00000000cd97bee4       sysmon_envsys_acquire+4c

Old:

 4.25     313      4.74 sme_mtx                <all>
 3.12     185      3.49 sme_mtx                sme_events_worker+21
 1.12     128      1.25 sme_mtx                sysmonioctl_envsys+29b
34.75    1423     59.52 sme_mtx                <all>
22.08     477     37.82 sme_mtx                sysmonioctl_envsys+29b
12.67     946     21.70 sme_mtx                sme_events_worker+21
2008-04-01 12:25:30 +00:00
martin e9c68c5df0 Add timeout to busy loops waiting for ADB command completition.
Turns the hard hang in PR port-mac68k/37611 into a warning.
2008-04-01 12:02:52 +00:00
ad 138df53bd3 If MPDEBUG and waiting for the CPU to start, dump cpu_trace[] as it changes. 2008-04-01 11:09:58 +00:00
ad 520b46da7e Use multiple kthreads to process config_interrupts tasks. Proposed on
tech-kern.
2008-04-01 10:37:42 +00:00
mrg 1ed6b6fc06 if genfb_pci can't map regs, don't panic() just return. 2008-04-01 01:11:55 +00:00
jmcneill b2bbe181c6 Fix audio_volume_toggle. How did this ever work for me? Thinkpad T61
mutes audio automatically when the mute key is pressed.
2008-04-01 00:52:11 +00:00
jmcneill 2b82be6063 Note additions of Realtek ALC662-GR support to azalia(4) and the new
asus(4) hotkey driver.
2008-04-01 00:16:14 +00:00
chris 745d331c98 Note addition of sysinst support for zaurus. 2008-04-01 00:03:54 +00:00
chris a839529a7e Increase the Zaurus INSTALL memory disk size to match the size of the
ramdisk created by the distrib files.
2008-04-01 00:01:14 +00:00
chris a6421eb745 Add zaurus support to distrib, it's now possible to build a sysinst
enabled install kernel using the standard methods.
2008-03-31 23:59:06 +00:00
chris 4d962d78f3 Add sysinst support for zaurus.
Still needs some work, eg raw partition should be c not d on arm
platforms.
2008-03-31 23:55:29 +00:00
chris e2d485abc4 Add GENERIC.HOSTUSB kernel for zaurus.
This allows a Zaurus to act as a USB host, rather than client device.

Tested on a C3000 with USB NIC. I've added most usb devices to the kernel
as I'd expect USB devices just work.

Eventually this will disappear once switching from host to device
controller mode is supported.
2008-03-31 23:40:44 +00:00
chris 53030734c6 Add GPIO pins for USB cable type detection and glue for zusb devices for
config.
2008-03-31 23:35:39 +00:00
chris ed87ed8b00 Add zusb device for powering on the USB port. Also configure USB port 2
via the client USB on the pxa270, as it appears USB port 2 is the
externally routed port.

The linux driver was used as documentation for GPIO pins and port
settings.

Note that this only seems to work for one boot, a reboot loses for some
reason, perhaps something in the USB client area needs to be configured.

XXX: perhaps we should make zusb a device that attached/detaches the USB
USB host or client device depending on the plugged in cable.
2008-03-31 23:32:43 +00:00
chris 1859a7ec67 Update pxa2x0 ohci support to match recent device_t/softc splitting on
ohci.

Also remove powerhooks (eventually it'll be pmf'd)

This is enough for host usb to work sometimes on a zaurus.
2008-03-31 23:18:49 +00:00
kiyohara aaf18737ff Split device_t/softc.
Use aprint.
2008-03-31 15:49:29 +00:00
xtraeme bc77ebea72 Remove useless returns at the end of void functions. 2008-03-31 15:28:47 +00:00
jmcneill 0123953b4c Add outputs.master.mute and inputs.dac.mute knobs for ALC662. XXX these
currently only control speaker mute, not headphone. Needs to be revisited.
2008-03-31 15:23:30 +00:00
jmcneill 8c1cc2fb3f Enable asus(4) 2008-03-31 15:21:01 +00:00
tsutsui 73f476d471 Split softc/device_t for spc(4) and misc related cleanup. 2008-03-31 15:20:47 +00:00
jmcneill 149201cfa6 Enable asus(4) 2008-03-31 15:19:28 +00:00
jmcneill 4fab67daa7 Add ASUS ACPI hotkey driver, as found in the Eee PC. 2008-03-31 15:17:21 +00:00
mjf 648ad337d4 Register pmf handler. 2008-03-31 14:30:58 +00:00
njoly d292c1dc4d Revert unexpected DDB_ONPANIC change introduced in last revision. 2008-03-31 09:42:25 +00:00
plunky 10b824ffee use aprint_error_dev(), for clarity 2008-03-31 09:37:37 +00:00
taca 1ecc4e51fc Update intree and current version of OpenSSH. (4.6 and 4.9/4.9p1) 2008-03-31 07:54:55 +00:00
he 87e42a468b Convert from use of bcopy() to memcpy() so that this builds again. 2008-03-31 06:19:59 +00:00
dogcow 50ea53d902 ...and fix my fix to do the proper device_t split. 2008-03-31 03:19:20 +00:00
dogcow 0e06ed5d6e fix device_t split fallout. 2008-03-31 02:42:42 +00:00
lukem 30883326ec Change USE_SKEY default to "no"; we have had USE_PAM=yes as the default
for a long time, and there's no point having custom S/Key support in the
applications given that pam_skey.so is now in /etc/pam.d/*
2008-03-31 02:42:27 +00:00
dogcow 85df549da3 fix device_t split fallout. 2008-03-31 02:39:40 +00:00
tnn 14cd56faf0 Portable code should use RTLD_LAZY, not DL_LAZY. 2008-03-31 00:23:15 +00:00
jmcneill c7bcf11189 Initial support for the Realtek ALC662-GR as found in the ASUS Eee PC. 2008-03-31 00:18:17 +00:00
sjg 98deadff04 If the name passed to Var_Exists contains '$' run it through Var_Subst. 2008-03-31 00:12:21 +00:00
dholland e93a5674cc Add a little const. 2008-03-30 22:28:41 +00:00
chris c82cfbf571 Use SYSTRAP macro, rather than inlining the swi instruction.
This makes sure the SWI will be in the NetBSD assigned range of swi
numbers.
2008-03-30 21:22:05 +00:00
christos e8ecc76830 will need darwin_types.h in the branch. 2008-03-30 20:59:59 +00:00
christos c2126f5e21 print size_t with %zu. 2008-03-30 20:58:08 +00:00
macallan 3b8eb423c6 actually update the 'battery present' sensor. Doh. 2008-03-30 18:19:53 +00:00
macallan b996b42f44 free & unmap DMA memory and registers on detach()
Now removing and re-attaching a mediabay works again.
2008-03-30 18:16:25 +00:00
macallan a78054eebc don't splhigh() in the interrupt handler, instead spltty() in adb_poll() 2008-03-30 17:57:29 +00:00
he 527b0e5405 Convert from using bcopy() to memcpy(), so that this builds again. 2008-03-30 16:28:08 +00:00