Commit Graph

119711 Commits

Author SHA1 Message Date
keramida
5b9a869f59 The malloc(3) manual page claim the options 'J' and 'Z' imply 'R'
option, but this is not true for RELENG_6.

PR:		docs/99231
Submitted by:	Dan Lukes <dan@obluda.cz>
2006-06-20 23:42:29 +00:00
alfred
f34c6266e1 MFC: don't deref NULL for really old modules. 2006-06-20 19:56:26 +00:00
brueffer
e6fbfe0f85 MFC: rev. 1.32
- Bring the hardware list up to date
- Convert to our standard SYNOPSIS layout
- Remove the kld from FILES, it's now mentioned in the SYNOPSIS
- Remove useless .Pp call at eof
2006-06-20 05:04:58 +00:00
marius
6e104cdc99 MFC: 1.17
- Declare the PnP map const.
- Add devices found in V210 to the PnP map.
- Don't leak memory if we didn't find a match for a node in the PnP map.
2006-06-19 20:20:24 +00:00
brueffer
227a0d1eb4 MFC: rev. 1.19
my(4) provides support now as well.
2006-06-19 19:43:04 +00:00
brueffer
42c28672b3 MFC: rev. 1.38
Add altq(4) support.

Approved by:	rwatson (mentor)
2006-06-19 19:40:59 +00:00
brueffer
ab322511bd MFC rev. 1.14
Mention that the powernow driver also supports AMD Cool'n'Quiet.
2006-06-19 04:44:20 +00:00
netchild
fe53373c91 MFC: sync with -current
- usbdevs:	upto 1.261
	- uscanner.c:	upto 1.71
	- umodem.c:	upto 1.58
	- uvisor.c:	upto 1.26
	- uhid.c:	upto 1.81
	- umass.c:	only the vendor renaming in the quirks
	- umct.c:	upto 1.10
	- uplcom.c:	upto 1.32
	- uvscom.c:	upto 1.27

This brings support of some more scanners, modems, a PDA, a fix for uplcom
and some cosmetic changes.
2006-06-18 20:13:44 +00:00
marius
743638d943 MFC: am7990.c 1.3, am79900.c 1.3, if_le_ledma.c 1.2, if_le_pci.c 1.2 - 1.4,
lance.c 1.2, lancereg.h 1.2, lancevar.h 1.2

- Rearrange the code related to RX interrupt handling so that ownership of
  RX descriptors is immediately returned to the NIC after we have copied
  the data of the hardware, allowing the NIC to already reuse the descriptor
  while we are processing the data in ifp->if_input(). This results in a
  small but measurable increase in RX throughput.
  As a side-effect, this moves the workaround for the LANCE revision C bug
  to am7900.c (still off by default as I doubt we will actually encounter
  such an old chip in a machine running FreeBSD) and the workaround for the
  bug in the VMware PCnet-PCI emulation to am79000.c, which is now also
  only compiled on i386 (resulting in a small increase in RX throughput on
  the other platforms).
- Change the RX interrupt handlers so that the descriptor error bits are
  only check once in case there was no error instead of twice (inspired
  by the NetBSD pcn(4), which additionally predicts the error branch as
  false).
- Fix the debugging output of the RX and TX interrupt handlers; while
  looping through the descriptors print info about the currently processed
  one instead of always the previously last used one; remove pointless
  printing of info about the RX descriptor bits after their values were
  reset.
- Create the DMA tags used to allocate the memory for the init block,
  descriptors and packet buffers with the alignment the respective NIC
  actually requires rather than using PAGE_SIZE unconditionally. This might
  as well fix the alignment of the memory as it seems we do not inherit
  the alignment constraint from the parent DMA tag.
- For the PCI variants double the number of RX descriptors and buffers
  from 8 to 16 as this minimizes the number of RX overflows im seeing with
  one NIC-mainboard combination. Nevertheless move reporting of overflows
  under debugging as they seem unavoidable with some crappy hardware.
- Add a comment regarding usage of ILACC vs. PCnet-PCI mode.
- Fix the driver name part in the MODULE_DEPEND of the PCI front-end for
  ether.
- Use different device descriptions for PCnet-Home and PCnet-PCI.
- Fix some 0/NULL confusion in lance_get().
- Use bus_addr_t for sc_addr and bus_size_t for sc_memsize as these are
  more appropriate than u_long for these.
- Remove the unused LE_DRIVER_NAME macro.
- Add a comment describing why we are taking the LE_HTOLE* etc approach
  instead of using byteorder(9) functions directly.
- Improve some comments and fix some wording.
2006-06-18 15:43:18 +00:00
simon
ba2fc924fa MFC 1.3:
The monetary decimal point (mon_decimal_point) for pt_PT.ISO8859-1
should be a comma (,) and not a dot (.).
2006-06-18 15:37:59 +00:00
marius
d359ffe76a MFC: 1.1.1.13
* elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): When linking a
non-shared object, do not reserve space in .plt and .rela.plt
for regular symbols neither defined nor referenced in shared objects.
2006-06-18 14:48:36 +00:00
silby
7cf19da114 MFC if_bfe.c revs 1.37 through 1.40 and if_bfereg.h rev 1.10. This should
finally put the issues the bfe driver has with > 1G machines to rest.

Note that these changes are dependant on changes which have been made
to busdma, so merging just this patch to releng_6_1 or releng_5 will
be ineffective.
2006-06-18 06:23:14 +00:00
silby
92647f5175 MFC revs 1.74 through 1.77:
- Allow bus_dmamap_load to return ENOMEM
        - Do a better job with alignment, and warn if we fail to align
2006-06-18 06:16:16 +00:00
silby
4c9c3f1a8d MFC revs 1.77 through 1.80:
- Allow bus_dmamap_load to return ENOMEM
	- Do a better job with alignment, and warn if we fail to align
2006-06-18 06:14:27 +00:00
bmah
5243c5a33a New release note: Bugfix for IPv6 NDP point-to-point issue.
MFC:  ipmi(4), nve(4) ALTQ, sk(4) MPSAFE, Linux emulation uses FC4.
2006-06-18 04:56:03 +00:00
rodrigc
e122f21ee1 MFC: msdosfs_vfsops.c:1.150, ntfs_vfsops.c:1.83, udf_vfsops.c:1.41
ext2_vfsops.c:1.157, cd9660_vfsops.c:1.145, ffs_vfsops.c:1.314,
     reiserfs_vfsops.c:1.5

  Remove calls to vfs_export() for exporting a filesystem for NFS mounting
  from individual filesystems.  Call it instead in vfs_mount.c,
  after we call VFS_MOUNT() for a specific filesystem.
2006-06-17 20:02:28 +00:00
rodrigc
a5f9933adf MFC: 1.78, 1.79
Remove incorrect null_checkexp() routine.  This
will allow the NFS server to call vfs_stdcheckexp() on the exported nullfs
filesystem, not the underlying filesystem being nullfs mounted.
If the lower filesystem was not NFS exported, then the NFS exported
null filesystem would not work.
Modify MNT_UPDATE behavior for nullfs so that it does not
return EOPNOTSUPP if an "export" parameter was passed in.
This should allow nullfs mounts to be NFS exported.

PR:             kern/87906
2006-06-17 18:17:26 +00:00
gnn
2443e18541 MFC 1.61 in6.c
1.65 nd6.c

Fix spurious warnings from neighbor discovery when working with IPv6 over
point to point tunnels (gif).

PR:             93220
Submitted by:   Jinmei Tatuya
2006-06-17 17:58:33 +00:00
gnn
1b59068b4f MFC a forgotten fix
Make sure that there actually is a next packet before setting
nextrecord to that field.

PR: 83885
Submitted by: hirose@comm.yamaha.co.jp
2006-06-17 17:47:05 +00:00
mlaier
5086a51b85 MFC:
ALTQ-ify nve(4).

  Submitted by:   Chris Dionissopoulos
2006-06-17 16:46:04 +00:00
rodrigc
b1311a5d14 MFC 1.316 (substitute vfs_mount_error for printf):
Check the sectorsize of the underlying disk before trying to
bread() the UFS superblock.  Should eliminate crashes when trying
to do: mount -t ufs on an audio CD.

PR:             kern/85893
Reported by:    Russell Francis <rfrancis at ev dot net>
2006-06-17 14:58:59 +00:00
mjacob
5e5961f729 MFC 1.34: support for FC919X 2006-06-17 12:48:27 +00:00
maxim
88541f48e4 MFC rev. 1.52: vinum.8 -> gvinum.8 translation. 2006-06-17 12:38:43 +00:00
maxim
cca65d398e MFC rev. 1.8: add missed $start variable in the grep statement. 2006-06-17 12:36:12 +00:00
bmah
a1060e6806 New release notes (not merged from HEAD): UMA memory allocation stats
bug fix, quota/snapshot deadlock fix, NFS server Giant-leak fix,
rc.d/jail bugfixes.

MFC:  pc98 CDROM bootloader, linsysfs(5).

The "new" release notes all fix problems noted in the 6.1 errata, so
they probably should be mentioned.
2006-06-17 04:57:12 +00:00
bmah
88bbe01aa9 New errata: NFS server slowdown. 2006-06-17 04:31:40 +00:00
jhb
d426800e18 MFC: Change msleep() and tsleep() to not alter the calling thread's
priority if the specified priority is zero.
2006-06-16 22:11:55 +00:00
bmah
eb41d55d9b Note that we have a fix for the IPv6-on-point-to-point links issue
(committed to HEAD).  Fix an unrelated typo.
2006-06-16 21:30:41 +00:00
nyan
0fd290882b MFC: revision 1.10 and 1.11.
- Add Fn+F7 hotkey (suspend) support.
2006-06-16 14:05:13 +00:00
ambrisko
624da76ff4 Add in bus_if.h device_if.h to make pc98 build happy. 2006-06-16 13:53:39 +00:00
nyan
af0ed456ff Add the cdboot for pc98 to the right place, and remove wrong files.
Pointy hat to:	nyan
2006-06-16 13:40:50 +00:00
kib
5cd171117e MFC rev. 1.12 of setfacl.c, rev. 1.15,1.16 of setfacl.1.
Copy filename read from the stdin into the private buffer.
Document the way to get list of files to process from the stdin.

Approved by:	kan (mentor)
2006-06-16 13:33:02 +00:00
nyan
9bec627b8f MFC: Add a bootable CD support. 2006-06-16 13:14:15 +00:00
ambrisko
646980d768 Not my day, try to get this really checking into 6.X 2006-06-15 21:12:15 +00:00
ambrisko
a2a15d9794 Forgot to bring this fix into my commit tree to include opt_compat.h.
This should unbreak the amd64 build.
2006-06-15 19:08:03 +00:00
ambrisko
58d502c1bf MFC, let's hook up things to the build and see what I messed up!
- enable linsysfs
      - enable mfi_linux
      - enable ipmi
A new make universe will be fired off shortly once this makes it back
via cvsup.
2006-06-15 17:57:50 +00:00
ambrisko
0320e0687d MFC a bunch of fixes:
- Make amr_linux work as a module by avoiding calling amr_linux_ioctl_int
   from the amr_linux.  This simplifies the amr_linux shim and puts the
   smarts into amr.c.
 - 1.76 - 1.77 of amr.c (race conditions).
 - 1.34 of amr_pci.c (compiler warning).
2006-06-15 16:44:27 +00:00
gnn
d079e8a798 MFC: 1.10
Extend the notdef #ifdef to cover the packet copy as there is no
point in doing that if we're not doing the rest of the work.

Submitted by:	thompsa
2006-06-15 16:27:15 +00:00
ambrisko
e39bd2c948 MFC in all the changes to the mfi(4) driver. The high light is:
Add in a bunch of things to the mfi driver:
      - Linux ioctl support, with the other Linux changes MegaCli
	will run if you mount linprocfs & linsysfs then set
	sysctl compat.linux.osrelease=2.6.12 or similar.  This works
	on i386.  It should work on amd64 but not well tested yet.
	StoreLib may or may not work.  Remember to kldload mfi_linux.
      - Add in AEN (Async Event Notification) support so we can
	get messages from the firmware when something happens.
	Not all messages are in defined in event detail.  Use
	event_log to try to figure out what happened.
      - Try to implement something like SIGIO for StoreLib.  Since
	mrmonitor doesn't work right I can't fully test it.  StoreLib
	works best with the rh9 base.  In theory mrmonitor isn't
	needed due to native driver support of AEN :-)
  Now we can configure and monitor the RAID better.
2006-06-15 16:07:57 +00:00
ambrisko
fe150544d3 cvs update -r 1 is not the same as -j 1 ... so pull this file in correctly:
MFC the enhancements to the Linux emulation layer so the MegaRAID SAS
management tools can work.  This is not totally connected to the build
yet.  The mfi(4) change have not been MFC'ed yet.  This will be done
shortly.  I'm trying to do this in chunks so I don't totally break
the build on a missed commit.  This has passed make universe a while
ago:
  Enhance the Linux emulation layer to make MegaRAID SAS managements tool happy.
  Add back in a scheme to emulate old type major/minor numbers via hooks into
  stat, linprocfs to return major/minors that Linux app's expect.  Currently
  only /dev/null is always registered.  Drivers can register via the Linux
  type shim similar to the ioctl shim but by using
  linux_device_register_handler/linux_device_unregister_handler functions.
  The structure is:

    struct linux_device_handler {
        char    *bsd_driver_name;
        char    *linux_driver_name;
        char    *bsd_device_name;
        char    *linux_device_name;
        int     linux_major;
        int     linux_minor;
        int     linux_char_device;
    };

  Linprocfs uses this to display the major number of the driver.  The
  soon to be available linsysfs will use it to fill in the driver name.
  Linux_stat uses it to translate the major/minor into Linux type values.

  Note major numbers are dynamically assigned via passing in a -1 for
  the major number so we don't need to keep track of them.

  This is somewhat needed due to us switching to our devfs.
2006-06-15 15:54:59 +00:00
ambrisko
6ebd888016 MFC the enhancements to the Linux emulation layer so the MegaRAID SAS
management tools can work.  This is not totally connected to the build
yet.  The mfi(4) change have not been MFC'ed yet.  This will be done
shortly.  I'm trying to do this in chunks so I don't totally break
the build on a missed commit.  This has passed make universe a while
ago:
  Enhance the Linux emulation layer to make MegaRAID SAS managements tool happy.
  Add back in a scheme to emulate old type major/minor numbers via hooks into
  stat, linprocfs to return major/minors that Linux app's expect.  Currently
  only /dev/null is always registered.  Drivers can register via the Linux
  type shim similar to the ioctl shim but by using
  linux_device_register_handler/linux_device_unregister_handler functions.
  The structure is:

    struct linux_device_handler {
        char    *bsd_driver_name;
        char    *linux_driver_name;
        char    *bsd_device_name;
        char    *linux_device_name;
        int     linux_major;
        int     linux_minor;
        int     linux_char_device;
    };

  Linprocfs uses this to display the major number of the driver.  The
  soon to be available linsysfs will use it to fill in the driver name.
  Linux_stat uses it to translate the major/minor into Linux type values.

  Note major numbers are dynamically assigned via passing in a -1 for
  the major number so we don't need to keep track of them.

  This is somewhat needed due to us switching to our devfs.
2006-06-15 15:52:05 +00:00
ambrisko
2663a717b0 MFC ipmi(4) (OpenIPMI like driver). I'll hook it up to the build shortly. 2006-06-15 15:37:34 +00:00
ambrisko
4c9f7fb540 MFC enhancements and fix-up for ichwd:
Re-work the bus attachment somewhat.  Make the rids unique for
  the SMI/TCO address space.  Switch the bus space I/O to the
  one specific for either the SMI or TCO space.  Re-calibrate
  the tick.  Add some more device id's, 82801FBR submitted by des.
  This makes it work on the platforms I've tested with.
2006-06-15 15:15:07 +00:00
rodrigc
aee6f621ad MFC: 1.87
For network filesystems (NFS, samba, etc.), do not pass "export" nmount()
  parameter to try to delete an NFS export.  It won't work, and will log
  a spurious warning to syslog.

  Tested by:      Arno J. Klaassen <arno at heho dot snv dot jussieu dot fr>
2006-06-15 04:52:52 +00:00
grog
7da8116e4b MFC: Don't go past the end of the month with a repetitive entry of the
style "every Monday":

     mon *        Do Foo.

Previously, at the end of the month, this could cause a printout of
the following nature when invoked with -A 7:

     36 May* Do Foo

If the entry runs into the following month, adjust month and day,
wrapping round into next year where necessary.
2006-06-15 01:16:36 +00:00
ghelmer
7cdd81d530 MFC procfs.c revisions 1.13 and 1.14:
1.13: Revision 1.4 set access for all sensitive files in /proc/<PID> to mode 0
  if a process's uid or gid has changed, but the /proc/<PID> directory
  itself was also set to mode 0.  Assuming this doesn't open any
  security holes, open access to the /proc/<PID> directory for users
  other than root to read or search the directory.

  1.14: Upon further review, DES prefers this change over that in revision 1.13
  to resolve the directory access problem for processes with P_SUGID flag
  set.
2006-06-14 21:20:39 +00:00
hrs
6dc3ff21d9 Document FreeBSD-SA-06:17.sendmail. 2006-06-14 16:29:06 +00:00
cperciva
7200b72f21 Correct a bug in the handling of multipart messages by sendmail(8)
which can allow a malformed message to crash a sendmail queue
processing process.

Security:	FreeBSD-SA-06:17.sendmail
2006-06-14 16:01:06 +00:00
maxim
5914e1e362 MFC revs. 1.276 and 1.277 ufs_vnops.c and rev. 1.18 truncate.2:
silently ignore truncate requests for all but VREG, VLNK and VDIR.
2006-06-14 08:41:15 +00:00
yar
226fdc6533 MFC: Make it actually possible to disable INET6 support in ftpd(8). 2006-06-14 07:42:45 +00:00