]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoFix uncontrolled access to the buffer in rfcomm_sppd(1).
Maksim Yevmenkin [Fri, 19 Dec 2003 18:15:56 +0000 (18:15 +0000)]
Fix uncontrolled access to the buffer in rfcomm_sppd(1).
Fix typo in hcsecd(8) man page.

Submitted by: Guido Falsi <mad@madpilot.net>
Reviewed by: imp (mentor)
Approved by: imp (mentor)

20 years agoWe only need to terminate our recovery thread once.
Justin T. Gibbs [Fri, 19 Dec 2003 18:10:59 +0000 (18:10 +0000)]
We only need to terminate our recovery thread once.

20 years agoImplement __cxa_atexit/__cxa_finalize as specified by the cross-vendor
Alexander Kabaev [Fri, 19 Dec 2003 17:11:21 +0000 (17:11 +0000)]
Implement __cxa_atexit/__cxa_finalize as specified by the cross-vendor
ó++ ABI document at http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor

The ABI was initially defined for ia64, but GCC3 and Intel compilers
have adopted it on other platforms.

This is the patch from PR bin/59552 with a number of changes by
me.

PR: bin/59552
Submitted by: Bradley T Hughes (bhughes at trolltech dot com)

20 years agoImplement __cxa_atexit/__cxa_finalize as specified by the cross-vendor
Alexander Kabaev [Fri, 19 Dec 2003 17:11:20 +0000 (17:11 +0000)]
Implement __cxa_atexit/__cxa_finalize as specified by the cross-vendor
C++ ABI document at http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor

The ABI was initially defined for ia64, but GCC3 and Intel compilers
have adopted it on other platforms.

This is the patch from PR bin/59552 with a number of changes by
me.

PR: bin/59552
Submitted by: Bradley T Hughes (bhughes at trolltech dot com)

20 years agoBring the description of the sysctl(8) variable
Yaroslav Tykhiy [Fri, 19 Dec 2003 16:42:35 +0000 (16:42 +0000)]
Bring the description of the sysctl(8) variable
net.graph.nonstandard_pppoe into accord with the reality.

MFC after: 1 week

20 years agoThe default value of net.graph.nonstandard_pppoe is changed to -1,
Yaroslav Tykhiy [Fri, 19 Dec 2003 16:03:28 +0000 (16:03 +0000)]
The default value of net.graph.nonstandard_pppoe is changed to -1,
which means "always stay in the standard mode of PPPoE operation
regardless of any junk floating around."

As the referenced PR stated clearly, the old default setting of 0
was extremely dangerous because it opened a possibility for a
spurious frame not only to put down a single PPPoE node running
FreeBSD, but to plague *every* FreeBSD node in a PPPoE network in
such a way that those nodes would keep poisoning each other until
rebooted simultaneously.

PR: kern/47920
Reviewed by: Gleb Smirnoff <glebius <at> cell.sick.ru>
MFC after: 1 week

20 years agoFixed panic on hook disconnection that previous revision has introduced.
Ruslan Ermilov [Fri, 19 Dec 2003 15:09:12 +0000 (15:09 +0000)]
Fixed panic on hook disconnection that previous revision has introduced.

20 years agoReplace a comment with more accurated one, memory heap is now protected by
David Xu [Fri, 19 Dec 2003 13:24:54 +0000 (13:24 +0000)]
Replace a comment with more accurated one, memory heap is now protected by
new fork() wrapper.

20 years agoReduce the overhead of semop() by using the kernel stack instead of
Tim J. Robbins [Fri, 19 Dec 2003 13:07:17 +0000 (13:07 +0000)]
Reduce the overhead of semop() by using the kernel stack instead of
malloc'd memory to store the operations array if it is small enough
to fit.

20 years agoCode clean up, remove unused MACROS and function prototypes.
David Xu [Fri, 19 Dec 2003 12:57:08 +0000 (12:57 +0000)]
Code clean up, remove unused MACROS and function prototypes.

20 years agoFirst byte of GBK-like sequences is 0x81, not 0x80
Andrey A. Chernov [Fri, 19 Dec 2003 12:54:42 +0000 (12:54 +0000)]
First byte of GBK-like sequences is 0x81, not 0x80

20 years agoChange encoding to GBK to get correct first byte range
Andrey A. Chernov [Fri, 19 Dec 2003 12:51:40 +0000 (12:51 +0000)]
Change encoding to GBK to get correct first byte range

20 years agoSync to 1.149 of usbdevs
MIHIRA Sanpei Yoshiro [Fri, 19 Dec 2003 12:21:11 +0000 (12:21 +0000)]
Sync to 1.149 of usbdevs

20 years agoAdd support Panasonic KXL-CB35AN(DVD-ROM & CD-R/RW)
MIHIRA Sanpei Yoshiro [Fri, 19 Dec 2003 12:19:12 +0000 (12:19 +0000)]
Add support Panasonic KXL-CB35AN(DVD-ROM & CD-R/RW)

Submitted by: OISHI Masakuni <yamasa@bsdhouse.org> [FreeBSD-users-jp 77672]

20 years agoChange the select timeout from 100ms to 2 seconds now that SIGCHILD is
Scott Long [Fri, 19 Dec 2003 11:18:37 +0000 (11:18 +0000)]
Change the select timeout from 100ms to 2 seconds now that SIGCHILD is
handled.

20 years agoFixed compilation on 64-bit platforms.
Ruslan Ermilov [Fri, 19 Dec 2003 09:34:37 +0000 (09:34 +0000)]
Fixed compilation on 64-bit platforms.

20 years agoAdd zh_HK.Big5HKSCS
Andrey A. Chernov [Fri, 19 Dec 2003 07:04:56 +0000 (07:04 +0000)]
Add zh_HK.Big5HKSCS

PR:             59799
Submitted by:   Statue <statue@freebsd.sinica.edu.tw>

20 years agoAdd zh_HK.Big5HKSCS
Andrey A. Chernov [Fri, 19 Dec 2003 06:57:57 +0000 (06:57 +0000)]
Add zh_HK.Big5HKSCS

20 years agoIn ahd_run_qoutfifos, correct a !=/== logic bug
Justin T. Gibbs [Fri, 19 Dec 2003 04:17:43 +0000 (04:17 +0000)]
In ahd_run_qoutfifos, correct a !=/== logic bug
that would cause an infinite loop any time we
manually flush the good status FIFO.  Also make
our loop delay unconditional to ensure we don't
miss any FIFO allocations by the hardware.

20 years agoMake ndiscvt(8) emit the binary image array as inline assembly code rather
Bill Paul [Thu, 18 Dec 2003 21:47:14 +0000 (21:47 +0000)]
Make ndiscvt(8) emit the binary image array as inline assembly code rather
than a char array. Emitting the data as a big char array works fine in
the typical case, where a .sys file may be ~50K in size. Unfortunately,
some .sys files can be several hundred Kbytes in size, or even several
megabytes in size. One extreme case is the Intel centrino wireless
driver, which is 2.4MB. This causes us to emit an ndis_driver_data.h
file that's on the order of 15MB in size, and gcc consumes enormous
amounts of virtual memory while trying to compile it. On my laptop,
with 128MB of RAM and 256MB of swap space, gcc consumed all available
VM and crashed without being able to compile if_ndis.o.

By emitting the array as assembler, we bypass the C compiler and consume
much less memory. I was able to easily test compile if_ndis.ko with the
centrino driver on my laptop after this change.

This is merely a convenience, and should not have any operational effect
on the NDISulator itself.

20 years agoMFamd64: Remove i386_protection_init() and the protection_codes[] array
John Baldwin [Thu, 18 Dec 2003 21:15:18 +0000 (21:15 +0000)]
MFamd64: Remove i386_protection_init() and the protection_codes[] array
and replace them with a simple if test to turn on PG_RW.  i386 != vax.

20 years agoFix PANASONIC KXLCB20AN Protocol.
MIHIRA Sanpei Yoshiro [Thu, 18 Dec 2003 19:59:32 +0000 (19:59 +0000)]
Fix PANASONIC KXLCB20AN Protocol.

Submitted by: OISHI Masakuni <yamasa@bsdhouse.org> [FreeBSD-users-jp 77672]

20 years agoFix the register timings for AMD/VIA/nVidia chipsets.
Søren Schmidt [Thu, 18 Dec 2003 17:36:41 +0000 (17:36 +0000)]
Fix the register timings for AMD/VIA/nVidia chipsets.

20 years agomdoc(7) style: Start each sentence on a new line.
Yaroslav Tykhiy [Thu, 18 Dec 2003 17:31:44 +0000 (17:31 +0000)]
mdoc(7) style: Start each sentence on a new line.

20 years agoCapitalize PPPoE, PPP, and Ethernet in a consistent way.
Yaroslav Tykhiy [Thu, 18 Dec 2003 17:27:49 +0000 (17:27 +0000)]
Capitalize PPPoE, PPP, and Ethernet in a consistent way.

20 years agoInitialize acpi buffer structs early in order to avoid freeing
Alexander Kabaev [Thu, 18 Dec 2003 17:04:11 +0000 (17:04 +0000)]
Initialize acpi buffer structs early in order to avoid freeing
unallocated pointers later in done: section.

20 years agoThe politically incorrect sysctl "stupid_isp" had its name
Yaroslav Tykhiy [Thu, 18 Dec 2003 16:55:09 +0000 (16:55 +0000)]
The politically incorrect sysctl "stupid_isp" had its name
changed long ago.  It has been "nonstandard_pppoe" for quite
a while.

20 years agoThere are two modes of ng_pppoe operation, standard and
Yaroslav Tykhiy [Thu, 18 Dec 2003 16:38:35 +0000 (16:38 +0000)]
There are two modes of ng_pppoe operation, standard and
nonstandard.  They differ in the values of certain fields in
the PPPoE frame.  Previously, ng_pppoe would start in standard
mode, yet switch to nonstandard one upon reception of a single
nonstandard frame.  After having done so, ng_pppoe would be unable
to interact with standard PPPoE peers.  Thus, a DoS condition
existed that could be triggered by a buggy peer or malicious party.

Since few people have expressed their displeasure WRT this problem,
the default operation of ng_pppoe is left untouched for now.  However,
a new value for the sysctl net.graph.nonstandard_pppoe is introduced,
-1, which will force ng_pppoe stay in standard mode regardless of any
bogus frames floating around.

PR: kern/47920
Submitted by: Gleb Smirnoff <glebius <at> cell.sick.ru>
MFC after: 1 week

20 years agoAdd the Solaris x86 boot partition type. This is used in Solaris 10
Hartmut Brandt [Thu, 18 Dec 2003 13:13:02 +0000 (13:13 +0000)]
Add the Solaris x86 boot partition type. This is used in Solaris 10
(and perhaps earlier).

Submitted by: Joerg Schilling <schilling@fokus.fraunhofer.de>

20 years agoNow I understand what Bruce was getting at - -1 can be parsed as two
Jordan K. Hubbard [Thu, 18 Dec 2003 10:41:39 +0000 (10:41 +0000)]
Now I understand what Bruce was getting at - -1 can be parsed as two
tokens, so it does indeed need to be parenthesized.  Duh.  Sometimes
it can stare you right and the face and you still don't see it.  Thanks, bde.

20 years agoRemoved an outdated comment.
Ruslan Ermilov [Thu, 18 Dec 2003 09:16:40 +0000 (09:16 +0000)]
Removed an outdated comment.

Submitted by: archie

20 years agoSync to 1.148 of usbdevs
MIHIRA Sanpei Yoshiro [Thu, 18 Dec 2003 08:20:02 +0000 (08:20 +0000)]
Sync to 1.148 of usbdevs

20 years agoAdd support IBM 256MB USB Drive(MSYSTEM DiskOnKey2)
MIHIRA Sanpei Yoshiro [Thu, 18 Dec 2003 08:15:10 +0000 (08:15 +0000)]
Add support IBM 256MB USB Drive(MSYSTEM DiskOnKey2)

PR: kern/57050
Submitted by: Brian J. McGovern <mcgovern@beta.com>

20 years agoAdd support for the SiS 661 chipset (using SiS 963 south).
Søren Schmidt [Thu, 18 Dec 2003 08:07:05 +0000 (08:07 +0000)]
Add support for the SiS 661 chipset (using SiS 963 south).

20 years agoBrucification: Don't initialize in declaration, make sure extra lines
Jordan K. Hubbard [Thu, 18 Dec 2003 07:44:53 +0000 (07:44 +0000)]
Brucification: Don't initialize in declaration, make sure extra lines
follow declaration section.

20 years agoAdjust in response to various bits of brucification:
Jordan K. Hubbard [Thu, 18 Dec 2003 07:42:08 +0000 (07:42 +0000)]
Adjust in response to various bits of brucification:

1) Fix style issues in comments.
2) Properly namespaceify changes
3) Appropriate sectioning of changes

Not changed: parenthesis around macro rvalue.  That would make the additions
inconsistent with the other entries there, merely a different style violation
rather than a clear and obvious improvement so I'm going to have to disagree
with the judges on that one.  If someone wishes to adjust *all* the rvalues
to conform to fully parenthesized marco rule, that would be both consistent
and reasonable but that's beyond the scope of the changes I wish to make at
this time.

20 years agoAdd missing #include "opt_compat.h" so that the compatability function
Peter Wemm [Thu, 18 Dec 2003 06:59:18 +0000 (06:59 +0000)]
Add missing #include "opt_compat.h" so that the compatability function
freebsd4_freebsd32_sigreturn() is defined when expected.  This should
unbreak the tinderbox. Sorry.

20 years agoSync to 1.147 of usbdevs
MIHIRA Sanpei Yoshiro [Thu, 18 Dec 2003 05:55:52 +0000 (05:55 +0000)]
Sync to 1.147 of usbdevs

20 years agoAdd Support
MIHIRA Sanpei Yoshiro [Thu, 18 Dec 2003 05:47:11 +0000 (05:47 +0000)]
Add Support
- PNY Attache Flash Drive  [1]
- minolta 5400 USB scanner [2]

PR: kern/58045 [1]
kern/56496 [2]

Submitted by: [1] Rick C. Petty <rick@kiwi-computer.com>
[2] Mark Diekhans <markd@kermodei.com>

20 years agoAdd power_profile, a script that changes the ACPI CPU Cx idle state and/or
Nate Lawson [Thu, 18 Dec 2003 04:39:57 +0000 (04:39 +0000)]
Add power_profile, a script that changes the ACPI CPU Cx idle state and/or
the throttling state in response to line transitions.  Future plans
include adding support for CPU frequency changes.

Add a devd.conf entry for calling this script.

The default values for this are:
performance_cx_lowest="HIGH"       # Use HLT (C0) online
performance_throttle_state="HIGH"  # 100% (no throttling)
economy_cx_lowest="LOW"            # Use the lowest Cx state possible
economy_throttle_state="HIGH"      # 100% (no throttling)

20 years agoDocument new sysctls for throttling.
Nate Lawson [Thu, 18 Dec 2003 04:39:09 +0000 (04:39 +0000)]
Document new sysctls for throttling.

20 years agoRemove power profile support from acpi_cpu, it will be managed by a
Nate Lawson [Thu, 18 Dec 2003 04:38:45 +0000 (04:38 +0000)]
Remove power profile support from acpi_cpu, it will be managed by a
script run from devd(8).

20 years agoFix wildcard subsystem case in ndis_probe().
Bill Paul [Thu, 18 Dec 2003 04:02:27 +0000 (04:02 +0000)]
Fix wildcard subsystem case in ndis_probe().

20 years agoGrrrr. Remove -g flag that snuck in.
Bill Paul [Thu, 18 Dec 2003 03:52:40 +0000 (03:52 +0000)]
Grrrr. Remove -g flag that snuck in.

20 years agoDeal with the duplicate sysctl leaf problem. A .inf file may contain
Bill Paul [Thu, 18 Dec 2003 03:51:21 +0000 (03:51 +0000)]
Deal with the duplicate sysctl leaf problem. A .inf file may contain
definitions for more than one device (usually differentiated by
the PCI subvendor/subdevice ID). Each device also has its own tree
of registry keys. In some cases, each device has the same keys, but
sometimes each device has a unique tree but with overlap. Originally,
I just had ndiscvt(8) dump out all the keys it could find, and we
would try to apply them to every device we could find. Now, each key
has an index number that matches it to a device in the device ID list.
This lets us create just the keys that apply to a particular device.

I also added an extra field to the device list to hold the subvendor
and subdevice ID.

Some devices are generic, i.e. there is no subsystem definition. If
we have a device that doesn't match a specific subsystem value and
we have a generic entry, we use the generic entry.

20 years agoAdd support for multiple CIDs since _CID can contain a package of values.
Nate Lawson [Thu, 18 Dec 2003 03:25:22 +0000 (03:25 +0000)]
Add support for multiple CIDs since _CID can contain a package of values.
Implement this in acpi_MatchHid() and acpi_isa_get_compatid().  This
should fix mouse support for some users.

Move all users of AcpiGetObjectInfo() to use dynamic storage instead of
a devinfo on the stack.  This is necessary since ACPI-CA needs to
allocate different sized arrays for the CompatList.

20 years agoInstall 100dpi fonts by default when installing X11: fun as using 75dpi
Robert Watson [Wed, 17 Dec 2003 23:08:13 +0000 (23:08 +0000)]
Install 100dpi fonts by default when installing X11: fun as using 75dpi
fonts on a 100dpi display is, the jaggies just aren't worth it.  DPMI
auto-configures higher DPIs on many modern displays now.

20 years agoDocument what the PAM believers failed to do (and should have),
David E. O'Brien [Wed, 17 Dec 2003 22:38:57 +0000 (22:38 +0000)]
Document what the PAM believers failed to do (and should have),
which is how to rsh as root into a machine.

20 years agoVarious style fixes.
John Baldwin [Wed, 17 Dec 2003 21:13:04 +0000 (21:13 +0000)]
Various style fixes.

Submitted by: bde (mostly, if not all)

20 years agoRecognize the nVidia ehci device id's in addition to the rest.
Peter Wemm [Wed, 17 Dec 2003 17:15:41 +0000 (17:15 +0000)]
Recognize the nVidia ehci device id's in addition to the rest.

20 years agoRecognize the nForce3 id's. This is mostly cosmetic and affects
Peter Wemm [Wed, 17 Dec 2003 17:15:07 +0000 (17:15 +0000)]
Recognize the nForce3 id's.  This is mostly cosmetic and affects
the usbdevs command.

20 years agoReturn to the caller if write() returns 0.
Daniel Eischen [Wed, 17 Dec 2003 16:44:03 +0000 (16:44 +0000)]
Return to the caller if write() returns 0.

PR: 59291

20 years agoSet RPATH when the Kerberos KDC is linked with the LDAP backend
Jacques Vidrine [Wed, 17 Dec 2003 16:13:10 +0000 (16:13 +0000)]
Set RPATH when the Kerberos KDC is linked with the LDAP backend
(`WITH_OPENLDAP').  Previously, the KDC could fail to start if it was
invoked before `ldconfig'.

This solution was chosen rather than adding an `ldconfig' dependency
to `kerberos' in rcNG, because it is more robust and there is no
guarantee that the LDAP libraries will be in ldconfig's path anyway.

Problem reported by: Sean McNeil <sean@mcneil.com>

20 years agoFix some becuase -> because typos.
John Baldwin [Wed, 17 Dec 2003 16:12:01 +0000 (16:12 +0000)]
Fix some becuase -> because typos.

Reported by: Marco Wertejuk <wertejuk@mwcis.com>

20 years agoSwitch TCP over to using the inpcb label when responding in timed
Robert Watson [Wed, 17 Dec 2003 14:55:11 +0000 (14:55 +0000)]
Switch TCP over to using the inpcb label when responding in timed
wait, rather than the socket label.  This avoids reaching up to
the socket layer during connection close, which requires locking
changes.  To do this, introduce MAC Framework entry point
mac_create_mbuf_from_inpcb(), which is called from tcp_twrespond()
instead of calling mac_create_mbuf_from_socket() or
mac_create_mbuf_netlayer().  Introduce MAC Policy entry point
mpo_create_mbuf_from_inpcb(), and implementations for various
policies, which generally just copy label data from the inpcb to
the mbuf.  Assert the inpcb lock in the entry point since we
require consistency for the inpcb label reference.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

20 years agoRegen.
MIHIRA Sanpei Yoshiro [Wed, 17 Dec 2003 14:23:55 +0000 (14:23 +0000)]
Regen.

20 years agoAdd support HP hn210e usb ethernet
MIHIRA Sanpei Yoshiro [Wed, 17 Dec 2003 14:23:07 +0000 (14:23 +0000)]
Add support HP hn210e usb ethernet

PR: kern/60156
Submitted by: M. L. Dodson <bdodson@scms.utmb.edu>

20 years agoRegen.
MIHIRA Sanpei Yoshiro [Wed, 17 Dec 2003 13:58:31 +0000 (13:58 +0000)]
Regen.

20 years agoAdd support
MIHIRA Sanpei Yoshiro [Wed, 17 Dec 2003 13:48:58 +0000 (13:48 +0000)]
Add support
[1] Logitec LDR-H443U2 DVD-RAM/-R/+R/-RW/+RW Drive
[2] Panasonic KXL-CB20AN Portable DVD-ROM/CD-R/RW

Submitted by: [1] Taoka Fumiyoshi <fmysh@iijmio-mail.jp> [bsd-usb:727]
[2] SHIMIZU Kazuhiro <kazuhiro@shimizu.homeip.net> [FreeBSD-users-jp 77608]

20 years agoCorrect truncation detection after use of snprintf: The case where
Jacques Vidrine [Wed, 17 Dec 2003 13:36:05 +0000 (13:36 +0000)]
Correct truncation detection after use of snprintf:  The case where
exactly one character was truncated was not detected.

20 years agoUse the (now standard) Ethernet address parse type.
Ruslan Ermilov [Wed, 17 Dec 2003 13:03:32 +0000 (13:03 +0000)]
Use the (now standard) Ethernet address parse type.

20 years agoMade the Ethernet address parse type standard.
Ruslan Ermilov [Wed, 17 Dec 2003 12:40:34 +0000 (12:40 +0000)]
Made the Ethernet address parse type standard.

OK'ed by: archie

20 years agoReplaced two bzero() calls with the M_ZERO flag to malloc().
Ruslan Ermilov [Wed, 17 Dec 2003 11:48:18 +0000 (11:48 +0000)]
Replaced two bzero() calls with the M_ZERO flag to malloc().

Reviewed by: julian

20 years agoOK, someone was tab happy in this file. A tab after #define?! OK, fine,
Jordan K. Hubbard [Wed, 17 Dec 2003 10:54:05 +0000 (10:54 +0000)]
OK, someone was tab happy in this file.  A tab after #define?!  OK, fine,
I'll keep the same style regardless of the wisdom of it. :)
Clarified by: eivind

20 years agoAdd MLINKS:
Christian Brueffer [Wed, 17 Dec 2003 10:38:40 +0000 (10:38 +0000)]
Add MLINKS:

axe.4 -> if_axe.4
bfe.4 -> if_bfe.4
my.4  -> if_my.4
re.4  -> if_re.4
xe.4  -> if_xe.4

20 years agoo grammar fixes
Christian Brueffer [Wed, 17 Dec 2003 10:23:14 +0000 (10:23 +0000)]
o grammar fixes
o wordsmithing

MFC after: 5 days

20 years agoo grammar fixes
Christian Brueffer [Wed, 17 Dec 2003 10:14:11 +0000 (10:14 +0000)]
o grammar fixes
o wordsmithing
o s/isochronus/isochronous/

MFC after: 5 days

20 years agoMove the locking of the softc up to before the allocation of the
Hartmut Brandt [Wed, 17 Dec 2003 10:01:46 +0000 (10:01 +0000)]
Move the locking of the softc up to before the allocation of the
transmission map. This allocation accesses the softc so should
be under the lock (it uses NOWAIT).

20 years agoo correct a path
Christian Brueffer [Wed, 17 Dec 2003 09:56:46 +0000 (09:56 +0000)]
o correct a path
o wordsmithing

MFC after: 5 days

20 years agoo grammar fixes
Christian Brueffer [Wed, 17 Dec 2003 09:51:25 +0000 (09:51 +0000)]
o grammar fixes
o removed wrong 's usage

MFC after: 5 days

20 years agoCorrect inexplicable tab smash.
Jordan K. Hubbard [Wed, 17 Dec 2003 08:03:18 +0000 (08:03 +0000)]
Correct inexplicable tab smash.
Noticed by: Nate Lawson <nate@root.org>

20 years agofixed an IPv6 path MTU discovery failure owing to a lack of initialization
SUZUKI Shinsuke [Wed, 17 Dec 2003 04:31:07 +0000 (04:31 +0000)]
fixed an IPv6 path MTU discovery failure owing to a lack of initialization

Reviewed by: ume
Approved by: re (scottl)
MFC after: 1 day

20 years agoConformance: Add REG_ENOSYS (see http://www.opengroup.org/onlinepubs/007904975/basede...
Jordan K. Hubbard [Wed, 17 Dec 2003 02:56:28 +0000 (02:56 +0000)]
Conformance: Add REG_ENOSYS (see http://www.opengroup.org/onlinepubs/007904975/basedefs/regex.h.html)

20 years agoConformance: Define FNM_NOSYS (see http://www.opengroup.org/onlinepubs/007904975...
Jordan K. Hubbard [Wed, 17 Dec 2003 02:54:29 +0000 (02:54 +0000)]
Conformance: Define FNM_NOSYS (see http://www.opengroup.org/onlinepubs/007904975/basedefs/fnmatch.h.html)

20 years agoDo comparison using appropriate casting first, as per SUSv3 (search for first
Jordan K. Hubbard [Wed, 17 Dec 2003 02:46:48 +0000 (02:46 +0000)]
Do comparison using appropriate casting first, as per SUSv3 (search for first
[last] character, not int).

20 years agoGrammar fixes
Christian Brueffer [Wed, 17 Dec 2003 02:16:04 +0000 (02:16 +0000)]
Grammar fixes

MFC after: 5 days

20 years agoo use .Nm
Christian Brueffer [Wed, 17 Dec 2003 01:44:14 +0000 (01:44 +0000)]
o use .Nm
o wordsmithing

MFC after: 5 days

20 years agoWordsmithing
Christian Brueffer [Wed, 17 Dec 2003 01:13:13 +0000 (01:13 +0000)]
Wordsmithing

MFC after: 5 days

20 years agoHey, how about we NOT make modules crash 486s?
Brian Feldman [Wed, 17 Dec 2003 00:51:47 +0000 (00:51 +0000)]
Hey, how about we NOT make modules crash 486s?

20 years agoahc_eisa.c:
Justin T. Gibbs [Wed, 17 Dec 2003 00:02:10 +0000 (00:02 +0000)]
ahc_eisa.c:
ahc_pci.c:
ahd_pci.c:
aic7xxx.c:
aic79xx.c:
aic_osm_lib.c:
aic_osm_lib.h:
Use common OSM routines from aic_osm_lib for bus dma operations,
delay routines, accessing CCBs, byte swapping, etc.

aic7xxx_pci.c:
Provide a better description for the 2915/30LP on attach.

aic7xxx.c:
aic79xx.c:
aic7770.c:
aic79xx_pci.c:
aic7xxx_pci.c:
aic7xxx_93cx6.c:
Move FBSDID behind an ifdef so that these core files will
still compile under other OSes.

aic79xx.h:
aic79xx_pci.c:
aic79xx.seq:
To speed up non-packetized CDB delivery in Rev B, all CDB
acks are "released" to the output sync as soon as the
command phase starts.  There is only one problem with this
approach.  If the target changes phase before all data are
sent, we have left over acks that can go out on the bus in
a data phase.  Due to other chip contraints, this only
happens if the target goes to data-in, but if the acks go
out before we can test SDONE, we'll think that the transfer
has completed successfully.  Work around this by taking
advantage of the 400ns or 800ns dead time between command
phase and the REQ of the new phase.  If the transfer has
completed successfully, SCSIEN should fall *long* before we
see a phase change.  We thus treat any phasemiss that
occurs before SCSIEN falls as an incomplete transfer.

aic79xx.h:
Add the AHD_FAST_CDB_DELIVERY feature.

aic79xx_pci.c:
Set AHD_FAST_CDB_DELIVERY for all Rev. B parts.

aic79xx.seq:
Test for PHASEMIS in the command phase for
all AHD_FAST_CDB_DELIVERY controlelrs.

ahd_pci.c:
ahc_pci.c:
aic7xxx.h:
aic79xx.h:
Move definition of controller BAR offsets to core header files.

aic7xxx.c:
aic79xx.c:
In the softc free routine, leave removal of a softc from the
global list of softcs to the OSM (the caller of this routine).
This allows us to avoid holding the softc list_lock during device
destruction where we may have to sleep waiting for our recovery
thread to halt.

ahc_pci.c:
Use ahc_pci_test_register access to validate I/O mapped in
addition to the tests already performed for memory mapped
access.

Remove unused ahc_power_state_change() function.  The PCI
layer in both 4.X and 5.X now offer this functionality.

ahd_pci.c:
Remove reduntant definition of controller BAR offsets.  These
are also defined in aic79xx.h.

Remove unused ahd_power_state_change() function.  The PCI
layer in both 4.X and 5.X now offer this functionality.

aic7xxx.c:
aic79xx.c:
aic79xx.h:
aic7xxx.h:
aic7xxx_osm.c:
aic79xx_osm.c:
Move timeout handling to the driver cores.  In the case
of the aic79xx driver, the algorithm has been enhanced
to try target resets before performing a bus reset.  For
the aic7xxx driver, the algorithm is unchanged.  Although
the drivers do not currently sleep during recovery (recovery
is timeout driven), the cores do expect all processing to
be performed via a recovery thread.  Our timeout handlers
are now little stubs that wakeup the recovery thread.

aic79xx.c:
aic79xx.h:
aic79xx_inline.h:
Change shared_data allocation to use a map_node so
that the sentinel hscb can use this map node in
ahd_swap_with_next_hscb.  This routine now swaps
the hscb_map pointer in additon to the hscb
contents so that any sync operations occur on
the correct map.

physaddr -> busaddr

Pointed out by: Jason Thorpe <thorpej@wasabisystems.com>

aic79xx.c:
Make more use of the in/out/w/l/q macros for accessing
byte registers in the chip.

Correct some issues in the ahd_flush_qoutfifo() routine.
    o Run the qoutfifo only once the command channel
      DMA engine has been halted.  This closes a window
      where we might have missed some entries.
    o Change ahd_run_data_fifo() to not loop to completion.
      If we happen to start on the wrong FIFO and the other
      FIFO has a snapshot savepointers, we might deadlock.
      This required our delay between FIFO tests to be
      moved to the ahd_flush_qoutfifo() routine.
    o Update/add comments.
    o Remove spurious test for COMPLETE_DMA list being empty
      when completing transactions from the GSFIFO with
      residuals.  The SCB must be put on the COMPLETE_DMA
      scb list unconditionally.
    o When halting command channel DMA activity, we must
      disable the DMA channel in all cases but an update
      of the QOUTFIFO.  The latter case is required so
      that the sequencer will update its position in the
      QOUTFIFO.  Previously, we left the channel enabled
      for all "push" DMAs.  This left us vulnerable to
      the sequencer handling an SCB push long after that
      SCB was already processed manually by this routine.
    o Correct the polarity of tests involving
      ahd_scb_active_in_fifo().  This routine returns
      non-zero for true.

Return to processing bad status completions through
the qoutfifo.  This reduces the time that the sequencer
is kept paused when handling transactions with bad
status or underruns.

When waiting for the controller to quiece selections,
add a delay to our loop.  Otherwise we may fail to wait
long enough for the sequencer to comply.

On H2A4 hardware, use the slow slewrate for non-paced
transfers.  This mirrors what the Adaptec Windows
drivers do.

On the Rev B. only slow down the CRC timing for
older U160 devices that might need the slower timing.
We define "older" as devices that do not support
packetized protocol.

Wait up to 5000 * 5us for the SEEPROM to become unbusy.
Write ops seem to take much longer than read ops.

aic79xx.seq:
For controllers with the FAINT_LED bug, turn the diagnostic
led feature on during selection and reselection.  This covers
the non-packetized case.  The LED will be disabled for
non-packetized transfers once we return to the top level idle
loop.  Add more comments about the busy LED workaround.

Extend a critical section around the entire
command channel idle loop process.  Previously
the portion of this handler that directly manipulated
the linked list of completed SCBs was not protected.
This is the likely cause of the recent reports of
commands being completed twice by the driver.

Extend critical sections across the test for,
and the longjump to, longjump routines.  This
prevents the firmware from trying to jump to
a longjmp handler that was just cleared by the
host.

Improve the locations of several critical section
begin and end points.  Typically these changes
remove instructions that did not need to be
inside a critical section.

Close the "busfree after selection, but before busfree
interrupts can be enabled" race to just a single sequencer
instruction.  We now test the BSY line explicitly before
clearing the busfree status and enabling the busfree
interrupt.

Close a race condition in the processing of HS_MAILBOX
updates.  We now clear the "updated" status before the
copy.  This ensures that we don't accidentally clear
the status incorrectly when the host sneaks in an update
just after our last copy, but before we clear the status.
This race has never been observed.

Don't re-enable SCSIEN if we lose the race to disable SCSIEN
in our interrupt handler's workaround for the RevA data-valid
too early issue.

aic79xx_inline.h:
Add comments indicating that the order in which bytes are
read or written in ahd_inw and ahd_outw is important.  This
allows us to use these inlines when accessing registers with
side-effects.

aic79xx_pci.c:
The 29320 and the 29320B are 7902 not 7901 based products.
Correct the driver banner.

aic7xxx.h:
Enable the use of the auto-access pause feature
on the aic7870 and aic7880.  It was disabled due
to an oversight.

aic7xxx.reg:
Move TARG_IMMEDIATE_SCB to alias LAST_MSG to
avoid leaving garbage in MWI_RESIDUAL.  This
prevents spurious overflows whn operating target
mode on controllers that require the MWI_RESIDUAL
work-around.

aic7xxx.seq:
AHC_TMODE_WIDEODD_BUG is a bug, not a softc flag.
Reference the correct softc field when testing
for its presence.

Set the NOT_IDENTIFIED and NO_CDB_SENT bits
in SEQ_FLAGS to indicate that the nexus is
invalid in await busfree.

aic7xxx_93cx6.c:
Add support for the C56/C66 versions of the EWEN and EWDS
commands.

aic7xxx.c:
aic7xxx_pci.c:
Move test for the validity of left over BIOS data
to ahc_test_register_access().  This guarantees that
any left over CHIPRST value is not clobbered by our
register access test and lost to the test that was
in ahc_reset.

20 years agoWhen outputing a code listing, properly display
Justin T. Gibbs [Wed, 17 Dec 2003 00:01:11 +0000 (00:01 +0000)]
When outputing a code listing, properly display
macros that expand to multiple instructions.

20 years agoModify assembler to ignore carriage returns in input.
Justin T. Gibbs [Tue, 16 Dec 2003 23:54:07 +0000 (23:54 +0000)]
Modify assembler to ignore carriage returns in input.
This should make those using the assembler under cygwin
happy.

20 years agoRe-linewrap help file on securelevels in sysinstall: sysinstall is
Robert Watson [Tue, 16 Dec 2003 22:55:28 +0000 (22:55 +0000)]
Re-linewrap help file on securelevels in sysinstall: sysinstall is
mostly used on 80x25 displays, and the actual window is about ten
characters narrower than that, resulting in the need for horizontal
scrolling.  No functional change.

RELENG_5_2 candidate.

20 years agoFix compilation on 64bit archs.
Søren Schmidt [Tue, 16 Dec 2003 19:41:38 +0000 (19:41 +0000)]
Fix compilation on 64bit archs.

20 years agoImplement NdisGetBufferPhysicalArraySize(), which apparently is a
Bill Paul [Tue, 16 Dec 2003 18:56:33 +0000 (18:56 +0000)]
Implement NdisGetBufferPhysicalArraySize(), which apparently is a
synonym for NDIS_BUFFER_TO_SPAN_PAGES().

20 years agoo IN_MULTICAST wants an address in host byte order.
Maxim Konovalov [Tue, 16 Dec 2003 18:21:47 +0000 (18:21 +0000)]
o IN_MULTICAST wants an address in host byte order.

PR: kern/60304
Submitted by: demon
MFC after: 1 week

20 years agoOnce upon a time, DEVFS was optional, major numbers where static, and /dev
Scott Long [Tue, 16 Dec 2003 17:58:24 +0000 (17:58 +0000)]
Once upon a time, DEVFS was optional, major numbers where static, and /dev
needed to be statically populated with device nodes.  The first two are no
longer true, which makes the third pretty moot.  In fact, we don't seem to
put device node bits into the distribution archives at all anymore.
So..... remove the god-aweful nasty hack that force unmounted devfs during
installation so that static device nodes could land in /dev.  Now that the
vnode cleaner handles this case better this isn't strictly needed, but
axeing code in sysinstall is almost always benficial.  Thanks to Don Lewis
for pointing out this attribute of sysinstall.

20 years agoAdd device IDs for the Bluetake BW002, yet another Atmel AT76C503A
Bruce M Simpson [Tue, 16 Dec 2003 17:54:41 +0000 (17:54 +0000)]
Add device IDs for the Bluetake BW002, yet another Atmel AT76C503A
variant. These are found in a flavour of MiniITX board which I'm
playing with right now.

20 years ago - In vget() if LK_NOWAIT is specified we should return EBUSY and not ENOENT.
Jeff Roberson [Tue, 16 Dec 2003 17:08:27 +0000 (17:08 +0000)]
 - In vget() if LK_NOWAIT is specified we should return EBUSY and not ENOENT.

Submitted by: Stephan Uphoff <ups@stups.com>

20 years ago - When doing a forced unmount, VFS attempts to keep VCHR vnodes valid by
Jeff Roberson [Tue, 16 Dec 2003 17:05:05 +0000 (17:05 +0000)]
 - When doing a forced unmount, VFS attempts to keep VCHR vnodes valid by
   reassigning their v_ops field to specfs, detaching from the mountpoint, etc.
   However, this is not sufficient.  If we vclean() the vnode the pages owned
   by the vnode are lost, potentially while buffers reference them.  Implement
   parts of vclean() seperately in vgonechrl() so that the pages and bufs
   associated with a device vnode are not destroyed while in use.

20 years agoPrint unambiguous paths with -R -v.
Ruslan Ermilov [Tue, 16 Dec 2003 15:17:30 +0000 (15:17 +0000)]
Print unambiguous paths with -R -v.

20 years agostyle(9) pass and type fixups.
Bruce M Simpson [Tue, 16 Dec 2003 14:13:47 +0000 (14:13 +0000)]
style(9) pass and type fixups.

Submitted by: bde

20 years agoOne might want to correctly generate 32-bit code on an Opteron.
David E. O'Brien [Tue, 16 Dec 2003 05:40:06 +0000 (05:40 +0000)]
One might want to correctly generate 32-bit code on an Opteron.

Submitted by: peter

20 years agoDisable the per-vm_page PTE cache. This was not being invalidated
Peter Grehan [Tue, 16 Dec 2003 03:55:57 +0000 (03:55 +0000)]
Disable the per-vm_page PTE cache. This was not being invalidated
correctly, resulting in the dreaded "vm_pageout_flush: partially
invalid page" panic. The caching issue will be revisited in the
future, but opt for safety over performance in the meantime.

Tested by: gallatin

20 years agoAvoid sign extension when casting signed characters to unsigned wide
Tim J. Robbins [Tue, 16 Dec 2003 01:52:54 +0000 (01:52 +0000)]
Avoid sign extension when casting signed characters to unsigned wide
characters in ntfs_u28(). This fixes the conversion of filenames containing
single-byte characters with the high bit set.

20 years agoPurge crmbuf.c as the routines are now in uipc_mbuf.c.
Bruce M Simpson [Mon, 15 Dec 2003 21:50:45 +0000 (21:50 +0000)]
Purge crmbuf.c as the routines are now in uipc_mbuf.c.

Reviewed by: sam
Sponsored by: spc.org

20 years agoPush m_apply() and m_getptr() up into the colleciton of standard mbuf
Bruce M Simpson [Mon, 15 Dec 2003 21:49:41 +0000 (21:49 +0000)]
Push m_apply() and m_getptr() up into the colleciton of standard mbuf
routines, and purge them from opencrypto.

Reviewed by: sam
Obtained from: NetBSD
Sponsored by: spc.org

20 years agoPrint the LBA on failing R/W commands.
Søren Schmidt [Mon, 15 Dec 2003 20:43:17 +0000 (20:43 +0000)]
Print the LBA on failing R/W commands.

20 years agoAdd a note to say that the ACPI module has been turned back on now.
John Baldwin [Mon, 15 Dec 2003 19:19:16 +0000 (19:19 +0000)]
Add a note to say that the ACPI module has been turned back on now.

Requested by: Joel Ray Holveck <joelh@piquan.org>

20 years agoRemove _giant_mutex and its associated macros.
Mike Makonnen [Mon, 15 Dec 2003 12:38:06 +0000 (12:38 +0000)]
Remove _giant_mutex and its associated macros.