121976 Commits

Author SHA1 Message Date
rwatson
5c2c353dae Merge uipc_usrreq.c:1.169 from HEAD to RELENG_6:
Remove unused (and ifdef'd) unp_abort() and unp_drain().
2007-05-08 08:10:37 +00:00
grog
5bc67052af RFC:
Add -A flag to adjust existing time stamps.
Print name by which program was started in usage() message.
2007-05-08 02:31:56 +00:00
simokawa
75cd306e8e MFC:
- Simplify tlabel handling.
- Remove unused fw_asybusy().
- Add a sysctl knob to disable cycle master mode and add some comments.
- Fix broken userland API for async packets.
- Fix typo in recv spd.
- Update state in fw_xferq_dorain() after removed from the send queue.
- Remove unnecessary 'goto err;".
- Improve asynchronous packet receive process.
2007-05-07 08:00:21 +00:00
simokawa
3b547a40aa MFC: Free tlabel in fw_xfer_done(). 2007-05-07 06:35:23 +00:00
simokawa
9d8e9398de MFC:
- Detect cycle lost.
- Less verbose debug messages.
- Remove xfer->retry_req.
- Remove retry_count.
- Replace xfer->act.hand with xfer->hand.
2007-05-07 06:20:49 +00:00
simokawa
fe1652dcc5 MFC: Configuration ROM length should be unsigned. 2007-05-07 06:01:25 +00:00
simokawa
907d5b7e08 MFC:
Initialize configuration ROM before a bus reset.
2007-05-07 05:42:45 +00:00
alc
0aabd82211 MFC a change to pmap_copy() that was overlooked because revision 1.583
was MFCed before revision 1.540.
2007-05-06 18:36:57 +00:00
alc
2281ae7e91 MFC Revision 1.531 of pmap.c:
Avoid unnecessary differences between the amd64 and i386
  format strings.

MFC Revision 1.577 of pmap.c:
  Use a different bitmask for superpages' base address so that it
  doesn't conflict with the PG_PDE_PAT bit.
2007-05-06 05:23:19 +00:00
alc
ccd01b0033 MFC Revision 1.538:
Remove stale KSE code.

MFC Revision 1.551:
  In general, bits in the page directory entry (PDE) and the page table
  entry (PTE) have the same meaning.  The exception to this rule is the
  eighth bit (0x080).  It is the PS bit in a PDE and the PAT bit in a
  PTE.  This change avoids the possibility that pmap_enter() confuses a
  PAT bit with a PS bit, avoiding a panic().

  Eliminate a diagnostic printf() from the i386 pmap_enter() that serves
  no current purpose.

MFC Revision 1.559:
  Eliminate a comment that became stale after revision 1.540.

MFC Revision 1.575:
  Finish the PG_NX support at the pmap level.

MFC Revision 1.582:
  Eliminate the misuse of PG_FRAME to truncate a virtual address
  to a virtual page boundary.
2007-05-06 00:34:43 +00:00
alc
8bceade346 MFC
Acquiring smp_ipi_mtx on every call to pmap_invalidate_*() is wasteful.
  For example, during a buildworld more than half of the calls do not
  generate an IPI because the only TLB entry invalidated is on the calling
  processor.  This revision pushes down the acquisition and release of
  smp_ipi_mtx into smp_tlb_shootdown() and smp_targeted_tlb_shootdown() and
  instead uses sched_pin() and sched_unpin() in pmap_invalidate_*() so that
  thread migration doesn't lead to a missed TLB invalidation.
2007-05-05 21:13:16 +00:00
alc
85dce1c411 MFC Revision 1.530
Replace diagnostic printf()s by assertions.  Use consistent style
  for similar assertions.

MFC Revision 1.540
  Introduce pmap_try_insert_pv_entry().

  Use pmap_try_insert_pv_entry() in pmap_copy() instead of
  pmap_insert_entry().

  Eliminate the explicit low-memory checks in pmap_copy().

MFC Revision 1.544
  Retire pmap_track_modified().

MFC Revision 1.555
  Introduce the function pmap_enter_object().

MFC Revision 1.558 (in part)
  Change pmap_enter_quick_locked() to fail rather than wait if it is
  unable to allocate a page table page.  Similarly, change
  pmap_enter_quick_locked() to call pmap_try_insert_pv_entry() rather
  than pmap_insert_entry().

  Add an assertion that the object containing m_start is locked in
  pmap_enter_object().  Remove a similar assertion from
  pmap_enter_quick_locked() because that function no longer accesses
  the containing object.

  Remove a stale comment.
2007-05-05 18:58:22 +00:00
njl
731f339f62 MFC: enable i810 (including i915, i945, etc) on amd64 2007-05-04 22:04:41 +00:00
le
629548e8df MFC 1.61:
Accept passwords which contain whitespace.

   PR:     bin/53434
2007-05-04 17:36:37 +00:00
le
541cc21417 MFC all changes regarding new option -M. 2007-05-04 17:33:04 +00:00
le
fdfcea55af MFC 1.8:
Do the right thing with symlinks in the skeleton directory.

    PR:     bin/63659
2007-05-04 17:22:26 +00:00
le
20d43e2352 MFC 1.28:
Check if the new user already exists right after entering the
   username instead of watching the final call to pw(8) fail.
2007-05-04 17:17:24 +00:00
rafan
79734cf437 MFC: s/jail id/jail ID/ in top
- s/jail id/jail ID/, acronyms should be in uppercase in general. Also,
    it is written this way in jail(8).

Suggested by:	brueffer
Approved by:	delphij (mentor, implicit)
2007-05-04 15:45:13 +00:00
rafan
3a424b4dd1 - Add top '-j' switch
Reviewed by:	brueffer
Approved by:	delphij (mentor, implicit), brueffer
2007-05-04 15:25:05 +00:00
roam
f8b9bf74d6 MFC rev. 1.35 - remove MSG_PEEK from the description of the send(2)
syscall; it is only relevant for incoming data.
2007-05-04 09:06:59 +00:00
stas
00a01edad7 - MFC up to 1.106:
* add hpiod and hpssd (1.106)
  * add amanda control tcp port (1.105)
  * sync xmmp service names with IANA (1.104).
2007-05-03 22:39:24 +00:00
sobomax
c13177e47b Regen after addition of 32bit versons of getcontext, setcontext and
swapcontext.
2007-05-03 11:18:44 +00:00
sobomax
9c8e38c33f MFC: Implement 32 bit getcontext/setcontext/swapcontext on amd64. Still
stubs for ia64 to keep it compiling.  These are used by 32 bit apps such
as gdb.
2007-05-03 11:13:58 +00:00
yar
3036ea3146 MFC rev. 1.32:
Fix a typo: argv -> argvp.

  Rationale:
  We are interested in the current (last) element of the argv array
  there, not in its first element. [...]

  Also add a comment that the argv array ends up null-terminated in
  any case (it's due to the design of the for loop) as an answer to
  a possible question why the whole argv isn't zero-filled.
2007-05-03 09:56:51 +00:00
thomas
87397c1304 MFC rev. 1.52:
(atapi_cb): Fix test for the presence of sense data. An incorrect condition
 was being tested, which would result in a system hang in some configurations.

PR:	kern/112119
2007-05-03 09:38:54 +00:00
jhb
9efecdd6e1 Argh, fix a mis-merge.
Reported by:	kib
2007-05-02 20:16:29 +00:00
jhb
3b4d101cd7 MFC: Honor the BUS_DMA_NOCACHE flag to bus_dmamem_alloc() on amd64 and
i386 by mapping the pages as UC (uncacheable) using pmap_change_attr().

Requested by:	ariff
2007-05-02 18:48:18 +00:00
jhb
83beae72fc MFC: Initial PAT support including the following:
- New pmap_mapdev_attr() function for amd64 and i386.
- pmap_mapdev() on i386 and amd64 uses UC now rather than WB.
- New pmap_mapbios()/pmap_unmapbios() functions to map firmware tables.
- New pmap_change_attr() function for amd64 and i386.
- Bump __FreeBSD_version.
2007-05-02 18:42:47 +00:00
jhb
6950f85892 MFC: Add various constants for the PAT MSR and the PAT PTE and PDE flags
and initialize the PAT MSR during boot.
2007-05-02 16:16:57 +00:00
jhb
c39819f05f MFC: Add 'pmap_invalidate_cache()'. 2007-05-02 15:40:15 +00:00
jhb
ced84431d1 MFC: Comment fix in 1.110. 2007-05-02 15:27:24 +00:00
jhb
94057636e9 MFC: Comment fixes in 1.106 and 1.107. 2007-05-02 15:22:20 +00:00
jhb
bb88c2f7b4 MFC: Various fixes to NFS DirectIO support. 2007-05-02 15:15:51 +00:00
yar
be8a714fcf MFC rev. 1.35-1.41: Clean up and update the HARDWARE section. 2007-05-02 10:26:32 +00:00
njl
11b357b667 MFC: rate-check the interrupt storm message and bump the counter 500 -> 1000 2007-05-02 06:15:13 +00:00
marcel
dc8d1b8e71 MFC rev 1.21: match all system-devices; don't stop after the first match. 2007-05-01 18:08:51 +00:00
marcel
6e66c3963e MFC rev 1.15: When writing to PCI configuration registers, don't
immediately read the same register back.
2007-05-01 18:07:28 +00:00
emax
a1e93390d0 MFC:
Retire /usr/share/examples/netgraph/bluetooth/rc.bluetooth.
2007-05-01 16:50:03 +00:00
rafan
d2d2482d63 MFC the top -j switch:
- Add a new 'j' switch and runtime option to toggle display jail id for
   each process.

 src/contrib/top/commands.c: 1.13
 src/contrib/top/machine.h: 1.8
 src/contrib/top/top.X: 1.18
 src/contrib/top/top.c: 1.21 and 1.22 (-j part)
 src/usr.bin/top/machine.c: 1.80

PR:		98489, 99631
Submitted by:	clsung
Approved by:	delphij (mentor)
2007-05-01 15:44:19 +00:00
marius
84a48b639f MFC: psycho.c 1.61; psychoreg.h 1.12
o Changes to psycho_attach(): [1]
  - Clear the PCI AFSR and status error bits as previous errors still
    might be indicated.
  - Set up the PCI control and diagnostic registers according to the
    capabilities, workarounds, etc of/for specific revisions of the
    supported bridges. This includes no longer setting Hummingbird-/
    Sabre-specific bits in the PCI control register but preserving
    what the firmware has initialized them to like OpenSolaris does.
    Previously we were setting these bits according to the example in
    the Sabre documentation, which I doubt is appropriate for all
    Sabre based designs and especially not for Hummingbirds. This
    also includes not enabling bus parking unless the firmware tells
    us to.
  - Set the PCI latency timer register as this isn't always done by
    the firmware.
o Remove a redundant argument from psycho_set_intr() and in this
  function check the return value of bus_setup_intr(). [2]
o Let psycho_setup_intr() return ENOMEM instead of 0 when it can't
  allocate memory for the interrupt wrapper stub and EINVAL instead
  of 0 if it can't find the interrupt vector in the interrupt map.
o Add a workaround for a bug of the Sabre-APB-combination where it
  doesn't drain DMA write data for devices behind additional PCI-PCI
  bridges underneath the APB PCI-PCI bridge. This workaround (do
  things necessary in order to achieve a manual drain when coherency
  is required) is currently implemented in psycho_setup_intr() and
  psycho_intr_stub() due to lack of a real BUS_GET_DMA_TAG() and
  psycho(4)-specific bus_dma_tag_create() and bus_dmamap_sync()
  methods, respectively, in RELENG_6 and therefore is only applied
  for interrupt handlers but not for polling(4) callbacks. [3]
o Fix some minor style issues.

Info from:	OpenSolaris [1]
Info from:	Linux, OpenBSD, OpenSolaris [3]
Suggested by:	Coverity Prevent (CID 682) [2]
2007-05-01 13:31:33 +00:00
yar
676ef2544f MFC rev. 1.74: Remove references to S/Key and list OPIE. 2007-05-01 11:46:29 +00:00
yar
8751e4a7b1 MFC:
ftpd.c		1.212
	ftpcmd.y	1.66
	ftpd.8		1.72-1.73

Add support for RFC 2389 (FEAT) and RFC 2640 (UTF8) to ftpd(8).

PR:	bin/111714
2007-05-01 11:40:44 +00:00
simokawa
749779246d MFC: rev 1.12
If compressed length is zero, return a zero-filled block.
2007-05-01 03:01:15 +00:00
marius
9670b8538b MFC: brgphy.c 1.67; miidevs 1.42
Let brgphy(4) attach for the Broadcom BCM5755 ASIC based chipsets
as well.

Obtained from:	OpenBSD
2007-04-30 20:59:57 +00:00
jhb
90476e0ae8 MFC: Handle HyperTransport MSI mapping window fixed-window flag. 2007-04-30 17:58:23 +00:00
jhb
71a6651ba1 MFC: Various fixes to cpu_reset_real()
- Try to use the reset control register (I/O port 0xcf9) and the fast a20
  and init register (I/O port 0x92) if the keyboard reset fails.
- Fix the triple fault to actually work when PGE is enabled.
2007-04-30 17:45:44 +00:00
brueffer
54240bc219 MFC:
New release notes:
- edsc(4) added

Modified release notes:
- ncurses was updated from version 5.2-20020615
- MSI-X supported as well, remove ref to pci(4) manpage, which is
  different from the kernel's PCI code
2007-04-30 15:41:00 +00:00
yar
21c3f17ad1 MFC rev. 1.30:
Insert explicit space between the output fields to prevent them
  from running together when a field overflows.
2007-04-30 05:58:08 +00:00
ceri
46717d4185 MFC r1.32:
cipher(3) is gone.
2007-04-29 21:43:09 +00:00
dwmalone
131c23f425 MFC calendar from with -current and remove some undeeded break statements. 2007-04-29 20:14:19 +00:00