Hasso Tepper [Sat, 30 Aug 2008 16:07:59 +0000 (16:07 +0000)]
Remove dhcp-3.0 from base and import dhclient from OpenBSD. Porting work
done by Matthias Schmidt and Andras Voroskoi.
Matthew Dillon [Sat, 30 Aug 2008 02:56:12 +0000 (02:56 +0000)]
Flesh out BUF_CMD_FLUSH support.
Obtained-from: Ported from FreeBSD.
Sascha Wildner [Fri, 29 Aug 2008 23:06:37 +0000 (23:06 +0000)]
Add obsolete version of acpi_toshiba(4).
Sascha Wildner [Fri, 29 Aug 2008 22:51:56 +0000 (22:51 +0000)]
Some installer cleanup.
* In contrib/bsdinstaller-1.1.6, fix include names,
e.g. "aura/..." -> "libaura/..."
* In usr.sbin/installer:
- Include "../../Makefile.inc" to not have to define variables such
as BINDIR ourselves
- Use NOMAN
- Remove -g
- No longer install header files from libinstaller/ and add them to
'make upgrade'
Matthew Dillon [Fri, 29 Aug 2008 22:15:03 +0000 (22:15 +0000)]
AMD64: Fix the crossworld build.
Matthew Dillon [Fri, 29 Aug 2008 22:14:18 +0000 (22:14 +0000)]
AMD64: Add JG64 config file for testing purposes.
Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
Sascha Wildner [Fri, 29 Aug 2008 20:41:01 +0000 (20:41 +0000)]
Commit our installer patches to contrib/ (that has already been committed to).
Matthew Dillon [Fri, 29 Aug 2008 20:19:08 +0000 (20:19 +0000)]
HAMMER: Mass storage flush command support
Add mass storage flush command support to HAMMER. The HAMMER flush cycle
issues async I/O in parallel and waits for it to complete before moving
onto the next stage. This occurs in two places. The new flush command
is issued after the async I/O, and then we wait on everything.
Due to HAMMER's ability to gang writes asynchronously between stages the
addition of the flush should not significantly impact performance.
Matthew Dillon [Fri, 29 Aug 2008 20:08:40 +0000 (20:08 +0000)]
Add BUF_CMD_FLUSH support - issue flush command to mass storage device.
Matthew Dillon [Fri, 29 Aug 2008 20:01:08 +0000 (20:01 +0000)]
Back-out the tls change. The field must be signed or the system will not
boot due to the use of the variable's negative space. Use long for now.
Matthew Dillon [Fri, 29 Aug 2008 17:07:21 +0000 (17:07 +0000)]
AMD64 - Sync AMD64 support from Jordan Gordeev's svn repository and
Google SOC project. This work is still continuing but represents
substantial progress in the effort.
With this commit the world builds and installs, the loader is able to
boot the kernel, and the kernel is able to initialize, probe devices, and
exec the init program. The init program is then able to run until it hits
its first fork(). For the purposes of the GSOC the project is being
considered a big success!
The code has been adapted from multiple sources, most notably Peter Wemm
and other peoples work from FreeBSD, with many modifications to make it
work with DragonFly. Also thanks go to Simon Schubert for working on gdb
and compiler issues, and to Noah Yan for a good chunk of precursor work
in 2007.
While Jordan wishes to be modest on his contribution, frankly we would
not have been able to make this much progress without the large number
of man-hours Jordan has dedicated to his GSOC project painstakingly gluing
code together, tracking down issues, and progressing the boot sequence.
Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
Sascha Wildner [Fri, 29 Aug 2008 07:44:09 +0000 (07:44 +0000)]
Fix some parenthesis/whitespace nits.
Matthew Dillon [Thu, 28 Aug 2008 23:38:52 +0000 (23:38 +0000)]
AMD64: Fix bugs in cerror().
Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
Matthew Dillon [Thu, 28 Aug 2008 23:36:47 +0000 (23:36 +0000)]
Adjust the mcontext code to match amd64.
Submitted-by: Matthew Dillon
Matthew Dillon [Thu, 28 Aug 2008 23:36:31 +0000 (23:36 +0000)]
Adjust the mcontext code to match amd64.
Submitted-by: Matthew Dillon
Matthew Dillon [Thu, 28 Aug 2008 23:15:45 +0000 (23:15 +0000)]
* Add a flag to track an in-transit socket abort to avoid races when closing
a socket.
* Abort sockets asynchronously to prevent socket proto threads from
deadlocking each other.
Reported-by: Peter Avalos
Matthew Dillon [Thu, 28 Aug 2008 23:10:34 +0000 (23:10 +0000)]
Add memset() to help w/amd64 support.
Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
Takenfrom: FreeBSD
Thomas Nikolajsen [Thu, 28 Aug 2008 21:12:44 +0000 (21:12 +0000)]
Fix Boot Setup example:
- drop symlinks for /kernel as `make installkernel' can't use it
(install(1) deletes symlink and installs in root file system),
also drop symlinks for /modules and .old
- rename mount point for boot filesystem from /boot_ to /boot-fs
- add note on using DESTDIR=/boot-fs for installkernel
- add more details to description
Sascha Wildner [Thu, 28 Aug 2008 20:30:46 +0000 (20:30 +0000)]
Get rid of whitespace before the parenthesis.
Sascha Wildner [Thu, 28 Aug 2008 17:00:27 +0000 (17:00 +0000)]
Add comma.
Hasso Tepper [Thu, 28 Aug 2008 16:46:54 +0000 (16:46 +0000)]
Unbreak build.
Sascha Wildner [Thu, 28 Aug 2008 16:39:22 +0000 (16:39 +0000)]
Small cleanup.
Sascha Wildner [Thu, 28 Aug 2008 16:38:59 +0000 (16:38 +0000)]
Add refs to acpi_toshiba(4) and acpi_thinkpad(4).
Sepherosa Ziehau [Thu, 28 Aug 2008 14:24:59 +0000 (14:24 +0000)]
Move IPDIVERT related declaration from netinet/ip_var.h to netinet/ip_divert.h
Sepherosa Ziehau [Thu, 28 Aug 2008 14:15:47 +0000 (14:15 +0000)]
Fix comment
Sepherosa Ziehau [Thu, 28 Aug 2008 14:10:03 +0000 (14:10 +0000)]
Make IPDIVERT transparent to ip reassemble code by fully utilizing the
divert information saved in the mbuf tag.
Idea-from: FreeBSD
Sepherosa Ziehau [Thu, 28 Aug 2008 11:55:32 +0000 (11:55 +0000)]
Move IPDIVERT processing from ip_input() normal code path to ipfw(4)
processing code block.
Sepherosa Ziehau [Thu, 28 Aug 2008 11:05:34 +0000 (11:05 +0000)]
Unbreak compile: we have STAILQ_FOREACH_MUTABLE
Hasso Tepper [Thu, 28 Aug 2008 10:32:27 +0000 (10:32 +0000)]
acpi_thinkad(4) manpage.
Hasso Tepper [Thu, 28 Aug 2008 09:47:04 +0000 (09:47 +0000)]
Add acpi_video(4) manpage and move acpi_toshiba(4) manpage out from man4.i386.
Hasso Tepper [Thu, 28 Aug 2008 09:35:53 +0000 (09:35 +0000)]
Document STAILQ_FOREACH_MUTABLE macro.
Hasso Tepper [Thu, 28 Aug 2008 09:25:42 +0000 (09:25 +0000)]
Add acpi_video(4) - a driver for ACPI video extensions.
Obtained-from: FreeBSD with modifications
Hasso Tepper [Thu, 28 Aug 2008 08:42:29 +0000 (08:42 +0000)]
Add STAILQ_FOREACH_MUTABLE.
Hasso Tepper [Thu, 28 Aug 2008 07:10:05 +0000 (07:10 +0000)]
Add ACPI support module for IBM/Lenovo Thinkpad laptops. Work in progress,
but already usable for most of Thinkpads.
Obtained-from: FreeBSD with modifications
Hasso Tepper [Thu, 28 Aug 2008 06:16:32 +0000 (06:16 +0000)]
Move acpi_toshiba.c, it's not pc32 specific.
Hasso Tepper [Wed, 27 Aug 2008 16:35:19 +0000 (16:35 +0000)]
Add some methods to ACPI to handle embedded controllers and device matching.
Obtained-from: FreeBSD
Sepherosa Ziehau [Wed, 27 Aug 2008 14:00:45 +0000 (14:00 +0000)]
Prepare to make IPDIVERT transparent to ip reassemble code:
Include more information in divert mbuf tag
Matthias Schmidt [Wed, 27 Aug 2008 13:11:37 +0000 (13:11 +0000)]
Add missing -s to usage string.
Sepherosa Ziehau [Tue, 26 Aug 2008 12:05:10 +0000 (12:05 +0000)]
- Consistently test pkt_dst instead of ip_dst
- Clear M_MCAST if the ip packet is not destined to multicast address
Sepherosa Ziehau [Tue, 26 Aug 2008 11:42:40 +0000 (11:42 +0000)]
Grrr, forward address is in network byte order
Sepherosa Ziehau [Tue, 26 Aug 2008 11:26:26 +0000 (11:26 +0000)]
Don't allow multicast address to be used as the target address of a transparent
forwarding rule.
Matthew Dillon [Mon, 25 Aug 2008 23:38:35 +0000 (23:38 +0000)]
AMD64 Support:
Adjust crt1 for amd64 to call _init_tls() and _rtld_call_init(). These
calls are needed to initialize TLS support, which we use unconditionally
to access errno.
Matthew Dillon [Mon, 25 Aug 2008 23:35:47 +0000 (23:35 +0000)]
AMD64 Support:
* Change the sysmsg fds[2] array from int to long and use the
same double-register return trick that i386 uses for pipe(fds),
and a few other specialized system calls.
Matthew Dillon [Mon, 25 Aug 2008 23:34:35 +0000 (23:34 +0000)]
AMD64 Support:
* Move amd64-specific signal.h defs to machine/signal.h
* Change size field in tls_info from 'int' to 'long' to accomodate
64 bit architectures.
Submitted-by: Matthew Dillon
Obtained-from: FreeBSD, Jordan Gordeev <jgordeev@dir.bg>, and Matt
Matthew Dillon [Mon, 25 Aug 2008 17:11:23 +0000 (17:11 +0000)]
AMD64 Support:
* Add an identifier to SYSINIT structures for debugging purposes.
Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
Obtained-from: FreeBSD, with modifications
Matthew Dillon [Mon, 25 Aug 2008 17:01:42 +0000 (17:01 +0000)]
AMD64 Support:
* Adjust certain common prototypes to be amd64-compatible.
* Add DDB 'cont' support for amd64.
Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
Matthew Dillon [Mon, 25 Aug 2008 16:58:41 +0000 (16:58 +0000)]
AMD64 Support:
* Allow booting a kernel with a 512M-aligned KERNBASE.
Submitted-by: Jordan Gordeev <jgordeev@dir.bg>
Obtained-from: FreeBSD, with modifications
Sascha Wildner [Sun, 24 Aug 2008 19:14:52 +0000 (19:14 +0000)]
Remove __P.
Sascha Wildner [Sat, 23 Aug 2008 23:23:37 +0000 (23:23 +0000)]
Fix null dereference.
Found-by: LLVM/Clang Static Analyzer
Peter Avalos [Sat, 23 Aug 2008 22:27:27 +0000 (22:27 +0000)]
Update SCSI opcodes and ASCs.
http://www.t10.org/lists/1spc-lst.htm
Note opcodes for scanner and communication devices are taken from the
previous revision because they are not listed in the files any more. Also,
note newly added ASCs are all marked with 'XXX TBD' and take SS_RDEF action
for now. Some ASCs need SS_TUR for error recovery or SS_FATAL to prevent
further retrials. We should deal with them later.
Obtained-from: FreeBSD
Sascha Wildner [Sat, 23 Aug 2008 22:26:56 +0000 (22:26 +0000)]
In print_mesg, remove unused FILE* argument. Also remove a dead increment.
Found-by: LLVM/Clang Static Analyzer
Peter Avalos [Sat, 23 Aug 2008 17:13:31 +0000 (17:13 +0000)]
Fix whitespace.
Obtained-from: FreeBSD
Sepherosa Ziehau [Sat, 23 Aug 2008 09:06:37 +0000 (09:06 +0000)]
White space
Sepherosa Ziehau [Sat, 23 Aug 2008 08:26:04 +0000 (08:26 +0000)]
If a packet is to be reinjected by dummynet onto ethernet input path,
pass 'ifp' to ether_demux_oncpu() then.
Sepherosa Ziehau [Sat, 23 Aug 2008 06:56:22 +0000 (06:56 +0000)]
Save srcroute options in a mtag associated the mbuf, mainly to eliminate two
"ugly" global variables -- ip_nhops and ip_srcrt.
Obtained-from: FreeBSD
Sepherosa Ziehau [Sat, 23 Aug 2008 04:50:29 +0000 (04:50 +0000)]
Staticize save_rte()
Sepherosa Ziehau [Sat, 23 Aug 2008 04:12:23 +0000 (04:12 +0000)]
- Test m_pkthdr.fw_flags against DUMMYNET_MBUF_TAGGED before trying to locate
dummynet mtag.
- Clear DUMMYNET_MBUF_TAGGED from m_pkthdr.fw_flags, once dummynet mtag is
deleted.
Sascha Wildner [Fri, 22 Aug 2008 21:00:01 +0000 (21:00 +0000)]
Comment out some .Pp's as well.
Thomas Nikolajsen [Fri, 22 Aug 2008 20:53:00 +0000 (20:53 +0000)]
Update pf.conf.5:
- add line break after sentence
- add description for `set keep-policy'
- drop note that RIO isn't in GENERIC kernel,
as this applies to OpenBSD when pf.conf.5 was imported;
in DragonFly altq isn't in GENERIC kernel at all
- fix GRAMMAR by adding `set keep-policy', and `no state',
fixing scheduler defs and dropping unneeded parens & brackets
- improve mark up a bit
Thomas Nikolajsen [Fri, 22 Aug 2008 20:38:38 +0000 (20:38 +0000)]
Fix Boot Setup example:
- move, not copy, kernel & modules to boot slice
- give hammer file system a more apropriate file system label
Sascha Wildner [Fri, 22 Aug 2008 14:47:47 +0000 (14:47 +0000)]
Remove /* within block comment.
Sascha Wildner [Fri, 22 Aug 2008 14:25:02 +0000 (14:25 +0000)]
In usage(), adjust number of %s's to match # of args.
Sepherosa Ziehau [Fri, 22 Aug 2008 13:37:22 +0000 (13:37 +0000)]
Move ip fragments reassemble related code from ip_input() to ip_reass()
Idea-from: FreeBSD
Sepherosa Ziehau [Fri, 22 Aug 2008 11:58:49 +0000 (11:58 +0000)]
Move ipstat.ips_reassembled updating from ip_input() into ip_reass()
Sepherosa Ziehau [Fri, 22 Aug 2008 11:51:40 +0000 (11:51 +0000)]
White space
Sascha Wildner [Fri, 22 Aug 2008 10:27:16 +0000 (10:27 +0000)]
Remove unused variable/assignment.
Found-by: LLVM/Clang Static Analyzer
Sepherosa Ziehau [Fri, 22 Aug 2008 10:19:27 +0000 (10:19 +0000)]
next_hop information is now saved in mtag, so the netmsg_packet embedded in
the mbuf.m_hdr is large enough to deliver all necessary information (hlen is
saved in lwkt_msg.u.ms_result) to transport layer.
Sepherosa Ziehau [Fri, 22 Aug 2008 09:14:17 +0000 (09:14 +0000)]
Save 'ipfw forward' information in mtag, use m_pkthdr.fw_flags to indicate
that this mtag exists (mainly to avoid unnecessary mtag locating). This
actually eliminates the last reference to MT_TAG mbuf; nuke it completely.
Sascha Wildner [Fri, 22 Aug 2008 08:47:56 +0000 (08:47 +0000)]
Remove unused variable.
Found-by: LLVM/Clang Static Analyzer
Sascha Wildner [Fri, 22 Aug 2008 08:38:15 +0000 (08:38 +0000)]
Remove unused variable.
Found-by: LLVM/Clang Static Analyzer
Sascha Wildner [Fri, 22 Aug 2008 08:33:59 +0000 (08:33 +0000)]
Remove unused variables.
Found-by: LLVM/Clang Static Analyzer
Hasso Tepper [Fri, 22 Aug 2008 07:08:13 +0000 (07:08 +0000)]
Some agp(4) fixes:
* Enable the support for G33/Q35/Q33.
* Add resume support to the agp_i810 family.
* Calculate the number of pages the GATT spans in Nvidia chipsets instead
of harcoding in to 33 pages.
Obtained-from: FreeBSD
Hasso Tepper [Fri, 22 Aug 2008 06:57:33 +0000 (06:57 +0000)]
Make Huawei E220 change the mode from device with single umass interface to
device with umass interafce and two serial interfaces. It worked before for
most of devices, but it required umass support present in the kernel.
Thomas Nikolajsen [Thu, 21 Aug 2008 23:38:03 +0000 (23:38 +0000)]
Update hammer.5:
- expand description on reblocking and pruning a bit
- correct no. PFS supported (PFS 0 is used for hammer file system)
- add mirror-stream and mirror-read-stream reference
Thomas Nikolajsen [Thu, 21 Aug 2008 23:32:27 +0000 (23:32 +0000)]
Remove extra space in usage()
Thomas Nikolajsen [Thu, 21 Aug 2008 23:28:43 +0000 (23:28 +0000)]
Update hammer:
- sync usage() and hammer.8
- correct check for arg. count
- break some overly long lines
Thomas Nikolajsen [Thu, 21 Aug 2008 23:10:04 +0000 (23:10 +0000)]
Update gpt:
- note that DragonFly supports 32 slices per disk
- increase size of boot slice (slice 0 made by boot command):
increase size from 128MB til 256MB, as total size of
kernel & modules w/ .old is over 128MB and
it is a hassle to increase size of boot slice later
- add note that boot0 boot manager, which can be manipulated by
boot0cfg command, is used by boot command
- add example of GPT boot disk setup
- improve mark up a bit
Thomas Nikolajsen [Thu, 21 Aug 2008 21:59:23 +0000 (21:59 +0000)]
Update disklabel64 doc:
- Comment out all reference to boot / bootstrap from 64 bit label,
it isn't supported yet.
- Add note that this is 64 bit disk label.
- Add gpt and newfs_hammer in description on setting up a disk from scratch
Sascha Wildner [Thu, 21 Aug 2008 21:41:55 +0000 (21:41 +0000)]
Remove extra comma.
Thomas Nikolajsen [Thu, 21 Aug 2008 21:22:36 +0000 (21:22 +0000)]
Update disklabel doc:
- Sync usage() to disklabel.8
- Add note that this is 32 bit disklabel
- Move description of `-f' flag from unrelated section (SAVED FILE FORMAT)
- Improve some wording and mark up a bit
Thomas Nikolajsen [Thu, 21 Aug 2008 21:08:08 +0000 (21:08 +0000)]
Add note that this is 32 bit disk label.
Correct include file to reference 32 bit disk label.
Add Xref.
Thomas Nikolajsen [Thu, 21 Aug 2008 21:05:23 +0000 (21:05 +0000)]
Add Xref.
Thomas Nikolajsen [Thu, 21 Aug 2008 21:02:33 +0000 (21:02 +0000)]
Add description of default section list.
These sections are what DragonFly presently have;
it is correct according to mdoc(8) .Dt.
Man program also lists some sections not used in DragonFly.
Sascha Wildner [Thu, 21 Aug 2008 12:19:33 +0000 (12:19 +0000)]
Remove wrong semicolon.
Found-by: LLVM/Clang Static Analyzer
Sepherosa Ziehau [Thu, 21 Aug 2008 12:11:34 +0000 (12:11 +0000)]
- Correct 'forward' support
- Move comment to the proper place
Sepherosa Ziehau [Thu, 21 Aug 2008 11:57:49 +0000 (11:57 +0000)]
Don't terminate the fragment iteration upon error; just keep draining
all fragments.
Reviewed-by: hsu@ nant@
Matthias Schmidt [Wed, 20 Aug 2008 13:03:35 +0000 (13:03 +0000)]
Remove four files which where probably accidentally committed. They have
no actual use.
Seen-on: freebsd-cvs
Joerg Sonnenberger [Tue, 19 Aug 2008 15:50:24 +0000 (15:50 +0000)]
Fix typos in copyright.
Matthias Schmidt [Tue, 19 Aug 2008 11:55:40 +0000 (11:55 +0000)]
Add targets to install/update pkgsrc-wip tree.
Submitted-by: mneumann@
Matthias Schmidt [Tue, 19 Aug 2008 11:28:48 +0000 (11:28 +0000)]
Add another Qualcomm device ID.
Submitted-by: Brendan Kosowski <bmk@bmk.com.au>
Michael Neumann [Tue, 19 Aug 2008 11:02:34 +0000 (11:02 +0000)]
Add missing usage information for hammer mirror-stream.
Joerg Sonnenberger [Mon, 18 Aug 2008 19:15:55 +0000 (19:15 +0000)]
Merge revision 1.21 and 1.22 from OpenBSD. Add a missing "the" to the
changes for better reading.
Nicolas Thery [Sun, 17 Aug 2008 17:21:36 +0000 (17:21 +0000)]
Add minimal support for post-mortem (core dump) debugging of multi-LWP
processes. GDB 'info threads' lists all LWPs and GDB 'thread' switches between
LWP stacks.
Inspired-From: FreeBSD
Michael Neumann [Sun, 17 Aug 2008 10:35:18 +0000 (10:35 +0000)]
Fix function getpfs for pseudo-filesystems specified as absolute path
located in the root directory.
Finding the path portion of e.g. "/tmp.pfs" failed, as it produced an
empty string "" for which open(2) naturally fails. Instead we now detect
this situation (empty string) and use "/".
Fixes Issue: 1122
Sepherosa Ziehau [Sun, 17 Aug 2008 06:26:45 +0000 (06:26 +0000)]
Utilize ifnet_{domsg,forwardmsg}()
Sepherosa Ziehau [Sun, 17 Aug 2008 06:01:50 +0000 (06:01 +0000)]
Add assertion to make sure that the next cpuid is within valid range
Sepherosa Ziehau [Sun, 17 Aug 2008 05:45:56 +0000 (05:45 +0000)]
- Rename ifa_{domsg,forwardmsg}() to ifnet_{domsg,forwardmsg}()
- Inline ifa_{domsg,forwardmsg}(); let them call ifnet_{domsg,forwardmsg}()
- Use ifnet_{domsg,forwardmsg}() in ipfw(4)
Sepherosa Ziehau [Sun, 17 Aug 2008 05:20:10 +0000 (05:20 +0000)]
Pass cpuid to ifa_domsg()
Sepherosa Ziehau [Sun, 17 Aug 2008 04:32:35 +0000 (04:32 +0000)]
Nuke INTR_NETSAFE
Sepherosa Ziehau [Sun, 17 Aug 2008 03:44:48 +0000 (03:44 +0000)]
Various tap functions of bpf(4) are the only non-MPSAFE code on ethernet
input path (in polling or interrupt threads), so push mplock holding down
into bpf(4) tap functions. Also re-check the bpf_if after holding mplock
to avoid use-after-check race.