]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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.

16 years agoMFC: rev. 1.6
bz [Sat, 24 May 2008 10:13:07 +0000 (10:13 +0000)]
MFC: rev. 1.6

  Add ';' missed with the SYSINIT changes.
  Not noticed by tb as TCP_SIGNATURE is not in LINT.

  (this MFC ahead of the MFC of the other SYSINIT ';' chnages)

16 years agoMFC rev. 1.120:
kib [Sat, 24 May 2008 03:36:19 +0000 (03:36 +0000)]
MFC rev. 1.120:
Kqueue_scan() may sleep when encountered the influx knotes. On the other
hand, it may cause other threads to sleep since kqueue_scan() may mark
some knotes as infux. This could lead to the deadlock.

Before kqueue_scan() sleeps, wakeup the threads that are waiting for the
influx knotes produced by this thread.

16 years agoMFC rev. 1.119:
kib [Sat, 24 May 2008 03:35:13 +0000 (03:35 +0000)]
MFC rev. 1.119:
The kqueue_close() encountering the KN_INFLUX knotes on the kq being
closed is the legitimate situation. For instance, filedescriptor with
registered events may be closed in parallel with closing the kqueue.
Properly handle the case instead of asserting that this cannot happen.

16 years agoMFC revision 1.52
delphij [Sat, 24 May 2008 00:42:53 +0000 (00:42 +0000)]
MFC revision 1.52
date: 2008/05/10 01:27:23;  author: delphij;  state: Exp;  lines: +6 -0

Add support for LSI 1078DE (ServeRAID-AR10is SAS/SATA Controller)

16 years agoMFC: Teach truss about 32-bit FreeBSD and Linux binaries on amd64.
jhb [Fri, 23 May 2008 20:04:55 +0000 (20:04 +0000)]
MFC: Teach truss about 32-bit FreeBSD and Linux binaries on amd64.

16 years agoMFC revision 1.6
lulf [Fri, 23 May 2008 15:39:27 +0000 (15:39 +0000)]
MFC revision 1.6
- Recognize the 'volume' parameter when creating a plex.

16 years agoMFC: Add an ability to run man(1) on local files plus add limited
ru [Thu, 22 May 2008 07:30:32 +0000 (07:30 +0000)]
MFC: Add an ability to run man(1) on local files plus add limited
support for bzip2-compressed manpages.

PR: bin/120730

16 years agoPrimary a delta to pick up the missing UNLOCK in the watchdog
jfv [Wed, 21 May 2008 21:34:05 +0000 (21:34 +0000)]
Primary a delta to pick up the missing UNLOCK in the watchdog
code, this can cause a panic due to a recusion on the TX Lock.
Also sync up other changes in HEAD, all trivial, added PCI ID
and #ifdef's to make the driver compile on 6.3.

16 years agoMFC rev 1.163 umass.c, 1.354 usbdevs
remko [Wed, 21 May 2008 14:22:03 +0000 (14:22 +0000)]
MFC rev 1.163 umass.c, 1.354 usbdevs

  Add support for the Nikon D300 camera

  PR:             usb/118741
  Submitted by:   Yuri <yuri at tsoft dot com>
  Approved by:    imp (mentor, implicit)
  MFC after:      3 days

Approved by: imp (mentor, implicit)
Facilitated by: Snow B.V.

16 years agoMerge uipc_sem.c:1.31 from HEAD to RELENG_7:
rwatson [Wed, 21 May 2008 13:36:48 +0000 (13:36 +0000)]
Merge uipc_sem.c:1.31 from HEAD to RELENG_7:

  Attempt to improve convergence of POSIX semaphore code with style(9).

16 years agoMFC: bsdtar can now use archive_entry_strmode(), since the latter has
kientzle [Wed, 21 May 2008 04:18:49 +0000 (04:18 +0000)]
MFC:  bsdtar can now use archive_entry_strmode(), since the latter has
been in 7-STABLE since Feb 2008.

16 years agoMFC: Numerous test updates.
kientzle [Wed, 21 May 2008 04:14:39 +0000 (04:14 +0000)]
MFC:  Numerous test updates.

16 years agoMFC: New manpage links and turn on the compress write support.
kientzle [Wed, 21 May 2008 04:14:10 +0000 (04:14 +0000)]
MFC: New manpage links and turn on the compress write support.

16 years agoMFC: updates to the public API plus an attempt to straighten out versioning.
kientzle [Wed, 21 May 2008 04:13:43 +0000 (04:13 +0000)]
MFC: updates to the public API plus an attempt to straighten out versioning.

16 years agoMFC: some documentation corrections and updates.
kientzle [Wed, 21 May 2008 04:12:57 +0000 (04:12 +0000)]
MFC: some documentation corrections and updates.

16 years agoMFC: A number of interrelated changes that I'm too tired to tease
kientzle [Wed, 21 May 2008 04:12:29 +0000 (04:12 +0000)]
MFC:  A number of interrelated changes that I'm too tired to tease
apart into separate MFCs.  These have all been in -CURRENT for
quite some time.

16 years agoMFC: write support for 'compress' format.
kientzle [Wed, 21 May 2008 04:11:11 +0000 (04:11 +0000)]
MFC: write support for 'compress' format.

16 years agoMFC: Some changes to 'ar' format support from Kai Wang.
kientzle [Wed, 21 May 2008 04:07:35 +0000 (04:07 +0000)]
MFC: Some changes to 'ar' format support from Kai Wang.

16 years agoMFC:
mtm [Tue, 20 May 2008 15:27:24 +0000 (15:27 +0000)]
MFC:
Specify the full path to the md5(1) binary so the script will
still work even if it's not in the shell's path.
PR: conf/122215

16 years agoMFC:
dwmalone [Tue, 20 May 2008 11:32:03 +0000 (11:32 +0000)]
MFC:
Dummynet has a limit of 100 slots queue size (or 1MB, if you give
the limit in bytes) hard coded into both the kernel and userland.
Make both these limits a sysctl, so it is easy to change the limit.

16 years agoMerge mac.c:1.13, mac_exec.c:1.3, mac_get.c:1.6, mac_set.c:1.4 from HEAD
rwatson [Tue, 20 May 2008 11:25:00 +0000 (11:25 +0000)]
Merge mac.c:1.13, mac_exec.c:1.3, mac_get.c:1.6, mac_set.c:1.4 from HEAD
to RELENG_7:

  Add __FBSDID() tags.

16 years agoMFC:
dwmalone [Tue, 20 May 2008 11:17:51 +0000 (11:17 +0000)]
MFC:
If we are walking the IPv6 header chain and we hit an IPPROTO_NONE
header, then don't try to pullup anything, because there is no next
header if we hit IPPROTO_NONE. Set ulp to a non-NULL value so the
search for an upper layer header terinates.

16 years agoMerge busspace.9:1.5 from HEAD to RELENG_7:
rwatson [Tue, 20 May 2008 10:52:52 +0000 (10:52 +0000)]
Merge busspace.9:1.5 from HEAD to RELENG_7:

  Minor spelling/grammer fixes.

16 years agoMerge kern_priv.c:1.5 from HEAD to RELENG_7:
rwatson [Tue, 20 May 2008 10:52:19 +0000 (10:52 +0000)]
Merge kern_priv.c:1.5 from HEAD to RELENG_7:

  Add __FBSDID() tag.

  Pointed out by: antoine

16 years agoMFC: moused.c rev 1.84
philip [Tue, 20 May 2008 10:48:26 +0000 (10:48 +0000)]
MFC: moused.c rev 1.84
     moused.8 rev 1.62

    Improve the virtual scrolling mechanism to make middle clicking less
    difficult.  Add a -L option (yet another option, indeed!) which changes
    the speed of scrolling and change -U to only affect the scroll threshold.

    This should make middle-clicking a much more pleasant experience.

Submitted by: Aragon Gouveia <aragon -at- phat.za.net>