Commit Graph

226226 Commits

Author SHA1 Message Date
christos a3979e7b1b If we are autoconfiguring root, then only change the booted_device if
we booted from one of the components of the root raid set. This allows
us to boot from other media, without forcing the found raid to always
be root. Allow the old behavior with RAIDFRAME_FORCE_ROOT.
XXX: cpu_rootconf() is called twice now, which prints the booted device
message twice. Perhaps we can remember that cpu_rootconf has been called
and avoid calling it twice to avoid that.
2014-04-02 02:17:01 +00:00
christos 563eea7895 - tidy up debugging 2014-04-02 02:14:08 +00:00
riastradh 93797f6cf7 Install compositeext.h and shmint.h from X.org. 2014-04-02 01:22:11 +00:00
ozaki-r 638f5cfbce Get rid of a wrong comma 2014-04-02 00:46:11 +00:00
buhrow ac40c6e642 Checking in changes to improve error handling. Specifically:
- if commands timeout, clear the queues to the the card and perform a soft
reset on the LSI hardware since when these timeouts occur, the LSI firmware
is not graceful about recovering at all.

- Recover gracefully from more kinds of errors using the same recovery
mechanism listed above.

Also, implement mpt_ioctl() to handle bus reset requests from scsictl(8).
2014-04-01 23:57:54 +00:00
christos 681726d876 add kvno 2014-04-01 21:40:46 +00:00
christos dcd0e19d19 add glue and man 2014-04-01 21:38:44 +00:00
christos eac602f603 add kvno 2014-04-01 21:38:26 +00:00
martin 2f8231a7ba Add two missing include files 2014-04-01 19:13:31 +00:00
christos ff9eccbdec add -g to LINTFLAGS 2014-04-01 19:12:37 +00:00
christos 6449a2097b default to something reasonable (like the interactive mode does) instead
of 0 when -1 is specified for the start or size.
2014-04-01 19:08:48 +00:00
matt 0345241f46 For ARM_MMU_EXTENDED, if the page being mapped asked for EXEC but is not EXEC,
sync it.
2014-04-01 18:01:45 +00:00
matt f358de1c61 In prefetch_abort, call uvm_fault with VM_PROT_EXEC 2014-04-01 18:00:42 +00:00
riastradh f8b17fdc8b Remove vestigial modules/apple_smc/apple_smc.ioconf. 2014-04-01 17:52:26 +00:00
riastradh f58fb90d2f Fix unused variable warning in non-modular apple_smc build. 2014-04-01 17:49:40 +00:00
riastradh 46e38060ce Fix apple_smc config in conf/files. 2014-04-01 17:49:30 +00:00
riastradh 7e61e435b3 Fix copypasta error in apple_smc_write_key_4: uint32_t, not uint16_t. 2014-04-01 17:49:17 +00:00
riastradh 81f56cd2a7 Polish the Apple SMC code with commentary and little fixes. 2014-04-01 17:49:05 +00:00
riastradh 0f339fa6a5 Rework Apple SMC device attachment goo again.
Less bookkeeping at the expense of iteration over all devices when
rescanning applesmc.
2014-04-01 17:48:52 +00:00
riastradh 9456e37730 Rework Apple SMC attachment goo and split into multiple modules.
The four modules are apple_smc for the core functions, apple_smc_acpi
for attachment at acpi, and apple_smc_fan & apple_smc_temp for stuff
on the SMC.

Seems like there's a lot more bookkeeping necessary to maintain
children of an applesmc device implemented by loadable modules.
Maybe there's a better way I just haven't figured out yet.
2014-04-01 17:48:39 +00:00
riastradh 0396c57641 First draft of drivers for the Apple System Management Controller.
Device interface derived by reading the Linux driver source code and
<http:///www.parhelia.ch/blog/statics/k3_keys.html> as of 2012-12-05.

Includes support for attaching fan and temperature sensors to sysmon.
No accelerometer yet.

Compile-tested only, based on some run-testing of experiments from
userland.  Module attachment is not quite finished, so it won't work
yet.
2014-04-01 17:47:36 +00:00
kardel b538a8f986 remove stray 'return 0;' that effectively disabled atouint().
Hi Christos!
2014-04-01 17:34:44 +00:00
jakllsch ade3ce5326 Add NetBSD-specific adjustments to gnu-efi. 2014-04-01 16:22:45 +00:00
jakllsch b2c829d73a Import gnu-efi-3.0u 2014-04-01 16:16:05 +00:00
jakllsch 9564062d7e Add gnu-efi2netbsd script to help import the BSD-licensed parts of gnu-efi. 2014-04-01 16:10:56 +00:00
christos be69e7dad5 regen 2014-04-01 15:35:57 +00:00
christos 0059a4baa6 avoid making too large diffs by restoring length in non-debugging mode to 10 2014-04-01 15:35:41 +00:00
christos fc13ff6c20 - print ascii if debug
- fold to 8 columns
- don't exit with random values
- change sccs magic in the generated header file
2014-04-01 15:33:22 +00:00
riastradh 82782468f9 Fix volatile qualifiers in drm2 <linux/atomic.h>. 2014-04-01 15:28:52 +00:00
riastradh 53da951f61 Explicitly kassert the precondition c_done != 0 in _completion_claim. 2014-04-01 15:19:37 +00:00
christos 8ff570d103 Remove SCCS prefix from RCS string! 2014-04-01 15:19:29 +00:00
riastradh 72c8acb6af Move <linux/completion.h> from drm2 to external/bsd/common. 2014-04-01 15:12:38 +00:00
riastradh fb4363c7d3 kernel.h and list.h have already been moved to external/bsd/common.
With apologies to future revision control systems for not making it
clear this is effectively a rename.
2014-04-01 15:10:23 +00:00
riastradh 579dbc3bf5 Make drmkms find header files from sys/external/bsd/common. 2014-04-01 15:08:58 +00:00
riastradh f2bbabef07 Merge changes from drm2 <linux/kernel.h> to common <linux/kernel.h>. 2014-04-01 14:57:58 +00:00
riastradh b983224973 Add some more Linux completion operations.
Adapted from a patch by nick@.
2014-04-01 14:55:20 +00:00
christos 8750e04635 Check for bread errors before we do the size check. Otherwise we de-reference
NULL...
2014-04-01 14:28:17 +00:00
martin 2669e011af Seems we use MBR labels 2014-04-01 14:09:14 +00:00
martin 2ed0d22319 Rearrange order of includes 2014-04-01 14:08:50 +00:00
martin e1fb7646e5 Do not set MDSET_RELEASEDIR - need to revisit 2014-04-01 14:06:38 +00:00
pooka d610791504 Wrap ipflow_create() & ip6flow_create() in kernel lock. Prevents the
interrupt side on another core from seeing the situation while the ipflow
is being modified.
2014-04-01 13:11:44 +00:00
ozaki-r 3c88241678 Add a missing comma 2014-04-01 12:57:46 +00:00
dsl 972ec8228f Revert most of the machdep sysctls to 32bit 2014-04-01 07:16:18 +00:00
skrll 1f54270ac7 Trailing whitespace. 2014-04-01 06:55:29 +00:00
skrll 710e157709 Remove unnecessary { } around code block. No functional change. 2014-04-01 05:37:35 +00:00
uwe 29b3420ba5 Drop sci0 from "floppy" case too. 2014-04-01 01:10:14 +00:00
pettai 3b429a7601 Import mDNSResponder-320.16, merge, fix conflicts 2014-03-31 23:26:30 +00:00
pettai e28a8d2c02 Import mDNSResponder-320.16, as previous import (258.14) is quite old 2014-03-31 23:21:21 +00:00
christos 26c6de4318 fix eisa_intr_string 2014-03-31 20:51:20 +00:00
christos a28483c355 adjust to new pci_intr_string signature 2014-03-31 20:46:41 +00:00