Commit Graph

77089 Commits

Author SHA1 Message Date
drochner 278cf2d92e add definitions for B460800 and B921600, fixes PR kern/29478 by
Michael Eriksson
2005-07-20 11:06:38 +00:00
he 4047396e46 Make this build without INET6. 2005-07-20 08:05:43 +00:00
junyoung e61aaad7f7 Add a compile time switch DISABLE_KEYPRESS for those who want unattended boot. 2005-07-20 03:27:51 +00:00
macallan 829d7cdb68 use zstty_get_tty_from_dev() instead of using a zstty_softc lookalike hack,
same as in sparc/dev/zs.c
2005-07-19 17:24:08 +00:00
christos 89940190d0 Implement PMTU checks from:
http://www.gont.com.ar/drafts/icmp-attacks-against-tcp.html

1. Don't act on ICMP-need-frag immediately if adhoc checks on the
advertised MTU fail. The MTU update is delayed until a TCP retransmit
happens.
2. Ignore ICMP Source Quench messages meant for TCP connections.

From OpenBSD.
2005-07-19 17:00:02 +00:00
gdt b0239c745e Add PR_PURGEIF flag for protocols to indicate that the protocol might
store a struct ifnet *, and define it for udp/tcp/rawip for INET and
INET6.  When deleting a struct ifnet, invoke PRU_PURGEIF on all
protocols marked with PR_PURGEIF.  Closes PR kern/29580 (mine).
2005-07-19 12:58:24 +00:00
yamt 5923204be0 fix a race by re-checking req_prod when exiting main loop. 2005-07-19 12:20:29 +00:00
yamt 01fa457bff xen_shm_unmap:
- don't try to remove a request twice.
- fix spl/splx mismatch.
2005-07-19 11:09:52 +00:00
yamt 4ff72cab3e xbdback_co_main_loop: don't forget to set xbdi->cont in the case of error. 2005-07-19 09:45:12 +00:00
augustss 2fb6e23d32 Add ral. 2005-07-19 06:45:14 +00:00
christos 2a249fb919 Fix typo in previous [thanks jukka] 2005-07-18 16:36:29 +00:00
christos 98d8ea8729 Fix whitespace issues and use ansi prototypes. 2005-07-18 16:09:37 +00:00
oster 97682553c4 If rf_SubmitReconBuffer indicates the submission was blocked (for
whatever reason), return 0 instead of the default
RF_RECON_READ_STOPPED.  Returning RF_RECON_READ_STOPPED would result
in rf_ContinueReconstructFailedDisk() thinking that the given
component was "done" and breaking out of the main reconstruction loop
far too early.  Reconstruction still worked correctly as long as there
were no errors, but RAIDframe wouldn't be in a position to properly
handle read/write errors during reconstruction.

This fixes the "raidctl's progress bar spins at 0% until
reconstruction finishes" problem.
2005-07-18 15:32:01 +00:00
briggs 2622309630 Update array of software RAID names in ata_raid.c.
Change a boundary check to ensure that we won't accidentally read and use
uninitialized memory if ATA_RAID_TYPE_MAX is updated without updating the
array.
Update comment near ATA_RAID_TYPE_MAX to note that the array in ata_raid.c
should be updated if a new ATA_RAID_TYPE_* is added.
2005-07-18 15:21:48 +00:00
augustss 94b0c8c5b7 Add uipaq driver. 2005-07-18 12:02:21 +00:00
augustss 491407a45e This file is suitable for inclusion (by copying or 'include') in a
kernel config file.  It contains all USB drivers.
2005-07-18 11:57:41 +00:00
augustss 028353b945 Add uipaq(4). From OpenBSD. 2005-07-18 11:36:46 +00:00
augustss 7dd02394b7 Make sure we don't enable host controller interrupts until all
initialization is finished.
2005-07-18 11:08:00 +00:00
junyoung 06e730ed76 More cosmetic changes. 2005-07-17 23:53:57 +00:00
junyoung a226b79f42 Make code prettier. 2005-07-17 23:49:49 +00:00
he d3fc666f98 Make tlp_idle() not be static, so that the newsmips version of the
driver can access that function again.

Approved by thorpej
2005-07-17 18:11:36 +00:00
yamt 01f4919e33 genfs_putpages: don't bother to clean the vnode unless VONWORKLST. 2005-07-17 16:07:19 +00:00
augustss 57ffd27623 Remove obsolete comment about ehci. 2005-07-17 14:53:56 +00:00
yamt 8af42d8d3c ensure that vnodes with dirty pages are always on syncer's queue.
- genfs_putpages: wait for i/o completion of PG_RELEASED/PG_PAGEOUT pages by
  setting "wasclean" false when encountering them.
  suggested by Stephan Uphoff in PR/24596 (1).

- genfs_putpages: write protect pages when cleaning out, if
  we're going to take the vnode off the syncer's queue.
  uvm_fault: don't write-map pages unless its vnode is already on
  the syncer's queue.

  fix PR/24596 (3) but in the different way from the suggested fix.
  (to keep our current behaviour, ie. not to require explicit msync.
  discussed on tech-kern@.)

- genfs_putpages: don't mistakenly take a vnode off the queue
  by introducing a generation number in genfs_node.
  genfs_getpages: increment the generation number.
  suggested by Stephan Uphoff in PR/24596 (2).

- add some assertions.
2005-07-17 12:27:47 +00:00
yamt 2a6dc9d02d - introduce PGO_NOBLOCKALLOC and use it for ubc mapping
to prevent unnecessary block allocations in the case that
  page size > block size.

- ufs_balloc_range: use VM_PROT_WRITE+PGO_NOBLOCKALLOC rather than
  VM_PROT_READ.
2005-07-17 09:13:35 +00:00
tls 0ac3367f2a Improvements to xbdback (the domain 0 driver that provides "xbd" virtual
disks to other domains) from Jed Davis, <jld@panix.com>:

	* Issue multiple requests when necessary rather than
	  assuming that arbitrary requests can be mapped into single
	  contiguous virtual address ranges.

	* Don't assume that all data for a request is consecutive
	  in memory.  With some client OSes, it's not.

	The above two changes fix data corruption issues with Linux
	clients with certain filesystem block sizes.

	* Gracefully handle memory or pool allocation failures after
	  beginning to handle a request from the ring.

	* Merge contiguous requests to avoid the "64K turns into 44K + 20K
	  and doubles the transactions per second at the disk" problem
	  caused by the 11-page limit caused by the structure of Xen
	  ring entries.  This causes a very slight performance decrease
	  for sequential 64K I/O if the disk is not already saturated with
	  requests (about 1%) but halves the transactions per second we
	  hit the disk with -- or better.  It even compensates for bizarre
	  Linux behaviour like breaking long requests up into 5.5K pieces.

	* Probably some stuff I forgot to mention.

Disk throughput (though not latency) is now much, much closer to the
"raw hardware" case than it was before.
2005-07-17 08:23:43 +00:00
christos 210844e5e7 Increase the default datasize limit to 2GB. 2005-07-17 05:29:54 +00:00
christos 9213de1869 catch up with verified exec defopt changes. 2005-07-17 05:22:34 +00:00
rpaulo ca2db1fe2b If the DEC board name is not known, remove the leading whitespace in
sc_name.
This closes PR#30458.

ok'ed Jason Thorpe.
2005-07-17 00:44:13 +00:00
hubertf 673730506c Add support for reading cloop2 compressed filesystem image,
enable by putting VND_COMPRESSION into kernel config file.
Written by Cliff Wright, polished up slightly by me.
2005-07-17 00:08:27 +00:00
wiz beb8063c6a Remove duplicate IPSEC_NAT_T line introduced in previous. 2005-07-16 23:20:00 +00:00
christos 15d0a3d10e Say what sbp is. 2005-07-16 22:54:34 +00:00
christos b5890013d6 Defopt VERIFIED_EXEC* 2005-07-16 22:50:15 +00:00
christos 1510fe1543 defopt verified_exec. 2005-07-16 22:47:18 +00:00
christos da48256d5a Don't depend on #ifdef VERIFIED_EXEC 2005-07-16 22:44:59 +00:00
christos ba9d68d01a Add __UNCONST. 2005-07-16 21:59:12 +00:00
macallan 4adcd89999 added dbri audio driver 2005-07-16 19:02:45 +00:00
macallan 3f858509a1 add dbri audio driver 2005-07-16 19:00:39 +00:00
macallan 71b0921a17 driver for the audio part of SUNW,DBRI ISDN/audio controllers 2005-07-16 18:58:49 +00:00
christos ec94556f97 Revert previous; this needs to be fixed differently. 2005-07-16 17:53:36 +00:00
christos 94087acf22 Don't leak kernel external variables to userland. This file is included
from <sys/sysctl.h>.
2005-07-16 17:50:26 +00:00
christos d4ddc2a3d4 Don't define __indr_reference() for lint. 2005-07-16 17:41:05 +00:00
uwe 065e2422b3 Match HP 620LX. Tested by Christer Andersson.
XXX: platid_mask_MACH_HP_LX also matches 360LX.  It's not confirmed
whether touch panel in 360LX is connected in the same way.  We may
need to regroup platid masks.
2005-07-16 16:36:23 +00:00
rtr c19cae9065 change output from "rogue" to "quirks apply" - resolves pr#25387 2005-07-16 05:12:26 +00:00
yamt d7714c3b58 #ifdef out an unused variable in the case of !WI_DEBUG. 2005-07-16 04:06:39 +00:00
yamt e9e22b28eb genfs_getpages: don't forget to put the vnode onto the syncer's work queue
even in the case of PGO_LOCKED.
2005-07-16 03:54:08 +00:00
grant c48841dcc1 fix typo in comment 2005-07-16 01:54:27 +00:00
he 14bbdadd3d The ANSIfication unconvered that we were calling devlookup() with
an extra argument.  It seems to be correct just to drop the last arg.
2005-07-15 23:15:00 +00:00
he bc29f36ac6 The new function name is (for now, I gather) config_found_sm_loc(),
and not config_found_sm().
2005-07-15 23:10:36 +00:00
dyoung 8e16397dbf Add a sysctl for turning wi(4) debugging on and off.
Do not print the number of tx commands outstanding on entrance to
wi_cmd_intr unless wi_debug > 1.
2005-07-15 22:33:29 +00:00