Commit Graph

150701 Commits

Author SHA1 Message Date
Rui Paulo
ae266114fb Add ah_eeprom_v4k.c 2010-03-03 20:28:35 +00:00
Rui Paulo
8004f2b353 Add ar9280.c and ar9280_attach.c. 2010-03-03 20:08:12 +00:00
Rui Paulo
fe0da2ff6e MFC 204656:
Add missing ar9285_reset.c file.
2010-03-03 20:06:50 +00:00
Alexander Motin
576e956f32 MFC r204509:
- Add ALI M5228 PATA ID.
- Add missed DMA initialization for ALI SATA chips.
2010-03-03 19:14:05 +00:00
Alexander Motin
3a8904bf97 MFC r204250:
Fix recursive lock attempt on hot-plug event in non-ATA_CAM mode.
2010-03-03 19:12:53 +00:00
Alexander Motin
4c88138161 MFC r204210, r204216:
Add Intel PCH SATA controller IDs.
2010-03-03 19:11:39 +00:00
Jaakko Heinonen
91288970ce MFC r204276:
Fix expansion of \W in prompt strings when the working directory is "/".
The prompt string was truncated after \W when the working directory was "/".

PR:		bin/89410
2010-03-03 16:06:43 +00:00
Andriy Gapon
7b6f635a13 MFC r203823: kgdb: initialize n_type field of nlist entry for kvm_nlist 2010-03-02 18:38:00 +00:00
Alan Cox
c288186fe8 MFC r204420
When running as a guest operating system, the FreeBSD kernel must assume
  that the virtual machine monitor has enabled machine check exceptions.
  Unfortunately, on AMD Family 10h processors the machine check hardware
  has a bug (Erratum 383) that can result in a false machine check exception
  when a superpage promotion occurs.  Thus, I am disabling superpage
  promotion when the FreeBSD kernel is running as a guest operating system
  on an AMD Family 10h processor.
2010-03-02 16:29:08 +00:00
Hajimu UMEMOTO
69b9452545 MFC 204427: Add the shutdown KEYWORD. 2010-03-02 16:25:07 +00:00
Rui Paulo
2d057e0f6a MFC r197948 r203156 r203158 r203159 r203680 r203682 r203750 r203882 r203930
r203933 r203959 r204521 r204578:

Atheros AR9285 support.
2010-03-02 13:13:12 +00:00
Konstantin Belousov
29d703dd0a MFC r204416:
Update man page for vm_page_alloc(9).
2010-03-02 11:00:10 +00:00
Konstantin Belousov
95e5a0907c MFC r204415:
Update comment for vm_page_alloc(9), listing all acceptable flags [1].
Note that the function does not sleep, it can block.
2010-03-02 10:41:34 +00:00
Konstantin Belousov
bfc9904424 MFC r204412:
Fix several style issues.
Define make_dev_credv() as static to match declaration.
2010-03-02 10:32:34 +00:00
Edwin Groothuis
61865144b3 MFC of r204566, tzdata2010c:
Paraguay changes its DST schedule, postponing the March rule to
April and modifying the October date.
2010-03-02 10:05:20 +00:00
Xin LI
a131b83ef0 MFC r197042: remove dpms.4. 2010-03-02 07:48:12 +00:00
Xin LI
aa3d547d09 MFC x86emu/x86bios emulator and make previously i386 only dpms and vesa
framebuffer driver, etc. work on FreeBSD/amd64.

A significant amount of improvements were done by jkim@ during the recent
months to make vesa(4) work better, over the initial code import.  This
work is based on OpenBSD's x86emu implementation and contributed by
paradox <ddkprog yahoo com> and swell.k at gmail com.

Hopefully I have stolen all their work to 8-STABLE :)

All bugs in this commit are mine, as usual.
2010-03-02 01:56:55 +00:00
John Baldwin
4dcf8bb3e2 MFC: Fix spelling of EACCES. 2010-03-01 21:04:01 +00:00
Alexander Motin
8b1670d00c MFC r204351:
Fix bug in headphones audio redirection using separate DAC. It was exposed
by removing channel duplication during multichannel audio implementation.
2010-03-01 19:43:26 +00:00
Alexander Motin
aeb7e9f945 MFC r204354:
Make PUIS detection more strict. Previous implementation caused false
positives on VMWare's virtual CD-ROMs.
2010-03-01 19:36:19 +00:00
Alexander Motin
df7d3f0a1f MFC r204253:
Make xpt_rescan() more correct, as it was before r197208: do not use
XPT_SCAN_LUN for wildcard LUN, fall back to XPT_SCAN_BUS.
2010-03-01 19:32:34 +00:00
Alexander Motin
d4301de786 MFC r204220, r204353:
Virtualize transport part of periph announcement.
2010-03-01 19:19:30 +00:00
Alexander Motin
02d2ad5770 MFC r204195:
Improve output for controllers that doesn't report SATA speed.
2010-03-01 19:16:34 +00:00
Matt Jacob
87aa09332e MFC of 204397: fix problems with fast posting handles 2010-03-01 17:36:45 +00:00
Alexander Motin
db9e470d54 MFC r204356:
Store path for rescan to the right place. This should fix panic on boot,
introduced by r203108.
2010-03-01 11:33:09 +00:00
Nathan Whitehorn
7eb87cc8c7 MFC r204197:
Allow user programs to execute mfpvr instructions. Linux allows this, and
some math-related software like GMP expects to be able to use it to pick
a target appropriately.

Reported by:	Jakob van Santen <vansanten at wisc dot edu>
2010-03-01 00:38:20 +00:00
Nathan Whitehorn
a0b72790e4 MFC r204129:
Enable NETIF_OPEN_CLOSE_ONCE on PowerPC OFW. This fixes netbooting on
PowerPC Book-S hardware, which had been broken for a very long time.

Submitted by:	Andreas Tobler
2010-03-01 00:35:30 +00:00
Joerg Wunsch
27a98ec529 MFC r203360
GPIB overhaul, part #2: make the tnt4882 driver work with the newer
  TNT5004 IC.  This involved a major rewrite of a number of things, as
  this chip no longer supports the NAT7210 legacy mode but requires the
  host to use the (more modern) FIFO mode.

  In theory, this also ought to work on the older TNT4882C chip.  I'll
  probably add this as optional support (perhaps by a device.hints flag)
  later on.  By now, FIFO mode is *only* activates iff a TNT5004 chip
  has been detected (where the old code didn't work at all), while
  everything else is supposed to use the old code.
2010-02-28 22:25:39 +00:00
Andriy Gapon
0445c84e45 MFC r203546: acpi_cpu: prefer _OSC over _PDC 2010-02-28 21:43:47 +00:00
Andriy Gapon
9478f3990b MFC r203430: acpi_cpu: correct capabilities arguments for Processor _OSC 2010-02-28 21:30:46 +00:00
Andriy Gapon
932a288f19 MFC r203061: KASSERT contract of return value of interrupt filter
X-MFCto7 after:	1 week
2010-02-28 21:28:24 +00:00
Jaakko Heinonen
e0d5ebc30f MFC r203665:
Make sure that FTS_COMFOLLOW is not set when the -P option is in effect.
Otherwise the -i option will show the inode number of the referenced file
for symbolic links given on the command line. Similarly, the file color
was printed according to the link target in colorized output.

PR:		bin/102394
2010-02-28 14:04:20 +00:00
Gavin Atkinson
d180e5eb6c Merge r204166 from head:
Document the interaction between /etc/devfs.conf and
  /etc/defaults/devfs.conf

PR:		docs/117308
Submitted by:	Mel <mel.xyzzy rachie.is-a-geek.net> (partially)
2010-02-28 11:14:29 +00:00
Matt Jacob
c5fc7d9644 MFC of 204384: Fix misallocation error in target mode 2010-02-28 06:07:53 +00:00
Marcel Moolenaar
84a85a0662 MFC rev 204182:
Remove pm_active from struct pmap as it serves no purpose.
2010-02-28 01:25:12 +00:00
Hajimu UMEMOTO
de482c79d6 MFC r203490: Introduce '[ipaddr]:path' notation.
Since the existing implementation searches ':' backward, a path which
includes ':' could not be mounted.  You can now mount such path by
enclosing an IP address by '[]'.
Though we should change to search ':' forward, it will break
'ipv6addr:path' which is currently working.  So, it still searches ':'
backward, at least for now.
2010-02-27 18:27:32 +00:00
Hajimu UMEMOTO
8ff070d563 MFC r203433:
Add rc.d script for the rtsold(8) daemon.

The rtsol(8) handles just one RA then exit.  So, the OtherConfig flag
may not be handled well by rtsol(8) in the environment where there are
multiple RA servers on the segment.  In such case, rtsold(8) will be
your friend.
2010-02-27 18:19:13 +00:00
Konstantin Belousov
e623216f38 MFC r203827:
- Add idempotency guards so the structures can be used in other utilities.
- Update bpb structs with reserved fields.
- In direntry struct join deName with deExtension. Although a
  fix was attempted in the past, these fields were being overflowed,
  Now this is consistent with the spec, and we can now share the
  WinChksum code with NetBSD.
2010-02-27 16:51:23 +00:00
Ed Maste
6101f245fc MFC r204106:
Avoid corrupting the list or queue if _REMOVE is invoked with a
  reference to the head.

PR:		kern/119307
2010-02-27 03:47:22 +00:00
Kirk McKusick
4179ce18a2 MFC of 203763, 203764, 203768, 203769, 203770, 203782, and 203784.
These fixes correct a problem in the file system that treats large
inode numbers as negative rather than unsigned. For a default
(16K block) file system, this bug began to show up at a file system
size above about 16Tb.

These fixes also update newfs to ensure that it will never create a
filesystem with more than 2^32 inodes.

They also update libufs, tunefs, and growfs so that they properly
handle inode numbers as unsigned.

Reported by: Scott Burns, John Kilburg, and Bruce Evans
Followup by: Jeff Roberson
PR:          133980
2010-02-26 21:49:11 +00:00
Rui Paulo
9d8ea0c702 MFC r203695, r203751
Fix spelling mistake and compile error.
2010-02-26 20:25:30 +00:00
Rui Paulo
f5e8283aa9 MFC r203683:
Add multicast key search support. This fixes corrupted mcast packets
 when we have more than one hostap vap.
2010-02-26 18:46:16 +00:00
Xin LI
a5a931b33f MFC 203052:
Add interface description capability as inspired by OpenBSD.  Thanks for
rwatson@, jhb@, brooks@ and others for feedback to the old implementation!

Sponsored by:	iXsystems, Inc.
2010-02-26 00:54:47 +00:00
Jung-uk Kim
7cfd788d1a MFC: r204105
Return partially filled buffer for non-blocking read(2)
in non-immediate mode.

PR:		kern/143855
Submitted by:	Guy Harris (guy at alum dot mit dot edu)
2010-02-26 00:11:17 +00:00
Rafal Jaworowski
bca23f69fd MFC r204009
Assorted fixes for mge(4).

- Use proper map for the busdma sync on mge descriptor.
- Remove unnecesary busdma sync.
- Eliminate redundant locking in mge_reinit_rx() (just assert).
- Kill unused variable.

Submitted by:	Grzegorz Bernacki
Obtained from:	Semihalf
2010-02-25 13:28:05 +00:00
Konstantin Belousov
f407eeb3b4 MFC r204205:
Remove write-only variable.
2010-02-25 10:40:52 +00:00
Xin LI
a498e71df3 MFC r202964:
On FreeBSD, time_t is 64-bit for all platforms except i386 and powerpc,
where the type is 32-bit.  ZFS can handle 64-bit timestamp internally
but zfs_setattr() would check if the time value can fit, we change the
checking macros to match 64-bit timestamp if the platform supports it.

This change has some downsides like, while you can import zfs on 32-bit
platforms, the timestamp would overflow if they are out of the range.

This fixes the Y2.038K issue on platforms using 64-bit timestamps.

Reviewed by:	pjd
2010-02-25 00:46:51 +00:00
Brooks Davis
3c48c0897f MFC r202143,202163,202341,202342,204278
Replace the static NGROUPS=NGROUPS_MAX+1=1024 with a dynamic
  kern.ngroups+1.  kern.ngroups can range from NGROUPS_MAX=1023 to
  somewhere in the neighborhood of INT_MAX/4 one a system with sufficent
  RAM and memory bandwidth.  Given that the Windows group limit is
  1024, this range should be sufficient for most applications

r202342:
  Only allocate the space we need before calling kern_getgroups instead
  of allocating what ever the user asks for up to "ngroups_max + 1".  On
  systems with large values of kern.ngroups this will be more efficient.

  The now redundant check that the array is large enough in
  kern_getgroups() is deliberate to allow this change to be merged to
  stable/8 without breaking potential third party consumers of the API.
2010-02-24 22:16:16 +00:00
John Baldwin
8224141fb7 MFC 204090:
Fix mptutil's method for locating disk devices attached to a specific
mpt(4) controller.  Previously, the code assumed that multiple match
patterns provided to an XPT_DEV_MATCH request were ANDed together.
Instead, they are ORed.  Instead, to match peripherals for a specific bus,
one query needs to be performed to lookup the path ID of the bus.  A second
query can then be performed matching peripherals attached to that path.
This approach also makes the code a bit cleaner as the returned match
results do not mix buses and perphierals.
2010-02-24 21:29:18 +00:00
John Baldwin
daeeeefea0 MFC 204086:
- Don't emit a warning in 'show adapter' if the IOC2 or IOC6 pages are not
  present.  mpt(4) controllers that do not support RAID do not have an IOC6
  page, for example.
- Correct a check for a missing page error in a debug function.
2010-02-24 21:20:25 +00:00