]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoReserve a new diagnostic code for the channel survey code I'll add soon.
Adrian Chadd [Sat, 19 Mar 2011 14:37:13 +0000 (14:37 +0000)]
Reserve a new diagnostic code for the channel survey code I'll add soon.

13 years agoMake sure that the AR_MISC_MODE value from the initvals are properly respected.
Adrian Chadd [Sat, 19 Mar 2011 03:15:28 +0000 (03:15 +0000)]
Make sure that the AR_MISC_MODE value from the initvals are properly respected.

This commit really is "fix the OFDM duration calculation to match reality when
running in 802.11g mode."

The AR5212 init vals set AR_MISC_MODE to 0x0 and all the bits that can be set are
set through code.

The AR5416 and later initvals set AR_MISC_MODE to various other values (with
the AR5212 AR_MISC_MODE options cleared), which include AR_PCU_CCK_SIFS_MODE .
This adds 6uS to SIFS on non-CCK frames when transmitting.

This fixes the issue where _DATA_ 802.11g OFDM frames were being TX'ed with
the ACK duration set to 38uS, not 44uS as on the AR5212 (and other devices.)

The AR5212 TX pathway obeys the software-programmed duration field in the packet,
but the 11n TX pathway overrides that with a hardware-calculated duration. This
was getting it wrong because of the above AR_MISC_MODE setting. I've verified
that 11g data OFDM frames are now being TXed with the correct ACK+SIFS duration
programmed in.

13 years agoUse the HAL method rather than directly calling ar5212ResetTxQueue().
Adrian Chadd [Sat, 19 Mar 2011 03:09:21 +0000 (03:09 +0000)]
Use the HAL method rather than directly calling ar5212ResetTxQueue().

Since ath9k does some slightly different bit fiddling when setting up
the TX queues, it may that the TX queue setup/reset functions will need
overriding later on.

13 years agoAdd debugging messages to the AR5416 ANI code that's found in the AR5212 ANI code.
Adrian Chadd [Sat, 19 Mar 2011 00:46:10 +0000 (00:46 +0000)]
Add debugging messages to the AR5416 ANI code that's found in the AR5212 ANI code.

13 years agoA cut and paste here was wrong also.
Jack F Vogel [Sat, 19 Mar 2011 00:31:35 +0000 (00:31 +0000)]
A cut and paste here was wrong also.

13 years agoCorrect broken define
Jack F Vogel [Sat, 19 Mar 2011 00:19:18 +0000 (00:19 +0000)]
Correct broken define

13 years ago- Build disk image (for USB sticks) and iso image
Michael Reifenberger [Fri, 18 Mar 2011 22:56:53 +0000 (22:56 +0000)]
- Build disk image (for USB sticks) and iso image
- Change name to reflect this
- Install all kernel modules
- Choose image size that i386 and amd64 can be combined into one image
- Mount tmpfs over /boot/zfs for zpool imports

13 years agoo Move the IVT and supporting functions to the front of the text
Marcel Moolenaar [Fri, 18 Mar 2011 22:45:43 +0000 (22:45 +0000)]
o   Move the IVT and supporting functions to the front of the text
    segment so that it's always mapped by the loader.
o   Change the alternate fault handlers to account for PBVM. Since
    currently the region is handled by the VHPT, no alternate faults
    will be generated for it.

13 years agoRemove inclusion of unneeded bootinfo.h header.
Marcel Moolenaar [Fri, 18 Mar 2011 22:33:19 +0000 (22:33 +0000)]
Remove inclusion of unneeded bootinfo.h header.

13 years agoThis delta updates the em driver to version 7.2.2 which has
Jack F Vogel [Fri, 18 Mar 2011 18:54:00 +0000 (18:54 +0000)]
This delta updates the em driver to version 7.2.2 which has
been undergoing test for some weeks. This improves the RX
mbuf handling to avoid system hang due to depletion. Thanks
to all those who have been testing the code, and to Beezar
Liu for the design changes.

Next the igb driver is updated for similar RX changes, but
also to add new features support for our upcoming i350 family
of adapters.

MFC after a week

13 years agoUse VM_MAXUSER_ADDRESS rather than VM_MAX_ADDRESS when we talk about
Marcel Moolenaar [Fri, 18 Mar 2011 15:36:28 +0000 (15:36 +0000)]
Use VM_MAXUSER_ADDRESS rather than VM_MAX_ADDRESS when we talk about
the bounds of user space. Redefine VM_MAX_ADDRESS as ~0UL, even though
it's not used anywhere in the source tree.

13 years agoPartially revert previous change. Drop the quirk to disable MSI for HT
John Baldwin [Fri, 18 Mar 2011 14:06:12 +0000 (14:06 +0000)]
Partially revert previous change.  Drop the quirk to disable MSI for HT
chipsets that do not have an HT slave at 0:0:0:0.  The Linux quirk is
actually specific to Nvidia chipsets and the check I had added was in
the wrong place.

Prodded by: nathanw

13 years agoUse resolvconf(8) to update /etc/resolv.conf.
Hajimu UMEMOTO [Fri, 18 Mar 2011 12:23:20 +0000 (12:23 +0000)]
Use resolvconf(8) to update /etc/resolv.conf.
If you don't want to use resolvconf(8) to update /etc/resolv.conf,
you can put resolvconf_enable="NO" into /etc/dhclient-enter-hooks.

13 years agoAdd resolvconf(8) which manages resolv.conf.
Hajimu UMEMOTO [Fri, 18 Mar 2011 12:18:52 +0000 (12:18 +0000)]
Add resolvconf(8) which manages resolv.conf.

13 years agoFix a few issues with HyperTransport devices and MSI interrupts:
John Baldwin [Fri, 18 Mar 2011 12:13:04 +0000 (12:13 +0000)]
Fix a few issues with HyperTransport devices and MSI interrupts:
- Always enable the HyperTransport MSI mapping window for HyperTransport
  to PCI bridges (these show up as HyperTransport slave devices).
  The mapping windows in PCI-PCI bridges are enabled by existing code
  in the PCI-PCI bridge driver as MSI requests propagate up the device
  tree, but Host-PCI bridges don't really show up in that tree.
- If the PCI device at domain 0 bus 0 slot 0 function 0 is not a
  HyperTransport device, then blacklist MSI on any other HT devices in
  the system.  Linux has a similar quirk.

PR: kern/155442
Tested by: Zack Dannar  zdannar of gmail
MFC after: 1 week

13 years agoImport openresolv from vendor branch, actually.
Hajimu UMEMOTO [Fri, 18 Mar 2011 12:09:27 +0000 (12:09 +0000)]
Import openresolv from vendor branch, actually.

Helped by: jhb

13 years agoRemove contrib/openresolv.
Hajimu UMEMOTO [Fri, 18 Mar 2011 12:07:53 +0000 (12:07 +0000)]
Remove contrib/openresolv.

Helped by: jhb

13 years agoImport openresolv-3.4.1.
Hajimu UMEMOTO [Fri, 18 Mar 2011 10:35:54 +0000 (10:35 +0000)]
Import openresolv-3.4.1.

13 years agoAdd myself to calendar.freebsd.
Sofian Brabez [Fri, 18 Mar 2011 09:06:06 +0000 (09:06 +0000)]
Add myself to calendar.freebsd.

Approved by: miwi@ (mentor)

13 years agoAdd an entry for myself to committers-ports.dot.
Sofian Brabez [Fri, 18 Mar 2011 09:03:14 +0000 (09:03 +0000)]
Add an entry for myself to committers-ports.dot.

Approved by: miwi@ (mentor)

13 years agoIn vm_daemon(), when iterating over all processes in the system, skip those
Edward Tomasz Napierala [Fri, 18 Mar 2011 06:47:23 +0000 (06:47 +0000)]
In vm_daemon(), when iterating over all processes in the system, skip those
which are not yet fully initialized (i.e. ones with p_state == PRS_NEW).
Without it, we could panic in _thread_lock_flags().

Note that there may be other instances of FOREACH_PROC_IN_SYSTEM() that
require similar fix.

Reported by: pho, keramida
Discussed with: kib

13 years agoFormatting fix.
Glen Barber [Thu, 17 Mar 2011 22:17:56 +0000 (22:17 +0000)]
Formatting fix.

Submitted by: arundel (via doc@)
MFC after: 3 days

13 years agoPreserve errno in an error case.
John Baldwin [Thu, 17 Mar 2011 21:24:32 +0000 (21:24 +0000)]
Preserve errno in an error case.

Submitted by: gcooper

13 years agoFor secondary, set 2 * HAST_KEEPALIVE seconds timeout for incoming
Mikolaj Golub [Thu, 17 Mar 2011 21:02:14 +0000 (21:02 +0000)]
For secondary, set 2 * HAST_KEEPALIVE seconds timeout for incoming
connection so the worker will exit if it does not receive packets from
the primary during this interval.

Reported by: Christian Vogt <Christian.Vogt@haw-hamburg.de>
Tested by: Christian Vogt <Christian.Vogt@haw-hamburg.de>
Approved by: pjd (mentor)
MFC after: 1 week

13 years agoRemove duplicate definition of FIRSTARG.
Andreas Tobler [Thu, 17 Mar 2011 19:44:00 +0000 (19:44 +0000)]
Remove duplicate definition of FIRSTARG.

Approved by: nwhitehorn (mentor)

13 years agoAdd more details to the 'show battery' command including more raw
John Baldwin [Thu, 17 Mar 2011 17:29:46 +0000 (17:29 +0000)]
Add more details to the 'show battery' command including more raw
capacity values, charge cycle count, temperature, and more detailed
status.

Reviewed by: bz, emaste (older version)
MFC after: 1 week

13 years agoImplement the usertime and systime keywords for ps, printing the
Konstantin Belousov [Thu, 17 Mar 2011 11:25:32 +0000 (11:25 +0000)]
Implement the usertime and systime keywords for ps, printing the
corresponding times reported by getrusage().

Submitted by: Dan Nelson <dnelson allantgroup com>
MFC after: 1 week

13 years agoRemove the #if defined(FFS) || defined(IFS) braces around the calls to
Konstantin Belousov [Thu, 17 Mar 2011 11:23:12 +0000 (11:23 +0000)]
Remove the #if defined(FFS) || defined(IFS) braces around the calls to
ffs_snapgone(). ufs.ko module is not build with FFS define, causing
snapshot inode number slots in superblock never be freed, as well as a
reference on the snapshot vnode.

IFS was removed several years ago, and UFS/FFS separation was not
maintained for real.

Reported, analyzed and tested by: Yamagi Burmeister <lists yamagi org>
MFC after: 3 days

13 years agoBackport missing tunings for -march=core2:
Martin Matuska [Thu, 17 Mar 2011 09:44:33 +0000 (09:44 +0000)]
Backport missing tunings for -march=core2:
- enable extra 80387 mathematical constants (ext_80387_constants) [1]
- enable compare and exchange 16 bytes (cmpxchg16b) [2]

Verified against llvm-gcc (and apple gcc)

Obtained from: gcc-4.3 (ref. svn revs. 119260 [1], 121140 [2]; GPLv2)
MFC after: 2 weeks

13 years agoWhen building libc with the syscall compatibility, don't also generate the
Marcel Moolenaar [Thu, 17 Mar 2011 04:40:37 +0000 (04:40 +0000)]
When building libc with the syscall compatibility, don't also generate the
syscall assembly files. This results in conflicting dependencies and can
cause unexpected results for parallel builds. This is because the .c file
and the .S file both generate the same .o file.

Submitted by: Simon Gerraty <sjg@juniper.net>
Sponsored by: Juniper Networks

13 years agoDon't add sigwait.c to MISRCS here when sigwait.c lives under ../sys and
Marcel Moolenaar [Thu, 17 Mar 2011 04:30:43 +0000 (04:30 +0000)]
Don't add sigwait.c to MISRCS here when sigwait.c lives under ../sys and
it's already added to SRCS there.

13 years agoRemove uptime validity check that hasn't been necessary since r151417
Ed Maste [Thu, 17 Mar 2011 01:05:54 +0000 (01:05 +0000)]
Remove uptime validity check that hasn't been necessary since r151417
switched to clock_gettime.  vmstat will now not exit with an error
if run on a system with 10 years of uptime.

13 years agoMerge ACPICA 20110316.
Jung-uk Kim [Thu, 17 Mar 2011 00:29:53 +0000 (00:29 +0000)]
Merge ACPICA 20110316.

13 years agoo) Set MAC addresses starting at the MAC base for all management ports, not
Juli Mallett [Wed, 16 Mar 2011 22:51:34 +0000 (22:51 +0000)]
o) Set MAC addresses starting at the MAC base for all management ports, not
   just the MR-730.
o) Start MAC addresses for the non-management ports after the management ports.

Submitted by: Bhanu Prakash (with modifications)

13 years agoImport ACPICA 20110316.
Jung-uk Kim [Wed, 16 Mar 2011 20:53:41 +0000 (20:53 +0000)]
Import ACPICA 20110316.

13 years agoThe size of zfsboot2 grown up to 64 Kbytes in r219089.
Andrey V. Elsukov [Wed, 16 Mar 2011 20:19:48 +0000 (20:19 +0000)]
The size of zfsboot2 grown up to 64 Kbytes in r219089.
Increase NSECT up to 128 sectors too.

Reviewed by: jhb, pjd

13 years agoSet control flags in putc(). This should fix zfsboot hangs in drvread().
Andrey V. Elsukov [Wed, 16 Mar 2011 20:04:56 +0000 (20:04 +0000)]
Set control flags in putc(). This should fix zfsboot hangs in drvread().

PR: kern/153552
Reviewed by: jhb
MFC after: 1 week

13 years agoRemove too expensive bus_dmamap_sync(9) call in dc_rx_resync().
Pyun YongHyeon [Wed, 16 Mar 2011 17:09:51 +0000 (17:09 +0000)]
Remove too expensive bus_dmamap_sync(9) call in dc_rx_resync().
With this change, driver may not notice updated descriptor status
change when bounce buffers are active. However, rxeof() in next run
will handle the synchronization.

Change dc_rxeof() a bit to return the number of processed frames in
RX descriptor ring. Previously it returned the number of frames
that were successfully passed to upper stack which in turn means it
ignored frames that were discarded due to errors. The number of
processed frames in RX descriptor ring is used to detect whether
driver is out of sync with controller's current descriptor pointer.
Returning number of processed frames reduces unnecessary (probably
wrong) re-synchronization.

Reviewed by: marius

13 years agoRevert r219676.
Jung-uk Kim [Wed, 16 Mar 2011 16:44:08 +0000 (16:44 +0000)]
Revert r219676.

Requested by: jhb, bde

13 years agoThe hardware has caught up; improvements are now observed even at 128,
Ivan Voras [Wed, 16 Mar 2011 16:22:59 +0000 (16:22 +0000)]
The hardware has caught up; improvements are now observed even at 128,
but stay conservative and bump read_max to "only" 64 (it will probably be
a good idea to increase this to 128 after the next major release).

13 years agoRework r219679. Always check CPU class at run-time to make it predictable.
Jung-uk Kim [Wed, 16 Mar 2011 16:09:08 +0000 (16:09 +0000)]
Rework r219679.  Always check CPU class at run-time to make it predictable.
Unfortunately, it pulls in <machine/cputypes.h> but it is small enough and
namespace pollution is minimal, I hope.

Pointed out by: bde
Pointy hat: jkim

13 years agoFix -march/-mtune=native autodetection for Intel Core 2 CPUs
Martin Matuska [Wed, 16 Mar 2011 12:40:58 +0000 (12:40 +0000)]
Fix -march/-mtune=native autodetection for Intel Core 2 CPUs

Obtained from: gcc 4.3 (partial rev. 119454; GPLv2)
MFC after: 2 weeks

13 years agoFrom fts.c comment:
Pawel Jakub Dawidek [Wed, 16 Mar 2011 08:58:09 +0000 (08:58 +0000)]
From fts.c comment:

The "FTS_NOSTAT" option can avoid a lot of calls to stat(2) if it knows that a
directory could not possibly have subdirectories. This is decided by looking at
the link count: a subdirectory would increment its parent's link count by
virtue of its own ".." entry.  This assumption only holds for UFS-like
filesystems that implement links and directories this way, so we must punt for
others.

It looks like ZFS is a UFS-like file system, as the above also holds for ZFS.
Add ZFS to the list of file systems that allow for such optimization.

MFC after: 1 month

13 years agoo) Tear down receive interrupt on detach.
Juli Mallett [Wed, 16 Mar 2011 08:56:22 +0000 (08:56 +0000)]
o) Tear down receive interrupt on detach.

Submitted by: Bhanu Prakash

13 years agoo) Clean up FPA pools on module unload.
Juli Mallett [Wed, 16 Mar 2011 08:51:36 +0000 (08:51 +0000)]
o) Clean up FPA pools on module unload.
o) Allocate output buffer pool based on available output queues.

Submitted by: Bhanu Prakash (with modifications)

13 years agoo) Properly size caches and TLB on Octeon.
Juli Mallett [Wed, 16 Mar 2011 08:22:29 +0000 (08:22 +0000)]
o) Properly size caches and TLB on Octeon.
o) Make COP0_SYNC do nothing on Octeon, which is fully interlocked.

Submitted by: Bhanu Prakash (with modifications)

13 years agoMFaltix:
Marcel Moolenaar [Wed, 16 Mar 2011 03:53:18 +0000 (03:53 +0000)]
MFaltix:
Add support for Pre-Boot Virtual Memory (PBVM) to the loader.

PBVM allows us to link the kernel at a fixed virtual address without
having to make any assumptions about the physical memory layout. On
the SGI Altix 350 for example, there's no usuable physical memory
below 192GB. Also, the PBVM allows us to control better where we're
going to physically load the kernel and its modules so that we can
make sure we load the kernel in memory that's close to the BSP.

The PBVM is managed by a simple page table. The minimum size of the
page table is 4KB (EFI page size) and the maximum is currently set
to 1MB. A page in the PBVM is 64KB, as that's the maximum alignment
one can specify in a linker script. The bottom line is that PBVM is
between 64KB and 8GB in size.

The loader maps the PBVM page table at a fixed virtual address and
using a single translations. The PBVM itself is also mapped using a
single translation for a maximum of 32MB.

While here, increase the heap in the EFI loader from 512KB to 2MB
and set the stage for supporting relocatable modules.

13 years agoMFV of r219685, tzdata2011d
Edwin Groothuis [Wed, 16 Mar 2011 03:28:42 +0000 (03:28 +0000)]
MFV of r219685, tzdata2011d

- Pacific/Apia will have DST on 2 April instead of 3 April in 2011.
- Turkye will go to DST on 28 April instead of 27 April in 2011.
- Cuba will go to DST on 20 April in 2011.

Obtained from:  ftp://elsie.nci.nih.gov/pub/

13 years agoVendor import of tzdata2011d:
Edwin Groothuis [Wed, 16 Mar 2011 03:07:08 +0000 (03:07 +0000)]
Vendor import of tzdata2011d:

- Pacific/Apia will have DST on 2 April instead of 3 April in 2011.
- Turkye will go to DST on 28 April instead of 27 April in 2011.
- Cuba will go to DST on 20 April in 2011.

Obtained from: ftp://elsie.nci.nih.gov/pub/

13 years agoFix mv_gpio_in() for pin numbers that occupy bits 8-31 in GPIO registers.
Marcel Moolenaar [Wed, 16 Mar 2011 00:42:15 +0000 (00:42 +0000)]
Fix mv_gpio_in() for pin numbers that occupy bits 8-31 in GPIO registers.
The compiler will truncate the 32-bit return value of mv_gpio_value_get()
to match the 8-bit return value of mv_gpio_in(). A conditional expression
is used to have mv_gpio_in() always return 0 or 1 instead.

13 years agoRevert previous commit: EFI_STATUS is a 64-bit integral on ia64. Fix the
Marcel Moolenaar [Wed, 16 Mar 2011 00:08:10 +0000 (00:08 +0000)]
Revert previous commit: EFI_STATUS is a 64-bit integral on ia64. Fix the
compile warning on i386 (where EFI_STATUS is a 32-bit integral) by casting
the status argument to u_long instead.

Pointy hat: brucec
MFC after: 3 days

13 years agorfork(2): Discourage rfork_thread-like approaches.
Jilles Tjoelker [Tue, 15 Mar 2011 23:51:47 +0000 (23:51 +0000)]
rfork(2): Discourage rfork_thread-like approaches.

Calling rfork_thread(3) does not interoperate with pthreads and global state
is not properly protected.

Remove the BUGS section suggesting LinuxThreads entirely. With the current
pthread library libthr, all threads are kernel-level entities so there seems
little reason to use LinuxThreads.

13 years agoMerge svn+ssh://svn.freebsd.org/base/head@219680
Marcel Moolenaar [Tue, 15 Mar 2011 23:28:15 +0000 (23:28 +0000)]
Merge svn+ssh://svn.freebsd.org/base/head@219680

13 years agobin: Prefer strrchr() to rindex().
Jilles Tjoelker [Tue, 15 Mar 2011 22:22:11 +0000 (22:22 +0000)]
bin: Prefer strrchr() to rindex().

This removes the last index/rindex usage from /bin.

13 years agoPartially revert r219672. After r198295, kernel need to seed randomness as
Jung-uk Kim [Tue, 15 Mar 2011 21:45:10 +0000 (21:45 +0000)]
Partially revert r219672.  After r198295, kernel need to seed randomness as
soon as possible for stack protector.  However, dummy timecounter does not
have enough entropy and we don't need to sacrifice Pentium class and later.

Pointed out by: Maxim Dounin (mdounin at mdounin dot ru)

13 years agoDo not let machdep.tsc_freq modify tsc_freq itself. It is bad for i386 as
Jung-uk Kim [Tue, 15 Mar 2011 19:47:20 +0000 (19:47 +0000)]
Do not let machdep.tsc_freq modify tsc_freq itself.  It is bad for i386 as
it does not operate atomically.  Actually, it serves no purpose.

Noticed by: bde

13 years agoRemove tsc_present from this file, really.
Jung-uk Kim [Tue, 15 Mar 2011 18:09:29 +0000 (18:09 +0000)]
Remove tsc_present from this file, really.

13 years agoFix a typo in the previous commit. AMD64 and Intel 64 are two brand names.
Jung-uk Kim [Tue, 15 Mar 2011 17:59:30 +0000 (17:59 +0000)]
Fix a typo in the previous commit.  AMD64 and Intel 64 are two brand names.

13 years agoDeprecate tsc_present as the last of its real consumers finally disappeared.
Jung-uk Kim [Tue, 15 Mar 2011 17:19:52 +0000 (17:19 +0000)]
Deprecate tsc_present as the last of its real consumers finally disappeared.

13 years agoUnconditionally use binuptime(9) for get_cyclecount(9) on i386. Since this
Jung-uk Kim [Tue, 15 Mar 2011 17:14:26 +0000 (17:14 +0000)]
Unconditionally use binuptime(9) for get_cyclecount(9) on i386.  Since this
function is almost exclusively used for random harvesting, there is no need
for micro-optimization.  Adjust the manual page accordingly.

13 years agoReserve 24KB for the static kernel stack. We use this stack to call into
Marcel Moolenaar [Tue, 15 Mar 2011 16:50:17 +0000 (16:50 +0000)]
Reserve 24KB for the static kernel stack. We use this stack to call into
the firmware for physical mode calls and the Altix doesn't work when it's
16KB.

13 years agoRemove #include needed for debugging.
Pawel Jakub Dawidek [Tue, 15 Mar 2011 13:53:39 +0000 (13:53 +0000)]
Remove #include needed for debugging.

MFC after: 1 week

13 years agoStaticize functions which are not used somewhere else, move the
Alexander Leidinger [Tue, 15 Mar 2011 13:40:47 +0000 (13:40 +0000)]
Staticize functions which are not used somewhere else, move the
corresponding prototypes from the header to the code file.

13 years agoTurn on softupdates by default. We need a UI to set filesystem parameters.
Nathan Whitehorn [Tue, 15 Mar 2011 13:27:34 +0000 (13:27 +0000)]
Turn on softupdates by default. We need a UI to set filesystem parameters.

13 years agoForgot to commit this change along with r219563: pam_group(8) now issues
Dag-Erling Smørgrav [Tue, 15 Mar 2011 10:13:35 +0000 (10:13 +0000)]
Forgot to commit this change along with r219563: pam_group(8) now issues
a warning if neither luser nor ruser is specified.  The correct option
for su(1) is ruser.

MFC after: 1 month

13 years agoRe-order the TRs so that there're less gaps. This could have a performance
Marcel Moolenaar [Tue, 15 Mar 2011 06:07:02 +0000 (06:07 +0000)]
Re-order the TRs so that there're less gaps. This could have a performance
impact.

13 years agoRound the size, not the top address. This makes the code less
Marcel Moolenaar [Tue, 15 Mar 2011 06:04:13 +0000 (06:04 +0000)]
Round the size, not the top address. This makes the code less
sensitive to compiler bugs (32-bit truncation).

13 years ago- Inadvertently committed files with +x attribute, fixed.
David Christensen [Tue, 15 Mar 2011 01:06:27 +0000 (01:06 +0000)]
- Inadvertently committed files with +x attribute, fixed.
- Minor change to info output string.

13 years agoDon't define IA64_PBVM_PAGE_SIZE as 1U shifted to the left by some amount.
Marcel Moolenaar [Mon, 14 Mar 2011 23:49:41 +0000 (23:49 +0000)]
Don't define IA64_PBVM_PAGE_SIZE as 1U shifted to the left by some amount.
The compiler seems to assume it's a 32-bit integral and rounding to the
page size using the standard expression (((u_long)(x) + mask) & ~mask),
results in a 32-bit value. Dropping the 'U' suffix is enough to have the
compiler treat the expression as a 64-bit integral.

13 years agoMake get_cyclecount(9) little bit more useful where binuptime(9) is used.
Jung-uk Kim [Mon, 14 Mar 2011 23:30:14 +0000 (23:30 +0000)]
Make get_cyclecount(9) little bit more useful where binuptime(9) is used.

13 years ago- Initial release of bxe(4) to support Broadcom NetXtreme II 10GbE.
David Christensen [Mon, 14 Mar 2011 22:42:41 +0000 (22:42 +0000)]
- Initial release of bxe(4) to support Broadcom NetXtreme II 10GbE.
  (BCM57710, BCM57711, BCM57711E)

MFC after: One month

13 years agoWhen TSC is unavailable, broken or disabled and the current timecounter has
Jung-uk Kim [Mon, 14 Mar 2011 22:05:59 +0000 (22:05 +0000)]
When TSC is unavailable, broken or disabled and the current timecounter has
better quality than i8254 timer, use it for DELAY(9).

13 years agoThanks to sysinstall for its 15 years of service. And now to sleep,
Nathan Whitehorn [Mon, 14 Mar 2011 13:47:17 +0000 (13:47 +0000)]
Thanks to sysinstall for its 15 years of service. And now to sleep,
perchance to dream...

13 years agoAdd ssse3 capability for CPUTYPE=core2 to MACHINE_CPU in bsd.cpu.mk
Martin Matuska [Mon, 14 Mar 2011 13:36:51 +0000 (13:36 +0000)]
Add ssse3 capability for CPUTYPE=core2 to MACHINE_CPU in bsd.cpu.mk

MFC after: 2 weeks

13 years agoBackport SSSE3 instruction set support to base gcc.
Martin Matuska [Mon, 14 Mar 2011 13:31:34 +0000 (13:31 +0000)]
Backport SSSE3 instruction set support to base gcc.
Enabled by default for -march=core2

Obtained from: gcc 4.3 (rev. 117958, 121687, 121726, 123639; GPLv2)
MFC after: 2 weeks

13 years agoAdd my birthday to the freebsd calendar.
Dmitry Chagin [Mon, 14 Mar 2011 13:02:12 +0000 (13:02 +0000)]
Add my birthday to the freebsd calendar.

13 years agoFix potential panic in dbuf_sync_list() relate to spill blocks handling.
Pawel Jakub Dawidek [Mon, 14 Mar 2011 11:07:12 +0000 (11:07 +0000)]
Fix potential panic in dbuf_sync_list() relate to spill blocks handling.

Obtained from: IllumOS
MFC after: 1 month

13 years agoo Deal with unmapped PBVM in the alternate instruction and data TLB fault
Marcel Moolenaar [Mon, 14 Mar 2011 05:29:45 +0000 (05:29 +0000)]
o   Deal with unmapped PBVM in the alternate instruction and data TLB fault
    handlers.
o   Put the IVT in its own section and keep the supporting code close.
o   Make sure the VHPT is sized so that it can be mapped using a single
    translation.
o   Map the PAL code and VHPT with a translation that has the right size.
    Assume the platform has a PAL code size that can be mapped with a
    single translations.
o   Pass the pointer to the bootinfo structure as an argument to ia64_init().
o   Get rid of LOG2_ID_PAGE_SIZE and IA64_ID_PAGE_SIZE. It was used to map
    the regions 6 & 7 and was as large as possible. The problem is that we
    can't support memory attributes easily if the granuratity is not a page.
    We need to support memory attributes because the new USB stack violates
    the BUS_DMA(9) interface.
o   Update some comments...

NOTE: this is broken for SMP kernels, because the AP startup code hasn't
been updated yet.

13 years agoExpose the PBVM constants to assembly.
Marcel Moolenaar [Mon, 14 Mar 2011 05:18:27 +0000 (05:18 +0000)]
Expose the PBVM constants to assembly.

13 years agoMove the actual code to the front of the segment and make sure the IVT
Marcel Moolenaar [Mon, 14 Mar 2011 05:16:12 +0000 (05:16 +0000)]
Move the actual code to the front of the segment and make sure the IVT
can be put right at the front when put in its own section. This makes
sure that when the loader can only map a relatively small part of the
PBVM, the IVT and the startup code is wired.

13 years agoChange the sz argumnt to mmu_wire() from u_int to vm_size_t. It's a
Marcel Moolenaar [Mon, 14 Mar 2011 05:13:52 +0000 (05:13 +0000)]
Change the sz argumnt to mmu_wire() from u_int to vm_size_t. It's a
size in bytes...

13 years agoFix typo that snuck in.
Adrian Chadd [Mon, 14 Mar 2011 02:32:10 +0000 (02:32 +0000)]
Fix typo that snuck in.

13 years agoBring over the AR9285 board update code from ath9k.
Adrian Chadd [Mon, 14 Mar 2011 00:42:48 +0000 (00:42 +0000)]
Bring over the AR9285 board update code from ath9k.

This does a few things in particular:

* Abstracts out the gain control settings into a separate function;
* Configure antenna diversity, LNA and antenna gain parameters;
* Configure ob/db entries - the later v4k EEPROM modal revisions have
  multiple OB/DB parameters which are used for some form of
  calibration. Although the radio does have defaults for each,
  the EEPROM can override them.

This resolves the AR2427 related issues I've been seeing and makes
it stable at all 11g rates for both TX and RX.

13 years agoo Make sure the page table has a size that is mappable. Certain page
Marcel Moolenaar [Sun, 13 Mar 2011 22:04:19 +0000 (22:04 +0000)]
o   Make sure the page table has a size that is mappable. Certain page
    sizes are not supported.
o   Map the PBVM page table.
o   Map the PBVM using the largest possible power of 2 that is less than
    the amount of PBVM used and round down to a valid page size. Note
    that the current kernel is between 8MB and 16MB in size, which would
    mean that 8MB would be the typical size of the mapping, if only 8MB
    wasn't an invalid page size. In practice, we end up mapping the first
    4MB of PBVM in most cases.

13 years agoDon't sleep while setting the clock. This can cause panics when
Nathan Whitehorn [Sun, 13 Mar 2011 21:23:25 +0000 (21:23 +0000)]
Don't sleep while setting the clock. This can cause panics when
periodic_resettodr() calls CLOCK_SETTIME() and smu tries to sleep while
running from a callout.

Reported by: Torfinn Ingolfsen

13 years agosh: Fix some parameter expansion variants ${#...}.
Jilles Tjoelker [Sun, 13 Mar 2011 20:02:39 +0000 (20:02 +0000)]
sh: Fix some parameter expansion variants ${#...}.

These already worked: $# ${#} ${##} ${#-} ${#?}
These now work as well: ${#+word} ${#-word} ${##word} ${#%word}

There is an ambiguity in the standard with ${#?}: it could be the length of
$? or it could be $# giving an error in the (impossible) case that it is not
set. We continue to use the former interpretation as it seems more useful.

13 years agoPOSIX accepts only ELOOP if O_NOFOLLOW is specified and target is a symlink.
Pawel Jakub Dawidek [Sun, 13 Mar 2011 19:35:13 +0000 (19:35 +0000)]
POSIX accepts only ELOOP if O_NOFOLLOW is specified and target is a symlink.

13 years agoIn command line options allow size to be specified using k/M/G/T
Mikolaj Golub [Sun, 13 Mar 2011 19:23:32 +0000 (19:23 +0000)]
In command line options allow size to be specified using k/M/G/T
suffixes.

Approved by: pjd (mentor)
MFC after: 1 week

13 years agoRewind manifest file in case distributions are in a different order there.
Nathan Whitehorn [Sun, 13 Mar 2011 18:26:16 +0000 (18:26 +0000)]
Rewind manifest file in case distributions are in a different order there.

13 years agoUse the manifest file count, if available, to determine the number of files
Nathan Whitehorn [Sun, 13 Mar 2011 18:23:47 +0000 (18:23 +0000)]
Use the manifest file count, if available, to determine the number of files
in the archive instead of spinning through it to get a file count for the
progress bar. This speeds up installation a lot on systems with slow
CD drives.

13 years agoFix some typos due to unremoved commented-out lines. A great big pointy
Nathan Whitehorn [Sun, 13 Mar 2011 18:02:28 +0000 (18:02 +0000)]
Fix some typos due to unremoved commented-out lines. A great big pointy
hat goes to me for this one.

13 years agoAdd generation of an installation manifest containing SHA256 checksums as
Nathan Whitehorn [Sun, 13 Mar 2011 17:15:31 +0000 (17:15 +0000)]
Add generation of an installation manifest containing SHA256 checksums as
well as package descriptions and add code in the installer to check the
checksums.

13 years agoadd myself
Pawel Pekala [Sun, 13 Mar 2011 17:03:19 +0000 (17:03 +0000)]
add myself

Approved by:     miwi (mentor)

13 years agoFix typo.
Rebecca Cran [Sun, 13 Mar 2011 16:47:21 +0000 (16:47 +0000)]
Fix typo.

13 years agoRevert r219578
Doug Barton [Sun, 13 Mar 2011 16:27:36 +0000 (16:27 +0000)]
Revert r219578

13 years agosh: Add some tests for ${#parameter}.
Jilles Tjoelker [Sun, 13 Mar 2011 16:20:38 +0000 (16:20 +0000)]
sh: Add some tests for ${#parameter}.

13 years agoConnect the full doc build (Handbook, etc.) to the build. This is not built
Nathan Whitehorn [Sun, 13 Mar 2011 15:08:06 +0000 (15:08 +0000)]
Connect the full doc build (Handbook, etc.) to the build. This is not built
if no doc checkout is found.

13 years agoEnable shared page use for amd64/linux32 and i386/linux binaries.
Dmitry Chagin [Sun, 13 Mar 2011 14:58:02 +0000 (14:58 +0000)]
Enable shared page use for amd64/linux32 and i386/linux binaries.
Move signal trampoline code from the top of the stack to the shared page.

MFC after: 2 Weeks

13 years agoRemove the advertising clause from the UCB license according to the
Marius Strobl [Sun, 13 Mar 2011 13:42:43 +0000 (13:42 +0000)]
Remove the advertising clause from the UCB license according to the
July 22, 1999 addendum.

13 years agoConstantly use MHz instead of Mhz.
Bernhard Schmidt [Sun, 13 Mar 2011 13:05:50 +0000 (13:05 +0000)]
Constantly use MHz instead of Mhz.

Pointed out by: N.J. Mann <njm at njm.me.uk>