dragonfly.git
20 years agoDon't return 0 from rl_probe, because rl(4) is not a best match for
Joerg Sonnenberger [Sat, 17 Jul 2004 09:26:25 +0000 (09:26 +0000)]
Don't return 0 from rl_probe, because rl(4) is not a best match for
certain 8139 chips. That way re(4) has the change to attach first.

20 years agoBUF/BIO stage 2:
Hiten Pandya [Sat, 17 Jul 2004 01:45:37 +0000 (01:45 +0000)]
BUF/BIO stage 2:

o Remove remaining source references to b_caller2 and b_driver2
  field members of the BUF structure.

o Remove b_caller2 and b_driver2 field members from the BUF
  structure.

Discussed-with:   Matthew Dillon <dillon@apollo.backplane.com>

20 years agoFix a URL displayed in an advisory.
Matthew Dillon [Fri, 16 Jul 2004 21:33:16 +0000 (21:33 +0000)]
Fix a URL displayed in an advisory.

20 years agoDouble semi-colon police!
Hiten Pandya [Fri, 16 Jul 2004 19:07:56 +0000 (19:07 +0000)]
Double semi-colon police!

Submitted-by: Liam J. Foy <liamfoy@kerneled.org>
20 years agoEliminate hard sentence breaks.
Hiten Pandya [Fri, 16 Jul 2004 19:07:08 +0000 (19:07 +0000)]
Eliminate hard sentence breaks.

Submitted-by: Liam J. Foy <liamfoy@kerneled.org>
20 years agoEliminate hard sentence breaks.
Hiten Pandya [Fri, 16 Jul 2004 19:04:57 +0000 (19:04 +0000)]
Eliminate hard sentence breaks.

Submitted-by: Liam Foy <liamfoy@kerneled.org>
20 years agoMerge revision 1.26 of src/usr.bin/time/time.c from FreeBSD, and an
Hiten Pandya [Fri, 16 Jul 2004 18:58:35 +0000 (18:58 +0000)]
Merge revision 1.26 of src/usr.bin/time/time.c from FreeBSD, and an
additional change:

o Use wait4() instead of wait3() when waiting for a child
  process to exit.

o Set the process' exit code properly (rev. 1.25).

Obtained-from:   Liam J. Foy <liamfoy@kerneled.org>

20 years agoMerge revision 1.25 of src/usr.bin/time/time.c from FreeBSD.
Hiten Pandya [Fri, 16 Jul 2004 18:53:56 +0000 (18:53 +0000)]
Merge revision 1.25 of src/usr.bin/time/time.c from FreeBSD.

Original Log:

Assorted minor fixes, mostly style(9):
- PID should be pid_t, not int;
- sort #include's and local variables;
- don't overuse initializers;
- use warn(3) instead of perror(3) consistently;
- amplify the comment on signals.

Obtained-from:   Liam J. Foy <liamfoy@kerneled.org>

20 years agoFix a typo in last commit as to fix the EHIC compile.
David Rhodus [Fri, 16 Jul 2004 17:24:48 +0000 (17:24 +0000)]
Fix a typo in last commit as to fix the EHIC compile.

20 years agoIncrease the size of the nfsheur hash table as pointed out by
Jeffrey Hsu [Fri, 16 Jul 2004 16:17:08 +0000 (16:17 +0000)]
Increase the size of the nfsheur hash table as pointed out by
Daniel Ellard and Margo Selzter in "NFS Tricks and Benchmarking Traps",
Proceedings of the 2003 Freenix Technical Conference.

         The two changes are to increase NUM_HEURISTIC, and increase
         the number of probes attempted before a search of the table
         is abandoned. You could make the max probes as high as
         NUM_HEURISTIC, if you want to trade time for space. My
         choice of constants is arbitrary; maybe they should be
         config options so people with really big servers can set
         it to whatever they like when they build their kernels.

Obtained from:  http://www.eecs.harvard.edu/~ellard/NFS
Approved by:  Dan Ellard

20 years agoDocument addition of ICH6 UHCI.
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 14:01:07 +0000 (14:01 +0000)]
Document addition of ICH6 UHCI.

20 years agoUpdate string to show this device is the Hub-PCI bridge for ICH2, 3, 4, 5,
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 13:57:23 +0000 (13:57 +0000)]
Update string to show this device is the Hub-PCI bridge for ICH2, 3, 4, 5,
and 6.

20 years agoAdd Intel 82801FB/FBW/FR/FRW PCI-LPC detection code.
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 13:52:20 +0000 (13:52 +0000)]
Add Intel 82801FB/FBW/FR/FRW PCI-LPC detection code.

20 years agoUpdate per Intel 82801FB errata:
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 13:41:55 +0000 (13:41 +0000)]
Update per Intel 82801FB errata:

we now have 4 UHCI devices and the correct id for EHCI.

20 years agoAdd Intel 82801FB EHCI/ICH6 controller.
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 13:33:43 +0000 (13:33 +0000)]
Add Intel 82801FB EHCI/ICH6 controller.

20 years agoAdd support for the 82801FB UHCI/ICH6 controller.
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 13:25:16 +0000 (13:25 +0000)]
Add support for the 82801FB UHCI/ICH6 controller.

20 years agoAdd detection support for the Intel ICH6 chipset.
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 13:08:46 +0000 (13:08 +0000)]
Add detection support for the Intel ICH6 chipset.

20 years agoFix the vendor id string of NatSemi to its correct one.
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 12:41:00 +0000 (12:41 +0000)]
Fix the vendor id string of NatSemi to its correct one.
0x1000 is LSI Logic, 0x100b is NatSemi.
(NatSemi's documentation erroneously printed 0x1000)

20 years agoAdd the SiS "7007" OHCI IEEE 1394 controller.
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 12:37:02 +0000 (12:37 +0000)]
Add the SiS "7007" OHCI IEEE 1394 controller.

20 years agoDetect the National Semiconductor Geode CS4210 OHCI IEEE 1394 controller.
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 12:22:21 +0000 (12:22 +0000)]
Detect the National Semiconductor Geode CS4210 OHCI IEEE 1394 controller.

20 years agoAdd support for the Adaptec AIC5800 based IEEE 1394 cards.
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 12:15:51 +0000 (12:15 +0000)]
Add support for the Adaptec AIC5800 based IEEE 1394 cards.

20 years agoFix grammatik error.
Joerg Sonnenberger [Fri, 16 Jul 2004 10:38:01 +0000 (10:38 +0000)]
Fix grammatik error.

20 years agoAdd detection code for the Intel 82372FB IEEE 1394 OHCI controller.
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 09:42:50 +0000 (09:42 +0000)]
Add detection code for the Intel 82372FB IEEE 1394 OHCI controller.

20 years agoChange identifier display text to include all models supported.
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 09:10:50 +0000 (09:10 +0000)]
Change identifier display text to include all models supported.
The TSB43AB21 is also supported.
Change device identifier to the parent.

20 years agoAdd support for the Texas Instruments IEEE 1394 controllers designated by:
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 08:58:45 +0000 (08:58 +0000)]
Add support for the Texas Instruments IEEE 1394 controllers designated by:

TSB43AB21A
TSB43AB21AI
TSB43AB21A-EP

20 years agoSync with FreeBSD v1.16:
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 08:36:28 +0000 (08:36 +0000)]
Sync with FreeBSD v1.16:

Add NEC uPD72873.

Submitted by: Christian Laursen <xi@borderworlds.dk>

20 years agoAdd detection support for the Avance Logic (Realtek) ALC203 and ALC250.
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 08:13:28 +0000 (08:13 +0000)]
Add detection support for the Avance Logic (Realtek) ALC203 and ALC250.

20 years agoAdd a clarification comment stating that Avance Logic's IC products are
Jeroen Ruigrok/asmodai [Fri, 16 Jul 2004 08:02:46 +0000 (08:02 +0000)]
Add a clarification comment stating that Avance Logic's IC products are
Realtek's nowadays.

20 years agoUpdate all my personal copyrights to the Dragonfly Standard Copyright.
Matthew Dillon [Fri, 16 Jul 2004 05:52:14 +0000 (05:52 +0000)]
Update all my personal copyrights to the Dragonfly Standard Copyright.

20 years agoNote that Jeff indicated to me that Jonathan Lemon gave his permission to
Matthew Dillon [Fri, 16 Jul 2004 05:48:08 +0000 (05:48 +0000)]
Note that Jeff indicated to me that Jonathan Lemon gave his permission to
merge his copyright into the DFly standard copyright.

20 years agoChange all files that I own to use the official DragonFly Project
Hiten Pandya [Fri, 16 Jul 2004 05:04:36 +0000 (05:04 +0000)]
Change all files that I own to use the official DragonFly Project
license.

Reviewed-by: Matthew Dillon <dillon@apollo.backplane.com>
20 years agoAnnotate the b_xio field member of the BUF structure.
Hiten Pandya [Fri, 16 Jul 2004 02:01:17 +0000 (02:01 +0000)]
Annotate the b_xio field member of the BUF structure.

20 years agoStop depending upon an implicit 'int' as the return type of main().
Hiten Pandya [Fri, 16 Jul 2004 00:55:04 +0000 (00:55 +0000)]
Stop depending upon an implicit 'int' as the return type of main().

Submitted-by: Liam J. Foy <laimfoy@sepulcrum.org>
20 years agoMerge changes from FreeBSD:
Hiten Pandya [Fri, 16 Jul 2004 00:52:22 +0000 (00:52 +0000)]
Merge changes from FreeBSD:

Don't pass negative values into <ctype.h> functions on machines with
signed chars.

Print size_t with %zu, not %d.

Submitted-by: Liam J. Foy <liamfoy@sepulcrum.org>
20 years agoCorrect mdoc(7) for basename(1) and passwd(1) manual pages.
Hiten Pandya [Fri, 16 Jul 2004 00:45:34 +0000 (00:45 +0000)]
Correct mdoc(7) for basename(1) and passwd(1) manual pages.

Submitted-by: Liam J. Foy <liamfoy@sepulcrum.org>
20 years agoCorrect mdoc(7) processing errors; the .Bl directive should be provided
Hiten Pandya [Thu, 15 Jul 2004 04:50:49 +0000 (04:50 +0000)]
Correct mdoc(7) processing errors; the .Bl directive should be provided
with '-width', not plain 'width'.

20 years agoPOSIX update and cleanups for getopt(3):
Hiten Pandya [Thu, 15 Jul 2004 04:10:33 +0000 (04:10 +0000)]
POSIX update and cleanups for getopt(3):

o use getprogname(3) instead of using __progname directly;
  the latter should only be used by {gs}etprogname(3).

o handle strings with '--' correctly; this will display a
  meaningful error when doing 'ls --color -l'.

o correct behaviour with regard to POSIX; i.e., an error
  message should be printed when the bad option is '?'.

Tested with 'buildworld' and 'installworld'; with and without
the change.

Obtained from FreeBSD and NetBSD.

20 years agoUpdate a stale comment about lwkt_replymsg().
Hiten Pandya [Thu, 15 Jul 2004 02:37:33 +0000 (02:37 +0000)]
Update a stale comment about lwkt_replymsg().

Noticed-by: Andre Nathan <andres@digirati.com.br> (I think...)
Discussed-with: Matthew Dillon <dillon@apollo.backplane.com>

20 years agoRemove an erroneous '+' symbol at start of 'rand_irqs'.
Hiten Pandya [Wed, 14 Jul 2004 18:54:29 +0000 (18:54 +0000)]
Remove an erroneous '+' symbol at start of 'rand_irqs'.

Noticed-by: walt <wa1ter@myrealbox.com>
20 years agoAppend necessary information to the package name for portupgrade(8) to
Hiten Pandya [Wed, 14 Jul 2004 18:51:53 +0000 (18:51 +0000)]
Append necessary information to the package name for portupgrade(8) to
work with DF port overrides.

Submitted-by: YONETANI Tomokazu <qhwt@les.ath.cx>
20 years agoUpdate release to 1.0A
Matthew Dillon [Wed, 14 Jul 2004 18:45:21 +0000 (18:45 +0000)]
Update release to 1.0A

20 years agoUpdate dfuibe_installer to 1.0.1 to fix a series slice corruption issue.
Matthew Dillon [Wed, 14 Jul 2004 18:44:59 +0000 (18:44 +0000)]
Update dfuibe_installer to 1.0.1 to fix a series slice corruption issue.

20 years agoClarify behaviour of the -s option.
Chris Pressey [Wed, 14 Jul 2004 18:25:17 +0000 (18:25 +0000)]
Clarify behaviour of the -s option.

20 years agoAdd proper entropy pool scripts and rc.conf lines, as it was.
Jeroen Ruigrok/asmodai [Wed, 14 Jul 2004 09:00:09 +0000 (09:00 +0000)]
Add proper entropy pool scripts and rc.conf lines, as it was.

Submitted by: Peter Avalos <pavalos@theshell.com>

20 years agoForced commit to, belatedly, note that this (rev 1.1) was:
Jeroen Ruigrok/asmodai [Wed, 14 Jul 2004 08:01:16 +0000 (08:01 +0000)]
Forced commit to, belatedly, note that this (rev 1.1) was:

Submitted by: Max Laier <max@love2party.net>

20 years agoAdd ATI Radeon RV280 9200.
Jeroen Ruigrok/asmodai [Wed, 14 Jul 2004 07:44:52 +0000 (07:44 +0000)]
Add ATI Radeon RV280 9200.

Submitted by: Gary Tivey <gtivey@adelphia.net>

20 years agoDon't init sc->re_timer twice.
Joerg Sonnenberger [Wed, 14 Jul 2004 07:40:26 +0000 (07:40 +0000)]
Don't init sc->re_timer twice.

20 years agoCorrect reference to buf->b_xio.xio_pages in a comment.
Hiten Pandya [Wed, 14 Jul 2004 03:43:58 +0000 (03:43 +0000)]
Correct reference to buf->b_xio.xio_pages in a comment.

20 years agoBUF/BIO work, for removing the requirement of KVA mappings for I/O
Hiten Pandya [Wed, 14 Jul 2004 03:10:17 +0000 (03:10 +0000)]
BUF/BIO work, for removing the requirement of KVA mappings for I/O
requests.

Stage 1 of 8:

o Replace the b_pages member of the BUF structure with an embedded
  XIO (b_xio).  The XIO will be used for managing the BUF's page
  lists.

o Initialize the XIO at two main (only) points: 1) the pbuf code,
  which is used by the NFS code to create a temporary buffer; and
  bufinit(9), which is used by the rest of the BUF/BIO consumers.

Discussed-with:  Matthew Dillon <dillon@apollo.backplane.com>,

20 years agoUpdate list of FreeBSD version numbers, for use with manual pages.
Hiten Pandya [Tue, 13 Jul 2004 23:38:19 +0000 (23:38 +0000)]
Update list of FreeBSD version numbers, for use with manual pages.

Related to src/contrib/groff/tmac/doc-common,v revision 1.3.

Reminded-by: Sascha Wildner <saw@online.de>
20 years agoSpelling.
David Rhodus [Mon, 12 Jul 2004 20:02:23 +0000 (20:02 +0000)]
Spelling.

20 years agoUse the official 3-clause license for the MSFBUF header file.
Hiten Pandya [Mon, 12 Jul 2004 06:17:03 +0000 (06:17 +0000)]
Use the official 3-clause license for the MSFBUF header file.

Put "All rights reserved" on the same line as the Copyright,
in kern/kern_msfbuf.c.

20 years agoAdjust the copyright to the new official DragonFly copyright.
Matthew Dillon [Mon, 12 Jul 2004 05:15:05 +0000 (05:15 +0000)]
Adjust the copyright to the new official DragonFly copyright.
Basically it's just the 3-clause BSD copyright.

20 years agoFix memory leak.
David Rhodus [Mon, 12 Jul 2004 03:41:55 +0000 (03:41 +0000)]
Fix memory leak.

From fbsd.

20 years agoFix warning when building with c99.
David Rhodus [Sun, 11 Jul 2004 20:28:15 +0000 (20:28 +0000)]
Fix warning when building with c99.

20 years agoResynch the pristine ttys for the installer with the base system ttys (put
Matthew Dillon [Sun, 11 Jul 2004 19:42:25 +0000 (19:42 +0000)]
Resynch the pristine ttys for the installer with the base system ttys (put
the disabled xdm back in and run a getty on ttyd0).

20 years agoGive the dfui packages a version number (1.0). Implement serial console
Matthew Dillon [Sun, 11 Jul 2004 19:36:03 +0000 (19:36 +0000)]
Give the dfui packages a version number (1.0).  Implement serial console
support for the installer.  A terminal type of vt100-color seems to work
the best.

Submitted-by: Chriss Pressey
20 years agoUpdate the URL from which the installer packages can be obtained.
Chris Pressey [Sun, 11 Jul 2004 18:57:50 +0000 (18:57 +0000)]
Update the URL from which the installer packages can be obtained.

Hosting-provided-by: Scott Ullrich <GeekGod@GeekGod.com>
20 years agoChange the REQUIRE from `inetd' to the more sensical `mountoptional'.
Chris Pressey [Sun, 11 Jul 2004 18:55:20 +0000 (18:55 +0000)]
Change the REQUIRE from `inetd' to the more sensical `mountoptional'.

20 years agoUpdate the README to include a description of the installer and add some
Matthew Dillon [Sun, 11 Jul 2004 18:09:54 +0000 (18:09 +0000)]
Update the README to include a description of the installer and add some
additional cleanup steps (ttys and password file) for people doing manual
installs.

20 years agoUpdate the version to 1.0-RELEASE.
Matthew Dillon [Sun, 11 Jul 2004 17:48:41 +0000 (17:48 +0000)]
Update the version to 1.0-RELEASE.

20 years agoRemove temporary files immediately after they're no longer needed.
Chris Pressey [Sun, 11 Jul 2004 07:46:29 +0000 (07:46 +0000)]
Remove temporary files immediately after they're no longer needed.

20 years agoDon't enable CAPS unnecessarily.
Chris Pressey [Sun, 11 Jul 2004 06:33:27 +0000 (06:33 +0000)]
Don't enable CAPS unnecessarily.

20 years agoMerge in FreeBSD-SA-04:13.linux
David Rhodus [Sun, 11 Jul 2004 04:47:07 +0000 (04:47 +0000)]
Merge in FreeBSD-SA-04:13.linux

20 years agoThe password file the installer writes to the HD should not have an
Matthew Dillon [Sun, 11 Jul 2004 03:29:27 +0000 (03:29 +0000)]
The password file the installer writes to the HD should not have an
'installer' user at all.

20 years agoThe release password databases must be regenerated after installing the
Matthew Dillon [Sun, 11 Jul 2004 02:53:13 +0000 (02:53 +0000)]
The release password databases must be regenerated after installing the
various root skeletons.  This fixes a bug where the installer's addition
of an 'installer' account was not being recognized by /bin/login.

20 years agoSynch to modifications in the installer scripts:
Chris Pressey [Sun, 11 Jul 2004 01:55:28 +0000 (01:55 +0000)]
Synch to modifications in the installer scripts:

- Enable TCP transport and make it the default for communication
between installer frontend and backend (to overcome the the 128K
message size limitation in CAPS.)
- Use 'shutdown -h now' instead of 'shutdown -r now' for rebooting.

20 years agoThe temporary 'installer' user is not supposed to have a password.
Matthew Dillon [Sun, 11 Jul 2004 01:24:07 +0000 (01:24 +0000)]
The temporary 'installer' user is not supposed to have a password.

20 years agoImport the new nrelease Makefile packaging and root template infrastructure
Matthew Dillon [Sat, 10 Jul 2004 22:29:11 +0000 (22:29 +0000)]
Import the new nrelease Makefile packaging and root template infrastructure
from the DragonFly Installer Team and make the following additional
augmentations:

* Use the default port package install location to retrieve packages.
* Pre-check that all required packages exist before doing anything
* Remove the root autologin (also means that gettytab and ~root/.login can
  be removed from the original template).
* Add an etc/issue file
* Add an 'installer' user (root uid)

Obtained-from: The DragonFly Installer Team:
    Chris Pressey, Devon O'Dell, Eirik Nygaard, Hiten Pandya & GeekGod

20 years ago(installer support). We are going to have a special 'installer' login
Matthew Dillon [Sat, 10 Jul 2004 22:15:32 +0000 (22:15 +0000)]
(installer support).  We are going to have a special 'installer' login
instead of an autologin, so make sure its in the list of illegal login users.

20 years agoThere was a mountlist race in getnewvnode() whereby the system could block
Matthew Dillon [Sat, 10 Jul 2004 16:29:45 +0000 (16:29 +0000)]
There was a mountlist race in getnewvnode() whereby the system could block
obtaining the mountlist token while adding a vnode to the mountlist prior
to initializing the vnode's v_usecount and v_data fields.  This bug is
possibly responsible for or related to occassional reports of duplicate
inodes in the system.

Fix the potential problem by more completely initializing the vnode prior
to adding it to the mountlist.  Note that FreeBSD-5 also rearranged thei
r code along the same lines (though this change is independant of their
work).

20 years agoFix some issues with the pccard shutdown path (during reboot and halt).
Matthew Dillon [Sat, 10 Jul 2004 16:25:59 +0000 (16:25 +0000)]
Fix some issues with the pccard shutdown path (during reboot and halt).
pccard was resetting the bridge controller and unmapping the device
without first detaching/shutting down the helper thread or disabling the
interrupt, and without calling the shutdown function for the children,
leading to several actual and potential lockups during a halt/reboot
sequence.

There was also a bug in the thread termination code that could deadlock
the system... the thread interlock was being improperly held while
looping waiting for thread termination.  Finally, there was an instance
where sc->flags was being manipulated without holding the proper lock.

Rearrange the dev/pccard/pccbb shutdown code to (A) call the shutdown
vector for the children, (B) disable the associated interrupt, and
(C) properly terminate the helper thread, and fix the other bugs that
were found.

There are still known issues not addressed by this patch, including
interrupt storms from the cardbus system during halt/reboot (currently
mostly caught by our interrupt rate limiting code), and at least one
unknown deadlock can still occur during halt/reboot.

In discusssions with: Joerg Sonnenberger <joerg@britannica.bec.de>

20 years agoStop using if_dname, use if_printf or ifp->if_xname instead.
Joerg Sonnenberger [Sat, 10 Jul 2004 12:48:55 +0000 (12:48 +0000)]
Stop using if_dname, use if_printf or ifp->if_xname instead.

20 years agoIn lf_wakeup, once we got a range embedded in the unlocked range,
Joerg Sonnenberger [Sat, 10 Jul 2004 12:19:27 +0000 (12:19 +0000)]
In lf_wakeup, once we got a range embedded in the unlocked range,
we can stop waking up threads.

20 years agoRemove unused variable.
David Rhodus [Fri, 9 Jul 2004 19:13:40 +0000 (19:13 +0000)]
Remove unused variable.

20 years agoFix compile warning.
David Rhodus [Fri, 9 Jul 2004 19:11:20 +0000 (19:11 +0000)]
Fix compile warning.

20 years agoAdd a missing '$' to the FreeBSD cvs tags.
Matthew Dillon [Fri, 9 Jul 2004 16:15:27 +0000 (16:15 +0000)]
Add a missing '$' to the FreeBSD cvs tags.

Submitted-by: YONETANI Tomokazu <qhwt+dragonfly-bugs@les.ath.cx>
20 years agoIPS was using malloc flags of 0 (which is no longer allowed). The helper
Matthew Dillon [Fri, 9 Jul 2004 16:15:06 +0000 (16:15 +0000)]
IPS was using malloc flags of 0 (which is no longer allowed).  The helper
routine was being passed a flags argument but due to a prior conditional
the flags argument was always 0 anyway, so just change the malloc to use
M_INTWAIT unconditionally.

Submitted-by: YONETANI Tomokazu <qhwt+dragonfly-bugs@les.ath.cx>
20 years agoAdd support for CS4294.
Jeroen Ruigrok/asmodai [Fri, 9 Jul 2004 10:01:02 +0000 (10:01 +0000)]
Add support for CS4294.

Syncs: FreeBSD v1.51
PR: kern/66280
Submitted by: Christian Brueffer <chris@unixpages.org>

20 years agoAdd the standard DragonFly copyright notice to go along with mine.
Jeffrey Hsu [Thu, 8 Jul 2004 22:43:01 +0000 (22:43 +0000)]
Add the standard DragonFly copyright notice to go along with mine.

Approved by: Matt

20 years agoAdd the standard DragonFly copyright notice to go along with mine.
Jeffrey Hsu [Thu, 8 Jul 2004 22:07:35 +0000 (22:07 +0000)]
Add the standard DragonFly copyright notice to go along with mine.

Approved by: Matt

20 years agoCorrect the FreeBSD attribution on this file.
Chris Pressey [Thu, 8 Jul 2004 17:59:01 +0000 (17:59 +0000)]
Correct the FreeBSD attribution on this file.

20 years agoCorrect the FreeBSD attribution on this file.
Chris Pressey [Thu, 8 Jul 2004 17:50:46 +0000 (17:50 +0000)]
Correct the FreeBSD attribution on this file.

20 years agoGive ugenbuf the standard DragonFly copyright.
Matthew Dillon [Thu, 8 Jul 2004 16:18:50 +0000 (16:18 +0000)]
Give ugenbuf the standard DragonFly copyright.

20 years agoGive the newly created ugenbuf.c the standard DragonFly copyright.
Matthew Dillon [Thu, 8 Jul 2004 16:18:10 +0000 (16:18 +0000)]
Give the newly created ugenbuf.c the standard DragonFly copyright.

20 years agougenbuf is associated with the 'ugen' device, not the 'ugenbuf' device.
Matthew Dillon [Thu, 8 Jul 2004 15:50:19 +0000 (15:50 +0000)]
ugenbuf is associated with the 'ugen' device, not the 'ugenbuf' device.

Reported-by: "GeekGod" <GeekGod@GeekGod.com>
20 years agoAdd PDEBUG call for device_shutdown.
Joerg Sonnenberger [Thu, 8 Jul 2004 12:43:32 +0000 (12:43 +0000)]
Add PDEBUG call for device_shutdown.

20 years agoJulian Elischer posted an interesting proof-of-concept to freebsd-current
Matthew Dillon [Thu, 8 Jul 2004 03:53:54 +0000 (03:53 +0000)]
Julian Elischer posted an interesting proof-of-concept to freebsd-current
regarding UGEN's use of a 1K stack buffer for bulk IO issues.  The small
block size resulted in unnecessarily slow performance with certain devices.

Implement a fix along the lines described.  Create a simple ugen buffer
allocator abstraction and a one-entry cache to avoid unnecessary malloc/free
sequences.  Allow the block size to be set with a sysctl and default it
to 16K.

Not much uses UGEN.  Camera software, mainly.  The change appears to
slightly improve s10sh transfer performance from my Canon 10D.

20 years agoBring EHCI up-to-date with NetBSD. The most serious fixes are 1.53, 1.55,
Matthew Dillon [Thu, 8 Jul 2004 03:47:09 +0000 (03:47 +0000)]
Bring EHCI up-to-date with NetBSD.  The most serious fixes are 1.53, 1.55,
1.56, and 1.64.

    revision 1.67
    Fix a byte order error. (note: was already previously ported to
 DFly)

    revision 1.66
    Fix an endianness problem (EHCI_NULL was being double-swapped).

    revision 1.65
    Make one message dependent on ohcidebug, so it doesn't interfere with polled
    operation; e.g. when entering a root device or in DDB.

    revision 1.64
    Further cleanup of toggle handling.  Now that we use EHCI_QH_DTC, we don't
    need to fiddle with the TOGGLE bit in the overlay descriptor, so minimize
    how much we fuss with it.

    revision 1.63
    Fix an error in a debug printf().

    revision 1.62
    Adjust a couple of comments to make it clear WTF is going on.

    revision 1.61

    revision 1.60
    Remove comment about the data toggle being borked.

    revision 1.59
    As the ehci_idone() now uses the variable `epipe' unconditionally, always
    declare it (in other words, make this file compile w/o EHCI_DEBUG).

    revision 1.58
    Fix a stupid bug in ehci_check_intr() that caused use to try to complete a
    transaction that was still running.  Now ehci can handle multiple devices
    being active at once.

    revision 1.57
    Oops.  Remove a couple of printf()s.

    revision 1.56
    Failure to properly mask off UE_DIR_IN from the endpoint address was causing
    OHCI_ED_FORMAT_ISO and EHCI_QH_HRECL to get set spuriously, causing rather
    interesting lossage.

    Suddenly I get MUCH better performance with ehci...

    revision 1.55
    Set the data toggle correctly, and use EHCI_QTD_DTC.  This fixes problems with
    my ALi-based drive enclosure (it works now, rather than failing to attach).
    Also seems to work with a GL811-based enclosure and an ASUS enclosure with a
    CD-RW, on both Intel and NEC controllers.

    Note: The ALi enclosure is currently very SLOW, due to some issue with taking
    too long to notice that the QTD is complete.  This requires more investigation.

    revision 1.54
    branches:  1.54.2;
    Michael van Elst reports his USB2 disk works stable after latest Chuck's
    ehci.c changes, so remove the item from TODO.

    revision 1.53
    in ehci_softintr() when looping over the active xfers, save the next pointer
    before calling ehci_check_intr(), since that will free the xfer structure
    if the xfer is complete.

    revision 1.52
    add list of known issues, from Lennart Augustsson and Michael van Elst

    revision 1.51
    Use the correct wValue to get hub desriptors.
    Also, make wValue checks of root hub codes less strict.

20 years agoBring in a bunch of updates from NetBSD:
Matthew Dillon [Thu, 8 Jul 2004 03:25:00 +0000 (03:25 +0000)]
Bring in a bunch of updates from NetBSD:

    revision 1.144
    Fix swapped lines in cleanup in ohci_init().  From OpenBSD.

    revision 1.145
    Try harder to avoid 0 ports woth AMD756.  From OpenBSD.

    revision 1.146
    Use the correct wValue to get hub desriptors.
    Also, make wValue checks of root hub codes less strict.

    revision 1.147
    Failure to properly mask off UE_DIR_IN from the endpoint address was causing
    OHCI_ED_FORMAT_ISO and EHCI_QH_HRECL to get set spuriously, causing rather
    interesting lossage.  Suddenly I get MUCH better performance with ehci...

    revision 1.148
    Adjust a couple of comments to make it clear WTF is going on.

    revision 1.149
    Make one message dependent on ohcidebug, so it doesn't interfere with polled
    operation; e.g. when entering a root device or in DDB.

    revision 1.150
    Fix an error in a printf() format.
    Swap the order that two items are written; possibly fixes a race condition
    that would affect isoc transfers.

20 years agoJust use the .Ev directive for printing an environment variable,
Hiten Pandya [Thu, 8 Jul 2004 01:21:11 +0000 (01:21 +0000)]
Just use the .Ev directive for printing an environment variable,
don't prepend it with anything else.

20 years agoCorrectly use the .Bd directive, i.e., present it with the -literal
Hiten Pandya [Thu, 8 Jul 2004 01:16:02 +0000 (01:16 +0000)]
Correctly use the .Bd directive, i.e., present it with the -literal
argument.

20 years agoA variety of mdoc(7) and grammar changes:
Hiten Pandya [Thu, 8 Jul 2004 01:04:18 +0000 (01:04 +0000)]
A variety of mdoc(7) and grammar changes:

* use .Bl and .El directives when using a list
* use .Dv directive when appropriate
* use 'The' to start a sentence instead of the function name
* paragraph cleanups for return values
* use approrpriate directives to markup pointers and types
* use .Er directive for marking up errno(3) values
* eliminate hard sentence breaks
* use .Dv instead of .Va when documenting known constants
* eliminate empty lines
* spelling and grammar corrections
* eliminate incorrect use of the .Lb directive

While I am here, add a reference to the rfork(2) manual page
under the SEE ALSO section.

20 years agoUse the .Dv directive for marking up PROT_* constants.
Hiten Pandya [Thu, 8 Jul 2004 00:33:02 +0000 (00:33 +0000)]
Use the .Dv directive for marking up PROT_* constants.

20 years agoCorrect mdoc(7) errors:
Hiten Pandya [Thu, 8 Jul 2004 00:27:11 +0000 (00:27 +0000)]
Correct mdoc(7) errors:

* correct usage of the .Dx and .Fx macro
* remove redundant empty lines
* provide a matching .El macro when using .Bl

Submitted-by: Brad Harvell <dfbrad@whatzit.org>
20 years agoAdd a bunch of .Fx (FreeBSD) version numbers.
Hiten Pandya [Thu, 8 Jul 2004 00:20:54 +0000 (00:20 +0000)]
Add a bunch of .Fx (FreeBSD) version numbers.

Submitted-by: Brad Harvell <dfbrad@whatzit.org>
20 years agoBunch of mdoc(7) and various file path fixes.
Hiten Pandya [Thu, 8 Jul 2004 00:14:49 +0000 (00:14 +0000)]
Bunch of mdoc(7) and various file path fixes.

Submitted-by: Sascha Wildner <saw@online.de>
20 years agoFix a small but important mistake.
Hiten Pandya [Wed, 7 Jul 2004 23:11:33 +0000 (23:11 +0000)]
Fix a small but important mistake.

Noticed-by: Brad Harvel <dfbrad@whatzit.org>
20 years agoUse the official devised license for the first time, starting with
Hiten Pandya [Wed, 7 Jul 2004 18:11:56 +0000 (18:11 +0000)]
Use the official devised license for the first time, starting with
kern/kern_msfbuf.c.

It is a 3-clause license with the Copyright holder dedicated to:

``The DragonFly Project''

Discussed-with:  Matthew Dillon and Jeffrey Hsu

20 years agoRemove the advertising clause from this file.
Hiten Pandya [Wed, 7 Jul 2004 18:09:06 +0000 (18:09 +0000)]
Remove the advertising clause from this file.

I will settle with 3-clause license.

See the following URL for more information:
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Discussed-with:  Matthew Dillon <dillon@backplane.com>