]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoo When creating the EBR scheme, set the number of entries
marcel [Sat, 21 Feb 2009 19:25:13 +0000 (19:25 +0000)]
o  When creating the EBR scheme, set the number of entries
   properly. Otherwise the minimum of 1 is used and you can
   only insert a single partition/slice and only at sector
   0 (index 1).
o  When adding a partition/slice, recalculate the index after
   the start and size of the partition/slice are adjusted to
   make them a multiple of the track size. Since the precheck
   method sets the index based on the start of the partition
   as provided by the user, we know that we're off by at most
   1 and adjusting the index is safe.

15 years agoTeach device drivers' ata_reinit() methods, that there can be more then two
mav [Sat, 21 Feb 2009 16:39:26 +0000 (16:39 +0000)]
Teach device drivers' ata_reinit() methods, that there can be more then two
devices per channel.

15 years agoSync with the official Adaptec vendor driver:
attilio [Sat, 21 Feb 2009 15:40:03 +0000 (15:40 +0000)]
Sync with the official Adaptec vendor driver:

[1] Add the support for the NARK controller which seems a variant of
the i960Rx.
[2] Split up memory regions and other resources in 2 different parts
as long as NARK uses them separately (it is not clear to me
why though as long as there are no more informations available
on this controller). Please note that in all the other cases,
the regions overlaps leaving the default behaviour for all the
other controllers.
[3] Implement a clock daemon responsible for maintain updated the
wall clock time of the controller (run any 30 minutes)*.

Submitted by: Adaptec (driver build 15317 [1, 2] and 15727 [3])
Reviewed by: emaste
Tested by: emaste
Sponsored by: Sandvine Incorporated

* Please note that originally, in the Adaptec driver, the clock daemon
  is not implemented with callouts as in our in-tree driver.

15 years agoFix build when WITH_SSP is set explicitly.
ru [Sat, 21 Feb 2009 15:04:31 +0000 (15:04 +0000)]
Fix build when WITH_SSP is set explicitly.

Submitted by: Jeremie Le Hen

15 years agoAdd support for methods to the OSD subsystem. Each object type has a
jamie [Sat, 21 Feb 2009 11:15:38 +0000 (11:15 +0000)]
Add support for methods to the OSD subsystem.  Each object type has a
predefined set of methods, which are set in osd_register() and called
via osd_call().  Currently, no methods are defined, though prison
objects will have some in the future.

Expand the locking from a single per-type mutex to three different kinds
of locks (four if you include the requirement that the container
(e.g. prison) be locked when getting/setting data).  This clears up one
existing issue, as well as others added by the method support.

Approved by: bz (mentor)

15 years agoAdd bootcode handling.
marcel [Sat, 21 Feb 2009 07:01:21 +0000 (07:01 +0000)]
Add bootcode handling.

15 years agoRemove unnecessary opt* definations.
delphij [Sat, 21 Feb 2009 03:53:06 +0000 (03:53 +0000)]
Remove unnecessary opt* definations.

15 years agoDefine extern **environ in global scope instead of in function.
delphij [Sat, 21 Feb 2009 03:50:25 +0000 (03:50 +0000)]
Define extern **environ in global scope instead of in function.

15 years agoUtilize calloc() instead of bzero'ing manually.
delphij [Sat, 21 Feb 2009 03:43:20 +0000 (03:43 +0000)]
Utilize calloc() instead of bzero'ing manually.

15 years agoInitialize 'sz' as 0.
delphij [Sat, 21 Feb 2009 03:42:31 +0000 (03:42 +0000)]
Initialize 'sz' as 0.

15 years agoUtilize strlcpy().
delphij [Sat, 21 Feb 2009 03:38:46 +0000 (03:38 +0000)]
Utilize strlcpy().

15 years agoRevert r188878 for the moment, this breaks kdump.
thompsa [Sat, 21 Feb 2009 03:06:29 +0000 (03:06 +0000)]
Revert r188878 for the moment, this breaks kdump.

15 years agoInclude altivec.c, missed on previous commit r188860. This should unbreak the
nwhitehorn [Sat, 21 Feb 2009 02:15:08 +0000 (02:15 +0000)]
Include altivec.c, missed on previous commit r188860. This should unbreak the
build.

15 years agoProvide compat typedefs for usb1.
thompsa [Sat, 21 Feb 2009 01:14:49 +0000 (01:14 +0000)]
Provide compat typedefs for usb1.

15 years agoDisable port hardware on detach. First switch it to slumber mode to
mav [Fri, 20 Feb 2009 23:17:52 +0000 (23:17 +0000)]
Disable port hardware on detach. First switch it to slumber mode to
power-down peer transmitter, then disable completely.
Side effect of this is saving about 0.5W of power per detached device.

15 years agomark nodes created by way of neighbor discovery need to be marked as ERP
sam [Fri, 20 Feb 2009 23:05:05 +0000 (23:05 +0000)]
mark nodes created by way of neighbor discovery need to be marked as ERP
so they get the correct tx parameters setup by node_settxparms

15 years agoDon't read the TOC for DIOCGPROVIDERALIAS. This causes the
marcel [Fri, 20 Feb 2009 23:01:27 +0000 (23:01 +0000)]
Don't read the TOC for DIOCGPROVIDERALIAS. This causes the
acd code to create new provider (?), but not from an expected
context, which results in a panic (GEOM topology not held).

15 years agoFix typo: s/SLUMPER/SLUMBER/
mav [Fri, 20 Feb 2009 22:46:24 +0000 (22:46 +0000)]
Fix typo: s/SLUMPER/SLUMBER/

15 years agocorrect SIFS setting; there is a 2usec adjustment between the calculated
sam [Fri, 20 Feb 2009 22:06:58 +0000 (22:06 +0000)]
correct SIFS setting; there is a 2usec adjustment between the calculated
value and what the hardware requires (based on inspection of INI values)

Submitted by: Jiri Fojtasek <jiri.fojtasek@hlohovec.net>

15 years agodon't adjust core clk conversions for 1/2 and 1/4 rate channels; the
sam [Fri, 20 Feb 2009 22:05:08 +0000 (22:05 +0000)]
don't adjust core clk conversions for 1/2 and 1/4 rate channels; the
mac runs at full speed so doing this breaks conversion for ifs parameters

Submitted by: Felix Fietkau <nbd@openwrt.org>

15 years agoo reset aggressive mode flag; it was being left set after marking an
sam [Fri, 20 Feb 2009 21:57:05 +0000 (21:57 +0000)]
o reset aggressive mode flag; it was being left set after marking an
  interface down
o only allow the first vap to initialize shared wme parameters

15 years agomisc cleanup of wme parameter setting
sam [Fri, 20 Feb 2009 21:55:23 +0000 (21:55 +0000)]
misc cleanup of wme parameter setting

15 years agoReduce soft-reset assertion time from 5ms to 50us.
mav [Fri, 20 Feb 2009 20:29:32 +0000 (20:29 +0000)]
Reduce soft-reset assertion time from 5ms to 50us.
ATA specification declares minimal reset time of 5us. SATA keeps it, but
requires devices to handle commands transmitted even one by one without
any gap.

15 years agoDisable port interrupts before doing PHY reset.
mav [Fri, 20 Feb 2009 20:20:00 +0000 (20:20 +0000)]
Disable port interrupts before doing PHY reset.
PHY reset causes drive connect/disconnect events, unwanted at this moment.

15 years agoAdd Altivec support for supported CPUs. This is derived from the FPU support
nwhitehorn [Fri, 20 Feb 2009 17:48:40 +0000 (17:48 +0000)]
Add Altivec support for supported CPUs. This is derived from the FPU support
code, and also reducing the size of trapcode to fit inside a 32 byte handler
slot.

Reviewed by: grehan
MFC after: 2 weeks

15 years agoEliminate stale comments.
alc [Fri, 20 Feb 2009 16:19:34 +0000 (16:19 +0000)]
Eliminate stale comments.

15 years agoAdd the add-stream capability. Still needs more
rrs [Fri, 20 Feb 2009 15:03:54 +0000 (15:03 +0000)]
Add the add-stream capability. Still needs more
testing..

MFC after: 1 month

15 years agoDelete files which serve no purpose in this environment.
mr [Fri, 20 Feb 2009 14:53:49 +0000 (14:53 +0000)]
Delete files which serve no purpose in this environment.

Inspired by: simon@

15 years agoFix a bug. The sending was being restricted improperly by
rrs [Fri, 20 Feb 2009 14:33:45 +0000 (14:33 +0000)]
Fix a bug. The sending was being restricted improperly by
the max_burst. It should only be gated by cwnd in the
lower level send.

Obtained from: Michael Tuexen
MFC after: 1 week.

15 years agowhen initializing, also build _includes and _libraries
luigi [Fri, 20 Feb 2009 14:28:56 +0000 (14:28 +0000)]
when initializing, also build _includes and _libraries

On passing, fix a wrong comment

MFC after: 3 days

15 years agoFix pc98 build error due to missing variable.
mav [Fri, 20 Feb 2009 14:10:23 +0000 (14:10 +0000)]
Fix pc98 build error due to missing variable.

Submitted by: avg

15 years agoDon't make Linux stat() open character devices to resolve its name.
ed [Fri, 20 Feb 2009 13:05:29 +0000 (13:05 +0000)]
Don't make Linux stat() open character devices to resolve its name.

The existing code calls kern_open() to resolve the vnode of a pathname
right after a stat(). This is not correct, because it causes random
character devices to be opened in /dev. This means ls'ing a tape
streamer will cause it to rewind, for example. Changes I have made:

- Add kern_statat_vnhook() to allow binary emulators to `post-process'
  struct stat, using the proper vnode.

- Remove unneeded printf's from stat() and statfs().

- Make the Linuxolator use kern_statat_vnhook(), replacing
  translate_path_major_minor_at().

- Let translate_fd_major_minor() use vp->v_rdev instead of
  vp->v_un.vu_cdev.

Result:

crw-rw-rw- 1 root root   0, 14 Feb 20 13:54 /dev/ptmx
crw--w---- 1 root adm  136,  0 Feb 20 14:03 /dev/pts/0
crw--w---- 1 root adm  136,  1 Feb 20 14:02 /dev/pts/1
crw--w---- 1 ed   tty  136,  2 Feb 20 14:03 /dev/pts/2

Before this commit, ptmx also had a major number of 136, because it
silently allocated and deallocated a pseudo-terminal. Device nodes that
cannot be opened now have proper major/minor-numbers.

Reviewed by: kib, netchild, rdivacky (thanks!)

15 years agoDoh! r188813 modified an auto-generated file. Fix it for real:
mtm [Fri, 20 Feb 2009 11:09:55 +0000 (11:09 +0000)]
Doh! r188813 modified an auto-generated file. Fix it for real:
  o grammar fix
  o remove mention of libkse

Submitted by: Niclas Zeising <niclas.zeising@gmail.com>

15 years agoHandle nForce MCP67 and MCP73 SATA controllers as AHCI. They report itself
mav [Fri, 20 Feb 2009 08:49:56 +0000 (08:49 +0000)]
Handle nForce MCP67 and MCP73 SATA controllers as AHCI. They report itself
as ATA RAID, but generic ATAPCI driver unable to detect drives there. AHCI
driver reported to handle them fine. Linux does the same.

Submitted by: Andrey V. Elsukov on stable@

15 years agoTell CAM that CISS logical devices support tagged queueing. This fixes
scottl [Fri, 20 Feb 2009 07:43:43 +0000 (07:43 +0000)]
Tell CAM that CISS logical devices support tagged queueing.  This fixes
the low "max device openings" count that has led to poor performance in
FreeBSD 7.0 and 7.1

15 years agoTell CAM that SPI disconnect works, which in turn will let it use tags.
scottl [Fri, 20 Feb 2009 07:40:54 +0000 (07:40 +0000)]
Tell CAM that SPI disconnect works, which in turn will let it use tags.
This fixes the low "max device openings" count that has lead to poor
performance in FreeBSD 7.0 and 7.1.

Extra thanks goes to Mike Tancsa at Sentex for providing a debug system for
this.

15 years agoAdd basic support for DDF, often found on Adaptec HostRAID controllers.
scottl [Fri, 20 Feb 2009 06:10:12 +0000 (06:10 +0000)]
Add basic support for DDF, often found on Adaptec HostRAID controllers.
Spares and rebuilds are not supported, so this code should be considered
for entertainment purposes only.

15 years agoProvide compatibility symlink for logical partitions:
marcel [Fri, 20 Feb 2009 04:48:40 +0000 (04:48 +0000)]
Provide compatibility symlink for logical partitions:
1.  Extend geom_dev by having it create the symlink (i.e. call
    make_dev_alias) based on the DIOCGPROVIDERALIAS ioctl.
    In this way the functionaility is generic and thus usable
    by any geom/provider.
2.  Have g_part handle said ioctl through the devalias method,
    so that it's under control of the scheme itself. By design
    the alias will not be created for newly added partitions.

15 years agoFix an infinite loop created when the last logical partition is
marcel [Fri, 20 Feb 2009 04:10:31 +0000 (04:10 +0000)]
Fix an infinite loop created when the last logical partition is
removed.

15 years ago- Add glarkin and mva to mentor section
beech [Fri, 20 Feb 2009 02:48:58 +0000 (02:48 +0000)]
- Add glarkin and mva to mentor section

15 years agouse /boot/loader by default, because the boot code seems to
luigi [Fri, 20 Feb 2009 00:05:33 +0000 (00:05 +0000)]
use /boot/loader by default, because the boot code seems to
have problems with kernels larger than 4MB.
Add a flag to avoid the /boot/loader and use the old method.

Add support for an additional makefile to perform custom manipulation
(this is not documented yet).

Add support for building an ISO image (not complete)

15 years agoupdate 'sio' with 'uart' and apply related changes.
luigi [Thu, 19 Feb 2009 23:29:05 +0000 (23:29 +0000)]
update 'sio' with 'uart' and apply related changes.

15 years agoEnable caching of negative pathname lookups in the NFS client. To avoid
jhb [Thu, 19 Feb 2009 22:28:48 +0000 (22:28 +0000)]
Enable caching of negative pathname lookups in the NFS client.  To avoid
stale entries, we save a copy of the directory's modification time when
the first negative cache entry was added in the directory's NFS node.
When a negative cache entry is hit during a pathname lookup, the parent
directory's modification time is checked.  If it has changed, all of the
negative cache entries for that parent are purged and the lookup falls
back to using the RPC.  This required adding a new cache_purge_negative()
method to the name cache to purge only negative cache entries for a given
directory.

Submitted by: mohans, Rick Macklem, Ricardo Labiaga @ NetApp
Reviewed by: mohans

15 years agoWhen fetching attributes for a file for NFSv3 mounts, do not perform an
jhb [Thu, 19 Feb 2009 22:18:00 +0000 (22:18 +0000)]
When fetching attributes for a file for NFSv3 mounts, do not perform an
opportunistic ACCESS RPC to populate both the access and attribute caches
of the file and instead always use a GETATTR RPC.  On many modern NFS
servers, an ACCESS RPC is much more expensive to service than a GETATTR
RPC.

Submitted by: mohans

15 years agoDon't clear the attribute cache of a file when it is closed. A subsequent
jhb [Thu, 19 Feb 2009 22:10:39 +0000 (22:10 +0000)]
Don't clear the attribute cache of a file when it is closed.  A subsequent
open() of the same file will load fresh attributes, so they do not need to
be explicitly flushed in close() to guarantee close to open consistency.
However, other file desciptors may still reference this file and clearing
the attributes in close() forces those other file descriptors to fetch
fresh attributes the next time they need them.

Reviewed by: mohans
MFC after: 1 week

15 years agoDisplay an error message when the requested mode is not known. So the user can
rdivacky [Thu, 19 Feb 2009 20:45:37 +0000 (20:45 +0000)]
Display an error message when the requested mode is not known. So the user can
distinguish between a typo in the mode name and that the device does not
support a certain mode (till now both causes show the same result, i.e. the old
mode is displayed).

Submitted by: Christoph Mallon <christoph.mallon gmx.de>
Approved by: kib (mentor)

15 years agoInclude proper header files for system functions that are used and
imp [Thu, 19 Feb 2009 20:07:59 +0000 (20:07 +0000)]
Include proper header files for system functions that are used and
that gcc complains about this code changing from the built-in
versions.

15 years agoThese warnings are only relevant on NetBSD it seems. They don't seem
imp [Thu, 19 Feb 2009 19:53:58 +0000 (19:53 +0000)]
These warnings are only relevant on NetBSD it seems.  They don't seem
to be relevant to FreeBSD at all.

15 years agoInclude string.h for strncpy prototype
imp [Thu, 19 Feb 2009 19:45:49 +0000 (19:45 +0000)]
Include string.h for strncpy prototype
Include strings.h for bcopy and bzero prototype

15 years agoEnable building of ficl on MIPS. It compiles, but needs more testing.
imp [Thu, 19 Feb 2009 18:53:08 +0000 (18:53 +0000)]
Enable building of ficl on MIPS.  It compiles, but needs more testing.

15 years agoAdd basic mips support. This has been compile tested only.
imp [Thu, 19 Feb 2009 18:52:31 +0000 (18:52 +0000)]
Add basic mips support.  This has been compile tested only.

15 years agoThese symbols don't belong here. Remove them. Since mips hasn't had
imp [Thu, 19 Feb 2009 18:03:41 +0000 (18:03 +0000)]
These symbols don't belong here.  Remove them.  Since mips hasn't had
a release, I think there's no impact here...

Reviewed by: cognet@

15 years agoSquash some small bugs in pts(4).
ed [Thu, 19 Feb 2009 17:54:42 +0000 (17:54 +0000)]
Squash some small bugs in pts(4).

- Don't return a negative errno when using an unknown ioctl() on a
  pseudo-terminal master device. Be sure to convert ENOIOCTL to ENOTTY,
  just like the TTY layer does.

- Even though we should return st_rdev of the master device node when
  emulating pty(4) devices, FIODGNAME should still return the name of
  the slave device. Otherwise ptsname(3) and ttyname(3) return an
  invalid device name.

15 years agouse 1/2 and 1/4 rate phy types to simplify txtime calculation
sam [Thu, 19 Feb 2009 17:44:23 +0000 (17:44 +0000)]
use 1/2 and 1/4 rate phy types to simplify txtime calculation

15 years agoProperly convert bit value to a bit field. Before we were storing
imp [Thu, 19 Feb 2009 16:30:11 +0000 (16:30 +0000)]
Properly convert bit value to a bit field.  Before we were storing
values like 0x80 or 0x40 into a uint8_t foo:1 bitfield.  This would
result in the bit always being 0.  One of these caused a warning for
overflow (one that was 0x80), but the other didn't.  They were both
wrong.

This is why I hate code that mixes c struct bitfields and #defines.
The rest of the fields accessed by the program should be audited.

15 years agoAdd myself.
makc [Thu, 19 Feb 2009 16:16:44 +0000 (16:16 +0000)]
Add myself.

15 years agoAdd myself.
makc [Thu, 19 Feb 2009 16:15:30 +0000 (16:15 +0000)]
Add myself.

15 years agostyle nit in r188815
avg [Thu, 19 Feb 2009 15:37:43 +0000 (15:37 +0000)]
style nit in r188815

Pointed out by: jhb, rpaulo
Approved by: jhb (mentor)

15 years agofs/udf: fix incorrect error return (-1) when reading a large dir
avg [Thu, 19 Feb 2009 15:05:30 +0000 (15:05 +0000)]
fs/udf: fix incorrect error return (-1) when reading a large dir

Not enough space in user-land buffer is not an error, userland
will read further until eof is reached. So instead of propagating
-1 to caller we convert it to zero/success.

cd9660 code works exactly the same way.

PR: kern/78987
Reviewed by: jhb (mentor)
Approved by: jhb (mentor)

15 years agoacpi_cpu: fixup for PIIX4E PCI config related to C2
avg [Thu, 19 Feb 2009 14:39:52 +0000 (14:39 +0000)]
acpi_cpu: fixup for PIIX4E PCI config related to C2

This is triggered only if BIOS configures ACPI_BITREG_BUS_MASTER_RLD
aka BRLD_EN_BM to 1.
Rationale:
1. we do not support C3 on PIIX4E
2. bus master activity need not break out of C2 state
3. because of CPU_QUIRK_NO_BM_CTRL quirk we may reset bus master
   status which would result in immediate break out from C2

So if you have seen
cpu0: too many short sleeps, backing off to C1
with this chipset before you may want to try cx_lowest of C2 again.

Reviewed by: rpaulo (mentor), njl
Approved by: rpaulo (mentor)

15 years agoo grammar fix
mtm [Thu, 19 Feb 2009 13:45:25 +0000 (13:45 +0000)]
o grammar fix
o remove mention of libkse

15 years agoUse channel driver's attach/detach routines instead of ata_attach()/
mav [Thu, 19 Feb 2009 12:47:24 +0000 (12:47 +0000)]
Use channel driver's attach/detach routines instead of ata_attach()/
ata_detach() to implement IOCATAATTACH/IOCATADETACH ioctls.
This will permit channel drivers to properly shutdown port hardware on channel
detach and init it on attach.

15 years agorevamp after 1/2 and 1/4 rate changes
sam [Thu, 19 Feb 2009 05:36:07 +0000 (05:36 +0000)]
revamp after 1/2 and 1/4 rate changes

15 years agoFixup handling of roaming and xmit parameters to support 1/2 and 1/4-width
sam [Thu, 19 Feb 2009 05:28:03 +0000 (05:28 +0000)]
Fixup handling of roaming and xmit parameters to support 1/2 and 1/4-width
channel modes:
o usurp 'h' mode flag for half-width channels
o add 'q' mode flag for quarter-width channels
o rewrite rate parameter parsing to handle fractional values
o merge mode loops to eliminate ordering assumptions
o replace 0x80 with IEEE80211_RATE_MCS

15 years agoremove private support for IEEE80211_MODE_HALF and IEEE80211_MODE_QUARTER
sam [Thu, 19 Feb 2009 05:22:40 +0000 (05:22 +0000)]
remove private support for IEEE80211_MODE_HALF and IEEE80211_MODE_QUARTER
now that net80211 has them

15 years agoAdd modes for 1/2 and 1/4-width channels so we have separate roaming
sam [Thu, 19 Feb 2009 05:21:54 +0000 (05:21 +0000)]
Add modes for 1/2 and 1/4-width channels so we have separate roaming
and xmit parameters.  This makes it possible to use tdma on fractional
channels.
o add IEEE80211_MODE_HALF and IEEE80211_MODE_QUARTER; note these are
  band-agnostic (may need revisiting)
o setup all default rates in ic_sup_rates instead of doing it only
  for active modes; we need these to calculate the default tx parameters
  which are not recalculated after a regulatory update (can't just
  recalculate after installing a new channel list because we might
  clobber user settings)
o remove special case code in ieee80211_get_suprates; this is now
  a candidate for an inline or removal
o add various entries for new modes (roaming+tx params, wme, rate
  mapping, scan set setup, country ie construction, tdma, basic rates)

Note these modes are intentionally not visible through if_media.

15 years agoo looseen abi dependencies on IEEE80211_MODE_MAX by accepting smaller
sam [Thu, 19 Feb 2009 05:03:10 +0000 (05:03 +0000)]
o looseen abi dependencies on IEEE80211_MODE_MAX by accepting smaller
  parameters for IEEE80211_IOC_ROAM and IEEE80211_IOC_TXPARAMS; this
  lets us add more modes and still have old apps work
o consolidate loops to remote assumptions about mode ordering

15 years agouse c99 initializers
sam [Thu, 19 Feb 2009 04:52:03 +0000 (04:52 +0000)]
use c99 initializers

15 years agoo consolidate loops to eliminate assumptions about ordering of modes
sam [Thu, 19 Feb 2009 04:46:09 +0000 (04:46 +0000)]
o consolidate loops to eliminate assumptions about ordering of modes
o replace 0x80 by IEEE80211_RATE_MCS

15 years agoChange country ie construction to simplify forthcoming changes:
sam [Thu, 19 Feb 2009 04:44:18 +0000 (04:44 +0000)]
Change country ie construction to simplify forthcoming changes:
o use c99 initializer for skipflags
o calculate band flags instead of statically listing them in the table

15 years agouse c99 initializer
sam [Thu, 19 Feb 2009 04:40:47 +0000 (04:40 +0000)]
use c99 initializer

15 years agosimplify setting up the roaming parameters; writing default parameters only
sam [Thu, 19 Feb 2009 04:37:44 +0000 (04:37 +0000)]
simplify setting up the roaming parameters; writing default parameters only
for active modes hasn't turned out to be useful so just define a const table
and copy it in place

15 years agocheck ptr against NULL
sam [Thu, 19 Feb 2009 04:34:22 +0000 (04:34 +0000)]
check ptr against NULL

15 years agoinstead of special casing lookups for the 11na/g legacy rate set, just
sam [Thu, 19 Feb 2009 04:33:36 +0000 (04:33 +0000)]
instead of special casing lookups for the 11na/g legacy rate set, just
install the rates once when creating the com structure

15 years agoCleanup ath_hal_computetxtime's handling of 1/2 and 1/4-width channels:
sam [Thu, 19 Feb 2009 04:24:22 +0000 (04:24 +0000)]
Cleanup ath_hal_computetxtime's handling of 1/2 and 1/4-width channels:
o mark phy type to indicate 1/2 or 1/4-rate operation
o use phy type instead of channel attributes to identify 1/2 and 1/4-rate
  operation
o general cleanup of code including move phy constants to ah_internal.h

Eventually this code should go away and we should use the net0211 equivalents.

15 years agoadd phy types for 1/2 and 1/4-rate modes
sam [Thu, 19 Feb 2009 04:19:58 +0000 (04:19 +0000)]
add phy types for 1/2 and 1/4-rate modes

15 years agoadd HAL_DIAG_SETREGS to write registers via the diag api
sam [Thu, 19 Feb 2009 04:15:14 +0000 (04:15 +0000)]
add HAL_DIAG_SETREGS to write registers via the diag api

15 years agowhitespace
sam [Thu, 19 Feb 2009 04:10:51 +0000 (04:10 +0000)]
whitespace

15 years agoQuite mechanical ch_detach implementations for all atapci subdrivers.
mav [Thu, 19 Feb 2009 00:32:55 +0000 (00:32 +0000)]
Quite mechanical ch_detach implementations for all atapci subdrivers.
Some dmainit call fixes for previous commit.

15 years agoif_cx is currently disconnected from the build due to a dependence on
rwatson [Thu, 19 Feb 2009 00:06:01 +0000 (00:06 +0000)]
if_cx is currently disconnected from the build due to a dependence on
the old TTY implementation; however, take a cut at stripping its
optional Giant-protected code paths enabled using debug.cx.mpsafenet,
which will no longer work once IFF_NEEDSGIANT is removed.

15 years agoMark these variables as __used too. Fix a style of previous commit.
rdivacky [Wed, 18 Feb 2009 22:44:55 +0000 (22:44 +0000)]
Mark these variables as __used too.  Fix a style of previous commit.

Noticed by: Christoph Mallon
Approved by: kib (mentor)

15 years agoyppasswdd assumed that a struct x_master_passwd is type punable to a
imp [Wed, 18 Feb 2009 22:27:46 +0000 (22:27 +0000)]
yppasswdd assumed that a struct x_master_passwd is type punable to a
struct passwd.  This is not the case when sizeof(unsigned long) !=
sizeof(time_t).  Write a dinky function to do the assignment instead
of relying on the punning.  This does slow things down a little (1
extra function call, 11 pointer or int assignments), but is much safer
and machines have been fast enough since the mid 1990s that nobody
will notice the difference.

time_t is a 64-bits int on arm and mips.  Before this change, arm was
silently broken.  I guess there aren't that many ARM machines running
master YP domain servers. :)

The client side doesn't assume this type punning, so it doesn't need
to be fixed.

15 years agoAs soon as they called in only same one place (ata_pcichannel_attach()),
mav [Wed, 18 Feb 2009 22:17:48 +0000 (22:17 +0000)]
As soon as they called in only same one place (ata_pcichannel_attach()),
join allocate() and dmainit() atapci subdriver's channel initialization
methods into single ch_attach() method.

As opposite to ch_attach() add new ch_detach() method to deallocate/disable
channel.

15 years ago- Add a function (fill_kinfo_aggregate()) which aggregates relevant
attilio [Wed, 18 Feb 2009 21:52:13 +0000 (21:52 +0000)]
- Add a function (fill_kinfo_aggregate()) which aggregates relevant
  members for a kinfo entry on a process-wide system.
- Use the newly introduced function in order to fix cases like
  KERN_PROC_PROC where aggregating stats are broken because they just
  consider the first thread in the pool for each process.
  (Note, additively, that KERN_PROC_PROC is rather inaccurate on
  thread-wide informations like the 'state' of the process.  Such
  informations should maybe be invalidated and being forceably discarded
  by the consumers?).
- Simplify the logic of sysctl_out_proc() and adjust the
  fill_kinfo_thread() accordingly.
- Remove checks on the FIRST_THREAD_IN_PROC() being NULL but add
  assertives.

This patch should fix aggregate statistics for KERN_PROC_PROC.
This is one of the reasons why top doesn't use this option and now it
can be use it safely.
ps, when launched in order to display just processes, now should report
correct cpu utilization percentages and times (as opposed by the old
code).

Reviewed by: jhb, emaste
Sponsored by: Sandvine Incorporated

15 years agoMake ch->dma.free() called symmetrically to ch->dma.alloc().
mav [Wed, 18 Feb 2009 21:12:48 +0000 (21:12 +0000)]
Make ch->dma.free() called symmetrically to ch->dma.alloc().

15 years agoImplement proper attach/detach routines for ISA driver.
mav [Wed, 18 Feb 2009 20:42:42 +0000 (20:42 +0000)]
Implement proper attach/detach routines for ISA driver.

15 years agoAdd an extra (void *) cast. The struct if_msghdr has an 8 byte
imp [Wed, 18 Feb 2009 19:59:27 +0000 (19:59 +0000)]
Add an extra (void *) cast.  The struct if_msghdr has an 8 byte
alignment requirement, while rt_msghdr has a 4 byte alignment
requirement.  The root cause is that if_msghdr has an struct if_data
which has an 8-byte alignment requirement due to a time_t that's
embedded in it.  On MIPS, time_t is a 64-bit number, so must be 64-bit
aligned.

Since we don't access ifm_data.ifi_epoch, a simple cast is all that's
necessary here.  It is likely the case that ifi_epoch should *NOT* be
a time_t because it is an uptime (time delta) an not an absolute time
since 1970.  u_long is likely sufficient there since that gives an
uptime of 136 years will suffice for the foreseeable future.

15 years agoo Fix year in the previous commit.
maxim [Wed, 18 Feb 2009 19:05:27 +0000 (19:05 +0000)]
o Fix year in the previous commit.

Submitted by: Munehiro Matsuda

15 years agoEnhance debugging mode by storing the string "BB:TT:LL" once and use
sbruno [Wed, 18 Feb 2009 18:41:34 +0000 (18:41 +0000)]
Enhance debugging mode by storing the string "BB:TT:LL" once and use
it instead of overloading sbp_show_sdev_info().

replace calls to printf with calls to device_printf and cleanup debug
messages

Remove a bit of dead, commented out code.

Reviewed by: scottl(mentor)
MFC after: 2 weeks

15 years agoRemove unused variable.
mav [Wed, 18 Feb 2009 18:36:13 +0000 (18:36 +0000)]
Remove unused variable.

Submitted by: ganbold

15 years agoMark these variables as __used as those are used in the asm block.
rdivacky [Wed, 18 Feb 2009 18:25:16 +0000 (18:25 +0000)]
Mark these variables as __used as those are used in the asm block.

Approved by: kib (mentor)

15 years agoadd myself to committers tree
avg [Wed, 18 Feb 2009 17:36:44 +0000 (17:36 +0000)]
add myself to committers tree

Approved by: rpaulo (mentor)

15 years agoReindent a small bit of code that was not 8-space indented like the rest
jhb [Wed, 18 Feb 2009 16:34:13 +0000 (16:34 +0000)]
Reindent a small bit of code that was not 8-space indented like the rest
of the nfs_lookup() function.

15 years agoAdapt linux emulation to use cv for vfork wait.
kib [Wed, 18 Feb 2009 16:11:39 +0000 (16:11 +0000)]
Adapt linux emulation to use cv for vfork wait.

Submitted by: Takahiro Kurosawa <takahiro.kurosawa gmail com>
PR: kern/131506

15 years agoo DragonFly 2.2.0 added.
maxim [Wed, 18 Feb 2009 10:02:32 +0000 (10:02 +0000)]
o DragonFly 2.2.0 added.

15 years agoSwitch over to usbdevs.h generated at compile time.
thompsa [Wed, 18 Feb 2009 06:33:10 +0000 (06:33 +0000)]
Switch over to usbdevs.h generated at compile time.

15 years agoBump __FreeBSD_version to 800063 after GENERIC changed to USB2.
thompsa [Wed, 18 Feb 2009 06:17:13 +0000 (06:17 +0000)]
Bump __FreeBSD_version to 800063 after GENERIC changed to USB2.

15 years agouse mii instead of miibus so we don't drag in all phy support
sam [Wed, 18 Feb 2009 01:37:57 +0000 (01:37 +0000)]
use mii instead of miibus so we don't drag in all phy support
(we only need ukphy which is brought in by mii)

MFC after: 1 week

15 years agoUse outbound message register 0 instead of mailbox 7 in
emaste [Wed, 18 Feb 2009 01:36:20 +0000 (01:36 +0000)]
Use outbound message register 0 instead of mailbox 7 in
aac_{rx,rkt}_get_fwstatus, as done in Adaptec's vendor driver as well as
the Linux drivers.

Submitted by:   jkim, from Adaptec's driver

15 years agoRemove reference to phy_delay from fwcontrol. Thanks for the catch!
sbruno [Tue, 17 Feb 2009 23:56:16 +0000 (23:56 +0000)]
Remove reference to phy_delay from fwcontrol.  Thanks for the catch!

Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>
MFC after: 2 weeks