123144 Commits

Author SHA1 Message Date
emaste
96abe21b53 MFC additional driver enhancements.
r174385
  Allow simultaneous opens of the device for issuing commands to the
  controller.  This is merged from Adaptec driver build 11669.

r177462
  Add ioctls FSACTL_SEND_LARGE_FIB, FSACTL_SEND_RAW_SRB,
  FSACTL_LNX_SEND_LARGE_FIB, and FSACTL_LNX_SEND_RAW_SRB, and correct size
  checks on FIBs passed in from userspace.  Both changes were obtained from
  Adaptec's driver build 15317.  Adaptec's commandline RAID tool arcconf
  uses these ioctls when creating a RAID-10 array (and probably other
  operations too).

r177567
  Diff reduction to Adaptec's driver (around build 15317): catch up with a
  change in debugging routines.

  The fwprintf macro in the AAC_DEBUG case (mapping to printf) isn't from
  the Adaptec driver.

r177619
  Add 64-bit array support for RAIDs > 2TB.  This corresponds to ~ Adaptec
  driver build 15317.

r177635
  Add \n to the end of a printf string and remove it from panic strings.

r177695
  Implement FSACTL_LNX_GET_FEATURES and FSACTL_GET_FEATURES ioctls.  RAID
  tools (e.g. arcconf) need this to be able to create arrays larger than
  2TB.

r179969
  Fix test for waiting AIFs in aac_poll().  This seems to solve the
  problem where Adaptec's arcconf monitoring tool hangs after producing
  its expected output.
2008-06-30 21:22:59 +00:00
danger
332ec00a3f MFC rev. 180024:
- Mark the section describing return values with an appropriate
  section flag.

PR:		docs/122818
2008-06-30 09:17:54 +00:00
danger
ddee251589 - MFC rev. 180030 and 180113:
- add description of the MLINK error
  - bump a date

PR:		docs/123019
2008-06-30 09:08:29 +00:00
philip
d3cc703faa MFC r180077:
Remove stray "miibus0" reference from ancient kernel config file times.
2008-06-29 12:54:39 +00:00
emaste
77f881ca43 MFC r175163:
Honour the logical current working directory ($PWD) when using config's
  -d destdir option.  For an automounted src tree using the logical cwd
  in the Makefile keeps amd(8)'s mount timeout refreshed.  Code to check
  $PWD's validity cribbed from pwd(1).

  Discussed on hackers@.
2008-06-27 14:37:32 +00:00
jhb
97a2f8f465 MFC: Add the mpt_user personality to mpt(4). 2008-06-27 04:46:06 +00:00
jhb
99e0fb3c98 MFC: Add support for the BCM5906[M] adapters including subsequent
improvements by marius@.
2008-06-27 03:35:48 +00:00
jhb
1f5fd56a70 MFC: Fix time out check in EEPROM read and move delays to give some settle
time.
2008-06-27 03:31:05 +00:00
jhb
08f7456294 MFC: Add a flag for Ethernet@WireSpeed capability and correct chip
revisions.
2008-06-27 03:19:03 +00:00
jhb
efa25fa9db MFC:
- Add support/quirks for the on-board BGEs found in various Sun machines.
- In bge_attach() factor out calling bge_release_resources() before
  going to the fail label.
2008-06-27 03:11:34 +00:00
jhb
7f3ac13114 MFC: Use sysctl to fetch stats from the kernel instead of reading variables
directly via libkvm.
2008-06-27 02:20:37 +00:00
jhb
22b604af8d MFC: Workaround a bug in the BIOS of Dell R900 machines by padding the
structure used to fetch SMAP entries.
2008-06-27 01:00:08 +00:00
jhb
e4a24213c9 MFC: After probing the available frequency settings, restore the CPU to run
at whatever frequency it started at.
2008-06-27 00:56:36 +00:00
ale
13c34b0782 MFC r179989: Fix links to online gcc docs. 2008-06-26 05:46:11 +00:00
peter
6dffd9faf1 Move mergeinfo up from file to directory 2008-06-25 09:29:46 +00:00
peter
265d2f74d1 Move mergeinfo up from file to containing directory 2008-06-25 09:24:35 +00:00
peter
64086948d3 Move mergeinfo up to containing directory. 2008-06-25 09:09:13 +00:00
peter
70d1aa645b Promote mergeinfo from ciss.c to the containing directory. 2008-06-25 08:58:35 +00:00
peter
7f7cdb51cb Move mergeinfo up to containing directory. 2008-06-25 08:47:36 +00:00
jhb
caaf25035e MFC: Add 'compat_freebsd[45]' features corresponding to the kernel options
COMPAT_FREEBSD[45].
2008-06-24 21:08:30 +00:00
jhb
b519820438 MFC: Add the kern.features sysctl tree and FEATURE() macro. Add a "pae"
feature for PAE kernels on i386.
2008-06-24 20:40:17 +00:00
jhb
abca8e887f MFC: Change the roundrobin implementation in the 4BSD scheduler to trigger a
userland preemption directly from hardclock() via sched_clock().
2008-06-24 19:55:22 +00:00
danger
dae9313ef7 - MFC rev 179903: link powerd(8) man page
PR:		docs/123111
2008-06-23 08:06:55 +00:00
danger
5ed5c712d0 MFC: Do not claim that ipfw is the only firewall package available
in FreeBSD.

PR:		docs/106315
2008-06-20 22:52:33 +00:00
joerg
a64150143b MFC: more intelligent handling of /usr/ports subdirectories. 2008-06-20 08:49:58 +00:00
scf
47f4c8d4a4 MFC revisions: 179654
Fixed the output grammar to properly speak non-terminal dits.

Updated Lyndon Nerenberg's radio callsign and E-mail address.

PR:		bin/7868
Submitted by:	Lyndon Nerenberg <lyndon@orthanc.ca>
2008-06-19 23:40:25 +00:00
yongari
45275caaf5 MFC: r179647
Ethernet hardware address stored in DC_AL_PAR0/DC_AL_PAR1 register
is in little endian form. Likewise setting DC_AL_PAR0/DC_AL_PAR1
register expect the address to be in little endian form. For big
endian architectures the address should be swapped to get correct
one.
Change setting/getting ethernet hardware address to big endian
architecture frendly.

Reported by:    Robert Murillo ( billypilgrim782001 at yahoo dot com )
Tested by:      Robert Murillo ( billypilgrim782001 at yahoo dot com )
2008-06-19 03:37:40 +00:00
remko
0400c0376c MFC rev 179460 Makefile
Dont install .svn metadata with the sendmail install.

  Submitted by:   marcel
  Approved by:    imp (mentor, implicit)
  MFC after:      3 days

Approved by:	imp (mentor, implicit)
2008-06-17 19:15:38 +00:00
remko
3d61931553 MFC rev 179355 and 179848 shar.sh
r179355

  Limit the EOF marker length to a maximum of 79 characters. [1]

  Add $FreeBSD$ tag so that I can actually commit this.

  PR:             bin/118782
  Reported by:    Bjoern Koenig
  Patch by:       edwin, Jaakko Heinonen (not used patch)
  MFC after:      1 week
  Approved by:    imp (mentor, implicit)

r179848:
  Remove superfluous eofmarker.

  Requested by:   Jaakko Heinonen
  Discussed with: Jaakko, edwin
2008-06-17 19:10:38 +00:00
ambrisko
344cc98a7b MFC: All changes in current/7 minus cam
- Native 32bit compat modes for amd64
     - Limit max commands to 128
     - Add in compat mode for using mfi0 to talk to any card
2008-06-17 17:04:38 +00:00
flz
59013eaaaa MFC: remove 4.x support (r179835) 2008-06-17 10:48:46 +00:00
obrien
893eb1bdfd MFC rev 1.126 / r165854: Declare the map entry created by kmem_init() for
the range from VM_MIN_KERNEL_ADDRESS to the end of the kernel's bootstrap
data as MAP_NOFAULT.
2008-06-16 16:23:09 +00:00
flz
cbc1e699c4 MFC: style fixes (naked commands, r179819) 2008-06-16 09:17:46 +00:00
flz
57ceb55b3d Synchronize pkg_install with HEAD (20080612)
r179760: fix recursive -K (add), '\n' not part of pkg origin (updating)
2008-06-16 09:03:57 +00:00
fjoe
4be5a65b0a Bump __FreeBSD_version to 603104 for make(1) :u var modifier. 2008-06-15 20:26:09 +00:00
fjoe
a01c254e22 MFC: :u (unique) var modifier
Requested by:	kris
2008-06-13 06:54:28 +00:00
kientzle
ff1f4469f9 MFC 177341: Decrement matched patterns so that --extract-fast works. 2008-06-12 06:20:49 +00:00
marius
29ec7f29c6 MFC: r178589
- Use the revamped code from the gem(4) PCI front-end, which
  doesn't require parts of the Expansion ROM to be copied around,
  for obtaining the MAC address on !OFW platforms.
- Don't unnecessarily cache bus space tag and handle nor RIDs
  in the softcs of the front-ends.
- Don't use function calls in initializers.
- Let the SBus front-end depend on sbus(4).
2008-06-11 20:58:53 +00:00
marius
66961c20b8 Revert the part of r179728 which switched from m_defrag(9) to
m_collapse(9) as the latter doesn't exist in FreeBSD 6.
2008-06-11 20:38:06 +00:00
marius
37e1f78fb7 MFC: r178470
o Disable HMEDEBUG by default.
o Add CTASSERTs ensuring that HME_NRXDESC and HME_NTXDESC are set to
  legal values.
o Use appropriate maxsize, nsegments and maxsegsize parameters when
  creating DMA tags and correct some comments related to them.
o The FreeBSD bus_dmamap_sync(9) supports ored together flags for quite
  some time now so collapse calls accordingly.
o Add missing BUS_DMASYNC_PREREAD when syncing the control DMA maps in
  hme_rint() and hme_start_locked().
o Keep state of the link state and use it to enable or disable the MAC
  in hme_mii_statchg() accordingly as well as to return early from
  hme_start_locked() in case the link is down.
o Introduce a sc_flags and use it to replace individual members like
  sc_pci.
o Add bus_barrier(9) calls to hme_mac_bitflip(), hme_mii_readreg(),
  hme_mii_writereg() and hme_stop() to ensure the respective bit
  has been written before we starting polling on it and for the right
  bits to change.
o Rather just returning in case hme_mac_bitflip() fails and leaving us
  in an undefined state report the problem and move on; chances are
  the requested configuration will become active shortly after.
o Don't call hme_start_locked() in hme_init_locked() unconditionally
  but only after calls to hme_init_locked() when it's appropriate, i.e.
  in hme_watchdog().
o Add a KASSERT which asserts nsegs is valid also to hme_load_txmbuf().
o In hme_load_txmbuf():
  - use a maximum of the newly introduced HME_NTXSEGS segments instead
    of the incorrect HME_NTXQ, which reflects the maximum TX queue
    length, for loading the mbufs and put the DMA segments back onto
    the stack instead of the softc as 16 should be ok there.
  - use the common errno(2) return values instead of homegrown ones,
  - given that hme_load_txmbuf() is allowed to fail resulting in a
    packet drop for quite some time now implement the functionality of
    hme_txcksum() by means of m_pullup(9), which de-obfuscates the code
    and allows to always retrieve the correct length of the IP header, [1]
  - also add a KASSERT which asserts nsegs is valid,
  - take advantage of m_collapse(9) instead of m_defrag(9) for
    performance reasons.
o Don't bother to check whether the interface is running or whether its
  queue is empty before calling hme_start_locked() in hme_tint(), the
  former will check these anyway.
o In hme_intr() call hme_rint() before hme_tint() as gem_tint() may
  take quite a while to return when it calls hme_start_locked().
o Get rid of sc_debug and just check if_flags for IFF_DEBUG directly.
o Add a shadow sc_ifflags so we don't reset the chip when unnecessary.
o Handle IFF_ALLMULTI correctly. [2]
o Use PCIR_BAR instead of a homegrown macro.
o Replace sc_enaddr[6] with sc_enaddr[ETHER_ADDR_LEN].
o Use the maximum of 256 TX descriptors for better performance as using
  all of them has no additional static cost rather than using just half
  of them.

Reported by:	rwatson [2]
Suggested by:	yongari [1]
Reviewed by:	yongari
2008-06-11 19:49:10 +00:00
ps
15b44aa21e MFC: r179705
Add support for the P212, P410, P410i, P411, and P812 HP Smart Array
controllers.
2008-06-10 18:31:19 +00:00
flz
dc58ca5a99 Synchronize pkg_install with HEAD (20080530)
r179352,179366: don't regenerate packages
    r179433: add long options
2008-06-10 09:56:11 +00:00
jkim
b48e5c9549 MFC: r179497
Fix a crash when Arctic Ocean is selected.
2008-06-09 18:45:21 +00:00
dfr
be13bfa938 MFC: r179510 - nlm_global_lock doesn't exist (yet)
Pointed out by: kib
2008-06-09 12:11:27 +00:00
dfr
fe39afdc15 MFC: r179489 - add a missing call to init_nsm(). 2008-06-09 10:55:59 +00:00
dfr
f604505964 MFC: r179488 - check for client reboot before executing the lock request 2008-06-09 10:52:43 +00:00
dwmalone
d6bcba4a25 MFC: Sync restore with the version in -current.
Fix remaining nits from PR bin/39905.
Check for write failure while building temp files.
Correctly set file group when restore is run by a user other than root.
Use safer string handling.
Fixes the "getfile: lost data" panic when restoring older dumps.
Fix spurious "Header with wrong dumpdate" message.
Add -D for degraded mode, which tries harder to read corrupted backups.
Remove a diagnostic message from man page that is no longer printed.
2008-06-09 07:53:16 +00:00
thompsa
ed4918a6ec MFC r174749, r175396, r175419, r175432
- Simplify the error handling
 - Nuke licence clause 3 & 4
 - Drop frames to any of the reserved multicast addresses
 - Remove duplicated code for testing local packets.
2008-06-06 21:57:28 +00:00
dfr
b7bfe99af5 MFC: r179358,179434 - make libc's fcntl symbol weak and extend the limited
forward ABI compatibility for fcntl to the thread libraries.
2008-06-06 09:13:43 +00:00
dfr
0c75d27f8e MFC: r179425 - cope better when client NLM port changes 2008-06-06 08:54:51 +00:00