]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoIn pmap_ts_referenced(), don't attempt to do anything if the page is
cognet [Thu, 30 Nov 2006 23:35:34 +0000 (23:35 +0000)]
In pmap_ts_referenced(), don't attempt to do anything if the page is
fictitious, and just return 0.

17 years agoFirst bits of Xscale core 3 support (the VM bits are far from being optimal
cognet [Thu, 30 Nov 2006 23:34:07 +0000 (23:34 +0000)]
First bits of Xscale core 3 support (the VM bits are far from being optimal
yet).

17 years agoIntroduce CPU_XSCALE_CORE3, as XScale Core 3 is significally different than
cognet [Thu, 30 Nov 2006 23:30:40 +0000 (23:30 +0000)]
Introduce CPU_XSCALE_CORE3, as XScale Core 3 is significally different than
regular Xscale (it has no mini data cache, has armv6-style 16MB
supersections, and can address 36bits).
Define it for i81342.

17 years agoFix the hardware VLAN tagging. TX was broken on little-endian
ru [Thu, 30 Nov 2006 21:01:59 +0000 (21:01 +0000)]
Fix the hardware VLAN tagging.  TX was broken on little-endian
machines and both TX and RX were broken on big-endian machines.

The chip design is crazy -- on RX, it puts the 16-bit VLAN tag
in network byte order (big-endian) in the 32-bit little-endian
register!

Thanks to John Baldwin for helping me document this change! ;-)

Tested by: sat (amd64), test program (sparc64)
PR: kern/105054
MFC after: 3 days

17 years agoFrom OpenBSD, rev. 1.91:
mlaier [Thu, 30 Nov 2006 18:55:36 +0000 (18:55 +0000)]
From OpenBSD, rev. 1.91:
  fix servicecurve check; no point in checking the same sc three times, it
  was obviously intended to check all three. has been wrong since the
  beginning, 4 years... noticed by Earl Lapus <earl.lapus@gmail.com>, Vasil
  Dimov <vd@FreeBSD.org> mailed me then, ok mcbride

MFC after: 3 days

17 years agoBump .Dd for revision 1.8.
ceri [Thu, 30 Nov 2006 18:06:57 +0000 (18:06 +0000)]
Bump .Dd for revision 1.8.

17 years agoo ciss.ko depends on cam and pci.
maxim [Thu, 30 Nov 2006 15:14:17 +0000 (15:14 +0000)]
o ciss.ko depends on cam and pci.

PR: kern/105989
Submitted by: nork
MFC after: 1 month

17 years agoThe recent issues with em(4) interface has shown that the old 4.4BSD
glebius [Thu, 30 Nov 2006 15:02:01 +0000 (15:02 +0000)]
The recent issues with em(4) interface has shown that the old 4.4BSD
if_watchdog/if_timer interface doesn't fit modern SMP network
stack design.

Device drivers that need watchdog to monitor their hardware should
implement it theirselves.

Eventually the if_watchdog/if_timer API will be removed. For now,
warn that driver uses it.

Reviewed by: scottl

17 years ago- Instead of if_watchdog/if_timer interface use our own timer
glebius [Thu, 30 Nov 2006 14:58:01 +0000 (14:58 +0000)]
- Instead of if_watchdog/if_timer interface use our own timer
  that piggybacks on fxp_tick() callout.

17 years agoBump __FreeBSD_version after UQ_KBD_IGNORE was set for Wi-Spy devices.
flz [Thu, 30 Nov 2006 14:29:47 +0000 (14:29 +0000)]
Bump __FreeBSD_version after UQ_KBD_IGNORE was set for Wi-Spy devices.

17 years ago- Instead of if_watchdog/if_timer interface use our own timer
glebius [Thu, 30 Nov 2006 13:40:39 +0000 (13:40 +0000)]
- Instead of if_watchdog/if_timer interface use our own timer
  that piggybacks on bge_tick() callout.
- Lock bge_tick() using callout_init_mtx().

17 years agoConsistently use #ifdef INET6 rather than mixing and matching with
rwatson [Thu, 30 Nov 2006 10:54:54 +0000 (10:54 +0000)]
Consistently use #ifdef INET6 rather than mixing and matching with
#if defined(INET6).

Don't comment the end of short #ifdef blocks.

Comment cleanup.

Line wrap.

17 years agoLinker set support depends on the magic __start_<section> and
kib [Thu, 30 Nov 2006 10:50:29 +0000 (10:50 +0000)]
Linker set support depends on the magic __start_<section> and
__stop_<section> symbols generated by the static linker for elf
sections. This is done only for the final link, and not for ld -r.
Augment elf_obj in-kernel linker by recognizing such special symbols,
and resolving them to the start and end of the section automatically.

As result, linker sets on amd64 could be used in the same way as on
other architectures, without explicit calls to linker_file_lookup_set().

Requested by: rdivacky
No objections from: peter, jhb

17 years agoOnly grab the sched_lock if we actually need to modify the thread priority.
phk [Thu, 30 Nov 2006 08:27:38 +0000 (08:27 +0000)]
Only grab the sched_lock if we actually need to modify the thread priority.

During a buildworld only 2/3 of the calls to msleep actually changed
the priority.

17 years agoDon't use vm_page_flag_set() if installing bootstrap page-table entries
grehan [Thu, 30 Nov 2006 08:13:06 +0000 (08:13 +0000)]
Don't use vm_page_flag_set() if installing bootstrap page-table entries
since the vm page mutex's aren't yet initialized. Fixes boot-time panic.

Reported by: Dario Freni  saturnero at freesbie dot org

17 years agoFlushing the buffer is conditional on actually using the buffer. Oops.
jb [Thu, 30 Nov 2006 07:25:52 +0000 (07:25 +0000)]
Flushing the buffer is conditional on actually using the buffer. Oops.

17 years agoBetter i2c bit definitions.
kevlo [Thu, 30 Nov 2006 06:30:01 +0000 (06:30 +0000)]
Better i2c bit definitions.

Approved by: cognet

17 years agofls was missing
sam [Thu, 30 Nov 2006 06:17:54 +0000 (06:17 +0000)]
fls was missing

MFC after: 1 week

17 years agoTurn console printf buffering into a kernel option and only on
jb [Thu, 30 Nov 2006 04:17:05 +0000 (04:17 +0000)]
Turn console printf buffering into a kernel option and only on
by default for sun4v where it is absolutely required.

This change moves the buffer from struct pcpu to the stack to avoid
using the critical section which created a LOR in a couple of cases
due to interaction with the tty code and kqueue. The LOR can't be
fixed with the critical section and the pcpu buffer can't be used
without the critical section.

Putting the buffer on the stack was my initial solution, but it was
pointed out that the stress on the stack might cause problems
depending on the call path. We don't have a way of creating tests
for those possible cases, so it's best to leave this as an option
for the time being. In time we may get enough data to enable this
option more generally.

17 years agoRemove pre-5.3 compatibility ifdefs.
brueffer [Wed, 29 Nov 2006 21:42:48 +0000 (21:42 +0000)]
Remove pre-5.3 compatibility ifdefs.

Approved by: rwatson (mentor)
MFC after: 5 days

17 years agoBump .Dd, (9 year jump!)
alfred [Wed, 29 Nov 2006 20:24:56 +0000 (20:24 +0000)]
Bump .Dd, (9 year jump!)

Requested by: ru
cvs: ----------------------------------------------------------------------

17 years ago- add separate variable for enabling printing of ranges
kmacy [Wed, 29 Nov 2006 19:31:23 +0000 (19:31 +0000)]
- add separate variable for enabling printing of ranges
- simplify handling of rounding phys_avail ranges to 4M boundaries (needed for all
  memory to be in the direct mapped area)

17 years agoStop INVARIANTS panics in if_aue with a stopgap.
alfred [Wed, 29 Nov 2006 19:19:44 +0000 (19:19 +0000)]
Stop INVARIANTS panics in if_aue with a stopgap.

aue_tick calls several synchronous usb functions from a timeout(9),
this is very broken since a timeout(9) is run as an interrupt
and the usb functions tsleep.

A stopgap fix is to schedule a taskqueue task from the timeout
and defer work to that taskqueue task.

17 years agoDo a better job of documenting uio_resid.
alfred [Wed, 29 Nov 2006 19:10:53 +0000 (19:10 +0000)]
Do a better job of documenting uio_resid.

17 years agoDocument struct uio.h entries.
alfred [Wed, 29 Nov 2006 19:08:45 +0000 (19:08 +0000)]
Document struct uio.h entries.

17 years agoAdd the dev.pcm.%d.polling sysctl and a short description.
joel [Wed, 29 Nov 2006 17:07:02 +0000 (17:07 +0000)]
Add the dev.pcm.%d.polling sysctl and a short description.

Reviewed by: ru

17 years agoFix mxge_submit_8rx() to behave like the comments says it does,
gallatin [Wed, 29 Nov 2006 15:30:39 +0000 (15:30 +0000)]
Fix mxge_submit_8rx() to behave like the comments says it does,
and ensure that it copies at most 32 bytes at a time.

17 years agoFix support for Medion MD MD95257 (GPIO2 quirk).
ariff [Wed, 29 Nov 2006 15:15:30 +0000 (15:15 +0000)]
Fix support for Medion MD MD95257 (GPIO2 quirk).

Reported by: Chris Tophe <cohika@gmail.com>

17 years agoo Xr netconfig(5).
maxim [Wed, 29 Nov 2006 09:01:28 +0000 (09:01 +0000)]
o Xr netconfig(5).

PR: docs/105720
Submitted by: koitsu
MFC after: 1 week

17 years agoMFp4:
imp [Wed, 29 Nov 2006 08:17:40 +0000 (08:17 +0000)]
MFp4:
formatting nit

17 years agoMake this work a lot better:
imp [Wed, 29 Nov 2006 08:15:59 +0000 (08:15 +0000)]
Make this work a lot better:
Remove a lot of older cruft not needed.
Improve ISR support, but it is still unused since polling is faster
Properly initalize the speed register to get 90kb/s, not 400b/s.
Try to catch NACK
Allow 0 length read transfers to generate start/top pairs.

17 years agoBuild glue for at45d flash support.
imp [Wed, 29 Nov 2006 08:08:30 +0000 (08:08 +0000)]
Build glue for at45d flash support.

17 years agoMFp4:
imp [Wed, 29 Nov 2006 08:05:55 +0000 (08:05 +0000)]
MFp4:
Preliminary support for Atmel AT45D series of DataFlash on the
SPI bus (ok, not really a hardware bus, but a logical
connection).  This works only for the 8MB version of the part
due to hard coding.  Both read and write are supported.

17 years agoMFp4:
imp [Wed, 29 Nov 2006 07:57:02 +0000 (07:57 +0000)]
MFp4:
correct data counts so that we clock enough data for the spi
transaction.  This allows complete spi transactions to happen.

17 years agoNote that not all architectures use sendfile(2) buffers;
yar [Wed, 29 Nov 2006 05:53:25 +0000 (05:53 +0000)]
Note that not all architectures use sendfile(2) buffers;
refer to the respective manpage for details.

MFC after: 3 days

17 years ago- Explicitly name the fields in pcb that we use to store trap state for later
kmacy [Wed, 29 Nov 2006 05:18:19 +0000 (05:18 +0000)]
- Explicitly name the fields in pcb that we use to store trap state for later
  retrieval, rather than using pad
- save the fault address in sfar for use by the alignment fixup handler
- mask off the trap number, so the context id doesn't confuse the UT_MAX
  comparison

This change fixes alignment fixup handling which is needed for traceroute
to work in spite of its copious unaligned accesses

17 years agoWe no longer need to remap hardware trap numbers to sparc64 trap numbers
kmacy [Wed, 29 Nov 2006 04:52:51 +0000 (04:52 +0000)]
We no longer need to remap hardware trap numbers to sparc64 trap numbers
as this happens much earlier in trap handling.

The fact that we continued to do this when it was no longer necessary caused
breapoint to map to SIGILL as opposed to SIGTRAP :-(.

17 years agoIn nfs_nget(), we must initialize the fh in the nfsnode before inserting the
mohans [Wed, 29 Nov 2006 02:21:40 +0000 (02:21 +0000)]
In nfs_nget(), we must initialize the fh in the nfsnode before inserting the
vnode into the vfs hash. Otherwise, another thread walking the hash can trip
on an nfsnode with an uninitialized or partially initialized fh.
Thanks to ups@ for spotting this race.

17 years agoPass a string buffer named "errmsg" to nmount().
rodrigc [Wed, 29 Nov 2006 00:46:30 +0000 (00:46 +0000)]
Pass a string buffer named "errmsg" to nmount().
This will allow the NFS mount code to return a string error message
in addition to returning an error integer value.

Reviewed by:    mohans
MFC after:      1 month

17 years agoDeduce the "fstype" parameter to pass to nmount() by looking at
rodrigc [Wed, 29 Nov 2006 00:41:44 +0000 (00:41 +0000)]
Deduce the "fstype" parameter to pass to nmount() by looking at
the "_nfs" part of argv[0].  This should facilitate unifying mount_nfs
and mount_nfs4 into one binary.

MFC after: 1 month
Reviewed by: mohans

17 years agoAdd a quirk for devices recognized as usb keyboards not to be hooked by
flz [Tue, 28 Nov 2006 21:13:07 +0000 (21:13 +0000)]
Add a quirk for devices recognized as usb keyboards not to be hooked by
ukbd(4).

PR: usb/105669
Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk>
MFC after: 1 week

17 years agoDifferentiate between data and instruction fetch in the fatal
ru [Tue, 28 Nov 2006 20:04:00 +0000 (20:04 +0000)]
Differentiate between data and instruction fetch in the fatal
page fault trap handler.

Reviewed by: alc

17 years agoNFSv4 client:
rees [Tue, 28 Nov 2006 19:33:28 +0000 (19:33 +0000)]
NFSv4 client:
Add support for va_birthtime
Fix va_ctime to use TIME_METADATA, not TIME_CREATE

17 years ago- Revert signedness type changes to "struct vmtotal"; by making
ru [Tue, 28 Nov 2006 12:46:02 +0000 (12:46 +0000)]
- Revert signedness type changes to "struct vmtotal"; by making
  them unsigned I made the possible overflows hard to detect,
  and it only saved 1 bit which isn't principal, even less now
  that the underlying issue with the total of virtual memory has
  been fixed.  (For the record, it will overflow with >=2T of
  VM total, with 32-bit ints used to keep counters in pages.)

- While here, fix printing of other "struct vmtotal" members
  such as t_rq, t_dw, t_pw, and t_sw as they are also signed.

Reviewed by: bde
MFC after: 3 days

17 years agoIncrease USR_MIN_SIZE to 160 because it requires more disk space.
nyan [Tue, 28 Nov 2006 11:48:34 +0000 (11:48 +0000)]
Increase USR_MIN_SIZE to 160 because it requires more disk space.

MFC after: 3 days

17 years agoChange net.isr.direct from defaulting to 0 to 1 in 7-CURRENT. This
rwatson [Tue, 28 Nov 2006 11:19:36 +0000 (11:19 +0000)]
Change net.isr.direct from defaulting to 0 to 1 in 7-CURRENT.  This
enables direct dispatch of the network stack from the device driver
ithread, enabling input path parallelism by default when multiple
interfaces are present.

The strategy for network stack parallelism is something being actively
discussed, and this is just one of several possible (and perfectly
reasonable) strategies, but has the distinct advantage of reducing the
number of context switches and preemptions significantly, resulting in
higher efficiency in many cases.  In some caes, this may reduce
network stack parallelism due to work not being deferred from the
ithread to the netisr.  Therefore, the strategy may change in the
future, but this offers a reasonable first pass and enabling
parallelism while maintaining strong ordering.

Hopefully this will trigger lots of nice new bugs.

This change is not intended for MFC.

17 years agoIf a thread was detached, return EINVAL instead, the error code
davidxu [Tue, 28 Nov 2006 11:05:31 +0000 (11:05 +0000)]
If a thread was detached, return EINVAL instead, the error code
is also returned by pthread_detach() if a thread was already
detached, the error code was already documented:

>    [EINVAL] The implementation has detected that the value speci-
> fied by thread does not refer to a joinable thread.

17 years agoAdd a fake flag for write. Many drivers have started to use it and it
imp [Tue, 28 Nov 2006 06:51:36 +0000 (06:51 +0000)]
Add a fake flag for write.  Many drivers have started to use it and it
seems like a good idea.

Submitted by: sam

17 years ago- Remove third parameter of itimer_find, the parameter is always zero.
davidxu [Tue, 28 Nov 2006 03:24:34 +0000 (03:24 +0000)]
- Remove third parameter of itimer_find, the parameter is always zero.
- Call callout_drain on deleting POSIX timer.
- Use kern_timer_delete in exiting hook.

17 years ago- Clear the PCN_MISC_ASEL bit so the media port can be actually set
marius [Tue, 28 Nov 2006 01:33:17 +0000 (01:33 +0000)]
- Clear the PCN_MISC_ASEL bit so the media port can be actually set
  via the PCN_CSR_MODE register. Along with sys/dev/mii/nsphy.c 1.26
  this fixes the case of certain Am79c971-based HP cards and on-board
  ones in IBM machines reporting link but not actually passing any
  traffic. [1]
- Add support for the internal 10baseT PHY, which actually is used on
  at least said HP cards (together with an external DP83840A in a
  multiple PHYs configuration). With cards that don't make use of this
  internal PHY it'll also show up in FreeBSD but not cause any harm.
  This is still missing support for multiple PHYs configuration using
  the internal 100baseTX and/or HomePNA PHYs together with external
  PHYs or multiple external PHYs though.
- In pcn_ifmedia_upd() call pcn_reset() as otherwise the Am79C971 of
  at least said HP cards can wedge when switching from the internal
  10baseT PHY to the external PHY. This means that we need to also
  initialize and possibly start the chip again in pcn_ifmedia_upd(),
  which isn't that bad though as for setting the media port the chip
  has to be powered down or stopped anyway and unlike documented
  doesn't take effect until the next initialization.

PR: 27995, 25959, 72966 (likely) [1]
MFC after: 2 weeks

17 years ago- In rlphy_service() for the MII_TICK case don't bother to check whether
marius [Tue, 28 Nov 2006 01:14:09 +0000 (01:14 +0000)]
- In rlphy_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.
- In rlphy_status() just use if_dname instead of determining the name
  of the parent NIC via device_get_name(device_get_parent(sc->mii_dev)).
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().
- Fix some whitespace nits and remove commented out code that just can't
  be used with RealTek PHYs.

MFC after: 2 weeks

17 years ago- In qsphy_service() for the MII_TICK case don't bother to check whether
marius [Tue, 28 Nov 2006 01:08:45 +0000 (01:08 +0000)]
- In qsphy_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.
- Don't set MIIF_NOISOLATE so qsphy(4) can be used in configurations
  with multiple PHYs. There doesn't seem to be a problem with isolating
  QS6612 per se nor in combination with the NICs they're used with.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().

Obtained from: NetBSD (except for the first item)
MFC after: 2 weeks

17 years agoAdd arm to universe.
ru [Tue, 28 Nov 2006 01:03:29 +0000 (01:03 +0000)]
Add arm to universe.

17 years ago- Don't add IFM_NONE when used in combination with pcn(4) as for MII
marius [Tue, 28 Nov 2006 01:01:02 +0000 (01:01 +0000)]
- Don't add IFM_NONE when used in combination with pcn(4) as for MII
  loopback to work PCnet chips additionally need to be placed into
  external loopback mode which pcn(4) doesn't do so far.
- In nsphy_service() just use if_dname instead of determining the name
  of the parent NIC via device_get_name(device_get_parent(sc->mii_dev)).
- Don't set MIIF_NOISOLATE, except for when used in combination with a
  NIC that wedges when isolating the PHYs, so nsphy(4) can be used in
  configurations with multiple PHYs.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia() (requires the MIIF_FORCEANEG
  added in sys/dev/mii/mii_physubr.c 1.26, sys/dev/mii/miivar.h 1.19).
- Implement a separate nsphy_reset(). There are two reasons for this:
  1) This PHY can take an inordinate amount of time to reset if media
     is attached; under fairly normal circumstances up to nearly one
     second. This is because it appears to go through an implicit auto-
     negotiation cycle as part of the reset.
  2) During reset and auto-negotiation, the BMCR will clear the reset
     bit before the process is complete. It will return 0 until the
     process is complete and it's safe to access the PHY again.

  This is the first of two changes required to make the combination of
  Am79c971 and DP83840A found on certain HP cards and on-board in IBM
  machines work.
- Fix some whitespace nits.

Based on: NetBSD (except for the first and second item)
MFC after: 2 weeks

17 years ago- Rely on mii_phy_add_media() setting mii_anegticks as appropriate.
marius [Tue, 28 Nov 2006 00:47:54 +0000 (00:47 +0000)]
- Rely on mii_phy_add_media() setting mii_anegticks as appropriate.
- Fix some whitespace nits.

MFC after: 2 weeks

17 years ago- Don't set MIIF_NOISOLATE so lxtphy(4) can be used in configurations
marius [Tue, 28 Nov 2006 00:45:48 +0000 (00:45 +0000)]
- Don't set MIIF_NOISOLATE so lxtphy(4) can be used in configurations
  with multiple PHYs. There doesn't seem to be a problem with isolating
  LXT970 per se nor in combination with the NICs they're used with and
  lxtphy(4) was already adding IFM_NONE anyway.
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().
- Fix some whitespace nits.

Obtained from: NetBSD
MFC after: 2 weeks

17 years ago- Remove a dupe $FreeBSD$.
marius [Tue, 28 Nov 2006 00:43:38 +0000 (00:43 +0000)]
- Remove a dupe $FreeBSD$.
- Fix some whitespace nits.

17 years agoRemove unused leftovers.
imp [Tue, 28 Nov 2006 00:05:04 +0000 (00:05 +0000)]
Remove unused leftovers.

17 years agoAnalogous to mii_add_media(), factor out the code for checking whether
marius [Mon, 27 Nov 2006 23:50:19 +0000 (23:50 +0000)]
Analogous to mii_add_media(), factor out the code for checking whether
the BMSR contains any media at all to mii_phy_add_media(). The majority
of the drivers currently using mii_phy_add_media() were missing such a
check anyway though.

MFC after: 2 weeks

17 years ago- Add a MIIF_FORCEANEG flag which forces an auto-negotiation to always
marius [Mon, 27 Nov 2006 23:37:59 +0000 (23:37 +0000)]
- Add a MIIF_FORCEANEG flag which forces an auto-negotiation to always
  take place if IFM_AUTO is selected. This allows drivers like nsphy(4),
  which need to force writing the ANAR according to the BMSR, to take
  advantage of mii_phy_setmedia(). [1]
- In mii_phy_reset() once the current media is set don't isolate the PHY
  corresponding to the instance of the currently selected media rather
  than unconditionally not isolating the PHY corresponding to instance 0.
  This saves a isolation-unisolation-cycle of the PHY corresponding to
  the currently selected media for the case were it isn't instance 0.
- Fix some whitespace nits. [1]

Obtained from: NetBSD [1]
MFC after: 2 weeks

17 years agobde@ pointed out that tprintf() acquires Giant so callers of tprintf() don't
mohans [Mon, 27 Nov 2006 23:26:06 +0000 (23:26 +0000)]
bde@ pointed out that tprintf() acquires Giant so callers of tprintf() don't
have to explicitly acquire Giant (although they need to be aware of this and
not hold any locks at that point). Remove the acquisitions of Giant in the
NFS client wrapping tprintf().

17 years agoDo not mark Bluetooth HID device as a "potential keyboard" if its descriptor
emax [Mon, 27 Nov 2006 22:52:11 +0000 (22:52 +0000)]
Do not mark Bluetooth HID device as a "potential keyboard" if its descriptor
has items with CONSUMER page. For now only check for items with KEYBOARD page.
This should prevent bthidd(8) from allocating vkbd(4) keyboard for Microsoft
Bluetooth Explorer mouse.

Reported by: Eric Anderson
MFC after: 3 days

17 years agoFix some of the alignment warnings on ARM.
ru [Mon, 27 Nov 2006 22:17:11 +0000 (22:17 +0000)]
Fix some of the alignment warnings on ARM.

17 years agoAdd descriptions for p2p and autop2p.
thompsa [Mon, 27 Nov 2006 21:59:04 +0000 (21:59 +0000)]
Add descriptions for p2p and autop2p.

17 years agoBump .Dd for r1.127.
ceri [Mon, 27 Nov 2006 21:54:46 +0000 (21:54 +0000)]
Bump .Dd for r1.127.

17 years agoBack out rev. 1.17: arch-dependent WARNS level.
yar [Mon, 27 Nov 2006 21:30:38 +0000 (21:30 +0000)]
Back out rev. 1.17: arch-dependent WARNS level.

The policy is that the WARNS level should characterize the
quality of a piece of code irrespective of any conditions.
Otherwise the code doesn't deserve the WARNS level assigned.

Requested by: ru

17 years agoMFP4: Change 109654
jkim [Mon, 27 Nov 2006 21:10:55 +0000 (21:10 +0000)]
MFP4: Change 109654

Add two linprocfs entries for Linux IPC:

/proc/sys/kernel/msgmni -> kern.ipc.msgmni
/proc/sys/kernel/sem -> kern.ipc.semmsl
kern.ipc.semmns
kern.ipc.semopm
kern.ipc.semmni

This fixes msgget03 and semget05 from Linux Test Project (LTP) test suite.
msgctl08 and msgctl09 also use /proc/sys/kernel/msgmni but another fix is
required from p4 (Change 110179).

Requested by: netchild

17 years agoShow the MAC address cache size and timeout.
thompsa [Mon, 27 Nov 2006 20:52:57 +0000 (20:52 +0000)]
Show the MAC address cache size and timeout.

17 years agoWrite the short vendor name in ALL CAPS, since it will become
dougb [Mon, 27 Nov 2006 20:33:13 +0000 (20:33 +0000)]
Write the short vendor name in ALL CAPS, since it will become
a #define.

Submitted by: brooks

17 years agoConsistently mark percentage scales as such.
yar [Mon, 27 Nov 2006 20:19:05 +0000 (20:19 +0000)]
Consistently mark percentage scales as such.

PR: bin/101975
MFC after: 3 days

17 years agoKeep the command name the same as the values display name in ifconfig.
thompsa [Mon, 27 Nov 2006 20:18:43 +0000 (20:18 +0000)]
Keep the command name the same as the values display name in ifconfig.

17 years agoDon't shadow globals.
yar [Mon, 27 Nov 2006 19:50:50 +0000 (19:50 +0000)]
Don't shadow globals.

Found by:       WARNS=6
MFC after:      3 days

17 years agoWe should return the name in cp, not printf it.
yar [Mon, 27 Nov 2006 19:48:45 +0000 (19:48 +0000)]
We should return the name in cp, not printf it.

Found by: WARNS=6
MFC after: 3 days

17 years agoThere was a timeframe where crunchgen(1) was broken; force
ru [Mon, 27 Nov 2006 19:38:28 +0000 (19:38 +0000)]
There was a timeframe where crunchgen(1) was broken; force
an upgrade during the build so those who are affected can
build world again.

17 years agoFix for a bug caused by a race when 2 threads lookup the same
mohans [Mon, 27 Nov 2006 19:06:43 +0000 (19:06 +0000)]
Fix for a bug caused by a race when 2 threads lookup the same
file. Leave the loser's lock(s) initialized, so the reclaim logic can
unconditionally destroy them when that race occurs (or if the vfs hash
insert happened to fail for some other reason). Thanks to ups@ for a
careful review of the code.
Reported by : Kris Kennaway

17 years agoRefine the previous change to only call bus_dmamap_sync() in case of
marius [Mon, 27 Nov 2006 18:39:02 +0000 (18:39 +0000)]
Refine the previous change to only call bus_dmamap_sync() in case of
an URQ_REQUEST when DMA segments are passed to usbd_start_transfer();
when the request doesn't include the optional data buffer the size of
the transfer (xfer->length) is 0, in which case usbd_transfer() won't
create a DMA map but call usbd_start_transfer() with no DMA segments.
With the previous change this could result in the bus_dmamap_sync()
implementation dereferencing the NULL-pointer passed as the DMA map
argument.
While at it fix what appears to be a typo in usbd_start_transfer();
in order to determine wheter usbd_start_transfer() was called with
DMA segments check whether the number of segments is > 0 rather than
the pointer to them being > 0.

OK'ed by: imp

17 years agoOverhaul this manpage somewhat:
brueffer [Mon, 27 Nov 2006 18:37:45 +0000 (18:37 +0000)]
Overhaul this manpage somewhat:

- Move mentionings of required drivers to the SYNOPSIS where they belong
- Remove cruft (XiG, sheesh) from the EXAMPLES section and re-arrange things to make
  somewhat more sense
- Fix an Xref to manpage from ports to mention the corresponsing port
- Remove commented out HISTORY section header

MFC after: 3 days

17 years agosystat(1) reaches WARNS=6 on i386 and amd64. This is good
yar [Mon, 27 Nov 2006 17:54:28 +0000 (17:54 +0000)]
systat(1) reaches WARNS=6 on i386 and amd64.  This is good
for catching general regressions in future.  Unfortunately,
it still displays some problems at WARNS=6 on architectures
with stricter alignment requirements, e.g., ia64.

17 years agoThe logic of fetchnetstat_sysctl() isn't too complex: if idx is 0,
yar [Mon, 27 Nov 2006 17:34:40 +0000 (17:34 +0000)]
The logic of fetchnetstat_sysctl() isn't too complex: if idx is 0,
we set and use xtp; if idx is 1, we set and use xip; the other cases
are impossible.  However, GCC cannot see that xip and xtp are always
initialized before use because they are initialized and used in
different if/else blocks.  So setting them to NULL at the very
beginning won't hurt.

17 years ago+ WARNS=4 reminds that nlist.n_name isn't const.
yar [Mon, 27 Nov 2006 17:24:36 +0000 (17:24 +0000)]
+ WARNS=4 reminds that nlist.n_name isn't const.
+ Use C99 initializers to be WARNS-clean.
+ The last element in a namelist should have its n_name set to NULL,
  not to an empty string.

17 years agoDon't discard a const qualifier from constant strings.
yar [Mon, 27 Nov 2006 17:01:31 +0000 (17:01 +0000)]
Don't discard a const qualifier from constant strings.

17 years agoRemove a wrong "const" qualifier.
yar [Mon, 27 Nov 2006 16:59:08 +0000 (16:59 +0000)]
Remove a wrong "const" qualifier.

Spotted by: WARNS=6

17 years agoPush the detection of threading libs support down to ngctl/Makefile
ru [Mon, 27 Nov 2006 16:55:14 +0000 (16:55 +0000)]
Push the detection of threading libs support down to ngctl/Makefile
as the latter can be built without threading (with the loss of line
editing functionality).

Pointed by: glebius

17 years agoAdd the Tera scale factor, which is an easy job now.
yar [Mon, 27 Nov 2006 16:33:44 +0000 (16:33 +0000)]
Add the Tera scale factor, which is an easy job now.
More scale factors would overflow the command line where
the help for "scale" were shown.

17 years agoImprove support for large ISOs:
kientzle [Mon, 27 Nov 2006 16:30:32 +0000 (16:30 +0000)]
Improve support for large ISOs:
   * Correct a signed/unsigned problem that broke handling of files >2G.
   * Implement "skip" support for much faster "tar -t".

Thanks to: Robert Sciuk for sending me a DVD that illustrated the first problem

17 years agoStop exposing things that can be private to convtbl.c.
yar [Mon, 27 Nov 2006 16:23:09 +0000 (16:23 +0000)]
Stop exposing things that can be private to convtbl.c.

17 years agoKeep all convtbl-related constants and strings in convtbl.[ch].
yar [Mon, 27 Nov 2006 16:14:32 +0000 (16:14 +0000)]
Keep all convtbl-related constants and strings in convtbl.[ch].

17 years agoAllow for large scale factors. C99 warrants that
yar [Mon, 27 Nov 2006 15:26:26 +0000 (15:26 +0000)]
Allow for large scale factors.  C99 warrants that
ULLONG_MAX is not less than 2^64-1; and uintmax_t
cannot be more narrow than unsigned long long.
This allows for scale factors up to Exa inclusively.

Use plain int for the scale index to be consistent
with ifcmds.c and enum.

17 years agoReturn back one initializer, it is needed.
yar [Mon, 27 Nov 2006 15:14:50 +0000 (15:14 +0000)]
Return back one initializer, it is needed.

17 years ago+ Drop useless initializers.
yar [Mon, 27 Nov 2006 15:11:30 +0000 (15:11 +0000)]
+ Drop useless initializers.
+ style(9).

17 years agoDrop useless #includes.
yar [Mon, 27 Nov 2006 14:48:46 +0000 (14:48 +0000)]
Drop useless #includes.

17 years agoUse C99 initializers so that we don't really have to worry
yar [Mon, 27 Nov 2006 14:18:54 +0000 (14:18 +0000)]
Use C99 initializers so that we don't really have to worry
about the order of related things at several places.

17 years agoC can enumerate things for us.
yar [Mon, 27 Nov 2006 14:16:40 +0000 (14:16 +0000)]
C can enumerate things for us.

17 years ago/usr/sbin/faithd is an INET6-specific tool, and now it won't be built
yar [Mon, 27 Nov 2006 13:33:31 +0000 (13:33 +0000)]
/usr/sbin/faithd is an INET6-specific tool, and now it won't be built
if MK_INET6 is "no", so add it to the MK_INET6 block.

PR:             bin/100805 (audit-trail)

17 years agoShorten the KERNCONF filename to the basename in the install target as
n_hibma [Mon, 27 Nov 2006 12:16:03 +0000 (12:16 +0000)]
Shorten the KERNCONF filename to the basename in the install target as
well as in the build target, although it is not used in this target.

17 years agore-enable tte hash resize, corruption was caused by a missing htole32 in mpt_cam.c
kmacy [Mon, 27 Nov 2006 06:51:51 +0000 (06:51 +0000)]
re-enable tte hash resize, corruption was caused by a missing htole32 in mpt_cam.c

17 years ago- LNV -> LENOVO
ariff [Mon, 27 Nov 2006 06:16:36 +0000 (06:16 +0000)]
- LNV -> LENOVO
- Fix support for Samsung Q1 UltraMobile PC (inverted EAPD).

Reported by: benno

17 years agoFix TX/RX checksum offload.
obrien [Mon, 27 Nov 2006 04:47:27 +0000 (04:47 +0000)]
Fix TX/RX checksum offload.

Submitted by: Peer Chen at nVIDIA

17 years agotte hash resizing may be causing errors when building - disable for now
kmacy [Mon, 27 Nov 2006 02:17:33 +0000 (02:17 +0000)]
tte hash resizing may be causing errors when building - disable for now

17 years agoBack out half of my previous change to support parallel makes.
jb [Mon, 27 Nov 2006 01:35:11 +0000 (01:35 +0000)]
Back out half of my previous change to support parallel makes.
The generated Makefile clashes with the src/bin/sh/Makefile, causing
it to try to use a rule to build something it doesn't need to.