Commit Graph

239806 Commits

Author SHA1 Message Date
jmcneill
01c706f76f tag kernel as type linux so we get the fdt address in r2 2015-12-26 22:53:52 +00:00
pgoyette
1affdb8f45 Another use-after-free() 2015-12-26 21:50:43 +00:00
plunky
d86700ce1a "ip6addrctl_enable" is now "ip6addrctl", set the default appropriately 2015-12-26 21:05:11 +00:00
macallan
c1cfa97a05 driver for cubietruck's VGA port. Not quite finished but enough to be useful 2015-12-26 16:56:41 +00:00
macallan
d7c9e3d9d2 add access function to get the i2c_controller, awiniic2 is the VGA output's
DDC2 port on cubietruck
2015-12-26 16:54:41 +00:00
macallan
593ac207e3 add registers for TV encoder / VGA output 2015-12-26 16:48:54 +00:00
jnemeth
775c41e25a pretty up attribute display a bit 2015-12-26 13:12:16 +00:00
martin
1c2d0f1f02 Improve "show -a" display: split human readable Type: field from the Type-GUID
to avoid wrapping in the common case; add a human readable Size: display.
2015-12-26 13:08:45 +00:00
pgoyette
0e7668f123 If the "finalizer" should fail to register for any reason, just report
the situation (as a WARNING) and continue.  Don't return the error code
to the caller.  Failure to register should not really happen - if it
does, all we really lose is auto-configuration of raid-sets.
2015-12-26 12:59:00 +00:00
pgoyette
beb5953719 Resolve a use-after-free reference to the softc. From mlelstv@ 2015-12-26 12:25:26 +00:00
wiz
ee3b5f656a Fix typo, from FreeBSD. 2015-12-26 10:34:36 +00:00
pgoyette
7594d8cd11 Detach the {b,c}devsw after obtaining the device major numbers. We'll
re-attach during module initialization.

This enables the atf tests to once again succeed.
2015-12-26 10:22:09 +00:00
pgoyette
5e02285975 Remove the "expected failure" from test n12, and change it not to use
the "-v" command line option to ipf_test.  The -v option causes it to
display additional information, some of which is not fixed (looks like
an internal data structure address).

One fewer on the expected-failures list.  :)
2015-12-26 08:01:58 +00:00
pgoyette
0bfb85b87f For the skipped ARC4 test, don't bother trying to run the test clean-up
code.  It runs rump.halt which returns an error status (since rump was
never started in the first place), and this causes atf to complain about
the cleanup routine's return status, logging the test as a failure!
2015-12-26 07:10:03 +00:00
pgoyette
27d4456b5d Mention modularization of raidframe driver 2015-12-26 01:18:25 +00:00
pgoyette
23c592fb1a Remove local CF_DRIVER_DECL - it is now defined in the raidframe driver's
module initialization code
2015-12-26 01:01:30 +00:00
christos
8a85a7cf2c add fenv. 2015-12-26 01:00:04 +00:00
pgoyette
d3bd91aea2 Descend into new raid module, and update sets lists. 2015-12-26 01:00:01 +00:00
pgoyette
e05b240459 Modularize the raidframe driver, including rework of the unit attach
code to permit detaching (and possible module unloading).  Also,
convert tsleep()/wakeup() locking to use cv_wait_sig()/cv_broadcast().

Tested in non-modular, modular-builtin, and modular-loaded-at-runtime
environments.
2015-12-26 00:58:45 +00:00
christos
0941badb50 PR/50593: dieter roelants: fix unexpanded definitions in xterm(1) 2015-12-25 18:50:48 +00:00
christos
3f78fc62e3 make this compile for c++ 2015-12-25 16:19:38 +00:00
wiz
6471a2935e Simplify usage for gpt show. 2015-12-25 12:16:03 +00:00
martin
53078a2022 Add a -a flag to the show command, so we can display the full GPT with
all information in one go.
2015-12-25 10:59:56 +00:00
ozaki-r
a9e6d8e441 Add some tests for sysctl net.inet.ip.*
- net.inet.ip.redirect
- net.inet.ip.directed-broadcast (and net.inet.icmp.bmcastecho)
- net.inet.ip.ttl

From suzu-ken@IIJ (with tweaks by me)
2015-12-25 08:22:28 +00:00
knakahara
6d50f36d54 use satosin{,6} macros instead of casts. 2015-12-25 06:47:56 +00:00
christos
3feb613f34 get rid of dup fenv. 2015-12-25 06:03:06 +00:00
christos
522db2ab36 move fenv inside ifdef 2015-12-25 06:02:10 +00:00
christos
94ed82768d remove dup fenv 2015-12-25 06:01:38 +00:00
msaitoh
b8537bdf10 Modify comment for 82544 Errata 9 "Certain register cannot be written with
particular alignments in PCI-X bus operation".
2015-12-25 05:45:40 +00:00
christos
714768c886 We stuck the generation number eons ago before the inode, so we broke
inode printing in nfs file handles.
2015-12-25 04:50:21 +00:00
msaitoh
0263b84cb0 - Fix RAL table's size of PCH2 and PCH_LPT.
- PCH_LPT (and newer device) is required to check FWSM_WLOCK_MAC bit to
  determine the range of the RAL.
- Fix typo in comment and modify comment by tnn@.
- Rename wm_check_reset_block() to wm_phy_resetisblocked() and make it returns
  bool. No functional change.
2015-12-25 04:50:16 +00:00
marty
a8082a0bd6 XU4 I2C snapshot
This is a complete, but untested, driver; except that it needs to be able
to configure gpios and, afaict, we don't yet have an fdtbus_gpio_* function
that will do that.
2015-12-24 21:30:05 +00:00
marty
09101f82f1 XU4 interrupt combiner
Written but untested.  I'm still confused about how to handle two things:

1) at interrupt disestablishment, where do I get an interrupt number so
   that I can disable the interrupt on the combiner?

2) How is interrupt multiplexing handled?  I don't seem to have any sort of
   interrupt dispatch routine that takes the 1 interrupt that reaches the
   gic and turn it into one of eight combined interrupts to call the
   established interrupt for the original uncombined interrupt source.
2015-12-24 21:20:17 +00:00
martin
ac62bbaf8f Fix output in an error case 2015-12-24 17:35:57 +00:00
christos
57ad4ba3e2 explicit casts to time_t, since we are going from unsigned -> signed. 2015-12-24 15:53:06 +00:00
christos
c316d7b24a little size_t/ssize_t... 2015-12-24 15:52:37 +00:00
christos
52fb74a7cb add fenv.h 2015-12-24 14:16:46 +00:00
msaitoh
19d53e8d95 - Add DDR4E, LPDDR3 and LPDDR4.
- Check NVDIMM hybrid.
- add DDR4's tWR and tWTR.
- Print cycle time with aprint_verbose on DDR4 as DDR[23].
2015-12-24 14:16:18 +00:00
christos
176b7bf263 add m68k, default types. 2015-12-24 14:13:59 +00:00
christos
d5137ecf34 fenv for m68k 2015-12-24 14:12:39 +00:00
christos
64bdb50ef0 add fenv for m68k 2015-12-24 14:12:12 +00:00
jmcneill
cf0b2cc745 use "watchdog" clock if not defined in fdt 2015-12-24 12:47:38 +00:00
christos
9700ed8d5c rearrange... 2015-12-24 04:16:00 +00:00
knakahara
257075d266 fix amd64/conf/ALL build failure 2015-12-24 03:41:03 +00:00
knakahara
26cfaca81e fix the following softint parallel operation problem.
(0) softint handler "handler A" is established
(1) CPU#X does softint_schedule() for "handler A"
    - the softhand_t is set SOFTINT_PENDING flag
    - the softhand_t is NOT set SOFTINT_ACTIVE flag yet
(2) CPU#X begins other H/W interrupt processing
(3) CPU#Y does softint_disestablish() for "handler A"
    - waits until softhand_t's SOFTINT_ACTIVE of all CPUs is clear
    - the softhand_t is set not SOFTINT_ACTIVE but SOFTINT_PENDING,
      so CPU#Y does not wait
    - unset the function of "handler A"
(4) CPU#X does softint_execute()
    - the function of "handler A" is already clear, so panic
2015-12-24 02:27:14 +00:00
christos
11804462b9 fix whitespace 2015-12-24 01:41:27 +00:00
christos
e9e496746f fix comment, from kre 2015-12-24 01:41:19 +00:00
marty
ab4448fde0 XU4 GPIO Review Changes
Implement suggestions from Jared.
2015-12-24 01:10:51 +00:00
wiz
dde3b33e50 Mark as using c++ using LIBISCXX instead of manual workaround.
The workaround was confused when MKLLVM was set, but HAVE_LLVM was not.

Solution suggested by joerg.
2015-12-24 00:36:43 +00:00
christos
7c83b624ee We need to check if the inode is initialized for ffsv2 when we translate a
filehandle to a vnode. This can come from nfs and it could be out of range.
In that case we read garbage from the disk, end up trying to free bogus data
when we put the vnode back and we crash.
XXX: pullup-7
2015-12-23 23:31:28 +00:00