]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC rev. 179903: link powerd(8) man page
danger [Mon, 23 Jun 2008 08:01:53 +0000 (08:01 +0000)]
MFC rev. 179903: link powerd(8) man page

PR: docs/123111

16 years agoMFC: revs 175291,175384. Add .POSIX: to break timestamp-sensitive problems
peter [Sun, 22 Jun 2008 00:13:19 +0000 (00:13 +0000)]
MFC: revs 175291,175384.  Add .POSIX: to break timestamp-sensitive problems
between Makefile and Makefile.in that was disturbed by changes in
src/usr.bin/make/main.c rev 167330 (1.161).

16 years agoMFC r179634:
kib [Sat, 21 Jun 2008 08:51:21 +0000 (08:51 +0000)]
MFC r179634:
Fix the incorrect calculation of a block address within a single indirect
block.

PR: 108215

16 years agoMFC r179897:
lulf [Fri, 20 Jun 2008 21:17:40 +0000 (21:17 +0000)]
MFC r179897:

- Fix spelling errors.

Approved by: kib (mentor)
PR: kern/124788
Submitted by: Hywel Mallett <Hywel -at- hmallett.co.uk>

16 years agoMFC: more intelligent handling of /usr/ports subdirectories.
joerg [Fri, 20 Jun 2008 08:48:33 +0000 (08:48 +0000)]
MFC: more intelligent handling of /usr/ports subdirectories.

16 years agoMFC svn rev 179834.
kan [Fri, 20 Jun 2008 00:13:37 +0000 (00:13 +0000)]
MFC svn rev 179834.

Install extra include files that were forgotten in original GCC 4.2.x
import changes.

PR: 124647
Submitted by: Vlad GALU

16 years agoMFC revisions: 179654
scf [Thu, 19 Jun 2008 23:25:00 +0000 (23:25 +0000)]
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>

16 years agoMFC: SMBus detection for the MCP65 chipset.
joerg [Thu, 19 Jun 2008 07:35:08 +0000 (07:35 +0000)]
MFC: SMBus detection for the MCP65 chipset.

16 years agoMFC: r179099
yongari [Thu, 19 Jun 2008 04:23:26 +0000 (04:23 +0000)]
MFC: r179099

Connect atphy(4) to the build.

16 years agoMFC: r179098
yongari [Thu, 19 Jun 2008 03:56:39 +0000 (03:56 +0000)]
MFC: r179098

Add Attansic/Atheros F1 PHY driver.

16 years agoMFC: r179647
yongari [Thu, 19 Jun 2008 01:36:31 +0000 (01:36 +0000)]
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 )

16 years agoMFC: Allow negative values to be specified in the loader.
ambrisko [Wed, 18 Jun 2008 21:39:00 +0000 (21:39 +0000)]
MFC: Allow negative values to be specified in the loader.

16 years agoMFC r179722:
kib [Wed, 18 Jun 2008 09:31:56 +0000 (09:31 +0000)]
MFC r179722:
In cd9660_readdir vop, always initialize the idp->uio_off member.

PR: 122925

16 years agoMFC r179808:
kib [Wed, 18 Jun 2008 09:25:26 +0000 (09:25 +0000)]
MFC r179808:
Do not redo the vnode tear-down work already done by insmntque() when
vnode cannot be put on the vnode list for mount.

16 years agoMFC rev r179848 shar.sh
remko [Tue, 17 Jun 2008 19:04:17 +0000 (19:04 +0000)]
MFC rev r179848 shar.sh

  Remove superfluous eofmarker.

  Requested by:   Jaakko Heinonen
  Discussed with: Jaakko, edwin

  Approved by:    imp (mentor, implicit)

Approved by: imp (mentor, implicit)

16 years agoMFC: remove 4.x support (r179835)
flz [Tue, 17 Jun 2008 10:47:24 +0000 (10:47 +0000)]
MFC: remove 4.x support (r179835)

16 years agoFix a bad mergeinfo path
peter [Tue, 17 Jun 2008 06:34:48 +0000 (06:34 +0000)]
Fix a bad mergeinfo path

16 years agoMFC allocator improvements and fixes:
jasone [Mon, 16 Jun 2008 23:42:05 +0000 (23:42 +0000)]
MFC allocator improvements and fixes:

* Implement more compact red-black trees, thus reducing memory usage
  by ~0.5-1%.

* Add a separate tree to track dirty-page-containing chunks, thus
  improving worst case allocation performance.

* Fix a deadlock in base_alloc() for the error (OOM) path.

* Catch integer overflow for huge allocations when using sbrk(2).

* Fix bit vector initialization for run headers.  This fix has no
  practical impact for correct programs.  Incorrect programs will
  potentially experience allocation failures rather than memory
  corruption, both of which are "undefined behavior".

16 years agoMFC: style fixes (naked commands, r179819)
flz [Mon, 16 Jun 2008 09:17:59 +0000 (09:17 +0000)]
MFC: style fixes (naked commands, r179819)

16 years agoSynchronize pkg_install with HEAD (20080612)
flz [Mon, 16 Jun 2008 09:02:59 +0000 (09:02 +0000)]
Synchronize pkg_install with HEAD (20080612)

    r179760: fix recursive -K (add), '\n' not part of pkg origin (updating)

16 years agoMFC rev 179460
remko [Sun, 15 Jun 2008 20:12:11 +0000 (20:12 +0000)]
MFC rev 179460

Dont install .svn metadata with the sendmail install.

Submitted by:   marcel
Approved by:    imp (mentor, implicit)

16 years agoMFC -r 179355 on behalf of remko.
keramida [Sun, 15 Jun 2008 14:36:01 +0000 (14:36 +0000)]
MFC -r 179355 on behalf of remko.

% r179355 | remko | 2008-05-27 12:45:18 +0300 (Tue, 27 May 2008) | 11 lines
%
% 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)

16 years agoMFC: All changes in current to 7.X.
ambrisko [Fri, 13 Jun 2008 15:45:48 +0000 (15:45 +0000)]
MFC: All changes in current to 7.X.
      - Native 32bit compat modes for amd64
      - Limit max commands to 128
      - Add in compat mode for using mfi0 to talk to any card

16 years agoMFC r178697: Add support for Microsoft Notebook Optical
kaiw [Thu, 12 Jun 2008 16:45:46 +0000 (16:45 +0000)]
MFC r178697: Add support for Microsoft Notebook Optical
Mouse 3000 Model 1049.

PR:   usb/121052

16 years agoMFC r177341: decrement matched patterns instead of incrementing.
kientzle [Thu, 12 Jun 2008 06:17:15 +0000 (06:17 +0000)]
MFC r177341: decrement matched patterns instead of incrementing.
In particular, this fixes --exit-fast behavior.

16 years agoMFC: r176996, r177560
marius [Wed, 11 Jun 2008 21:10:06 +0000 (21:10 +0000)]
MFC: r176996, r177560

- Fix some style bugs and remove another banal comment missed in
  rev. 1.46.
- Move the KASSERT on gem_add_rxbuf() to the right spot and add an
  equivalent one to gem_disable_tx().
- Split the registers into two halves in preparation for SBus
  support. [1]

Obtained from: NetBSD (loosely) [1]

16 years agoMFC: r178589
marius [Wed, 11 Jun 2008 20:52:34 +0000 (20:52 +0000)]
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).

16 years agoMFC: r178470
marius [Wed, 11 Jun 2008 19:48:35 +0000 (19:48 +0000)]
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

16 years agoMFC: r179705
ps [Tue, 10 Jun 2008 18:11:14 +0000 (18:11 +0000)]
MFC: r179705
Add support for the P212, P410, P410i, P411, and P812 HP Smart Array
controllers.

16 years agoSynchronize pkg_install with HEAD (20080530)
flz [Tue, 10 Jun 2008 09:55:25 +0000 (09:55 +0000)]
Synchronize pkg_install with HEAD (20080530)

    r179352,179366: don't regenerate packages
    r179433: add long options

16 years agoMFC revisions 172857 through 179688:
marcel [Tue, 10 Jun 2008 03:19:33 +0000 (03:19 +0000)]
MFC revisions 172857 through 179688:
o  Allow building a rescue version (not applicable yet)
o  Add the bootcode verb for installing bootcode.
o  Various manpage updates.

16 years agoMFC rev 179628: Add gctl_delete_param() and gctl_has_param().
marcel [Tue, 10 Jun 2008 03:02:51 +0000 (03:02 +0000)]
MFC rev 179628: Add gctl_delete_param() and gctl_has_param().

16 years agoMFC r176724 through r179687 (geom_part): Module support
marcel [Mon, 9 Jun 2008 19:25:04 +0000 (19:25 +0000)]
MFC r176724 through r179687 (geom_part): Module support

16 years agoMFC r177223 through r179684:
marcel [Mon, 9 Jun 2008 18:51:30 +0000 (18:51 +0000)]
MFC r177223 through r179684:
o  Redefine G_PART_SCHEME_DECLARE() from populating a private
   linker set to declaring a proper module.
o  Add support for PC-9800 partition tables.
o  Change the order from SI_ORDER_FIRST to SI_ORDER_ANY (within
   SI_SUB_DRIVERS) to avoid loading schemes before all the GEOM
   classes have been loaded and initialized.
o  Add the bootcode verb for installing boot code.
o  Implement the G_PART_DUMPCONF method for all 6 schemes.

16 years agoMFC: r179497
jkim [Mon, 9 Jun 2008 18:41:37 +0000 (18:41 +0000)]
MFC: r179497

Fix a crash when Arctic Ocean is selected.

16 years agoMFC rev 177681: Wither GEOMs while retasting.
marcel [Mon, 9 Jun 2008 18:03:48 +0000 (18:03 +0000)]
MFC rev 177681: Wither GEOMs while retasting.

16 years agoMFC rev 177509: Add g_retaste().
marcel [Mon, 9 Jun 2008 17:59:44 +0000 (17:59 +0000)]
MFC rev 177509: Add g_retaste().

16 years agoMFC: r179510 - nlm_global_lock doesn't exist (yet)
dfr [Mon, 9 Jun 2008 12:10:43 +0000 (12:10 +0000)]
MFC: r179510 - nlm_global_lock doesn't exist (yet)

Pointed out by: kib

16 years agoMFC: r179489 - add a missing call to init_nsm().
dfr [Mon, 9 Jun 2008 10:54:55 +0000 (10:54 +0000)]
MFC: r179489 - add a missing call to init_nsm().

16 years agoMFC: r179488 - check for client reboot before executing the lock request
dfr [Mon, 9 Jun 2008 10:51:43 +0000 (10:51 +0000)]
MFC: r179488 - check for client reboot before executing the lock request

16 years agoMFC: Sync restore in RELENG_7 with -current.
dwmalone [Sun, 8 Jun 2008 21:00:25 +0000 (21:00 +0000)]
MFC: Sync restore in RELENG_7 with -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.

16 years agoMFC r179474:
philip [Sun, 8 Jun 2008 09:06:45 +0000 (09:06 +0000)]
MFC r179474:

  Try to detect a Synaptics touchpad before IntelliMouse.  Some touchpads will
  pretend to be IntelliMouse (which have a few more features than generic mice)
  causing the IntelliMouse probe to work and the Synaptics code never to be
  called.

  This should not break "real" IntelliMouse because the Synaptics detection code
  is fairly specific.

PR: kern/120833
Submitted by: Eygene Ryabinkin <rea-fbsd -at- codelabs.ru>

16 years agoUSB is disabled in RELENG_7 PAE; don't try to build USB
adrian [Sat, 7 Jun 2008 09:35:41 +0000 (09:35 +0000)]
USB is disabled in RELENG_7 PAE; don't try to build USB
related devices.

PR:     kern/123619

16 years agoRevert the r179632, it was committed to the wrong branch.
kib [Sat, 7 Jun 2008 05:47:24 +0000 (05:47 +0000)]
Revert the r179632, it was committed to the wrong branch.

16 years agoFix the incorrect calculation of a block address within a single indirect
kib [Sat, 7 Jun 2008 05:42:22 +0000 (05:42 +0000)]
Fix the incorrect calculation of a block address within a single indirect
block.

PR: 108215
Submitted by: Yuichiro Goto, y7goto gmail com
MFC after: 2 weeks

16 years agoPut the svn:mergeinfo on the directory instead of the mount.8.
kib [Fri, 6 Jun 2008 12:28:33 +0000 (12:28 +0000)]
Put the svn:mergeinfo on the directory instead of the mount.8.

16 years agoMFC rev. 1.198 of sys/kern/sys_pipe.c,
kib [Fri, 6 Jun 2008 12:17:28 +0000 (12:17 +0000)]
MFC rev. 1.198 of sys/kern/sys_pipe.c,
    rev. 1.30 of sys/sys/pipe.h
AKA r179243.

Another problem caused by the knlist_cleardel() potentially dropping
PIPE_MTX().

Since the pipe_present is cleared before (potentially) sleeping, the
second thread may enter the pipeclose() for the reciprocal pipe end.
The test at the end of the pipeclose() for the pipe_present == 0 would
succeed, allowing the second thread to free the pipe memory. First
threads then accesses the freed memory after being woken up.

Properly track the closing state of the pipe in the pipe_present.
Introduce the intermediate state that marks the pipe as mostly
dismantled but might be sleeping waiting for the knote list to be
cleared. Free the pipe pair memory only when both ends pass that point.

16 years agoMFC rev. 1.197 AKA r179242:
kib [Fri, 6 Jun 2008 12:04:31 +0000 (12:04 +0000)]
MFC rev. 1.197 AKA r179242:
The pipe_peer that has the knote for write shall be present. Ignore the
pipe_present value for EVFILT_WRITE in filt_pipedetach().

16 years agoMFC rev. 179514 (committed by ru).
kib [Fri, 6 Jun 2008 11:25:03 +0000 (11:25 +0000)]
MFC rev. 179514 (committed by ru).
Fix markup after the rev. 179513.

16 years agoMFC rev. 179513.
kib [Fri, 6 Jun 2008 11:19:54 +0000 (11:19 +0000)]
MFC rev. 179513.
Add note about a reason to use mount(8) instead of mount_somefs.

16 years agoMFC rev. 1.51
stas [Fri, 6 Jun 2008 10:02:43 +0000 (10:02 +0000)]
MFC rev. 1.51

- Add quirk for the TrendNet TU-S9 adapter, which uses new version of PL2303.

Approved by: kib

16 years agoMFC rev. 1.28.
stas [Fri, 6 Jun 2008 09:59:34 +0000 (09:59 +0000)]
MFC rev. 1.28.

- Fix a typo in comment.

Approved by: kib

16 years agoMFC rev. 1.22.
stas [Fri, 6 Jun 2008 09:35:08 +0000 (09:35 +0000)]
MFC rev. 1.22.

- Don't return 0xffff if PHY id isn't equal 0.

16 years agoMFC: r179358,179434 - make libc's fcntl symbol weak and extend the limited
dfr [Fri, 6 Jun 2008 09:09:37 +0000 (09:09 +0000)]
MFC: r179358,179434 - make libc's fcntl symbol weak and extend the limited
forward ABI compatibility for fcntl to the thread libraries.

16 years agoMFC: r179425 - cope better when client NLM port changes
dfr [Fri, 6 Jun 2008 08:54:19 +0000 (08:54 +0000)]
MFC: r179425 - cope better when client NLM port changes

16 years agoMFC r179024: Change a use of u_int32_t to uint32_t.
brooks [Thu, 5 Jun 2008 22:35:07 +0000 (22:35 +0000)]
MFC r179024: Change a use of u_int32_t to uint32_t.

PR: bin/93172

16 years agoMFC: Recode the colemak keymap to ISO-8859.
philip [Thu, 5 Jun 2008 10:50:22 +0000 (10:50 +0000)]
MFC: Recode the colemak keymap to ISO-8859.

16 years agoMFC revision 1.19 with some tweaks to the entry point naming.
csjp [Wed, 4 Jun 2008 16:13:12 +0000 (16:13 +0000)]
MFC revision 1.19 with some tweaks to the entry point naming.

16 years agoBack out previous commit. These entry point names are not
csjp [Wed, 4 Jun 2008 15:58:52 +0000 (15:58 +0000)]
Back out previous commit.  These entry point names are not
valid in this branch.

16 years agoMFC cvs revision 1.19
csjp [Wed, 4 Jun 2008 15:38:28 +0000 (15:38 +0000)]
MFC cvs revision 1.19

Plug a memory leak

16 years agoMFC r179476:
philip [Wed, 4 Jun 2008 08:55:49 +0000 (08:55 +0000)]
MFC r179476:

  Use INSERT_OBJECT_INT_LINK_INDEX macro instead of TAILQ_INSERT_TAIL when
  filling the table of ALTQ queues retrieved from the kernel.

  It is possible for the kernel to return the queues not by pa.altq.qid order.
  When this happens, pf_snmp would only partially fill its table.

PR: bin/120974
Submitted by: Mykola Dzham <i -at- levsha.org.ua>

16 years agoMFC ncurses 5.6-20080503 build glue
rafan [Wed, 4 Jun 2008 07:43:58 +0000 (07:43 +0000)]
MFC ncurses 5.6-20080503 build glue

 rev 174999, 176190, 178869

16 years agoMFC ncurses 5.6-20080503
rafan [Wed, 4 Jun 2008 07:42:51 +0000 (07:42 +0000)]
MFC ncurses 5.6-20080503

 rev 174993, 176187, 178866

16 years ago- Associate myself with ncurses
rafan [Wed, 4 Jun 2008 07:37:39 +0000 (07:37 +0000)]
- Associate myself with ncurses

16 years agoMFC: Introduce FreeBSD 8.0 to mdoc(7).
ru [Wed, 4 Jun 2008 06:05:12 +0000 (06:05 +0000)]
MFC: Introduce FreeBSD 8.0 to mdoc(7).

16 years agoMFC: distfile target, pkg registration optimization
flz [Tue, 3 Jun 2008 14:58:51 +0000 (14:58 +0000)]
MFC: distfile target, pkg registration optimization

    r178032,179377,179520: add distfile target
    r178103,178753-178754: optimize package registration

16 years agoMFC: Make it possible to disable sources of entropy harvesting.
ru [Tue, 3 Jun 2008 11:39:39 +0000 (11:39 +0000)]
MFC: Make it possible to disable sources of entropy harvesting.

16 years agoMFC: Add support for the Colemak keyboard layout from: http://colemak.com/.
philip [Tue, 3 Jun 2008 10:35:23 +0000 (10:35 +0000)]
MFC: Add support for the Colemak keyboard layout from: http://colemak.com/.

Submitted by: Geert Hendrickx <ghen -at- netbsd.org>

16 years agoMFC the change from version 1.189, add a space between a
dougb [Tue, 3 Jun 2008 06:01:30 +0000 (06:01 +0000)]
MFC the change from version 1.189, add a space between a
close quote and the closing bracket of a test.

16 years agoAdd proper mime-types for files that they are relevant for.
dougb [Mon, 2 Jun 2008 20:52:28 +0000 (20:52 +0000)]
Add proper mime-types for files that they are relevant for.
This is useful for things like *.pdf files that svn needs
to know about, and will probably be useful down the road
for other things.

16 years agoMerge rev 179173:
marcel [Sun, 1 Jun 2008 18:04:29 +0000 (18:04 +0000)]
Merge rev 179173:

We can call ia64_flush_dirty() when the corresponding process is
locked or not. As such, use PROC_LOCKED() to determine which case
it is and lock the process when not.

This is a manual merge. No merge history is created.

16 years agoDisown ncurses in 7-stable, as an exporter test.
peter [Sat, 31 May 2008 22:25:43 +0000 (22:25 +0000)]
Disown ncurses in 7-stable, as an exporter test.

16 years agoMFC: sys/conf/files.sparc64 1.95; sys/conf/files.sun4v 1.14;
marius [Fri, 30 May 2008 22:24:34 +0000 (22:24 +0000)]
MFC: sys/conf/files.sparc64 1.95; sys/conf/files.sun4v 1.14;
     sys/sparc64/isa/isa.c 1.21; sys/sparc64/pci/ofw_pci.h 1.12;
     sys/sparc64/pci/ofw_pci_if.m 1.10; sys/sparc64/pci/psycho.c 1.76;
     sys/sun4v/sun4v/hv_pci.c 1.5

Remove the MD isa_irq_pending() and the underlying PCI-specific
infrastructure. Its only consumer ever was sio(4) and thus was
unused on sparc64 since removing the last traces of sio(4) in
sparc64 configuration files in favor for uart(4) over three
years ago. If similar functionality is required again it should
be brought back as an MD intr_pending() which works for all
busses by using for example interrupt controller hooks.

16 years agoMFC: sym_defs.h 1.12; sym_fw.h 1.6; sym_fw1.h 1.9; sym_fw2.h 1.10;
marius [Fri, 30 May 2008 22:00:02 +0000 (22:00 +0000)]
MFC: sym_defs.h 1.12; sym_fw.h 1.6; sym_fw1.h 1.9; sym_fw2.h 1.10;
     sym_hipd.c 1.70

- Const'ify firmware and lookup-tables.
- Obsolete redundant inst_name and unit members of struct sym_hcb.
- Fix three more NULL vs. 0 confusions.
- Use device_set_softc(9) to tell the bus layer that this driver
  allocates a instance of struct sym_hcb itself.

16 years agoMFC: 1.69
marius [Fri, 30 May 2008 20:02:06 +0000 (20:02 +0000)]
MFC: 1.69

- Use bus_{read,write}_*(9) instead of bus_space_{read,write}_*(9)
  in order to get rid of bus space handle and tag in struct sym_hcb.
- Remove unused members related to bus addresses in struct sym_hcb.
- sym(4) takes care of allocating an instance of struct sym_hcb
  itself so don't let newbus allocate it as an unused softc also.
- Add basic MPSAFE locking. This includes changing the sym(4) CCBs
  to be allocated up-front instead of on demand as needed. Besides
  making these allocations more likely to succeed, this also solves
  the problem of calling bus_dmamap_create(9) with the SIM mutex
  held.

16 years agoMFC: 1.68
marius [Fri, 30 May 2008 19:58:23 +0000 (19:58 +0000)]
MFC: 1.68

- Use NULL instead of 0 for pointers.
- Remove superfluous returns in functions returning void.
- In sym_alloc_lcb_tags() return directly instead of jumping
  to a label which just returns.
- Fix some spelling in comments.
- Remove trailing whitespace.

16 years agoMFC: 1.20
marius [Fri, 30 May 2008 19:31:44 +0000 (19:31 +0000)]
MFC: 1.20

- Make failure to route a ISA interrupt non fatal. Apparently the
  Blade 1500/SX1500 boards have inherited the firmware bug of the
  AX1105 mainboards to not include an interrupt map entry for the
  parallel port controller (for the AX1105 the heuristic code for
  E450s probably erroneously kicks in and guesses an interrupt).
- Take advantage of bus_generic_setup_intr(9).
- Fix some whitespace bugs.

16 years agoMFC: bus_common.h 1.8; fhc.c 1.19; intr_machdep.c 1.34 (partial);
marius [Fri, 30 May 2008 19:30:06 +0000 (19:30 +0000)]
MFC: bus_common.h 1.8; fhc.c 1.19; intr_machdep.c 1.34 (partial);
     intr_machdep.h 1.19 (partial); mp_machdep.c 1.40; psycho.c 1.75;
     sbus.c 1.47; upa.c 1.10

o Rename ic_eoi to ic_clear to emphasize the functions it points
  don't send and EOI which works like on amd64/i386 and blocks all
  interrupts on the relevant interrupt controller.
o Replace the post_filter and post_inthread hooks registered when
  creating the interrupt events with just ic_clear as on sparc64 we
  don't need to do any disable->EOI->enable dance to unblock all but
  the relevant interrupt while running the filter or handler; just
  not clearing the interrupt already has the same effect.
o Merge from amd64/i386:
  - Split the intr_table_lock into an sx lock used for most things,
    and a spin lock to protect intrcnt_index.
  - Add support for binding interrupts to CPUs and initial shuffling
    interrupts arround in a round-robin fashion.

16 years agoMFC rev. 1.182
kib [Fri, 30 May 2008 12:27:19 +0000 (12:27 +0000)]
MFC rev. 1.182
Change the fix in the rev. 1.178 to use nfsrv_lockedpair_nd().

16 years agoMFC rev. 1.181:
kib [Fri, 30 May 2008 12:25:29 +0000 (12:25 +0000)]
MFC rev. 1.181:
Initialize vfslocked prior to calling nfsm_srvmtofh where it was forgotten.

16 years agoMFC rev. 1.159:
kib [Fri, 30 May 2008 11:14:35 +0000 (11:14 +0000)]
MFC rev. 1.159:
When vget() fails (because the vnode has been reclaimed), there is no
sense to loop trying to vget() the vnode again.

16 years agoMFC rev. 1.280:
kib [Fri, 30 May 2008 11:13:30 +0000 (11:13 +0000)]
MFC rev. 1.280:

Rev. 1.274 put the ttyrel() call before the destroy_dev() in the
ttyfree(), freeing the tty. Since destroy_dev() may call d_purge()
cdevsw method, that is the ttypurge() for the tty, the code ends up
accessing freed tty structure.

Put the ttyrel() after destroy_dev() in the ttyfree. To prevent the
panic the rev. 1.274 provided fix for, check the TS_GONE in sysctl
handler and refuse to provide information on such tty.

16 years agoMFC rev. 1.279:
kib [Fri, 30 May 2008 11:12:26 +0000 (11:12 +0000)]
MFC rev. 1.279:

The dev_refthread() in the tty_gettp() may fail, because Giant is taken
in the giant_trick routines after the dev_refthread increments the
si_threadcount. Remove assert, do not perform dev_relthread() for failed
dev_refthread(), and handle failure in the tty_gettp() callers (cdevsw
tty methods).

16 years agoMFC rev. 1.214:
kib [Fri, 30 May 2008 11:10:01 +0000 (11:10 +0000)]
MFC rev. 1.214:
Assert that si_threadcount > 0 before decrementing it. This helps catching
the improper use of the dev_refthread/dev_relthread.

16 years agoMFC:
emax [Fri, 30 May 2008 00:37:41 +0000 (00:37 +0000)]
MFC:

Bluetooth SIG is being difficult and keep moving specification
documents away from being public accessible. Replace link to
the Bluetooth specification document with the document name.

Pointed out by: SoftLover < slserg at uic dot tula dot ru >

16 years agoMFC rev. 1.212:
kib [Wed, 28 May 2008 15:41:16 +0000 (15:41 +0000)]
MFC rev. 1.212:
Add the devctl notifications for the cdev create/destroy events.

16 years agoMFC (revision 1.109, requested by kib):
ariff [Wed, 28 May 2008 14:45:05 +0000 (14:45 +0000)]
MFC (revision 1.109, requested by kib):

Release pcm mutex before calling snd_clone_unref(), which in turns might
calling destroy_dev() with sleepable malloc(9). The entire opetation
is being serialized through pcm cv from top down, so dropping mutex is
rather safe.

Reported by: delphij

16 years agoMFC r1.3:
rpaulo [Wed, 28 May 2008 09:19:56 +0000 (09:19 +0000)]
MFC r1.3:
  Update to reflect reality:
    * iasl(8) supports ACPI 3.0b.
    * Add new options.

16 years agoMFC 1.61: Fix RID calculation for Timedia cards.
marcel [Wed, 28 May 2008 03:45:16 +0000 (03:45 +0000)]
MFC 1.61: Fix RID calculation for Timedia cards.

16 years agoIncrement the version namespace for 8.0-current after MFC'ing a
delphij [Tue, 27 May 2008 21:47:13 +0000 (21:47 +0000)]
Increment the version namespace for 8.0-current after MFC'ing a
FBSD_1.1 symbol back to RELENG_7 (MFC of rev. 1.4).

Requested by: deischen

16 years agoMFC: Add memrchr(3).
delphij [Tue, 27 May 2008 20:04:27 +0000 (20:04 +0000)]
MFC: Add memrchr(3).

Obtained from: OpenBSD

16 years agoMFC to RELENG_7:
antoine [Tue, 27 May 2008 18:34:20 +0000 (18:34 +0000)]
MFC to RELENG_7:
  Move "1000baseT" from IFM_SUBTYPE_ETHERNET_DESCRIPTIONS to
  IFM_SUBTYPE_ETHERNET_ALIASES: there is already "1000baseTX" in
  IFM_SUBTYPE_ETHERNET_DESCRIPTIONS.  This doesn't change ifconfig
  behaviour.

  PR:             45793 (maybe)
  Approved by:    rwatson (mentor)
  MFC after:      1 month

16 years agoMFC to RELENG_7:
antoine [Tue, 27 May 2008 18:27:51 +0000 (18:27 +0000)]
MFC to RELENG_7:
  Record the dependency of the iscsi initiator on cam.

  PR:             116745
  Submitted by:   OISHI Masakuni
  Approved by:    rwatson (mentor)
  MFC after:      1 month

16 years agoMFC:
gabor [Mon, 26 May 2008 19:27:32 +0000 (19:27 +0000)]
MFC:
  hu_HU.ISO8859-2.src r1.9
  hu_HU.UTF-8.src r1.4

- The names of the months and the days are in lowercase according to the
  Hungarian spelling, change them accordingly

16 years agoMFC rev. 1.278:
kib [Mon, 26 May 2008 11:03:30 +0000 (11:03 +0000)]
MFC rev. 1.278:
Use the t_state for the TS_GONE test.

16 years agoMFC r1.208:
rpaulo [Sun, 25 May 2008 14:37:33 +0000 (14:37 +0000)]
MFC r1.208:
  devctl_process_running(): Check for devsoftc.inuse == 1 instead of
  devsoftc.async_proc != NULL because the latter might not be true
  sometimes.
  This way /etc/rc.suspend gets executed.

  Reviwed by:     njl
  Submitted by:   Mitsuru IWASAKI <iwasaki at jp.FreeBSD.org>
  Tested also by: Andreas Wetzel <mickey242 at gmx.net>

16 years agoMFC revision 1.46:
attilio [Sun, 25 May 2008 14:16:28 +0000 (14:16 +0000)]
MFC revision 1.46:
lockinit() can't accept LK_EXCLUSIVE as a flag.

16 years agoMFC revision 1.293
alc [Sun, 25 May 2008 07:00:07 +0000 (07:00 +0000)]
MFC revision 1.293
  Add a read/write sysctl for reconfiguring the maximum number of physical
  pages that can be wired.

PR: 114654

16 years agoMFC: if_bgereg.h rev. 1.79
bz [Sat, 24 May 2008 10:23:35 +0000 (10:23 +0000)]
MFC: if_bgereg.h rev. 1.79
     if_bge.c rev. 1.205, 1.209, 1.210

  Summary:
  In some situations we were not clearing pending link state attentions.
  Because of this we were not getting further interrupts for link state
  changes, thus never went into iface UP state and thus could not transmit.

  The only way out of this was an incoming packet generating an rx interrupt
  and making us call into bge_link_upd.

  What we do now is force an interrupt at the end of bge_ifmedia_upd_locked
  so we will call bge_link_upd, clear the link state attention and get
  further interrupts.

  While the initial version was not expected to work with all chips
  the later update in rev. 1.210 is.

PR:                             kern/111804
Tested by:                      phk, scottl (initial version)
Thanks for your help to:        davidch, Broadcom

16 years agoMFC: rev. 1.287 ata-all.c
bz [Sat, 24 May 2008 10:15:20 +0000 (10:15 +0000)]
MFC: rev. 1.287 ata-all.c

  devclass_get_maxunit() returns n+1 with n starting at 0.
  So if we have channel 0..3  devclass_get_maxunit is 4.

  It's never been a problem as devclass_get_device() has
  caught any possibly bad input.