]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years ago"If I only had a brain..."
des [Wed, 17 Jan 2007 14:54:53 +0000 (14:54 +0000)]
"If I only had a brain..."

MFC after:  3 weeks

17 years agoCorrect errors in previous commit. I didn't realize that ${CPUTYPE} is
des [Wed, 17 Jan 2007 14:49:13 +0000 (14:49 +0000)]
Correct errors in previous commit.  I didn't realize that ${CPUTYPE} is
passed unmodified to gcc.  Therefore, "prescott" should be used for Prescott,
Nocona, Core and Core 2 CPUs when building 32-bit code, and "nocona" should
be used for Prescott, Nocona and Core 2 CPUs when building 64-bit code.

MFC after: 3 weeks

17 years ago- Add a small section on boot-time configuration.
joel [Wed, 17 Jan 2007 14:27:03 +0000 (14:27 +0000)]
- Add a small section on boot-time configuration.
- Add more Xrefs.
- Fix minor nits.

Reviewed by: ru

17 years agoOn i386, make "prescott" an alias for "nocona" (instead of the other way
des [Wed, 17 Jan 2007 12:43:06 +0000 (12:43 +0000)]
On i386, make "prescott" an alias for "nocona" (instead of the other way
around), and introduce "core", along with the alias "core2".  All of these
enable SSE3.

On amd64, add "core2" (enables SSE3).

MFC after: 3 weeks

17 years agoFix a buffer overflow iff USB_DEBUG is set, hw.usb.ums.debug is > 5 and the
markus [Wed, 17 Jan 2007 03:50:45 +0000 (03:50 +0000)]
Fix a buffer overflow iff USB_DEBUG is set, hw.usb.ums.debug is > 5 and the
total size of all input reports is < 6.

PR: usb/106435
Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
Approved by: emax (mentor)
MFC after: 3 days

17 years agoAdd PCI Id's for upcoming controllers.
scottl [Wed, 17 Jan 2007 02:58:41 +0000 (02:58 +0000)]
Add PCI Id's for upcoming controllers.

Obtained from: LSI Corp.
MFC After: 3 days

17 years agoAdd 3436 file system regression tests in 184 files.
pjd [Wed, 17 Jan 2007 01:42:12 +0000 (01:42 +0000)]
Add 3436 file system regression tests in 184 files.
Almost all regression tests are based on very flexible fstest tool.
They verify correctness (POSIX conformance) of almost all file
system-related system calls.

The motivation behind this work is my ZFS port and POSIX, who doesn't
provide free test suites.

Runs on: FreeBSD/UFS, FreeBSD/ZFS, Solaris/UFS, Solaris/ZFS

To try it out:

# cd fstest
# make
# find tests/* -type d | xargs prove

17 years agoCreate bus dma tags for both the PCI bus and the IXP425 root bus. Set the
cognet [Wed, 17 Jan 2007 00:58:25 +0000 (00:58 +0000)]
Create bus dma tags for both the PCI bus and the IXP425 root bus. Set the
PCI bus' one as the default one, and explicitely use the other one for
non-PCI devices.
This is needed because the PCI bus can only address 64MB of RAM, while some
IXP425 boards have 128MB or more, and most of the PCI drivers do not bother
providing the parent dma tag.

17 years ago- Add bounce pages for arm, largely based on the i386 implementation.
cognet [Wed, 17 Jan 2007 00:53:05 +0000 (00:53 +0000)]
- Add bounce pages for arm, largely based on the i386 implementation.
- Add a default parent dma tag, similar to what has been done for sparc64.
- Before invalidating the dcache in POSTREAD, save the bits which are in the
same cachelines than our buffers, but not part of it, and restore them after
the invalidation.

17 years agoAdd a 3rd entry in the cache, which keeps the end position
trhodes [Tue, 16 Jan 2007 23:43:14 +0000 (23:43 +0000)]
Add a 3rd entry in the cache, which keeps the end position
from just before extending a file.  This has the desired effect
of keeping the write speed constant.  And yes, that helps a lot
copying large files always at full speed now, and I have seen
improvements using benchmarks/bonnie.

Stolen from: NetBSD
Reviewed by: bde

17 years agoRemove hptlock from the static witness table, now that it's a regular sleep
ssouhlal [Tue, 16 Jan 2007 22:56:28 +0000 (22:56 +0000)]
Remove hptlock from the static witness table, now that it's a regular sleep
mutex.

17 years agoResurrect upa(4), now used for the subordinate/slave UPA bridge and
marius [Tue, 16 Jan 2007 22:08:27 +0000 (22:08 +0000)]
Resurrect upa(4), now used for the subordinate/slave UPA bridge and
bus hanging off from the Fireplane/Safari bus in some USIII machines.
This is part 3/4 of allowing creator(4) to work in these machines.
The little info needed on how to configure the bridge and to work
around the incorrect values contained in the `interrupts' properties
of its children were obtained form OpenSolaris.

17 years ago- Merge sys/sparc64/creator/creator_upa.c into sys/dev/fb/creator.c.
marius [Tue, 16 Jan 2007 21:08:22 +0000 (21:08 +0000)]
- Merge sys/sparc64/creator/creator_upa.c into sys/dev/fb/creator.c.
  The separate bus front-end was inherited from the OpenBSD creator(4),
  which at that time had a mainbus(4) (for USI/II machines, which use
  an UPA interconnection bus as the nexus) and an upa(4) (for USIII
  machines, which use a subordinate/slave UPA bus hanging off from the
  Fireplane/Safari interconnection bus) front-end. With FreeBSD and
  newbus there is/will be no need to have two separate bus front-ends
  for these busses, so we can easily coallapse the shared front-end
  and the back-end into a single source file (note that the FreeBSD
  creator_upa.c was misnomer anyway; based on what it actually attached
  to that should have been creator_nexus.c), actually OpenBSD meanwhile
  also has moved to a shared front-end and a single source file. Due
  to the low-level console support creator.c also wasn't free from bus
  related things before.
  While at it, also split sys/sparc64/creator/creator.h into a
  sys/dev/fb/creatorreg.h that only contains register macros and move
  the structures to the top of sys/dev/fb/creator.c as suggested by
  style(9) so creator(4) is no longer scattered over two directories.
- Use OF_decode_addr()/sparc64_fake_bustag() to obtain the bus tags and
  handles for the low-level console support instead of hardcoding
  support for AFB/FFB hanging off from nexus(4) only. This is part 2/4
  of allowing creator(4) to work in USIII machines (which have a UPA
  bus hanging off from the Fireplane/Safari bus reflected by the nexus),
  which already makes it work as the low-level console there.
- Allocate resources in the bus attach routine regardless of whether
  creator(4) is used as for the low-level console and thus the required
  bus tags and handles have been already obtained or not so the resources
  are marked as taken in the respective RMAN.
- For both obtaining the bus tags and handles for the low-level console
  support as well as allocating the corresponding resources in the
  regular bus attach routine don't bother to get all for the maximum of
  24 register banks but only (for) the two tag/handle pairs required for
  providing the video interface for syscons(4) support. If we can't
  allocate the rest of them just limit the memory range accessible via
  creator_fb_mmap() accordingly.
- Sanity check the memory range spanned by the first and last resources
  and the resources in between as far as possible, as the XFree86/Xorg
  sunffb(4) expects to be able to access the whole region, even though
  the backing resources are actually non-continuous. Limit and check
  the memory range accessible via creator_fb_mmap() accordingly.
- Reduce the size of buffers for OFW properties to what they actually
  need to hold.
- Rename some tables to creator_<foo> for consistency.
- Also for the sizes in the creator_fb_mmap() mapping table entries use
  macros for consistency, add macros for the remaining register banks
  for completeness.

17 years agoTeach OF_decode_addr() about the bus space used for devices on the
marius [Tue, 16 Jan 2007 20:42:21 +0000 (20:42 +0000)]
Teach OF_decode_addr() about the bus space used for devices on the
nexus (which might or might not reflect an UPA interconnection bus;
accordingly UPA_BUS_SPACE should be renamed to NEXUS_BUS_SPACE at a
later point) and subordinate/slave UPA busses. This is part 1/4 of
allowing creator(4) to work in USIII machines (which have a UPA bus
hanging off from the Fireplane/Safari bus reflected by the nexus).

17 years agoo In re_newbuf() and re_encap() if re_dma_map_desc() aborts the mapping
marius [Tue, 16 Jan 2007 20:35:23 +0000 (20:35 +0000)]
o In re_newbuf() and re_encap() if re_dma_map_desc() aborts the mapping
  operation as it ran out of free descriptors or if there are too many
  segments in the first place, call bus_dmamap_unload() in order to
  unload the already loaded segments.
  For trying to map the defragmented mbuf (chain) in re_encap() this
  introduces re_dma_map_desc() setting arg.rl_maxsegs to 0 as a new
  failure mode. Previously we just ignored this case, corrupting our
  view of the TX ring.
o In re_txeof():
  - Don't clear IFF_DRV_OACTIVE unless there are at least 4 free TX
    descriptors. Further down the road re_encap() will bail if there
    aren't at least 4 free TX descriptors, causing re_start() to
    abort and prepend the dequeued mbuf again so it makes no sense
    to pretend we could process mbufs again when in fact we won't.
    While at it replace this magic 4 with a macro RL_TX_DESC_THLD
    throughout this driver.
  - Don't cancel the watchdog timeout as soon as there's at least one
    free TX descriptor but instead only if all descriptors have been
    handled. It's perfectly normal, especially in the DEVICE_POLLING
    case, that re_txeof() is called when only a part of the enqueued
    TX descriptors have been handled, causing the watchdog to be
    disarmed prematurely.
o In re_encap():
  - If m_defrag() fails just drop the packet like other NIC drivers
    do. This should only happen when there's a mbuf shortage, in which
    case it was possible to end up with an IFQ full of packets which
    couldn't be processed as they couldn't be defragmented as they
    were taking up all the mbufs themselves. This includes adjusting
    re_start() to not trying to prepend the mbuf (chain) if re_encap()
    has freed it.
  - Remove dupe initialization of members of struct rl_dmaload_arg to
    values that didn't change since trying to process the fragmented
    mbuf chain.
    While at it remove an unused member from struct rl_dmaload_arg.
o In re_start() remove a abandoned, banal comment. The corresponding
  code was moved to re_attach() some time ago.

With these changes re(4) now survives one day (until stopped) of
hammering out packets here.

Reviewed by: yongari
MFC after: 2 weeks

17 years agoFix a typo in a comment, introduced in rev. 1.19.
brueffer [Tue, 16 Jan 2007 19:46:05 +0000 (19:46 +0000)]
Fix a typo in a comment, introduced in rev. 1.19.

17 years agoDisable MSI for the Intel 845 and 865 chipsets and update comment for
jhb [Tue, 16 Jan 2007 19:44:45 +0000 (19:44 +0000)]
Disable MSI for the Intel 845 and 865 chipsets and update comment for
E7210 to note it is the same devid as the 875 chipset.

17 years agoFix a spelling error. heirarchy -> hierarchy.
mpp [Tue, 16 Jan 2007 19:40:25 +0000 (19:40 +0000)]
Fix a spelling error.  heirarchy -> hierarchy.

Obtained from: OpenBSD

17 years agoFix a spelling error in some comments. heirarchy -> hierarchy.
mpp [Tue, 16 Jan 2007 19:35:43 +0000 (19:35 +0000)]
Fix a spelling error in some comments.  heirarchy -> hierarchy.

Obtained from: OpenBSD

17 years agoo Remove duplicate #include <errno.h>.
maxim [Tue, 16 Jan 2007 18:28:43 +0000 (18:28 +0000)]
o Remove duplicate #include <errno.h>.

Obtained from: NetBSD (submitted by Slava Semushin)

17 years agoCorrect driver_t brgphy_driver, which was forgotten from the last commit.
jkim [Tue, 16 Jan 2007 17:48:57 +0000 (17:48 +0000)]
Correct driver_t brgphy_driver, which was forgotten from the last commit.

17 years agoFix the subvendor ID for PCI-PCI bridges.
jhb [Tue, 16 Jan 2007 17:04:42 +0000 (17:04 +0000)]
Fix the subvendor ID for PCI-PCI bridges.
- Retire the PCI_SUB*_1 constants and don't try to read a subvendor ID out
  of them.  There isn't a standard subvendor ID field for PCI-PCI bridges.
  Instead, the dword at offset 0x34 is actually mostly reserved except for
  the LSB which is the capabilities pointer.
- Add support for the PCI-PCI bridge subvendor ID capability (13) and use
  it to set the subvendor ID for PCI-PCI bridges.

MFC after:  1 month

17 years agoRemove duplicate variable initialization.
jhb [Tue, 16 Jan 2007 17:01:42 +0000 (17:01 +0000)]
Remove duplicate variable initialization.

CID: 1706
Found by: Coverity Prevent (tm)

17 years agoAvoid infinite loop if nicmp6 and nip6 are not on the same mbuf.
ume [Tue, 16 Jan 2007 15:55:29 +0000 (15:55 +0000)]
Avoid infinite loop if nicmp6 and nip6 are not on the same mbuf.
NetBSD PR 34994+35333

MFC after: 3 days

17 years agoWhen we try to set set-gid bit with chmod(2) on a file, which we own, but our
pjd [Tue, 16 Jan 2007 15:17:27 +0000 (15:17 +0000)]
When we try to set set-gid bit with chmod(2) on a file, which we own, but our
effective group ID (and any of our group) doesn't match the group ID of the
file, we get EPERM.  This doesn't conform POSIX. POSIX requires that we should
return 0, but silently clear the set-gid bit.

17 years agoFix typo in a comment.
joel [Tue, 16 Jan 2007 12:27:13 +0000 (12:27 +0000)]
Fix typo in a comment.

17 years agoRemoves useless (flags | ) KASSERT. The ^ one that actually
rrs [Tue, 16 Jan 2007 11:40:55 +0000 (11:40 +0000)]
Removes useless (flags | ) KASSERT. The ^ one that actually
does what we want.

Submitted by: Li Xin delphij@delphij.net
Reviewed by: rrs
Approved by: gnn

17 years agoAdd French dvorak keymap that supports accents. Based on Francis
murray [Tue, 16 Jan 2007 10:47:56 +0000 (10:47 +0000)]
Add French dvorak keymap that supports accents.  Based on Francis
Leboutte's french layout.

Submitted by: Clement Pillias <clementpillias@nerim.net>
MFC after: 1 week

17 years agoProvide a more accurate description of the size of the ports collection.
murray [Tue, 16 Jan 2007 10:29:10 +0000 (10:29 +0000)]
Provide a more accurate description of the size of the ports collection.

17 years agoMove MII model and revision into softc.
jkim [Tue, 16 Jan 2007 00:52:26 +0000 (00:52 +0000)]
Move MII model and revision into softc.

17 years agoFix warning by adding extra parentheses
kmacy [Tue, 16 Jan 2007 00:09:58 +0000 (00:09 +0000)]
Fix warning by adding extra parentheses

17 years agoDocument that uniq(1) limits input line length to LINE_MAX characters.
keramida [Mon, 15 Jan 2007 23:25:51 +0000 (23:25 +0000)]
Document that uniq(1) limits input line length to LINE_MAX characters.

PR: docs/107578
Submitted by: Jan Schaumann, jschauma.at.netmeister.org
MFC after: 3 days

17 years agoCheck the return value of bus_setup_intr() when setting up the
marius [Mon, 15 Jan 2007 22:37:59 +0000 (22:37 +0000)]
Check the return value of bus_setup_intr() when setting up the
over-temperature and power-fail interrupts.

Suggested by: Coverity Prevent (CID 683)
MFC after: 1 week

17 years ago- Move Ethernet@WireSpeed and jumbo frame configurations to separate
jkim [Mon, 15 Jan 2007 22:21:44 +0000 (22:21 +0000)]
- Move Ethernet@WireSpeed and jumbo frame configurations to separate
functions.  The idea is taken from OpenBSD.
- Set/clear jumbo frame configurations for bge(4).
- Re-add BCM5750 PHY workaround for bce(4), which was mistakenly removed
from the previous commit.

17 years ago- Fix BCM5754 support found in Dell PowerEdge SC440.
jkim [Mon, 15 Jan 2007 21:43:43 +0000 (21:43 +0000)]
- Fix BCM5754 support found in Dell PowerEdge SC440.
- Move some PHY bug detections from brgphy.c to if_bge.c.
- Do not penalize working PHYs.
- Re-arrange bge_flags roughly by their categories.
- Fix minor style(9) nits.

PR: kern/107257
Obtained from: OpenBSD
Tested by: Mike Hibler <mike at flux dot utah dot edu>

17 years agoRewrite the udf_read() routine to use a file vnode instead of the devvp vnode.
pav [Mon, 15 Jan 2007 18:45:36 +0000 (18:45 +0000)]
Rewrite the udf_read() routine to use a file vnode instead of the devvp vnode.
The code is modelled after cd9660, including support for simple read-ahead
courtesy of clustered read.

Fix udf_strategy to DTRT.

This change fixes sendfile(2) not to send out garbage.

Reviewed by: scottl
MFC after: 1 month

17 years agoClean up some debug prints from last commit and move one under boot -v.
njl [Mon, 15 Jan 2007 18:17:36 +0000 (18:17 +0000)]
Clean up some debug prints from last commit and move one under boot -v.
Reminded by: bruno

17 years agoAdd a missing mutex unlock to an error path.
scottl [Mon, 15 Jan 2007 16:22:20 +0000 (16:22 +0000)]
Add a missing mutex unlock to an error path.

Submitted by: Yuxiang Luo
PR: 107943

17 years agoTidy up formatting and some wording.
ru [Mon, 15 Jan 2007 15:25:15 +0000 (15:25 +0000)]
Tidy up formatting and some wording.

17 years ago- Macroizes the V6ONLY flag check.
rrs [Mon, 15 Jan 2007 15:12:10 +0000 (15:12 +0000)]
- Macroizes the V6ONLY flag check.
- Added a short time wait (not used yet) constant
- Corrected the type of the crc32c table (it was
  unsigned long and really is a uint32_t
- Got rid of the user of MHeaders until they
  are truely needed by lower layers.
- Fixed an initialization problem in the readq structure
  (ordering was off).
- Found yet another collision bug when the random number
  generator returns two numbers on one side (during a collision)
  that are the same. Also added some tracking of cookies
  that will go away when we know that we have the last collision
  bug gone.
- Fixed an init bug for book_size_scale, that was causing
  Early FR code to run when it should not.
- Fixed a flight size tracking bug that was associated with
  Early FR but due to above bug also effected all FR's
- Fixed it so Max Burst also will apply to Fast Retransmit.
- Fixed a bug in the temporary logging code that allowed a
  static log array overflow
- hashinit_flags is now used.
- Two last mcopym's were converted to the macro sctp_m_copym that
  has always been used by all other places
- macro sctp_m_copym was converted to upper case.
- We now validate sinfo_flags on input (we did not before).
- Fixed a bug that prevented a user from sending data and immediately
  shuting down with one send operation.
- Moved to use hashdestroy instead of free() in our macros.
- Fixed an init problem in our timed_wait vtag where we
  did not fully initialize our time-wait blocks.
- Timer stops were re-positioned.
- A pcb cleanup method was added, however this probably will
  not be used in BSD.. unless we make module loadable protocols
- I think this fixes the mysterious timer bug.. it was a
  ordering of locks problem in the way we did timers. It
  now conforms to the timeout(9) manual (except for the
  _drain part, we had to do this a different way due
  to locks).
- Fixed error return code so we get either CONNREUSED or CONNRESET
  depending on where one is in progression
- Purged an unused clone macro.
- Fixed a read erro code issue where we were NOT getting the proper
  error when the connection was reset.
- Purged an unused clone macro.
- Fixed a read erro code issue where we were NOT getting the proper
  error when the connection was reset.
Approved by: gnn

17 years agoReviewed by: rwatson
rrs [Mon, 15 Jan 2007 15:06:28 +0000 (15:06 +0000)]
Reviewed by: rwatson
Approved by: gnn

Add a new function hashinit_flags() which allows NOT-waiting
for memory (or waiting). The old hashinit() function now
calls hashinit_flags(..., HASH_WAITOK);

17 years agoo Add FreeBSD 6.2, bump copyright years.
maxim [Mon, 15 Jan 2007 06:14:50 +0000 (06:14 +0000)]
o Add FreeBSD 6.2, bump copyright years.

17 years agoWhitespace cleanup.
glebius [Mon, 15 Jan 2007 05:55:56 +0000 (05:55 +0000)]
Whitespace cleanup.

Checked with: cvs diff -b

17 years agoUpdate ip and tcp pointers after m_pullup().
glebius [Mon, 15 Jan 2007 05:01:31 +0000 (05:01 +0000)]
Update ip and tcp pointers after m_pullup().

Submitted by: Alexander Motin <mav alkar.net>

17 years agoadd compat shim for ath_hal_isgsmsku until the new hal gets committed
sam [Mon, 15 Jan 2007 04:26:19 +0000 (04:26 +0000)]
add compat shim for ath_hal_isgsmsku until the new hal gets committed

17 years agoAdd initial support for 900MHz channels; still has some rough
sam [Mon, 15 Jan 2007 01:20:28 +0000 (01:20 +0000)]
Add initial support for 900MHz channels; still has some rough
edges but ifconfig ath0 list chan works and you can use ieee
channel #'s to lock/select a channel.

MFC after: 1 month

17 years agosave changes for handling 5416/5418 parts
sam [Mon, 15 Jan 2007 01:17:44 +0000 (01:17 +0000)]
save changes for handling 5416/5418 parts

17 years agoAdd initial support for 900MHz cards like the Ubiquiti SR9:
sam [Mon, 15 Jan 2007 01:15:57 +0000 (01:15 +0000)]
Add initial support for 900MHz cards like the Ubiquiti SR9:
o eliminate assumptions that half/quarter rate channels on exist in 11a
o handle frequency mapping between hal and net80211; hal gives us freq's
  in the range 2422..2437 that we remap

MFC after: 1 month

17 years agoAdd initial support for 900MHz cards like the Ubiquiti SR9:
sam [Mon, 15 Jan 2007 01:12:28 +0000 (01:12 +0000)]
Add initial support for 900MHz cards like the Ubiquiti SR9:
o add channel flag to enable freq <-> ieee channel # mapping (can
  go away in the future when ieee number is precomputed)
o add mapping between 900mhz freq's and channel #'s that gives a
  unique channel # for each half/quarter/full width channel
o remove assumptions that half/quarter rate channels on happen in 11a
o remove assumptions that all 11g channels are full width
o ensure ic_curchan is reset on mode change so changing the channel
  list (e.g. on countrycode change) doesn't leave curchan set to an
  invalid channel

There is still an issue with switching rate sets; to be fixed separately.

MFC after: 1 month

17 years agoPropagate the CPU model to the hw.model sysctl.
marcel [Sun, 14 Jan 2007 21:45:05 +0000 (21:45 +0000)]
Propagate the CPU model to the hw.model sysctl.

17 years agoo Increment requests counter right before send out an ARP query actually.
maxim [Sun, 14 Jan 2007 18:44:17 +0000 (18:44 +0000)]
o Increment requests counter right before send out an ARP query actually.
Otherwise the code could lead to the spurious EHOSTDOWN errors.

PR: kern/107807
Submitted by: Dmitrij Tejblum
MFC after: 1 month

17 years agoMFp4 (112379):
netchild [Sun, 14 Jan 2007 16:34:43 +0000 (16:34 +0000)]
MFp4 (112379):
Implement SETALL/GETALL IPC primitives. This fixes some LTP testcases and
LabView is able to proceed a little bit further.

Submitted by: rdivacky

17 years agoMFp4 (112893):
netchild [Sun, 14 Jan 2007 16:20:37 +0000 (16:20 +0000)]
MFp4 (112893):
Make linux_vfork() actually work. This enables make to work again with 2.6.
It also fixes the LTP vfork tests.

Submitted by: rdivacky

17 years agoMFp4 (112705):
netchild [Sun, 14 Jan 2007 16:07:01 +0000 (16:07 +0000)]
MFp4 (112705):
Inherit setting of the default emulation version to the jails.

Pointed out by: jhb
Submitted by: rdivacky

17 years agoo Wrap long lines.
maxim [Sun, 14 Jan 2007 13:55:43 +0000 (13:55 +0000)]
o Wrap long lines.

17 years agoo Typo: note -> node.
maxim [Sun, 14 Jan 2007 13:51:35 +0000 (13:51 +0000)]
o Typo: note -> node.

PR: misc/107906
Submitted by: Alex Keda
MFC after: 3 days

17 years agoo Move the comment to the correct place.
maxim [Sun, 14 Jan 2007 12:20:31 +0000 (12:20 +0000)]
o Move the comment to the correct place.

PR: misc/107904
MFC after: 3 days

17 years agoUpdated calendar.judaic from Josef Grosch. I converted some tabs to spaces
dwmalone [Sun, 14 Jan 2007 09:58:39 +0000 (09:58 +0000)]
Updated calendar.judaic from Josef Grosch. I converted some tabs to spaces
before committing this.

17 years agoexclude the icu and clock lock from LOCK_PROFILING
kmacy [Sun, 14 Jan 2007 02:13:07 +0000 (02:13 +0000)]
exclude the icu and clock lock from LOCK_PROFILING

17 years agoForced commit to denote that this file has been repo-copied from
marius [Sat, 13 Jan 2007 22:48:23 +0000 (22:48 +0000)]
Forced commit to denote that this file has been repo-copied from
src/sys/sparc64/include/ofw_upa.h.

17 years agoForced commit to denote that this file has been repo-copied from
marius [Sat, 13 Jan 2007 22:36:22 +0000 (22:36 +0000)]
Forced commit to denote that this file has been repo-copied from
sys/dev/fb/gallant12x22.h.

17 years agoForced commit to denote that this file has been repo-copied from
marius [Sat, 13 Jan 2007 22:33:11 +0000 (22:33 +0000)]
Forced commit to denote that this file has been repo-copied from
sys/sparc64/creator/creator.h.

17 years ago- Allow multiple (external) PHYs with Am79C97{2,6}, which actually
marius [Sat, 13 Jan 2007 17:18:44 +0000 (17:18 +0000)]
- Allow multiple (external) PHYs with Am79C97{2,6}, which actually
  only support external PHYs (besides not connectable internal ones
  which respond at the usual addresses, but which don't hurt if we
  let them show up) and don't wedge when isolating PHYs. Actually,
  this change special cases limiting PHYs to Am79C97{3,5,8}, for
  which this driver doesn't implement swiching between the internal
  and external PHYs, yet, and Am79C971, where isolating the external
  PHY (at least in case it's a DP83840A) wedges the chip. Together
  with sys/dev/mii/acphy.c rev. 1.21 this adds support for the
  100baseFX port of AT-2700 series adaptors, which use two AC101,
  one for the copper and one for the fibre port (there might be
  variants which only use one PHY though).
- Fix a bug in the previous revision that prevented the address of
  the used (external) PHY to be actually recorded.
- Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.

MFC after: 1 week

17 years agoFixed a panic in the probe. The memory resource was accessed after
bde [Sat, 13 Jan 2007 11:00:56 +0000 (11:00 +0000)]
Fixed a panic in the probe.  The memory resource was accessed after
releasing it.  This seems to have worked until a few days ago, but
now the memory is unmapped.

17 years ago- Add a new flag to the PCI-PCI driver to disable MSI on devices behind the
jhb [Sat, 13 Jan 2007 04:57:37 +0000 (04:57 +0000)]
- Add a new flag to the PCI-PCI driver to disable MSI on devices behind the
  bridge if it doesn't pass MSI messages up correctly.  We set the flag
  in pcib_attach() if the device ID is disabled via a PCI quirk.
- Disable MSI for devices behind the AMD 8131 HT-PCIX bridge.  Linux has
  the same quirk.

Tested by: no one despite repeated calls for testers

17 years ago- Add a locked variant of bce_ifmedia_upd() for use within the driver and
jhb [Sat, 13 Jan 2007 04:35:15 +0000 (04:35 +0000)]
- Add a locked variant of bce_ifmedia_upd() for use within the driver and
  add missing locking to bce_ifmedia_upd().
- While I'm here, unexpand an instance of LIST_FOREACH().

MFC after: 2 weeks
Reviewed by: scottl

17 years agoCorrect the int->text conversion. <sigh>
kientzle [Sat, 13 Jan 2007 03:30:14 +0000 (03:30 +0000)]
Correct the int->text conversion. <sigh>
MFC after: 3 days

17 years agoFix headphone/speaker automute for [1] Acer Aspire 5050 and [2] MSI MS-1034
ariff [Sat, 13 Jan 2007 00:24:44 +0000 (00:24 +0000)]
Fix headphone/speaker automute for [1] Acer Aspire 5050 and [2] MSI MS-1034
laptops.

Tested by: [1] Lion G. <liontanker@hotmail.com>
           [2] Pietro Cerutti <pietro.cerutti@gmail.com>

Specialized mixer initialization for STAC9221, much like STAC9220.

Tested by: Devon H. O'Dell

17 years agoAfter another thought there is another nail for the mii_phy_dev_probe()-
marius [Sat, 13 Jan 2007 00:17:39 +0000 (00:17 +0000)]
After another thought there is another nail for the mii_phy_dev_probe()-
hammer.

17 years agoRemove mii_media_from_bmcr(); all previous users have been converted to
marius [Sat, 13 Jan 2007 00:14:45 +0000 (00:14 +0000)]
Remove mii_media_from_bmcr(); all previous users have been converted to
use mii_phy_add_media()/mii_phy_setmedia().

17 years ago- Take advantage of mii_phy_dev_probe() and mii_phy_setmedia().
marius [Sat, 13 Jan 2007 00:06:41 +0000 (00:06 +0000)]
- Take advantage of mii_phy_dev_probe() and mii_phy_setmedia().
- Set MIIF_NOLOOP as loopback doesn't work with this PHY. The MIIF_NOLOOP
  flag currently triggers nothing but hopefully will be respected by
  mii_phy_setmedia() later on.
- Use MII_ANEGTICKS instead of 5.
- Remove an unused macro.
- Fix some whitespace nits.

MFC after: 1 week

17 years ago- Take advantage of mii_phy_dev_probe().
marius [Fri, 12 Jan 2007 23:17:43 +0000 (23:17 +0000)]
- Take advantage of mii_phy_dev_probe().
- In exphy_service() for the MII_TICK case don't bother to check whether
  the currently selected media is of type IFM_AUTO as auto-negotiation
  doesn't need to be kicked anyway.
- Remove #if 0'ed unapplicable code.
- Fix some whitespace nits.

MFC after: 1 week

17 years agoSet MIIF_HAVE_FIBER and add IFM_100_FX media when the AC_MCTL_FX_SEL
marius [Fri, 12 Jan 2007 22:59:38 +0000 (22:59 +0000)]
Set MIIF_HAVE_FIBER and add IFM_100_FX media when the AC_MCTL_FX_SEL
and thus the FX_DIS pin indicates fibre media. This is part 1/2 of
adding support for the 100baseFX interface/port of AT-2700 series
adaptors.

Idea from: NetBSD
MFC after: 1 week

17 years ago- Correct the AC_MCTL_BYP_PCS constant.
marius [Fri, 12 Jan 2007 22:58:04 +0000 (22:58 +0000)]
- Correct the AC_MCTL_BYP_PCS constant.
- Correct whitespace nits (use #define<tab>, remove trailing whitespace).

17 years agoUse mii_phy_add_media()/mii_phy_setmedia()-compatible media table
marius [Fri, 12 Jan 2007 22:27:46 +0000 (22:27 +0000)]
Use mii_phy_add_media()/mii_phy_setmedia()-compatible media table
indices when manually adding media. Some of these I've missed while
converting drivers to take advantage of said fuctions recently,
others where longstanding bugs.

17 years agoIgnore EINPROGRESS error on TCP connect(), and pick up the result of the
rwatson [Fri, 12 Jan 2007 22:17:31 +0000 (22:17 +0000)]
Ignore EINPROGRESS error on TCP connect(), and pick up the result of the
non-blocking connect later using select().  This case didn't trigger on
my UP test box, but did on Peter's SMP test box.

Spotted by: peter

17 years agoRe-wrap comments to wider margins now that they have been relocated from
rwatson [Fri, 12 Jan 2007 22:01:03 +0000 (22:01 +0000)]
Re-wrap comments to wider margins now that they have been relocated from
within functions.

17 years agoAdd a regression test for sending and writing zero bytes to sockets of
rwatson [Fri, 12 Jan 2007 21:49:36 +0000 (21:49 +0000)]
Add a regression test for sending and writing zero bytes to sockets of
various types, as well as pipes and fifos for good measure.  RELENG_6
currently passes all of these tests, but 7-CURRENT fails 0-byte writes
and sends on all stream socket types (and fifos, as they are based on
stream sockets).

Bumped into by: peter
Diagnosed by: jhb
Problem of: andre

17 years agoDisable MSI for two ServerWorks chipsets. The first is based on a user
jhb [Fri, 12 Jan 2007 21:37:51 +0000 (21:37 +0000)]
Disable MSI for two ServerWorks chipsets.  The first is based on a user
report.  The second is blacklisted in Linux.

17 years agoBlacklist a few more Intel chipsets re: MSI based on user reports:
jhb [Fri, 12 Jan 2007 21:30:25 +0000 (21:30 +0000)]
Blacklist a few more Intel chipsets re: MSI based on user reports:
E7500 and 855.

17 years agoClean up DDP layer netatalk code:
rwatson [Fri, 12 Jan 2007 15:07:51 +0000 (15:07 +0000)]
Clean up DDP layer netatalk code:

- General style(9) cleanup -- white space, braces, line wraps, etc.

- Annotate a lack of synchronization the global route cache if the input
  routine is invoked with parallelism.

- Remove unused debugging code.

17 years ago- Condense the comment for Intel chipset MSI blacklist entries.
jhb [Fri, 12 Jan 2007 13:33:56 +0000 (13:33 +0000)]
- Condense the comment for Intel chipset MSI blacklist entries.
- Blacklist the E7210.

PR: kern/105768 (2)
Reported by: marcus (2)

17 years agoCleanup of netatalk atalk layer includes, protocol definitions, and
rwatson [Fri, 12 Jan 2007 13:18:08 +0000 (13:18 +0000)]
Cleanup of netatalk atalk layer includes, protocol definitions, and
routing:

- style(9) cleanup -- white space, braces, etc.

- Make include guards consistent with our more general naming
  convention.

- Rearrange and complete forward structure declarations in at_extern.h,
  remove testing of guards of various other include files to protect
  function declarations.

This leaves an ifdef _KERNEL in at_var.h, but from inspection it seems
likely that this file is not actually safe for inclusion in user space
still.  However, since it's not included from within src/ so this does
not appear to be an issue (ifconfig, etc, have migrated to the generic
cross-protocol ioctls for address operations).

17 years agoRe-style aarp with style(9): normal plethora of white space, brace,
rwatson [Fri, 12 Jan 2007 12:25:12 +0000 (12:25 +0000)]
Re-style aarp with style(9): normal plethora of white space, brace,
etc, changes.

Remove a small amount of #if !defined(__FreeBSD__) code.

Add missing include guard for _NETATALK_AARP_H_.

Remove unneeded (and conflicting) extern prototype for aarptfree().

17 years agoFix typos.
joel [Fri, 12 Jan 2007 08:44:55 +0000 (08:44 +0000)]
Fix typos.

17 years agoWhen ntp_gettime() was converted from a sysctl + wrapper to a system
imp [Fri, 12 Jan 2007 07:40:30 +0000 (07:40 +0000)]
When ntp_gettime() was converted from a sysctl + wrapper to a system
call, its semantics were unintentionally changed.  It went from
returning the time state to returning 0 or -1.  Since 0 means time
normal, and non-zero effectively only shows up around leap seconds,
this went unnoticed until now.  At least unnoticed until someone was
trying to run a binary they didn't have source for and it was
misbehaving...

Submitted by: Judah Levine
MFC After: 2 weeks

17 years agoRemove 3rd clause, renumber, ok per email
imp [Fri, 12 Jan 2007 07:31:30 +0000 (07:31 +0000)]
Remove 3rd clause, renumber, ok per email

17 years agoRemove 3rd clause, renumber, ok per email
imp [Fri, 12 Jan 2007 07:26:21 +0000 (07:26 +0000)]
Remove 3rd clause, renumber, ok per email

17 years agoMarking this as __packed was needed to get the alignment and offset of
imp [Fri, 12 Jan 2007 07:23:31 +0000 (07:23 +0000)]
Marking this as __packed was needed to get the alignment and offset of
members right.  However, it also said it was aligned(1), which meant
that gcc generated really bad code.  Mark this as aligned(4).  This
makes things a little faster on arm (a couple percent), but also saves
about 30k on the size of the kernel for arm.

I talked about doing this with bde, but didn't check with him before
the commit, so I'm hesitant say 'reviewed by: bde'.

17 years agoMarked these as packed correctly
imp [Fri, 12 Jan 2007 07:20:25 +0000 (07:20 +0000)]
Marked these as packed correctly

17 years agoadd man page
sam [Fri, 12 Jan 2007 05:36:28 +0000 (05:36 +0000)]
add man page

17 years agofix typo
sam [Fri, 12 Jan 2007 05:36:17 +0000 (05:36 +0000)]
fix typo

MFC after: 1 week

17 years agoAdd a device ID for the 631xESB/6321ESB SMBus controller.
jhb [Thu, 11 Jan 2007 21:13:27 +0000 (21:13 +0000)]
Add a device ID for the 631xESB/6321ESB SMBus controller.

Submitted by: Reed A. Cartwright <reed scit.us>

17 years agoFix re_setmulti() so that it works correctly for PCIe chips where
wpaul [Thu, 11 Jan 2007 20:31:35 +0000 (20:31 +0000)]
Fix re_setmulti() so that it works correctly for PCIe chips where
the multicast hash table are in reverse order compared to older
devices.

17 years agoFix build on architectures where off_t is signed by casting to uintmax_t
brooks [Thu, 11 Jan 2007 20:23:01 +0000 (20:23 +0000)]
Fix build on architectures where off_t is signed by casting to uintmax_t
before comparing with a size_t.

17 years agoVarious updates to most of the smbus(4) drivers:
jhb [Thu, 11 Jan 2007 19:56:24 +0000 (19:56 +0000)]
Various updates to most of the smbus(4) drivers:
- Use printf() and device_printf() instead of log() in ichsmb(4).
- Create the mutex sooner during ichsmb(4) attach.
- Attach the interrupt handler later during ichsmb(4) attach to avoid
  races.
- Don't try to set PCIM_CMD_PORTEN in ichsmb(4) attach as the PCI bus
  driver does this already.
- Add locking to alpm(4), amdpm(4), amdsmb(4), intsmb(4), nfsmb(4), and
  viapm(4).
- Axe ALPM_SMBIO_BASE_ADDR, it's not really safe to write arbitrary values
  into BARs, and the PCI bus layer will allocate resources now if needed.
- Merge intpm(4) and intsmb(4) into just intsmb(4).  Previously, intpm(4)
  attached to the PCI device and created an intsmb(4) child.  Now,
  intsmb(4) just attaches to PCI directly.
- Change several intsmb functions to take a softc instead of a device_t
  to make things simpler.

17 years agoNew release note: SA-07:01.jail.
bmah [Thu, 11 Jan 2007 19:44:45 +0000 (19:44 +0000)]
New release note:  SA-07:01.jail.

17 years agoRemove magic from rman_activate_resource() that uses the direct map at
jhb [Thu, 11 Jan 2007 19:40:19 +0000 (19:40 +0000)]
Remove magic from rman_activate_resource() that uses the direct map at
KERNBASE for the first 1 MB of RAM instead of calling pmap_mapdev().
pmap_mapdev() knows how to handle the first 1 MB (and has known for a
while now) and properly maps the memory as UC to boot.

MFC after: 2 weeks

17 years agoWrap propagate_priority() in a critical section to prevent unwanted
jhb [Thu, 11 Jan 2007 19:13:27 +0000 (19:13 +0000)]
Wrap propagate_priority() in a critical section to prevent unwanted
preemptions when adjusting the priority of a thread that is on a run
queue.  This was only observed when FULL_PREEMPTION was enabled.

Reported by: kris
Diagnosed by: ups
MFC after: 1 week

17 years agoo Document SO_TIMESTAMP and SO_BINSTAMP socket options.
maxim [Thu, 11 Jan 2007 18:45:41 +0000 (18:45 +0000)]
o Document SO_TIMESTAMP and SO_BINSTAMP socket options.

PR: docs/107696
Submitted by: Rob Robertson
Reviewed by: ru
Obtained from: NetBSD (mostly)
MFC after: 1 week