Commit Graph

212182 Commits

Author SHA1 Message Date
rmind
a7d27dddfd Add a simple test for cdb(5). 2012-07-21 22:22:55 +00:00
rmind
4ad5029440 - npf_fetch_tcpopts: fix off-by-one when validating TCP option length
against the maximum allowed.
- npf_tcp_inwindow: be more liberal with npf_fetch_tcpopts().
- Few minor improvements to npftest.
2012-07-21 17:11:01 +00:00
skrll
0c3c3bcfc7 Provide a method for attachments to specify capabilites. 2012-07-21 16:14:05 +00:00
gdt
b6bb903ff2 Add comments describing parameter handling for ip6_insertfraghdr.
Depending on compiler options, this code can be involved in an
(apparently) spurious compiler warning.  However, it was not
immediately obvious the the compiler was wrong.
2012-07-21 14:52:40 +00:00
martin
8f3c15e2f4 Add a test case that (if gcc supports it on the current arch) to compile
a PIE binary and see if we can run it.
2012-07-21 12:30:55 +00:00
skrll
734571d26b Add support for the ARM1176JZS 2012-07-21 12:19:15 +00:00
para
7e85a4e1d1 split allocation lookup table to decrease overall memory used
making allocator more flexible for allocations larger then 4kb
move the encoded "size" under DEBUG back to the begining of allocated chunk

no objections on tech-kern@
2012-07-21 11:45:04 +00:00
manu
075ba0e590 - Fix same vnodes associated with multiple cookies
The scheme used to retreive known nodes on lookup was flawed, as it only
used parent and name. This produced a different cookie for the same file
if it was renamed, when looking up ../ or when dealing with multiple files
associated with the same name through link(2).

We therefore abandon the use of node name and introduce hashed lists of
inodes. This causes a huge rewrite of reclaim code, which do not attempt
to keep parents allocated until all their children are reclaimed

- Fix race conditions in reclaim
There are a few situations where we issue multiple FUSE operations for
a PUFFS operation. On reclaim, we therefore have to wait for all FUSE
operation to complete, not just the current exchanges. We do this by
introducing node reference count with node_ref() and node_rele().

- Detect data loss caused by FAF
VOP_PUTPAGES causes FAF writes where the kernel does not check the
operation result. At least issue a warning on error.

- Enjoy FAF shortcut on setattr
No need to wait for the result if the kernel does not want it. There is
however an exception for setattr that touch the size, we need to wait
for completion because we have other operations queued for after the
resize.

- Fix fchmod() on write-open file
fchmod() on a node open with write privilege will send setattr with both mode and size set. This confuses some FUSE filesystem. Therefore we send two FUSE operations, one for mode, and one for size.

- Remove node TTL handling for netbsd-5 for simplicity sake. The code
still builds on netbsd-5 but does not have the node TTL feature anymore.
It works fine with kernel support on netbsd-6.
2012-07-21 05:49:42 +00:00
manu
8502ba8ea3 - Improve PUFFS_KFLAG_CACHE_FS_TTL by reclaiming older inactive nodes.
The normal kernel behavior is to retain inactive nodes in the freelist
until it runs out of vnodes. This has some merit for local filesystems,
where the cost of an allocation is about the same as the cost of a
lookup. But that situation is not true for distributed filesystems.
On the other hand, keeping inactive nodes for a long time hold memory
in the file server process, and when the kernel runs out of vnodes, it
produce reclaim avalanches that increase lattency for other operations.

We do not reclaim inactive vnodes immediatly either, as they may be
looked up again shortly. Instead we introduce a grace time and we
reclaim nodes that have been inactive beyond the grace time.

- Fix lookup/reclaim race condition.

The above improvement undercovered a race condition between lookup and
reclaim. If we reclaimed a vnode associated with a userland cookie while
a lookup returning that same cookiewas inprogress, then the kernel ends
up with a vnode associated with a cookie that has been reclaimed in
userland. Next operation on the cookie will crash (or at least confuse)
the filesystem.

We fix this by introducing a lookup count in kernel and userland. On
reclaim, the kernel sends the count, which enable userland to detect
situation where it initiated a lookup that is not completed in kernel.
In such a situation, the reclaim must be ignored, as the node is about
to be looked up again.
2012-07-21 05:17:10 +00:00
kiyohara
983ce0cbdd Add 88F6282 parameters.
Use MVSOC_UNITID_PEX instead of {ORION,KIRKWOOD}_UNITID_PEX.  This PEX UNITID is generic UNITID for MVSoC maybe.
2012-07-21 05:11:45 +00:00
kiyohara
136a67bff5 Add some comments of 88F6282 and TWSI column.
Add IRQ and BASE for TWSI1.
2012-07-21 04:30:34 +00:00
kiyohara
22a31fe368 TWSI size is 0x100. Not 0x1000. 2012-07-21 04:23:16 +00:00
kiyohara
7ae4f9e50f Don't send a stop bit immediately after start bit transmission. 2012-07-21 04:21:14 +00:00
mrg
d6a35d155a now that the task threads are created earlier, move the call to
usb_create_event_thread() back into usb_doattach(), so that eg,
usb_discover() never operates when the root_hub is not setup.

fixes a crash joerg@ reported.
2012-07-20 23:18:02 +00:00
matt
259bfd9a0d Fix botched change to use right value for ipl. Thanks jak 2012-07-20 21:53:57 +00:00
rkujawa
65667a28a9 Preliminary blitter support for Voodoo2. 2012-07-20 21:31:28 +00:00
joerg
e7a9d9d117 Remove a bunch of broken inline qualifiers that break the -O0 build. 2012-07-20 21:18:00 +00:00
wiz
4fe6953778 Whitespace fixes. 2012-07-20 20:48:59 +00:00
ginsbach
02704af418 - Add an ERRORS section rather than incompletely documenting the
possible errno values in the DESCRIPTION section.
2012-07-20 19:44:39 +00:00
tsutsui
cf893e7db3 Switch luna68k wscons framebuffer driver to using rasops(9) APIs instead of
deprecated rcons(4).  This allows "options FONT_foo" in kernel config files.
Mostly taken from OpenBSD/luna88k, but unnecessary MI rasops(9) stuff is
omitted since omrasops.c has own raster wsdisplay_emulops functions.
Tested on LUNA with 4bpp fb and LUNA-II with 1bpp fb.
2012-07-20 19:31:53 +00:00
ginsbach
507b3f0fc0 - Add ERRORS section covering errno values set by inet_ntop() and
inet_pton()
2012-07-20 19:18:08 +00:00
wiz
d569744a1d Remove trailing whitespace. 2012-07-20 18:57:27 +00:00
matt
4777b0bfa8 Use defined(_ARM_ARCH_[67]) 2012-07-20 18:53:34 +00:00
pooka
40247a505b reregen 2012-07-20 18:19:45 +00:00
pooka
4a66f2d3c1 pretty pretty print 2012-07-20 18:19:09 +00:00
pooka
dbb439cc26 unrevert part of 1.119 which should not have been reverted (sys/socket.h) 2012-07-20 18:17:26 +00:00
rkujawa
16cc65796f Also add HISTORY section. 2012-07-20 17:32:40 +00:00
rkujawa
4bce2ade8d Note added Voodoo 1 support. 2012-07-20 17:31:17 +00:00
pooka
1aec8d1196 regen 2012-07-20 16:49:45 +00:00
pooka
0a5a22d26a revert 1.119. theoretically there should be no issue, and i couldn't
find one in practice either, except including rump_syscalls.h from
non-NetBSD now works.

ok christos
2012-07-20 16:44:33 +00:00
matt
e45c4b6661 Use ${_MKTARGET_LINK} and ${_MKTARGET_CREATE} 2012-07-20 15:23:02 +00:00
matt
26d4a1b03a Add missing ${_MKTARGET_LINK} 2012-07-20 14:59:33 +00:00
matt
b710360beb Add <machine/int_mwgwtypes.h> include for intmax_t 2012-07-20 14:53:52 +00:00
matt
885157a5bc Add ${_MKTARGET_LINK} 2012-07-20 14:53:27 +00:00
ginsbach
cf882f9583 - Use .Vt for variable types outside the SYNOPSIS section rather than .Ft
- Use .Fn for function names outside the NAME section rather than .Nm
2012-07-20 14:25:38 +00:00
matt
6772433ece Use the new syscall approach by collapsing fancy/plain variants into just
a single routine.
2012-07-20 14:21:20 +00:00
ginsbach
d91627e978 - Use .Vt for variable types outside the SYNOPSIS section rather than .Ft
- Use .Fn for function names outside the NAME section rather than .Nm
- Mark NULL as a defined value (.Dv)
- New sentence new line
- Don't start sentences with an arugment name
- Use \- rather than a bare - for a minus sign
- Spelling: rightmost
- Stray whitespace
  (Most changes from FreeBSD)
2012-07-20 13:40:58 +00:00
rkujawa
4133c1a7a6 Note added support for 3Dfx Voodoo 1. 2012-07-20 12:05:36 +00:00
rkujawa
e815d3fa04 Add 3Dfx Voodoo Graphics (aka Voodoo 1) support. 2012-07-20 12:03:32 +00:00
matt
588c57c487 Add gpt and cksum(md5/sha1/sum) 2012-07-20 11:20:37 +00:00
matt
cde160c352 Change erase from ^H to ^? (delete). 2012-07-20 11:19:51 +00:00
matt
034cfa7ab5 Add a dependency for Makefile so that when you add device to the Makefile
it will automatically regenerate the device mtree file and cause the ramdisk
to be updated.
2012-07-20 11:19:03 +00:00
pooka
fc1af45c3d Revert rev 1.51. Turns out the defines are still useful when you really
want a local client.
2012-07-20 09:27:11 +00:00
pooka
80ba1511ea Make it possible to select between real and unreal allocators from
make.  Plus some gratuitous renaming.
2012-07-20 09:20:05 +00:00
pooka
cb64a9f93e make unreal allocators work again 2012-07-20 09:11:33 +00:00
pooka
ae8c671bae add simple compat for other OSs to be able to use rump_syscalls.h 2012-07-20 09:10:23 +00:00
pooka
197267af5e regen 2012-07-20 09:03:09 +00:00
pooka
8a830e652c add some network-related compat defs 2012-07-20 09:02:48 +00:00
mrg
2a9a6550b5 - remove some comments about only being relevant for usbmp.
- add documentation for usb_rem_task(), and clean up the task doc in
  general.  be clear about SMP issues for tasks
- bump date
2012-07-20 07:55:44 +00:00
mrg
ed08188f7a usb task fixes, from jared and myself:
- create the task/event threads in usb_attach() so they're more likely
  to be ready when usb_doattach() runs

- move the task thread creation into usb_once_init(), instead of having
  some other method of only creating them once
2012-07-20 07:31:14 +00:00