Peter Avalos [Sat, 2 Jul 2011 22:50:40 +0000 (12:50 -1000)]
Merge branch 'vendor/LESS'
Peter Avalos [Sat, 2 Jul 2011 22:49:01 +0000 (12:49 -1000)]
Import less-444.
Fix ungetc bug; remove vestiges of obsolete -l option.
Sascha Wildner [Sat, 2 Jul 2011 20:49:10 +0000 (22:49 +0200)]
make upgrade: Remove various old files that were forgotten over the years.
Alex Hornung [Sat, 2 Jul 2011 14:54:55 +0000 (15:54 +0100)]
dm_target_crypt - Add twofish & serpent support
* Adds both CBC and XTS mode support for both Twofish and Serpent
Alex Hornung [Sat, 2 Jul 2011 14:17:32 +0000 (15:17 +0100)]
opencrypto - Add serpent & twofish XTS modes
* also minor cleanup
Alex Hornung [Sat, 2 Jul 2011 12:26:42 +0000 (13:26 +0100)]
tests - minor cosmetic fix
Alex Hornung [Sat, 2 Jul 2011 12:18:37 +0000 (13:18 +0100)]
tests - add serpent via cryptodev tests
Alex Hornung [Sat, 2 Jul 2011 12:14:38 +0000 (13:14 +0100)]
opencrypto - add serpent support to cryptosoft/dev
Alex Hornung [Sat, 2 Jul 2011 12:07:01 +0000 (13:07 +0100)]
crypto - Add Serpent implementation
Sepherosa Ziehau [Sat, 2 Jul 2011 11:58:41 +0000 (19:58 +0800)]
bce(4): Correct ifmedia related bits
- Changing media in bce_stop() is not necessary at all
- Pass through error code returned by mii_mediachg()
Obtained-from: FreeBSD 210260 210261
Sepherosa Ziehau [Sat, 2 Jul 2011 11:37:24 +0000 (19:37 +0800)]
bce(4): Detect context initialization failure
Obtained-from: FreeBSD 210259
Sepherosa Ziehau [Sat, 2 Jul 2011 11:28:55 +0000 (19:28 +0800)]
bce(4): Avoid NULL pointer access, if no flash info could be found
Obtained-from: FreeBSD 210257
Sepherosa Ziehau [Sat, 2 Jul 2011 10:58:44 +0000 (18:58 +0800)]
bce(4): Track bootcode status
Obtained-from: FreeBSD 206268 (partial)
Sepherosa Ziehau [Sat, 2 Jul 2011 10:24:24 +0000 (18:24 +0800)]
bce(4): Print detailed device information only if bootverbose is enabled
Sepherosa Ziehau [Sat, 2 Jul 2011 10:17:33 +0000 (18:17 +0800)]
bce(4): - Added a workaround for NC-SI management firmware
That firmware would allow frames to be accepted while the driver
is resetting the hardware. This failure is generally observed
when broadcast frames are received during driver load and will
generate "Unable to write CTX memory" errors.
Obtained-from: FreeBSD 202717
Sepherosa Ziehau [Wed, 29 Jun 2011 13:41:56 +0000 (21:41 +0800)]
bce(4): Create dedicated shared memory access routines.
Add code to read bootcode firwmare version.
Obtained-from: FreeBSD 194781
Alex Hornung [Sat, 2 Jul 2011 10:58:07 +0000 (11:58 +0100)]
tests - add twofish via cryptodev tests
Alex Hornung [Sat, 2 Jul 2011 09:53:33 +0000 (10:53 +0100)]
opencrypto - add twofish support to cryptosoft/dev
Alex Hornung [Sat, 2 Jul 2011 09:33:16 +0000 (10:33 +0100)]
crypto - Add Twofish implementation
Alex Hornung [Mon, 27 Jun 2011 20:17:24 +0000 (21:17 +0100)]
opencrypto - Add AES GCM/GMAC support
Obtained-from: OpenBSD
Alex Hornung [Mon, 27 Jun 2011 18:07:03 +0000 (19:07 +0100)]
opencrypto - (minor) sync with OpenBSD
Sepherosa Ziehau [Fri, 1 Jul 2011 05:08:44 +0000 (13:08 +0800)]
tcp: Remove PR_IMPLOPCL; it had been invented to support T/TCP
Since we have dropped T/TCP support, keep this flag in place could
confuse TCP processing in protocol threads.
Antonio Huete Jimenez [Thu, 30 Jun 2011 19:55:53 +0000 (21:55 +0200)]
hammer(8) - Fix snapshot count in info directive.
- We were wrongly using the HAMMER filesystem fd instead of a per-PFS one.
- Adapt the snapshot count in the case of error
Sascha Wildner [Thu, 30 Jun 2011 03:59:13 +0000 (05:59 +0200)]
kernel: Remove BCE_NVRAM_WRITE_SUPPORT option.
Antonio Huete Jimenez [Wed, 29 Jun 2011 22:34:13 +0000 (00:34 +0200)]
jail - Automatically mount devfs filesystem in every jail if specified.
Obtained-from: FreeBSD
Antonio Huete Jimenez [Wed, 29 Jun 2011 21:41:41 +0000 (23:41 +0200)]
rc.conf - Fix a wrong reference for jail_procfs_enable
Sascha Wildner [Wed, 29 Jun 2011 20:33:09 +0000 (22:33 +0200)]
kernel: Fix building with BCE_DEBUG.
Sascha Wildner [Wed, 29 Jun 2011 16:34:53 +0000 (18:34 +0200)]
df(1): Properly indent.
Antonio Huete Jimenez [Wed, 29 Jun 2011 16:07:04 +0000 (18:07 +0200)]
df - Properly handle paths passed when -t is used.
Show only the related mount points for the specified filesystem(s) when
option -t is used.
Obtained-from: FreeBSD
Sascha Wildner [Wed, 29 Jun 2011 09:49:02 +0000 (11:49 +0200)]
etc/rc.d/lvm: Set permissions to 644 like elsewhere.
Sepherosa Ziehau [Tue, 28 Jun 2011 14:29:44 +0000 (22:29 +0800)]
bce(4): Update to 4.6.x firmware
Obtained-from: FreeBSD 189325
Sepherosa Ziehau [Tue, 28 Jun 2011 08:13:28 +0000 (16:13 +0800)]
bce(4): Add several HP OEM parts' PCI IDs.
Obtained-from: FreeBSD 187133 187317
Sepherosa Ziehau [Tue, 28 Jun 2011 07:58:20 +0000 (15:58 +0800)]
bce(4): Don't count InFramesL2FilterDiscards into ifnet.if_ierrors
This value does not represent a real packet error but simply indicate
that an unexpected unicast or multicast error was received by the NIC,
which was not counted in the past as well.
Obtained-from: FreeBSD 186169
Sascha Wildner [Tue, 28 Jun 2011 05:58:19 +0000 (07:58 +0200)]
Sync zoneinfo database with tzdata2011h from elsie.nci.nih.gov
antarctica: 8.8 -> 8.9
asia: 8.64 -> 8.65
europe: 8.32 -> 8.33
iso3166.tab 8.6 -> 8.9
southamerica: 8.49 -> 8.50
zone.tab: 8.43 -> 8.45
* antarctica: Remove unused RussAQ rules.
* asia: Add comment on retaining "old" Russia rules for the benefit
of Armenia.
* europe: Russia abandons DST in 2011 (thanks to Alexander Krivenyshev).
"Old" Russia rules retained for now for Belarus.
* iso3166.tab: Change AN (Netherlands Antilles) to CW (Curacao).
* southamerica: Use links for places with new iso3166 codes.
* zone.tab: Change AN (Netherlands Antilles) to CW (Curacao).
Sepherosa Ziehau [Tue, 28 Jun 2011 05:45:01 +0000 (13:45 +0800)]
em(4)/emx(4): Update to Intel's 7.1.7
- Restore stock version of e1000_read_mac_addr_generic(); if this function
is called after hardware reset, it just works as expected.
- For em(4), add 82567/82577/82578/82579/82583, PCH and PCH2 support.
- For em(4) and emx(4)
o Reorganize hardware initialization sequence
o Fix ITR and EIAC settings for 82574
o Fix hardware control support for chips with AMT
Alex Hornung [Mon, 27 Jun 2011 16:50:42 +0000 (17:50 +0100)]
dm_target_crypt - add plain64 ivgen
* The plain64 ivgen works just the same as the plain ivgen, but treats
the sector as 64 bits.
Alex Hornung [Mon, 27 Jun 2011 16:48:24 +0000 (17:48 +0100)]
dm - fix typo in previous commit
Alex Hornung [Mon, 27 Jun 2011 16:33:52 +0000 (17:33 +0100)]
tree.h - Add RB_AUGMENT support
Submitted-by: Brills Peng
Alex Hornung [Mon, 27 Jun 2011 16:29:12 +0000 (17:29 +0100)]
committer.7 - Add note about MFC hook
Alex Hornung [Mon, 27 Jun 2011 16:22:35 +0000 (17:22 +0100)]
dm - check error on vn_open
Submitted-by: Adam Hoka
Sepherosa Ziehau [Sun, 26 Jun 2011 13:30:41 +0000 (21:30 +0800)]
bce(4): Add BCM5709 and BCM5716 support
Thanks David Christensen <davidch@broadcom.com> for sending me a
sample 5709 card for testing.
Obtained-from: FreeBSD 170810, 176850, 179771, 179772, 182293, 185593
Sepherosa Ziehau [Mon, 27 Jun 2011 11:37:09 +0000 (19:37 +0800)]
miidevs.h: regen
Sepherosa Ziehau [Mon, 27 Jun 2011 11:36:48 +0000 (19:36 +0800)]
mii: Add PHY IDs for 5709C
Sepherosa Ziehau [Mon, 27 Jun 2011 07:54:19 +0000 (15:54 +0800)]
em(4)/emx(4): Update ig_hal to Intel's 7.1.7
Local modification:
- Keep old e1000_read_mac_addr_generic() so that 82574L and 82571EB
could be probed correctly (instead of bailing out at "Invalid MAC
address")
Newer device support is not added into em(4) and emx(4) yet.
Sascha Wildner [Sun, 26 Jun 2011 15:55:48 +0000 (17:55 +0200)]
gdbinit: Fix lstok and infotok cmds (t_flags and tr_stallpc were removed).
Alex Hornung [Sat, 25 Jun 2011 18:18:54 +0000 (19:18 +0100)]
tools - Add a git commit-msg hook for MFC'ing
Sascha Wildner [Fri, 24 Jun 2011 11:16:22 +0000 (13:16 +0200)]
kernel: Remove some Micro Channel and EISA remains.
Sascha Wildner [Fri, 24 Jun 2011 11:03:21 +0000 (13:03 +0200)]
kernel: Use NULL for DRIVER_MODULE()'s evh & arg (which are pointers).
This is just cosmetics for easier reading.
Sascha Wildner [Fri, 24 Jun 2011 10:10:02 +0000 (12:10 +0200)]
kernel: Remove unused file.
Alex Hornung [Sun, 19 Jun 2011 09:03:03 +0000 (10:03 +0100)]
padlock - fix rng code for x86_64
* I originally used the wrong calling convention (windows amd64), so
switch to the sysv convention.
* Has been tested on a Via Nano L2200
Alex Hornung [Sun, 19 Jun 2011 07:30:36 +0000 (08:30 +0100)]
padlock - Shuffle around, add rng x86_64 support
* Move the config to the platform dependent conf/files, as the assembly
is platform dependent, and so is padlock in general.
* Add a preliminary rng_harvest_x86_64.S, but as there is no padlock
documentation for x86_64, the implementation could be wrong.
Alex Hornung [Sun, 19 Jun 2011 07:12:27 +0000 (08:12 +0100)]
padlock - fix bug in rng
* The xstore-rng instruction increments the buffer pointer in edi
automatically, so we shouldn't increment it manually, too.
Alex Hornung [Sat, 18 Jun 2011 18:34:23 +0000 (19:34 +0100)]
padlock rng - rework
* Rework to use a custom loop so that it doesn't stall when there is no
more entropy left to harvest.
Sascha Wildner [Sat, 18 Jun 2011 08:57:01 +0000 (10:57 +0200)]
token.9: Don't list lwkt_relpooltoken() for which there are no docs (yet).
Sascha Wildner [Sat, 18 Jun 2011 08:52:34 +0000 (10:52 +0200)]
kernel: Unbreak building padlock(4) into the kernel.
Peter Avalos [Sat, 18 Jun 2011 01:34:39 +0000 (15:34 -1000)]
Patch the contrib sources for awk instead of having separate files.
Peter Avalos [Sat, 18 Jun 2011 01:30:31 +0000 (15:30 -1000)]
Update website for awk in README.DRAGONFLY.
Peter Avalos [Sat, 18 Jun 2011 01:29:44 +0000 (15:29 -1000)]
Merge branch 'vendor/AWK'
Peter Avalos [Sat, 18 Jun 2011 01:05:21 +0000 (15:05 -1000)]
Import awk-
20110506.
* added #ifdef for isblank (allows -ffoo as well as -f foo arguments).
* fixed a subtle (and i hope low-probability) overflow error in
fldbld, by adding space for one extra \0.
* changed srand() to return the previous seed
Alex Hornung [Sat, 18 Jun 2011 00:23:28 +0000 (01:23 +0100)]
padlock - initial rng support
* Please note that the rng support is completely experimental as I
don't have a VIA CPU available for testing.
* NOTE: this might cause a kernel panic until it's tested properly.
Peter Avalos [Fri, 17 Jun 2011 23:14:54 +0000 (13:14 -1000)]
Merge branch 'vendor/AWK'
Alex Hornung [Fri, 17 Jun 2011 23:05:57 +0000 (00:05 +0100)]
cryptdisks - Add retval checks for popen and alloc
Peter Avalos [Fri, 17 Jun 2011 23:05:07 +0000 (13:05 -1000)]
Delete old versions of awk and unversion directory name.
Alex Hornung [Fri, 17 Jun 2011 22:54:16 +0000 (23:54 +0100)]
cryptdisks - update to support options
* Update cryptdisks to support options in the last column of the
crypttab file.
* Supported options are:
- 'tries' specifies the number of password retries before failing
- 'timeout' specifies the timeout before the interactive prompt
times out.
- 'keyscript' specifies a script to use instead of a passphrase
prompt.
* Changed default number of 'tries' to 3 (was 1).
Matthew Dillon [Fri, 17 Jun 2011 06:03:27 +0000 (23:03 -0700)]
kernel - Deal with inconsistencies between IP aliases and primary IPs
These changes allow normal IP aliases with proper network masks to be
ifconfig'd instead of forcing people to use non-obvious /32's for their
IP aliases. It may also be possible to use overlapping subnets with
this change but this is not tested.
* When ifconfig'ing an interface with aliases using the correct netmask
instead of a /32, the network route will point to only one of the
addresses.
Trying to connect to a local IP alias wound up failing due to the
mismatch between the network route's interface address (ifaddr)
entry and the actual ifaddr being requested. The target was not
being considered a local address when it was.
* Fix in_addroute()'s detection of local host routes when cloning a
route to check against all aliases instead of the one the gateway
network route happens to be pointed to, and adjust the route entry
appropriately.
This fix also properly sets RTF_LOCAL for all such cloned routes
whereas before RTF_LOCAL was only being set for the interface's
primary IP.
* Minor syntax adjustments and documentation changes.
Reported-by: Peter Avalos <peter@theshell.com>
Matthew Dillon [Fri, 17 Jun 2011 02:45:48 +0000 (19:45 -0700)]
kernel - Add AHCI workaround for Intel mobo / Intel SSD probing bug
* On cold boot Intel SSDs for some reason seem to fail to initialize on
the first attempt. The AHCI port winds up getting stuck in BSY mode.
Adjusting timeouts fails to solve the problem. Ignoring the BSY state
does solve the problem but is undesireable.
* Retry the initialization sequence once if a stuck BSY is detected
as a workaround. This appears to properly detect the SSD on the second
attempt.
* Add a delay after clearing the power control state before starting the
COMINIT sequence. This solves no known issues but is probably a good
idea.
Sepherosa Ziehau [Thu, 16 Jun 2011 09:11:58 +0000 (17:11 +0800)]
bce(4): Properly setup RX buffer DMA for the alignment requirement
Obtained-from: FreeBSD (rev.179695)
Sepherosa Ziehau [Thu, 16 Jun 2011 08:57:54 +0000 (16:57 +0800)]
bce(4): Increase firmware timeout value from 100 to 1000
Obtained-from: FreeBSD (rev.179695)
Matthew Dillon [Wed, 15 Jun 2011 15:49:07 +0000 (08:49 -0700)]
HAMMER VFS - Handle RLIMIT_FSIZE
* Handle the RLIMIT_FSIZE resource.
Matthew Dillon [Wed, 15 Jun 2011 15:47:44 +0000 (08:47 -0700)]
kernel - Adjust vm_object->paging_in_progress to use refcount API
* Adjust vm_object->paging_in_progress to use refcount API
* Fixes races related to release / wait which could stall a process.
Matthew Dillon [Wed, 15 Jun 2011 15:46:26 +0000 (08:46 -0700)]
kernel - Enhance refcount API
* Add functions that take a count in addition to the functions already
present which assume a count of 1.
Matthew Dillon [Wed, 15 Jun 2011 06:37:29 +0000 (23:37 -0700)]
test - test commit 2
Matthew Dillon [Wed, 15 Jun 2011 06:25:08 +0000 (23:25 -0700)]
test - test commit
Venkatesh Srinivas [Tue, 14 Jun 2011 14:10:42 +0000 (07:10 -0700)]
Merge branch 'master' of /repository/git/dragonfly
Venkatesh Srinivas [Tue, 14 Jun 2011 14:09:43 +0000 (07:09 -0700)]
kernel -- vm_object DEBUG_LOCKS: Record file/line of vm_object holds.
Sepherosa Ziehau [Tue, 14 Jun 2011 08:42:37 +0000 (16:42 +0800)]
Merge branch 'devel'
Sepherosa Ziehau [Tue, 14 Jun 2011 08:42:35 +0000 (16:42 +0800)]
Merge branch 'devel' (early part)
Sepherosa Ziehau [Tue, 14 Jun 2011 08:42:33 +0000 (16:42 +0800)]
Merge branch 'devel' (early part)
Sepherosa Ziehau [Tue, 14 Jun 2011 08:42:31 +0000 (16:42 +0800)]
Merge branch 'devel' (early part)
Sepherosa Ziehau [Tue, 14 Jun 2011 08:42:28 +0000 (16:42 +0800)]
Merge branch 'devel' (early part)
Sepherosa Ziehau [Tue, 14 Jun 2011 08:41:06 +0000 (16:41 +0800)]
i386: Remove unused macros in apic/apicvar.h
Sepherosa Ziehau [Tue, 14 Jun 2011 08:33:25 +0000 (16:33 +0800)]
i386: Don't log cores per CPU and logical CPUs per core
Sepherosa Ziehau [Tue, 14 Jun 2011 08:18:31 +0000 (16:18 +0800)]
x86_64: Remove unused macros in apic/apicvar.h
Sepherosa Ziehau [Tue, 14 Jun 2011 07:54:19 +0000 (15:54 +0800)]
x86_64: Don't log cores per CPU and logical CPUs per core
For Intel CPUs, the cores per CPU we printed probably is wrong; it
merely means the max cores per CPU. Since these two values are not
used by any effective code at all, these confusing logging is removed.
If correct cores per CPU is needed, it probably should be done after
lapic_config().
Sepherosa Ziehau [Tue, 14 Jun 2011 06:43:52 +0000 (14:43 +0800)]
acpi: AE_NOT_EXIST is quite common return value of AcpiReset()
Venkatesh Srinivas [Tue, 14 Jun 2011 03:59:59 +0000 (20:59 -0700)]
kernel -- vm: Restore vm_token in page fault path.
This partly reverts
b4460ab356b9d7f1bd11c8badbf2a6dc97a7776f. The vm_object has
not been fully tokenized, so removing vm_token takes there was premature.
Sascha Wildner [Sun, 12 Jun 2011 22:09:48 +0000 (00:09 +0200)]
kernel: Move aesni(4) and padlock(4) from sys/crypto to sys/dev/crypto.
Pointed-out-by: alexh
Sascha Wildner [Mon, 13 Jun 2011 18:29:00 +0000 (20:29 +0200)]
nrelease: Change back to building an ISO for the LiveDVD, too.
The reasons are:
* People have boxes that don't support booting off USB, yet want the
convenience of having Xorg installed etc.
* People want to boot this from virtual machines, and thise want ISOs.
Sepherosa Ziehau [Mon, 13 Jun 2011 11:18:50 +0000 (19:18 +0800)]
x86_64: Unbreak UP kernel building by moving NAPICID around
Sepherosa Ziehau [Mon, 13 Jun 2011 11:12:48 +0000 (19:12 +0800)]
x86_64: Remove unused declaration in apicvar.h
Sepherosa Ziehau [Mon, 13 Jun 2011 11:13:21 +0000 (19:13 +0800)]
i386: Unbreak UP kernel building by moving NAPICID around
Sepherosa Ziehau [Mon, 13 Jun 2011 11:03:32 +0000 (19:03 +0800)]
i386: Remove unused declaration in apicvar.h
Sepherosa Ziehau [Sun, 12 Jun 2011 10:55:49 +0000 (18:55 +0800)]
i386/ioapic: Remove unused global variable declaration
Sepherosa Ziehau [Sun, 12 Jun 2011 10:55:03 +0000 (18:55 +0800)]
i386/ioapic: Staticize ioapic_config()
Sepherosa Ziehau [Sun, 12 Jun 2011 10:53:17 +0000 (18:53 +0800)]
i386/ioapic: Cleanup header inclusion
Sascha Wildner [Sun, 12 Jun 2011 08:58:50 +0000 (10:58 +0200)]
bsd-family-tree: Sync with FreeBSD.
Matthew Dillon [Sat, 11 Jun 2011 19:13:20 +0000 (12:13 -0700)]
kernel - Fix directory scanning bug in Samba
* Bring in the patch from FreeBSD PR 78953
Taken-from: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/78953
Reported-by: uv <uv.negativa@gmail.com>
Matthew Dillon [Thu, 9 Jun 2011 20:28:08 +0000 (13:28 -0700)]
kernel - Fix a 'vm_page_unhold: hold count < 0' panic in kern_execve()
* imgp->firstpage is preloaded with lwbuf storage but we failed to NULL
it out on error, causing the code to later attempt to release a bogus
lwbuf.
* Fixes a hold count panic on random vm_page's.
Venkatesh Srinivas [Tue, 14 Jun 2011 03:59:59 +0000 (20:59 -0700)]
kernel -- vm: Restore vm_token in page fault path.
This partly reverts
b4460ab356b9d7f1bd11c8badbf2a6dc97a7776f. The vm_object has
not been fully tokenized, so removing vm_token takes there was premature.
Sascha Wildner [Sun, 12 Jun 2011 22:09:48 +0000 (00:09 +0200)]
kernel: Move aesni(4) and padlock(4) from sys/crypto to sys/dev/crypto.
Pointed-out-by: alexh