Commit Graph

193208 Commits

Author SHA1 Message Date
jruoho
22be5f8eda Remove phony spl(9). XXX: This driver needs to be cleaned up. 2010-08-24 14:53:45 +00:00
pgoyette
0285d73f87 Improve formatting of column-aligned output, as discussed on current-users. 2010-08-24 13:35:32 +00:00
pooka
cf0a627569 whoopsie, need to commit this as part of scsitest 2010-08-24 13:19:04 +00:00
christos
a5fe3c0d6f Enable dnssec, and populate managed-keys.bind 2010-08-24 13:18:58 +00:00
christos
24854e5e7c Add directory for bind's managed keys. 2010-08-24 13:18:04 +00:00
macallan
57e00fd8e6 re-initialize the DAC when re-entering terminal emulation mode 2010-08-24 12:47:17 +00:00
christos
389aa89258 PR/43795: Guy Harris: describe return values and error handling. 2010-08-24 12:05:01 +00:00
pooka
c9a399cbba scsipi test 2010-08-24 11:31:48 +00:00
pooka
5335766609 Test for cache sync noises after disk is ejected.
test case for PR kern/43785
2010-08-24 11:29:45 +00:00
pooka
e0b73aff77 +rumpdev_scsitest 2010-08-24 11:26:27 +00:00
pooka
64d9536df5 Implement enough of a SCSI target to be able to perform tests on
our SCSIPI driver stack.  Currently we pretend to be a single CD
controller with an optional host file as the image, but I guess
the sky's the limit.

dmesg porn:
NetBSD 5.99.39 (RUMP-ROAST) #0: Mon Aug 23 11:38:16 CEST 2010
        pooka@pain-rustique.localhost:/usr/allsrc/src/sys/rump/librump/rumpkern
total memory = unlimited (host limit)
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "rumpclk" frequency 100 Hz quality 0
root file system type: rumpfs
mainbus0 (root)
scsitest0 at mainbus0
scsibus0 at scsitest0: 2 targets, 1 lun per target
cd0 at scsibus0 target 1 lun 0: <RUMPHOBO, It's a LIE, 0.00> cdrom removable
2010-08-24 11:23:35 +00:00
jruoho
465d00f837 As all reported P-state failures so far have centered around the status-
check (today it was christos@' laptop), follow Linux and disable this rather
expensive sanity-check for the time being. A hypothesis about the cause of
the failures relates to the absence of cross-CPU coordination in the current
implementation.
2010-08-24 10:29:53 +00:00
cegger
188054e855 Backport improvements from FreeBSD.
Introduce two new options:
-f : force root node
-i : set priority budget where supported
developped, tested and reviewed by kiyohara@ and me.
2010-08-24 08:41:24 +00:00
jruoho
42a7d04b04 Add native support for AMD family 0Fh processors. This is the furthest we
will go backwards; K7 will not be supported already due doubts about
availability and reliability of ACPI during that era. Some unfortunate code
duplication is present (but not overly much). Thanks to cegger@ and jakllsch@
for patiently testing this.
2010-08-24 07:27:59 +00:00
jruoho
dfca43fdb9 Few small nits. 2010-08-24 05:34:15 +00:00
pgoyette
4cbc14d2b2 Initialize acpi_force_load so that it gets allocated in the data segment
rather than BSS.  This lets you change its value with 'gdb --write'.

OK jruoho@
2010-08-24 04:36:02 +00:00
jakllsch
c77ac47598 Make the EtherIP in IPv6 input path work.
XXX: Figure out if we really need a separate protosw for IPv6.
2010-08-24 00:07:00 +00:00
pooka
6c43668aa2 update component lists: scsipi is independent of umass now 2010-08-23 20:56:27 +00:00
pooka
b7e34ac068 add rumpdev_scsipi 2010-08-23 20:53:41 +00:00
christos
6a6858c912 Fix issues with stack allocation and pax aslr:
- since the size is unsigned, don't check just that it is > 0, but limit
  it to the MAXSSIZ
- if the stack size is reduced because of aslr, make sure we reduce the
  actual allocation by the same size so that the size does not wrap around.
NB: Must be pulled up to 5.x!
2010-08-23 20:53:08 +00:00
pooka
4d40787853 Split scsipi out of librumpdev_umass into librumpdev_scsipi. umass
still compile time depends on scsipi in the sense of "ifdef
NATAPIBLUES", but I'm not going to fix that now.
2010-08-23 20:49:53 +00:00
pooka
f1ac9b979d Convert one second(!!) delay to kpause. It was originally done
from a callout, so delay was the only option (in those days).  Then
the caller was converted to a thread, but left as a delay.  It
still may block the scsipi completion thread processing (so I
seriously doubt this code path is executed very often on a live
system).
2010-08-23 20:01:16 +00:00
jruoho
4f4a7a5d46 Other entry points beyond x86_cpu_idle_halt() may use HLT as the
idle-mechanism. Send an IPI also for these in cpu_need_resched().
2010-08-23 16:20:44 +00:00
joerg
09dba18788 Simplify. 2010-08-23 16:03:03 +00:00
pgoyette
85e292c065 Initialize the new kernconfig_lock for rump kernels before it can be used.
Should fix the rather massive breakage in the automated test runs, too.
Sorry for breaking rump.
2010-08-23 14:00:40 +00:00
pooka
b846a386dc Add a delay between startup of pinger and pingee here too.
XXX: there's apparently some race condition which appears to trigger
if a broadcast arp arrives around the same time as the arpwhohas
is sent.  This causes original packet to never be sent by the
arpwhohas requestor.  If this rings a bell to someone, please let
me know.
2010-08-23 10:49:27 +00:00
jnemeth
08e3aa9c11 fix build failure -- correct printf sizes 2010-08-23 06:01:04 +00:00
jakllsch
785fb07d78 Move FWH chip detection area entirely within the mapping for
the smaller i82802AB. This is needed as not all BIOSes set a
larger-than-necessary decode range.
2010-08-23 02:57:19 +00:00
wiz
578d32c924 Add more articles and more formatting. 2010-08-22 20:36:09 +00:00
rmind
2e6f2099c6 Import NPF - a packet filter. Some features:
- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
  Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
  supporting generic RISC-like and specific CISC-like instructions for
  common patterns (e.g. IPv4 address matching).  See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@
2010-08-22 18:56:18 +00:00
christos
00defba087 Adapt to new module locking regime. Is that even right? 2010-08-22 18:01:01 +00:00
jruoho
f0bf6761b2 Use acpi_timer_read_fast() instead of acpi_timer_read_safe(). 2010-08-22 17:45:48 +00:00
pgoyette
e0050f81eb Only define kernconfig_lock routines for _KERNEL
Fixes i386 build problem reported by Juergen Hannken-Illjes.
2010-08-22 14:12:10 +00:00
jruoho
89188f9d4a Still DELAY(9) a little even when we do not do the status-check. 2010-08-22 04:42:57 +00:00
perry
7e5b4620db add bsd.subdir.mk 2010-08-22 02:21:31 +00:00
perry
9573f66f1d RCSIds 2010-08-22 02:19:07 +00:00
perry
6cf2c06dc8 add 03.shell 2010-08-22 02:16:17 +00:00
perry
ee256018ca build the tutoral 2010-08-22 02:09:36 +00:00
perry
32b1d940e0 Extremely extensive updates.
This document should now serve as a reasonable tutorial for the
modern POSIX shell. Comments and additional fixes for mistakes I may
have made are solicited.
2010-08-22 02:03:06 +00:00
perry
62dd025e10 Revive S.R. Bourne's original tutorial on using the Bourne Shell.
This initial commit consists of the files as they existed in 4.4BSD,
with the copyrights altered to reflect the subsequent BSD relicensing.
2010-08-22 01:58:16 +00:00
jmcneill
49c09edb54 Don't put devices in the ignored IDs list just because no driver exists. 2010-08-22 00:39:08 +00:00
agc
67effcdd3a avoid false positives when matching a (non-existent) encryption subkey
use debugging output to point to the matching key
2010-08-21 19:00:43 +00:00
jruoho
22b91511fc After discussion with jakllsch@ and jmcneill@, revert the previous and only
do the status-check when the comparison value reported by BIOS is not zero.
The uncertainty noted in the previous commit still applies. But if we ever
see a timeout again, it will likely be either a firmware bug or a special
case like the Intel Turbo Boost.
2010-08-21 18:25:45 +00:00
jmcneill
2055dab9df I guess people still attach com & lpt to isa, so don't skip legacy devices. 2010-08-21 17:27:20 +00:00
jmcneill
7ae909373c If ACPI is active and the FADT reports no legacy devices present, set
the 'no-legacy-devices' property to true on isa0.
2010-08-21 17:10:03 +00:00
jmcneill
cecc6dab21 If the 'no-legacy-devices' property is present and true, skip device
enumeration.
2010-08-21 17:08:15 +00:00
jmcneill
c5ec9c2c52 in acpibut_notify_handler, suppress 'unknown event' messages for
ACPI_NOTIFY_DEVICE_WAKE. Control method power and sleep buttons can
generate this event upon waking from G1 sleep to indicate that it was
responsible for waking the system.
2010-08-21 16:36:15 +00:00
tron
90493f6f08 Add support for parsing the data format "@<seconds since epoch>" e.g.
"@735275209" for "Tue Apr 20 03:06:49 UTC 1993". This change was inspired
by coreutil's "date" utility.
2010-08-21 16:17:40 +00:00
jruoho
2f766899a8 When we do the sanity check that a P- or T-state transition was successful,
compare also against the control-field. There appears to be many BIOSes in
the field that report a zero value in the status-field. It is unclear whether
this should be taken as a hint that the status-check is not necessary also
during P-state transitions. If we still see timeouts (EAGAIN), this should
be reverted and the status-check should be bypassed if ps->ps_status is 0.
2010-08-21 15:37:35 +00:00
pgoyette
bb793fe2e6 Fix botched update. 2010-08-21 13:57:41 +00:00