]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoClarify the description of the shutdown command.
ceri [Sun, 18 Feb 2007 22:04:14 +0000 (22:04 +0000)]
Clarify the description of the shutdown command.

17 years agoCorrect typos containing my login name (plus one more in expr.y).
ceri [Sun, 18 Feb 2007 19:48:59 +0000 (19:48 +0000)]
Correct typos containing my login name (plus one more in expr.y).
Found courtesy of a recursive grep in the wrong directory.

17 years agoThe table of known CPU models ends with an entry that has a version
marcel [Sun, 18 Feb 2007 17:40:09 +0000 (17:40 +0000)]
The table of known CPU models ends with an entry that has a version
of 0, not with an entry that has an empty CPU name.

Submitted by: Andrew Turner (andrew@fubar.geek.nz)

17 years ago#ifdef INET6 printing of inpcb IPv6 addresses in DDB. Patch committed
rwatson [Sun, 18 Feb 2007 08:57:23 +0000 (08:57 +0000)]
#ifdef INET6 printing of inpcb IPv6 addresses in DDB.  Patch committed
with minor adjustments.

Submitted by: Florian C. Smeets <flo at kasimir dot com>

17 years agoEliminate some acquisitions and releases of the page queues lock that are
alc [Sun, 18 Feb 2007 06:33:02 +0000 (06:33 +0000)]
Eliminate some acquisitions and releases of the page queues lock that are
no longer necessary.

17 years agoAndrew and Colin each pointed out to me that truncating the backup
kientzle [Sun, 18 Feb 2007 06:23:57 +0000 (06:23 +0000)]
Andrew and Colin each pointed out to me that truncating the backup
of a growing file should not be considered a "bad thing."

PR: bin/108990
MFC after: 7 days
Pointy hat: /me

17 years agoEnable vm_page_free() and vm_page_free_zero() to be called on some pages
alc [Sun, 18 Feb 2007 05:54:42 +0000 (05:54 +0000)]
Enable vm_page_free() and vm_page_free_zero() to be called on some pages
without the page queues lock being held, specifically, pages that are not
contained in a vm object and not a member of a page queue.

17 years agoAdd "show inpcb", "show tcpcb" DDB commands, which should come in handy
rwatson [Sat, 17 Feb 2007 21:02:38 +0000 (21:02 +0000)]
Add "show inpcb", "show tcpcb" DDB commands, which should come in handy
for debugging sblock and other network panics.

17 years agoRemove a stale comment. Add punctuation to a nearby comment.
alc [Sat, 17 Feb 2007 19:37:00 +0000 (19:37 +0000)]
Remove a stale comment.  Add punctuation to a nearby comment.

17 years agocorrect type definition of option routine callback
sam [Sat, 17 Feb 2007 18:22:20 +0000 (18:22 +0000)]
correct type definition of option routine callback

17 years agoremove (now) duplicate definition of IEEE80211_IS_CHAN_PASSIVE
sam [Sat, 17 Feb 2007 18:21:52 +0000 (18:21 +0000)]
remove (now) duplicate definition of IEEE80211_IS_CHAN_PASSIVE

17 years agoAdd support for chipsets that has NULL'd BAR's for legacy ports.
sos [Sat, 17 Feb 2007 16:56:39 +0000 (16:56 +0000)]
Add support for chipsets that has NULL'd BAR's for legacy ports.
This allows DMA to be used on a fine little geode system I got here and
most like on lots of older systems like that.

HW donated by:  Paul Ghering

17 years agoOops, fix minor braino.
joel [Sat, 17 Feb 2007 11:31:58 +0000 (11:31 +0000)]
Oops, fix minor braino.

Noticed by: ariff

17 years agoLink snd_sb16.4 and snd_sb8.4 to snd_sbc.4.
joel [Sat, 17 Feb 2007 10:30:00 +0000 (10:30 +0000)]
Link snd_sb16.4 and snd_sb8.4 to snd_sbc.4.

Submitted by: ariff

17 years agoThis README file is obsolete. The cited problems were fixed long ago
mckusick [Sat, 17 Feb 2007 08:25:43 +0000 (08:25 +0000)]
This README file is obsolete. The cited problems were fixed long ago
and the code is installed by default so no longer requires action by
the administrator to be included.

17 years agoFix mis-reference of incorrect manual page in ERRORS section.
trhodes [Sat, 17 Feb 2007 01:54:00 +0000 (01:54 +0000)]
Fix mis-reference of incorrect manual page in ERRORS section.

Noticed by: Harlan Stenn <stenn@ntp.isc.org>

17 years agoAdd Sigmatel STAC9271D.
joel [Fri, 16 Feb 2007 18:23:17 +0000 (18:23 +0000)]
Add Sigmatel STAC9271D.

17 years agoAdd codec id for Sigmatel STAC9271D.
ariff [Fri, 16 Feb 2007 17:43:29 +0000 (17:43 +0000)]
Add codec id for Sigmatel STAC9271D.

Submitted by: Michael Fuckner <michael@fuckner.net>

17 years agoRemove VFS_VPTOFH entirely. API is already broken and it is good time to
pjd [Fri, 16 Feb 2007 17:32:41 +0000 (17:32 +0000)]
Remove VFS_VPTOFH entirely. API is already broken and it is good time to
do it.

Suggested by: rwatson

17 years agoVFS_VPTOFH(9) was replaced with VOP_VPTOFH(9).
pjd [Fri, 16 Feb 2007 14:27:59 +0000 (14:27 +0000)]
VFS_VPTOFH(9) was replaced with VOP_VPTOFH(9).
VFS_VPTOFH.9 was repo-copied to VOP_VPTOFH.9.

Repo-copy done by: joe

17 years agoRemove unused inp6_ifindex field from inpcb, as well as unused macro
rwatson [Fri, 16 Feb 2007 14:09:24 +0000 (14:09 +0000)]
Remove unused inp6_ifindex field from inpcb, as well as unused macro
shortcut for it.

17 years agoRemove unused in6p_ip6_hlim macro shortcut for non-present
rwatson [Fri, 16 Feb 2007 13:56:06 +0000 (13:56 +0000)]
Remove unused in6p_ip6_hlim macro shortcut for non-present
inp_depend6.inp6_hlim field in the inpcb.

17 years agoXref altq(4)
brueffer [Fri, 16 Feb 2007 13:53:45 +0000 (13:53 +0000)]
Xref altq(4)

17 years agoCompUSA mutli-format pcmica flash reader/writer
imp [Fri, 16 Feb 2007 07:51:23 +0000 (07:51 +0000)]
CompUSA mutli-format pcmica flash reader/writer

17 years agoUpdated tuple list, kinda
imp [Fri, 16 Feb 2007 07:00:50 +0000 (07:00 +0000)]
Updated tuple list, kinda

17 years agoAdd poitner to JEDEC publication 106
imp [Fri, 16 Feb 2007 06:46:36 +0000 (06:46 +0000)]
Add poitner to JEDEC publication 106

17 years agoTwo changes:
imp [Fri, 16 Feb 2007 05:36:59 +0000 (05:36 +0000)]
Two changes:
(1) change debounce period from 1s to 250ms.  This appears to be fine and
    speeds things up a little.
(2) In the middle of cbb_pcic_power_disable_socket we write 0 to the EXCA_INTR
    register to put the card into reset.  However, this turns off CSC
    interrupts for TI bridges (and maybe others).  So no further card
    insertion events would be noticed.  To compensate, after we've gone
    through the entire power down sequence, turn on EXCA_INTR_ENABLE so
    that CSC events happen.

#2 should fix the 'dead slot' problem that has been reported after
card ejection (but only 16-bit cards).

17 years agoFix typo in comment
imp [Fri, 16 Feb 2007 05:24:19 +0000 (05:24 +0000)]
Fix typo in comment

17 years agoDown to one MD document in the release documentation set now,
bmah [Fri, 16 Feb 2007 04:07:31 +0000 (04:07 +0000)]
Down to one MD document in the release documentation set now,
reword a note to reflect this fact.

17 years agoBacking out an earlier change. It seems harmless for NFS to miss the "force
mohans [Fri, 16 Feb 2007 03:46:55 +0000 (03:46 +0000)]
Backing out an earlier change. It seems harmless for NFS to miss the "force
unmount" flag, making the acquisition of the MNT_ILOCK in nfs_request() and
nfs_sigintr() unnecessary. Pointed out by tegge@.

17 years agoReflect that the hardware notes is now an MI document.
bmah [Fri, 16 Feb 2007 02:28:15 +0000 (02:28 +0000)]
Reflect that the hardware notes is now an MI document.

17 years agoReflect that the hardware notes article is now a MI document.
bmah [Fri, 16 Feb 2007 02:22:02 +0000 (02:22 +0000)]
Reflect that the hardware notes article is now a MI document.

17 years agoSwitch to unified MI hardware notes. The hardware notes are
bmah [Fri, 16 Feb 2007 02:20:11 +0000 (02:20 +0000)]
Switch to unified MI hardware notes.  The hardware notes are
now contained entirely in a single DocBook article, which has
information pertinent to all architectures.  This will improve
the maintainability of the hardware notes going forward by
reducing complexity of the build process, improving the visibiilty
of the architecture-specific text, and removing the need to generate
an extra version of the document for every architecture.

Remove all of the MD hardware notes stuff; all relevant content
has been folded into hardware/article.sgml.

No objections from: freebsd-doc@

17 years agoAdd support for auto-generating hardware notes entries in a
bmah [Fri, 16 Feb 2007 02:10:12 +0000 (02:10 +0000)]
Add support for auto-generating hardware notes entries in a
manner consistent with the new MI-style hardware notes document.

man2hwnotes.pl now defaults to generating entities for the MI-style
hardware notes (i.e. hardware/article.sgml).  A new -c
option causes it to generate entities for the older MD-style
hardware notes (i.e. hardware/common/dev.sgml).

The Makefile infrastructure supplies the -c option to man2hwnotes.pl
now unless the HWNOTES_MI Makefile variable is defined, so
compatiblity is preserved for hardware notes translations that
aren't converted to the new organization yet.  As translations
convert, they should define HWNOTES_MI in their hardware/Makefile.
When all the relevant translations catch up, the compatibility goop
in share/mk/doc.relnotes.mk and share/sgml/Makefile can be removed.

Thanks go to simon@ for help with the backwards compatiblity
mechanism.

Tested with: en_US.ISO8859-1, zh_CN.GB2312

17 years agoAdd bootverbose printfs to indicate which IDT vectors are assigned to MSI
jhb [Thu, 15 Feb 2007 22:22:57 +0000 (22:22 +0000)]
Add bootverbose printfs to indicate which IDT vectors are assigned to MSI
interrupts.

17 years agoMove vnode-to-file-handle translation from vfs_vptofh to vop_vptofh method.
pjd [Thu, 15 Feb 2007 22:08:35 +0000 (22:08 +0000)]
Move vnode-to-file-handle translation from vfs_vptofh to vop_vptofh method.
This way we may support multiple structures in v_data vnode field within
one file system without using black magic.

Vnode-to-file-handle should be VOP in the first place, but was made VFS
operation to keep interface as compatible as possible with SUN's VFS.
BTW. Now Solaris also implements vnode-to-file-handle as VOP operation.

VFS_VPTOFH() was left for API backward compatibility, but is marked for
removal before 8.0-RELEASE.

Approved by: mckusick
Discussed with: many (on IRC)
Tested with: ufs, msdosfs, cd9660, nullfs and zfs

17 years agoSupport AHCI chips where the ports are not consecutively numbered as in
sos [Thu, 15 Feb 2007 21:51:42 +0000 (21:51 +0000)]
Support AHCI chips where the ports are not consecutively numbered as in
some incarnations of the ICH8 chip.
Also fix the panic introduced by the last commit.

17 years agoGrammar nits.
ceri [Thu, 15 Feb 2007 21:49:32 +0000 (21:49 +0000)]
Grammar nits.

17 years agoPut one $FreeBSD$ keyword in standard location, bump copyright date.
bmah [Thu, 15 Feb 2007 20:14:59 +0000 (20:14 +0000)]
Put one $FreeBSD$ keyword in standard location, bump copyright date.

17 years agoAdd supported processors and motherboards sections from the MD
bmah [Thu, 15 Feb 2007 20:12:43 +0000 (20:12 +0000)]
Add supported processors and motherboards sections from the MD
hardware notes documents in  */proc-*.sgml.

17 years agoAdd selected bits from */article.sgml, common/artheader.sgml, and
bmah [Thu, 15 Feb 2007 19:48:36 +0000 (19:48 +0000)]
Add selected bits from */article.sgml, common/artheader.sgml, and
common/intro.sgml to make a valid article.

17 years agoFirst step in consolidating the various MD bits of the hardware notes.
bmah [Thu, 15 Feb 2007 19:33:47 +0000 (19:33 +0000)]
First step in consolidating the various MD bits of the hardware notes.
Convert MD references in the supported devices section from arch=""
attributes for conditional compilation to entities that will just
print architecture names.  (The entities aren't defined yet...this
will happen in a future commit.)

17 years agoForced commit to note a repo-copy of this file from
bmah [Thu, 15 Feb 2007 19:10:23 +0000 (19:10 +0000)]
Forced commit to note a repo-copy of this file from
src/release/doc/en_US.ISO8859-1/hardware/common/dev.sgml.

17 years agoAdd examples for configuring and mounting geom_uzip(4) based disks'
matteo [Thu, 15 Feb 2007 18:07:52 +0000 (18:07 +0000)]
Add examples for configuring and mounting geom_uzip(4) based disks'
image and sliced/partitioned memory disks.
MFC after: 1 week

17 years agoremove some leftover text and update the text to match the current version
luigi [Thu, 15 Feb 2007 17:52:17 +0000 (17:52 +0000)]
remove some leftover text and update the text to match the current version
of the code.

17 years agoCleanup and document the implementation of firmware(9) based on
luigi [Thu, 15 Feb 2007 17:21:31 +0000 (17:21 +0000)]
Cleanup and document the implementation of firmware(9) based on
a version that i posted earlier on the -current mailing list,
and subsequent feedback received.

The core of the change is just in sys/firmware.h and kern/subr_firmware.c,
while other files are just adaptation of the clients to the ABI change
(const-ification of some parameters and hiding of internal info,
so this is fully compatible at the binary level).

In detail:
- reduce the amount of information exported to clients in struct firmware,
  and constify the pointer;

- internally, document and simplify the implementation of the various
  functions, and make sure error conditions are dealt with properly.

The diffs are large, but the code is really straightforward now (i hope).

Note also that there is a subtle issue with the implementation of
firmware_register(): currently, as in the previous version, we just
store a reference to the 'imagename' argument, but we should rather
copy it because there is no guarantee that this is a static string.
I realised this while testing this code, but i prefer to fix it in
a later commit -- there is no regression with respect to the past.

Note, too, that the version in RELENG_6 has various bugs including
missing locks around the module release calls, mishandling of modules
loaded by /boot/loader, and so on, so an MFC is absolutely necessary
there.  I was just postponing it until this cleanup to avoid doing
things twice.

MFC after: 1 week

17 years agofix comment about what pnpinfo is set
imp [Thu, 15 Feb 2007 16:38:10 +0000 (16:38 +0000)]
fix comment about what pnpinfo is set

17 years agoFix spurious I/O errors when under high load.
scottl [Thu, 15 Feb 2007 15:36:15 +0000 (15:36 +0000)]
Fix spurious I/O errors when under high load.

Submitted by: Erich Chen

17 years agoCorrect -c and -d description.
matteo [Thu, 15 Feb 2007 14:46:04 +0000 (14:46 +0000)]
Correct -c and -d description.

Other requests made in the PR were already solved in the past.

PR: bin/66763
MFC after: 1 week

17 years agoExpand history and authors section of mbuf.9 man page to discuss recent
rwatson [Thu, 15 Feb 2007 14:44:46 +0000 (14:44 +0000)]
Expand history and authors section of mbuf.9 man page to discuss recent
transition to mbuma (FreeBSD 5.3) and the fact that mbufs are now limited
almost entirely to packet storage, with straight UMA zones being used for
most other network data types.

17 years agoMention the nat command in the synopsis and in the action section.
piso [Thu, 15 Feb 2007 14:32:26 +0000 (14:32 +0000)]
Mention the nat command in the synopsis and in the action section.

Approved by: glebius (mentor)

17 years agoEnhances mdmfs(8) to mount md-based device such as uzip.
matteo [Thu, 15 Feb 2007 13:49:44 +0000 (13:49 +0000)]
Enhances mdmfs(8) to mount md-based device such as uzip.
Examples of use can be found in the PR text.

PR: 103501
MFC after: 1 week

17 years agoCatch up file descriptor printing function in DDB to the addition of kqueues
rwatson [Thu, 15 Feb 2007 10:55:43 +0000 (10:55 +0000)]
Catch up file descriptor printing function in DDB to the addition of kqueues
and POSIX message queues.

17 years agoBreak file descriptor printing logic out of db_show_files() into
rwatson [Thu, 15 Feb 2007 10:50:48 +0000 (10:50 +0000)]
Break file descriptor printing logic out of db_show_files() into
db_print_file(), and add a new "show file <ptr>" DDB command, which can
be used to print out file descriptors referenced in stack traces.

17 years agoRename somaxconn_sysctl() to sysctl_somaxconn() so that I will be able to
rwatson [Thu, 15 Feb 2007 10:11:00 +0000 (10:11 +0000)]
Rename somaxconn_sysctl() to sysctl_somaxconn() so that I will be able to
claim that sofoo() functions all accept a socket as their first argument.

17 years agoIf both ISDOTDOT and NOCROSSMOUNT are set then lookup() might breaks out
kib [Thu, 15 Feb 2007 09:53:49 +0000 (09:53 +0000)]
If both ISDOTDOT and NOCROSSMOUNT are set then lookup() might breaks out
of the special handling for ".." and perform an ISDOTDOT VOP_LOOKUP()
for a filesystem root vnode. Handle this case inside lookup().

Submitted by: tegge
PR: 92785
MFC after: 1 week

17 years agoStyle(9).
kib [Thu, 15 Feb 2007 09:24:58 +0000 (09:24 +0000)]
Style(9).

17 years agoIt turns out that it is easier to not NULL out pccard and cardbus
imp [Thu, 15 Feb 2007 07:22:27 +0000 (07:22 +0000)]
It turns out that it is easier to not NULL out pccard and cardbus
device pointers.  They don't change as the children device drivers
come and go.  Rather, check to see if the device is attached where we
would have checked ! NULL.  This solves many asymmetries in the code
that likely could lead to crashes when loading/unloading cbb without
one or more of the expected children's driver not present.

17 years agoFix three bugs:
imp [Thu, 15 Feb 2007 07:13:38 +0000 (07:13 +0000)]
Fix three bugs:
o When detaching all children, try really hard to get all the children
  list before giving up.  This is based on an observation by hans petter
  selasky in his usb p4 branch.
o When rescanning devices after a driver is added, abort if we can't get
  the child list with a message.
o when rescanning devices, if the reprobe/attach is successful, save the
  device for cardbus/pccard.

17 years agopkill(1) and pgrep(1) have been moved to /bin so that they are
yar [Thu, 15 Feb 2007 06:51:31 +0000 (06:51 +0000)]
pkill(1) and pgrep(1) have been moved to /bin so that they are
available to rc.d scripts early in the boot sequence.

17 years agoDon't be paranoid about hostname(1) and order the things logically.
yar [Thu, 15 Feb 2007 06:46:33 +0000 (06:46 +0000)]
Don't be paranoid about hostname(1) and order the things logically.

Pointed out by: ceri

17 years agoDon't nag about unset $hostname if DHCP is in use.
yar [Thu, 15 Feb 2007 06:42:42 +0000 (06:42 +0000)]
Don't nag about unset $hostname if DHCP is in use.

Pointed out by: ceri

17 years agoUnbreak non-H/W VLAN extraction case.
yongari [Thu, 15 Feb 2007 06:21:34 +0000 (06:21 +0000)]
Unbreak non-H/W VLAN extraction case.
Unlike other GigEs Yukon II always set VLAN bit when it detects VLAN
tagged packet regardless of H/W VLAN processing configuration state.
So it need to check IFCAP_VLAN_HWTAGGING bit to know whether driver
is configured to take advantage of H/W VLAN processing. If H/W VLAN
processing was disabled don't adjust received packet length such that
subsequent validation logic works for software VLAN processing.

Reported by: bms
Tested by: bms

17 years agoRelax the page queue lock assertions in vm_page_remove() and
alc [Thu, 15 Feb 2007 05:43:38 +0000 (05:43 +0000)]
Relax the page queue lock assertions in vm_page_remove() and
vm_page_free_toq() to account for recent changes that allow
vm_page_free_toq() to be called on some pages without the page queues lock
being held, specifically, pages that are not contained in a vm object and
not a member of a page queue.  (Examples of such pages include page table
pages, pv entry pages, and uma small alloc pages.)

17 years agoKill blank line at EOF.
trhodes [Thu, 15 Feb 2007 02:45:14 +0000 (02:45 +0000)]
Kill blank line at EOF.

17 years agoHook ypclnt.3 up to the build.
trhodes [Thu, 15 Feb 2007 02:43:14 +0000 (02:43 +0000)]
Hook ypclnt.3 up to the build.

17 years agoAdd a ypclnt.3 manual page referenced by various other YP based manual pages.
trhodes [Thu, 15 Feb 2007 02:40:31 +0000 (02:40 +0000)]
Add a ypclnt.3 manual page referenced by various other YP based manual pages.

PR: 108980
Obtained from: OpenBSD (minimal changes for mdoc(7) style)

17 years agoTeach DDB how to print sockets, socket buffers, protosw's, and domain
rwatson [Thu, 15 Feb 2007 01:28:22 +0000 (01:28 +0000)]
Teach DDB how to print sockets, socket buffers, protosw's, and domain
structures given pointers to them.

17 years agoFix accidental removal of an empty line from the previous commit.
jkim [Thu, 15 Feb 2007 01:20:43 +0000 (01:20 +0000)]
Fix accidental removal of an empty line from the previous commit.

17 years agoRegen.
jkim [Thu, 15 Feb 2007 01:15:31 +0000 (01:15 +0000)]
Regen.

17 years agoMFP4: 113033
jkim [Thu, 15 Feb 2007 01:13:36 +0000 (01:13 +0000)]
MFP4: 113033

Port iopl(2) from i386.  This fixes LTP iopl01 and iopl02 on amd64.

17 years agoRegen.
jkim [Thu, 15 Feb 2007 00:57:04 +0000 (00:57 +0000)]
Regen.

17 years agoMFP4: 113025, 113146, 113177, 113203, 113500, 113546, 113570
jkim [Thu, 15 Feb 2007 00:54:40 +0000 (00:54 +0000)]
MFP4: 113025, 113146, 113177, 113203, 113500, 113546, 113570

- PROT_READ, PROT_WRITE, or PROT_EXEC implies PROT_READ and PROT_EXEC.
Linux/ia64's i386 emulation layer does this and it complies with Linux
header files.  This fixes mmap05 LTP test case on amd64.
- Do not adjust stack size when failure has occurred.
- Synchronize i386 mmap/mprotect with amd64.

17 years agoDefault output to stdout as the man page suggests.
brian [Wed, 14 Feb 2007 23:22:33 +0000 (23:22 +0000)]
Default output to stdout as the man page suggests.

17 years agoOnly go through our cylinder group and inode info when we need to.
brian [Wed, 14 Feb 2007 23:20:30 +0000 (23:20 +0000)]
Only go through our cylinder group and inode info when we need to.
This allows ``ffsinfo -o - -l1 /tmp'' to run a lot quicker.

17 years agoRe-indent main() in preparation for further changes.
brian [Wed, 14 Feb 2007 23:12:32 +0000 (23:12 +0000)]
Re-indent main() in preparation for further changes.

17 years agoAdjust the global MSI blacklisting strategy so we don't have to explicitly
jhb [Wed, 14 Feb 2007 22:36:27 +0000 (22:36 +0000)]
Adjust the global MSI blacklisting strategy so we don't have to explicitly
blacklist a bunch of old chipsets.  If a system contains a PCI-PCI bridge
that supports PCI-X, assume the chipset supports PCI-X.  If a system
contains a PCI-express root port, assume the chipset supports PCI-express.
If the chipset doesn't support either PCI-X or PCI-express, then blacklist
it by default.  We should now only need to explicitly blacklist PCI-X or
PCI-express chipsets that don't properly handle MSI.

17 years ago- Fix an off by one error in pci_remap_msix_method() that effectively
jhb [Wed, 14 Feb 2007 22:32:55 +0000 (22:32 +0000)]
- Fix an off by one error in pci_remap_msix_method() that effectively
  broke the method as all the MSI-X table indices were off by one in
  the backend MD code.
- Fix a cosmetic nit in the bootverbose printf in pci_alloc_msix_method().

17 years agoCatch up to MSI-X API changes. Tested with both MSI and MSI-X.
jhb [Wed, 14 Feb 2007 22:31:21 +0000 (22:31 +0000)]
Catch up to MSI-X API changes.  Tested with both MSI and MSI-X.

17 years agoUse bge_writereg_ind() to do global reset as we did before 1.159 for certain
jkim [Wed, 14 Feb 2007 19:44:15 +0000 (19:44 +0000)]
Use bge_writereg_ind() to do global reset as we did before 1.159 for certain
chipsets.  It was causing 'firmware handshake timed out' errors for some
chips.

Discussed with: scottl

17 years agoFix two typos in comments.
jkim [Wed, 14 Feb 2007 19:01:33 +0000 (19:01 +0000)]
Fix two typos in comments.

17 years agoFix a typo from the previous commit.
jkim [Wed, 14 Feb 2007 18:21:32 +0000 (18:21 +0000)]
Fix a typo from the previous commit.

Pointed out by: brad@openbsd.org

17 years agoAdd missing 'break' that in this case is harmless.
jhb [Wed, 14 Feb 2007 17:02:15 +0000 (17:02 +0000)]
Add missing 'break' that in this case is harmless.

17 years agoFix compilation for statically linked snd_envy24{ht}/spicds. Use explicit
ariff [Wed, 14 Feb 2007 15:23:44 +0000 (15:23 +0000)]
Fix compilation for statically linked snd_envy24{ht}/spicds. Use explicit
struct mtx rather than void pointer.

PR: kern/109147

17 years agoMinor rearrangement of global variables, comments, etc, in UNIX domain
rwatson [Wed, 14 Feb 2007 15:05:40 +0000 (15:05 +0000)]
Minor rearrangement of global variables, comments, etc, in UNIX domain
sockets.

17 years agoRetire most of the classful network behaviour of netstat -r output, for IPv4.
bms [Wed, 14 Feb 2007 14:17:01 +0000 (14:17 +0000)]
Retire most of the classful network behaviour of netstat -r output, for IPv4.

 Without -n, we now only print a "network name" without the prefix length
 under the following conditions:
  1) the network address and mask matches a classful network prefix;
  2) getnetbyaddr(3) returns a network name for this network address.

 With -n, we unconditionally print the full unabbreviated CIDR network
 prefix in the form "a.b.c.d/p". 0.0.0.0/0 is still printed as "default".

This change is in preparation for changes such as equal-cost multipath, and
to more generally assist operational deployment of FreeBSD as a modern IPv4
router. There are currently no plans to backport this change.

Discussed on: freebsd-net

17 years agoChange unp_mtx to supporting recursion, and do not drop the unp_mtx over
rwatson [Wed, 14 Feb 2007 12:22:11 +0000 (12:22 +0000)]
Change unp_mtx to supporting recursion, and do not drop the unp_mtx over
sonewconn() in unp_connect().  This avoids a race that occurs due to
v_socket being an uncounted reference, as the lock was being released in
order to call sonewconn(), which otherwise recurses into the UNIX domain
socket code via pru_attach, as well as holding the lock over a sleeping
memory allocation in uipc_attach().  Switch to a non-sleeping memory
allocation during UNIX domain socket attach.

This fix non-ideal in that it requires enabling recursion, but is a much
smaller change than moving to using true references for v_socket.  The
reported panic occurs in unp_connect() following the return of
sonewconn().

Update copyright year.

Panic reported by:      jhb

17 years agoThe return value of aac_alloc_command() was misinterpreted in aac_ioctl_event().
luoqi [Wed, 14 Feb 2007 09:10:37 +0000 (09:10 +0000)]
The return value of aac_alloc_command() was misinterpreted in aac_ioctl_event().
Once triggered this would leak away all available commands and starve the rest
of the driver.

Reviewed by: scottl

17 years agoCorrectly handle writes beyond the end of the archive entry
kientzle [Wed, 14 Feb 2007 08:16:08 +0000 (08:16 +0000)]
Correctly handle writes beyond the end of the archive entry
(as determined by the initial size given to the header).
Libarchive recently changed to correctly return the amount
of data actually consumed in this case, which revealed this
bug in bsdtar.

17 years agoAdd some entries to log unknown devices, based on the bus they appear
joerg [Wed, 14 Feb 2007 08:13:54 +0000 (08:13 +0000)]
Add some entries to log unknown devices, based on the bus they appear
on.

Some things appear to be completely missing though, like the USB vendor
and product strings.

17 years agoNew sentence -> new line. While here, fix apostrophe abuse.
brueffer [Wed, 14 Feb 2007 07:38:39 +0000 (07:38 +0000)]
New sentence -> new line.  While here, fix apostrophe abuse.

17 years agoAvoid the unnecessary acquisition of the free page queues lock when a page
alc [Wed, 14 Feb 2007 07:05:55 +0000 (07:05 +0000)]
Avoid the unnecessary acquisition of the free page queues lock when a page
is actually being added to the hold queue, not the free queue.  At the same
time, avoid unnecessary tests to wake up threads waiting for free memory
and the idle thread that zeroes free pages.  (These tests will be performed
later when the page finally moves from the hold queue to the free queue.)

17 years agoOptimize bitcount32 by replacing 6 logical operations with 2. The key
cperciva [Wed, 14 Feb 2007 05:21:22 +0000 (05:21 +0000)]
Optimize bitcount32 by replacing 6 logical operations with 2.  The key
observation here is that it doesn't matter what garbage accumulates in
bits which we're going to end up masking away anyway, as long as the
garbage doesn't overflow into bits which we care about.

This improved version may not be the fastest possible on all systems,
but it's certainly going to be better than what was here before.

17 years agoAdd KTR tracing
kevlo [Wed, 14 Feb 2007 04:41:28 +0000 (04:41 +0000)]
Add KTR tracing

17 years agoAnother crashdump fix: nfiles was renamed to openfiles in 5.x.
jhb [Wed, 14 Feb 2007 04:20:41 +0000 (04:20 +0000)]
Another crashdump fix: nfiles was renamed to openfiles in 5.x.

MFC after: 3 days

17 years agostyle(9) cleanup.
kevlo [Wed, 14 Feb 2007 01:25:41 +0000 (01:25 +0000)]
style(9) cleanup.

17 years agoIn sendsig:
kevlo [Wed, 14 Feb 2007 01:08:42 +0000 (01:08 +0000)]
In sendsig:

- Add sigacts locking.
- Add a mutex to struct sigacts that protects all the members of the struct.
- Create and log events via the CTRx macros.

Reviewed by: cognet

17 years agoChange the date.
julian [Tue, 13 Feb 2007 23:06:39 +0000 (23:06 +0000)]
Change the date.

17 years agoMake the kse man page reflect the removal of the KSEGRP kernel abstraction.
julian [Tue, 13 Feb 2007 23:02:15 +0000 (23:02 +0000)]
Make the kse man page reflect the removal of the KSEGRP kernel abstraction.

17 years agoSet UNP_CONNECTING when committing to moving ahead in unp_connect().
rwatson [Tue, 13 Feb 2007 21:00:57 +0000 (21:00 +0000)]
Set UNP_CONNECTING when committing to moving ahead in unp_connect().
This logic was lost when merging the remainder of these changes in
1.178.