mrg
aa276e62a5
add a couple of MOSCHIP usb serial devices.
2009-06-19 01:14:27 +00:00
njoly
9edecd8c07
In linux_sys_sched_getaffinity(), do not leak memory on error.
2009-06-18 20:36:28 +00:00
reinoud
c76ee53287
Add overlooked `cred' declaration in udf_write() when i committed the catchup
...
patches.
2009-06-18 15:51:44 +00:00
he
b1946a6b32
Back out the addition of memset.c to the vax libkern, and instead do
...
as tsutsui@ suggested, and include <sys/param.h> in sha2.c instead.
On the vax, this causes <machine/macros.h> to be included, and it contains
that machine's memset() macro+inline.
2009-06-18 15:22:24 +00:00
reinoud
8f6cc2bd0e
Pass-on credentials to size reversal on aborted write due to error. It could
...
be that in the future this credentials need to be changed to allways-allow
since its an reverting-on-error behaviour.
2009-06-18 15:15:10 +00:00
reinoud
9cf321ebdd
Fix nitpicky spacing and debug printout
2009-06-18 15:09:18 +00:00
reinoud
66e7de7ac6
Remove unneeded (and unused) inclusion of "opt_quota.h"
2009-06-18 15:06:38 +00:00
reinoud
b32db61b9b
Enhance comment on node locking when writing out a node's descriptors.
2009-06-18 15:03:34 +00:00
reinoud
45929a2856
Remove unneeded wait for SYNC being finished on node disposal of deleted node;
...
this could interfere and lockup.
2009-06-18 15:01:34 +00:00
reinoud
ba587e2e62
Add RESERVE bitmask flag to DEBUG print constants adding another 0 prefix to
...
the constants already defined.
2009-06-18 14:57:50 +00:00
reinoud
96a16f2f23
Remove now unused UDF_DIRHASH constants
2009-06-18 14:56:09 +00:00
rjs
805ebb2dbd
Regen.
2009-06-18 11:33:31 +00:00
rjs
6f27b61c89
Add Marvell 88E1116R PHY.
2009-06-18 11:32:29 +00:00
rjs
4cd376c68b
Make it compile. Change a commented out printf() to aprint_error_dev().
2009-06-18 08:40:26 +00:00
he
78443215c7
Add memset.c, so that the references from sha2.c can be satisfied, and
...
so that the kernel and puffs applications can link again.
2009-06-18 07:56:04 +00:00
mrg
8520c31093
when printing a ddb stack trace when entering ddb, include the cpu number
2009-06-18 06:26:58 +00:00
dyoung
61fa5bb9be
Make kobj_stat() return ENOSYS instead of panicking ("not modular")
...
on non-MODULAR kernels. Make a few kobj_stat() callers check for
a non-zero return code and deal gracefully.
2009-06-17 21:04:25 +00:00
cegger
77578bbc3a
make this build w/o SIISATA_DEBUG
2009-06-17 19:12:48 +00:00
tsutsui
a36955c23e
Unwrap not so long lines.
2009-06-17 15:43:16 +00:00
tsutsui
a86f73dc93
- no need to use device_parent() because device_t parent is passed
...
via config_attach(9)
- use device_is_a() rather than strcmp() for readability
2009-06-17 15:42:00 +00:00
njoly
3152f584bd
Regen for sendmsg/recvmsg definitions update.
2009-06-17 14:20:08 +00:00
njoly
f50c7f6eb2
Add a new linux_msghdr structure, as its size differs on 64bit archs.
...
Do the needed conversions in sendmsg/recvmsg syscalls, and adjust
their definitions accordingly.
2009-06-17 14:18:51 +00:00
skrll
9820325bb1
Remove incorrect KASSERT.
...
footbridge_intr_calculate_masks is called multiple times and the KASSERT
isn't valid in (at least) the first call.
2009-06-17 06:27:05 +00:00
jakllsch
f38e8286ac
A few changes for siisata(4):
...
- Support detachment. From KIYOHARA Takashi.
- Add PCI detachment functionality (albeit not very interesting when
the bus can not yet be rescanned).
- Rework interrupt handlers to reduce near-duplicate code.
Borrowed from ahcisata(4).
- Attempt to make polled I/O work. Untested.
- Fix formatting of some messages.
- For always-polled commands, disable interrupt
at slot level rather than port level.
- Instead of busy-waiting indefinitely for completion of some commands
move on after 31 seconds. Use cv_timedwait(9) instead of DELAY(9).
- Use abstracted SATA FIS code.
- Enable use of disks that don't respond with the standard signature.
2009-06-17 04:37:57 +00:00
jakllsch
da65bf0f42
ahcisata now uses the common FIS code, register this dependency.
2009-06-17 04:02:59 +00:00
jakllsch
5ea7c61bc2
Use abstracted FIS code for ahcisata(4). Have the FIS code pre-zero the FIS.
2009-06-17 03:55:04 +00:00
jakllsch
e5e3060059
ahcisata(4) and siisata(4) use similar SATA FIS functions, share them.
2009-06-17 03:07:51 +00:00
njoly
cb90fdddc4
Add LINUX_CMSG_{SPACE,LEN} macros. Use then when calculating the
...
msg_controllen size, when converting the control message buffer from
native (previous version was missing the linux_cmsghdr size).
2009-06-16 23:17:02 +00:00
njoly
83618982c2
For linux cmsg header copyout, use the linux structure size, not the
...
native one.
2009-06-16 22:56:49 +00:00
bouyer
3ac2dfe9bf
Split mc146818-related functions from clock.c into rtc.c.
...
Call rtc_set_ymdhms() from xen/xen/clock.c:xen_rtc_set() for xen3 dom0
kernels as the Xen3 hypervisor doesn't write the new date/time to the CMOS
by itself.
Now a XEN3_DOM0 kernel properly updates the CMOS time.
2009-06-16 21:05:33 +00:00
dyoung
7fdb86195d
Use device_t instead of device_ptr_t. Stop using USB_MATCH() and
...
USB_ATTACH().
2009-06-16 19:42:44 +00:00
njoly
405a83b592
Make compat linux sendmsg/recvmsg output msghdr and control messages
...
buffers with ktrace(1), just like the native functions.
2009-06-16 15:56:10 +00:00
cegger
18130206e3
- use <sys/bus.h> and <sys/cpu.h>
...
- add reference to family11h documentation
- add reference to AMD K8 Errata #141
2009-06-16 07:34:40 +00:00
minskim
8221d4ac16
Reduce diff with OpenBSD. No functional change.
2009-06-16 05:15:41 +00:00
njoly
21489570f0
Make netbsd32 sendmsg(2), do not use an uninitialised value for
...
fetching iovec structures.
While here, sync recvmsg(2) to avoid some unneeded casts.
2009-06-15 22:59:53 +00:00
bouyer
dbd6b2dcbf
Implement DIOCGDISKINFO for xbd disk driver.
2009-06-15 21:11:24 +00:00
cegger
7ed6826c06
Apply hw workaround required for all SB600 revisions and SB700 revisions
...
A12 and A13 to avoid USB subsystem hang symptom. The USB subsystem hang
symptom is observed when the system has multiple USB devices connected to it
or one USB device is often re-connected. In some cases a USB hub may be
required to observe this symptom.
This patch works around the problem by correcting the internal register setting
that will help by changing the behavior of the internal logic to avoid the
USB subsystem hang issue. The change in the behavior of the logic does not
impact the normal operation of the USB subsystem.
This fix has been discussed, developped, reviewed, polished up
and tested on current-users by several people. Thread starts at:
http://mail-index.netbsd.org/current-users/2009/05/17/msg009460.html
2009-06-15 09:18:45 +00:00
rjs
35a0849703
Fix CVS header.
2009-06-14 23:20:35 +00:00
yamt
b45868677f
bump the kernel version to 5.99.14 for the vm_anon change.
2009-06-14 21:37:06 +00:00
yamt
3685fcc8e8
change the order of members of vm_anon for better packing.
2009-06-14 21:36:03 +00:00
pgoyette
c1af07659e
Update {get,set}_limits() routines.
2009-06-14 19:44:46 +00:00
pgoyette
45f4717820
Ooops - {get,set}_limits() need to be sensor-specific. Pass an extra
...
argument to them to identify the individual sensor being processed.
2009-06-14 19:43:12 +00:00
kardel
a888100516
Make PPS work with fast time counters (> 2GHz)
...
by making the pps count time stamp and the update
time stamp u_int64.
The time delta between two PPS events can now
be correctly calculated avoiding any unaccounted
for wraps with 32-bit counters.
2009-06-14 13:16:32 +00:00
cegger
051c4248a9
use __arraycount
2009-06-14 06:24:14 +00:00
pgoyette
3441b533fb
No need to set flag=I2C_F_POLL when releasing the bus. Pointed out
...
in private Email from njoly@
2009-06-13 20:27:19 +00:00
tonnerre
8faae88204
Add support for Swiss german kezboard to wskbd.
...
Contributed by Marc Balmer.
2009-06-13 20:21:56 +00:00
pgoyette
5fb0a3a4d7
Update sdtemp driver to use sysmon_envsys(9) for setting temp sensor
...
limits. Remove sysctl(9) interface to the limit registers since it's
no longer needed.
2009-06-13 19:02:33 +00:00
pgoyette
c235777756
Add capability to send sensor limit values to the driver so they can
...
be programmed into device registers. This way we can let the hardware
help us out instead of having to always compare the value against each
limit. (Driver updates for some sensors to take advantage of this
capability will be forthcoming.)
2009-06-13 16:08:25 +00:00
tsutsui
9c2e10416b
Apply fixes from jmcneill@ for PR port-i386/38729
...
(ACPI kernel booted under qemu cannot detect devices):
- make MP SCANPCI function for ACPI_SCANPCI and MPBIOS_SCANPCI
return a number of attached PCI busses
- if no valid PCI busses are attached in the MP SCANPCI function,
try to probe and attach pci0 at mainbus as well as kernels
with no SCANPCI options
"Feel free to check it in" from jmcneill@.
Tested in pkgsrc qemu-0.9.1 (both i386 and x86_64) on NetBSD/i386.
Note original jmcneill's patch was posted on March:
http://mail-index.NetBSD.org/port-i386/2009/03/24/msg001281.html
and I also applied it to amd64:
http://mail-index.NetBSD.org/port-i386/2009/03/24/msg001283.html
but x86 MP attach functions have been reorganized by dyoung@ on April:
http://mail-index.NetBSD.org/source-changes/2009/04/17/msg219992.html
so I've modified the original patches to adapt the changes.
(mpacpi_scan_pci() and mpbios_scan_pci() have been merged into
common mp_pci_scan() in new arch/x86/x86/mp.c)
For netbsd-5 and netbsd-5-0 branches, the original patches should be
applied cleanly, and they have been tested by abs@ on a selection of
i386 boxes and in qemu.
2009-06-13 13:35:11 +00:00
njoly
e83f57203c
Update V4L2_CAP_BITMASK to enable all known bits.
2009-06-13 10:05:55 +00:00
rjs
dc974f0b47
Regen.
2009-06-12 23:05:34 +00:00
rjs
416c60b3b1
Add some more Marvell devices.
2009-06-12 23:00:24 +00:00
plunky
6e74f4625b
Writes on the controlling tty were not being awoken from blocks,
...
use the correct condvar to make this happen.
this fixes PR/41566
2009-06-12 09:26:50 +00:00
cegger
acf99ccda1
use __arraycount(). Same object code generated.
2009-06-12 08:33:41 +00:00
nisimura
1d622581c6
- be more cautious before turning on Dcache.
...
- add lines to determine platform identification .
- fix a little ANSI style conversion breakage.
2009-06-12 00:24:33 +00:00
njoly
198ddcca4b
In sendmsg(2), do copy the msghdr structure before trying to use it.
2009-06-11 19:57:58 +00:00
tsutsui
2d503ac381
Call cache_flush_all() in getcpuinfo().
...
Not sure if it's actually necessary, but it fixes panic
"makememarr: cannot find "memory" node" on RT626 HyperSPARC.
Ok'ed by martin@.
2009-06-11 14:42:47 +00:00
cegger
eb7545174c
regen.
2009-06-11 12:43:13 +00:00
cegger
db97db6aee
add ADP2, Marvell and Triones devices.
...
Taken from mvsata diff from Kiyohara Takashi, resolved apply conflicts.
2009-06-11 12:42:31 +00:00
cegger
535480ccf0
Attach Marvel 88SE6121 SATA II controller on ahci.
...
W/o this, it attaches on pciide.
2009-06-11 11:02:11 +00:00
yamt
1a7984dbf3
do_posix_fadvise:
...
- deactivate pages on POSIX_FADV_DONTNEED.
- more sanity checks. fix a panic in genfs_getpages
introduced by the previous (rev.1.15).
2009-06-10 23:48:10 +00:00
yamt
724fd50176
don't make F_GETLK or the common case of F_UNLCK fail for per-user limit.
2009-06-10 22:34:35 +00:00
yamt
5216f042b0
lf_split: cv_destroy a condvar before clobbering it.
2009-06-10 22:23:15 +00:00
pooka
ab415fb3d5
MAXUSERS comes from Makefile.rump
2009-06-10 20:54:55 +00:00
pooka
f4b516bb14
libkern is fully included in rumpkern, no need for cherry-picking
...
modules elsewhere.
2009-06-10 20:50:51 +00:00
pooka
98c3c6a157
indicate function of previous in comment
2009-06-10 18:36:33 +00:00
pooka
1c083dc02b
Add rumpuser_dprintf(), which can be used as a "safe" debug print
...
routine -- the kernel printf does a lot of crud which is not always
nice and dandy especially when debugging locks.
2009-06-10 18:34:49 +00:00
pooka
1e115afaf0
Attempt bailout if config_attach_pseudo() fails. Otherwise, a few
...
moments later, we'll take a fatal plunge because sc_dev is null.
2009-06-10 14:17:13 +00:00
pooka
3178a63559
Support VOP_MKNOD. This is so that components which need device
...
nodes (e.g. raidframe) can create them.
2009-06-10 12:12:23 +00:00
he
4ffd944fac
Add a dummy uvm_readahead() function, to fix build issues after it
...
recently got added to the kernel.
OK'ed by pooka@
2009-06-10 11:41:43 +00:00
yamt
1763b7795c
do_posix_fadvise: on POSIX_FADV_WILLNEED, start prefeching of object's pages.
2009-06-10 01:56:34 +00:00
yamt
16babfa6fb
on MADV_WILLNEED, start prefetching backing object's pages.
2009-06-10 01:55:33 +00:00
yamt
c87ccfd341
- add a function to perform explicit read-ahead.
...
- ra_startio: tweak locking a bit.
2009-06-10 01:54:08 +00:00
pooka
ed545b8d69
check that interlock isn't null before releasing it
2009-06-09 23:26:19 +00:00
yamt
8bd8f20d7b
comment style. no functional change.
2009-06-09 22:21:54 +00:00
jnemeth
cbd3656645
Add the MODCTL_NO_PROP flag to tell the kernel to ignore <module>.prop.
...
Add the '-P' option to modload(8) to set this flag.
2009-06-09 20:35:02 +00:00
jnemeth
32b670979a
Add code to merge the modload "command line" with <module>.prop.
2009-06-09 19:09:03 +00:00
pooka
4c54895067
Checkpoint a bunch of work-in-progress: support for disk devices
...
and raidframe. Raidframe works well enough to configure a raid in
the rump kernel, but the usage is "interesting" (pending some other
changes/cleanup from other parts in my tree).
These are not built by default yet.
2009-06-09 16:16:14 +00:00
cegger
b43858307a
Fix crash on Dom0 resume.
...
A xencons interrupt may occur before xencons device has been resumed.
Fix tested in jym-xensuspend branch.
2009-06-09 16:08:00 +00:00
pooka
698910a47a
simplelocks have been supported in rump for a while, allow their use.
2009-06-09 15:53:05 +00:00
pooka
162fa5811a
Nuke some bss stuff which is coming from vfs_bio via rumpvfs.
2009-06-09 14:30:06 +00:00
pooka
99616de8dc
Put some spunk into deadfs.
2009-06-09 14:20:42 +00:00
he
5cd328a195
Add -lprop to the ramdisk build, so that it builds again, due to
...
recent changes in newfs. Bump the ramdisk size from 1536 to 1800
blocks as a consequence.
2009-06-09 11:06:09 +00:00
tsutsui
95b2850b42
Split device_t/softc.
...
Tested on:
emuxki0 at pci2 dev 7 function 0: Creative Labs SBLive! EMU 10000
(audio multimedia, revision 0x05)
2009-06-09 11:01:18 +00:00
uwe
4872798d7b
In pmap_protect(), compute the bitmask to set in the ptes only once, instead
...
of every iteration. From OpenBSD.
2009-06-09 02:38:27 +00:00
uwe
77f067a4b0
Fix logic error in copyinstr() when deciding whether to return EFAULT
...
or ENAMETOOLONG.
From OpenBSD revision 1.9 by miod@
2009-06-09 01:35:11 +00:00
uwe
ee5edddfc3
Spell "handler" correctly.
2009-06-09 00:24:51 +00:00
jakllsch
5aaada1bec
Add atap_max_lba member to ataparams for LBA48 Maximum Address. From OpenBSD.
...
While here, renumber some __reserved member names to be sequential.
Also, add a member for the World Wide Name.
Use atap_max_lba in wd.c instead of offsets into a __reserved member.
2009-06-08 15:09:35 +00:00
njoly
add168f4d8
Fix defines against multiple inclusion protection (s/I386/AMD64).
2009-06-08 14:42:10 +00:00
njoly
e1a778e452
Regen for rt_queueinfo addition.
2009-06-08 13:41:17 +00:00
njoly
9c8407cd8f
Add rt_queueinfo(2) support.
2009-06-08 13:34:23 +00:00
njoly
d5203d274e
Regen for rt_queueinfo(2) update.
2009-06-08 13:29:00 +00:00
njoly
5bf0ee73ce
Update rt_queueinfo(2) definition, and kill a corresponding comment.
2009-06-08 13:26:57 +00:00
njoly
a9b9e78076
Small rt_queueinfo(2) update, to require a linux_siginfo structure.
...
While here, cleanup ifdef out argument types.
2009-06-08 13:23:16 +00:00
pgoyette
260b6fd907
Correct typo in last so we can #undef the correct macro.
2009-06-08 13:06:33 +00:00
njoly
55d5cc9d0d
Various compat linux siginfo fixes.
...
- alpha: add missing _uid member to SIGCHLD structure.
- amd64: add missing typedef, and fix padding size.
- arm: add missing linux_siginfo definition.
2009-06-08 11:46:06 +00:00
cegger
b63f2e1e6a
from sys/arch/x86/x86/cpu.c:
...
Implement -1 (RB_MD1) for physical CPUs in the Dom0.
2009-06-08 09:32:33 +00:00
pgoyette
f7ad703892
General clean-up and some restructuring of event handling. This is a
...
precursor to letting sensor drivers actually exchange limits/thresholds
with user-land.
2009-06-08 00:55:35 +00:00
yamt
5c0faad4bd
fd_free: fix posix advisory locks. PR/41549 from HITOSHI OSADA.
2009-06-08 00:19:56 +00:00
martin
ced2993fec
Do not use the same trampoline for cpu_setfunc and cpu_lwp_fork, the
...
latter does a lot more work.
2009-06-07 23:21:26 +00:00