]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoWork around an integer division resulting in 0 and thus the
bz [Tue, 9 Sep 2008 07:35:21 +0000 (07:35 +0000)]
Work around an integer division resulting in 0 and thus the
congestion window not being incremented, if cwnd > maxseg^2.
As suggested in RFC2581 increment the cwnd by 1 in this case.

See http://caia.swin.edu.au/reports/080829A/CAIA-TR-080829A.pdf
for more details.

Submitted by: Alana Huebner, Lawrence Stewart,
Grenville Armitage (caia.swin.edu.au)
Reviewed by: dwmalone, gnn, rpaulo
MFC After: 3 days

15 years agoIGP based radeon cards such as the rs485 and rs690 require that the GART table
rnoland [Tue, 9 Sep 2008 02:18:37 +0000 (02:18 +0000)]
IGP based radeon cards such as the rs485 and rs690 require that the GART table
be un-cached.  Our previous memory barrier was not sufficient.  This patch
allocates the IGP GART tables using the BUS_DMA_NOCACHE flag to get these
cards working.

Approved by: kib

15 years agoWe should never call drm_pci_alloc() while holding locks, due the the
rnoland [Tue, 9 Sep 2008 02:05:03 +0000 (02:05 +0000)]
We should never call drm_pci_alloc() while holding locks, due the the
calls to bus_dma.  There were multiple paths that held different locks or
no locks at all. This patch ensures that all of the calling paths drop
their lock(s) before calling drm_pci_alloc().

Reviewed by: kib

15 years agoFix issue with recovering from transient jumbo mbuf shortage.
kmacy [Tue, 9 Sep 2008 01:36:02 +0000 (01:36 +0000)]
Fix issue with recovering from transient jumbo mbuf shortage.

Submitted by: Chelsio Inc.
MFC after: 3 days

15 years agoDocument TAPGIFNAME, TAPSIFINFO and TAPGIFINFO tap(4)
emax [Mon, 8 Sep 2008 22:44:51 +0000 (22:44 +0000)]
Document TAPGIFNAME, TAPSIFINFO and TAPGIFINFO tap(4)
character device ioctl's.

MFC after: 1 week

15 years agoAdd new TAPGIFNAME tap(4) character device ioctl. This is a
emax [Mon, 8 Sep 2008 22:43:55 +0000 (22:43 +0000)]
Add new TAPGIFNAME tap(4) character device ioctl. This is a
convenient shortcut to obtain network interface name using
file descriptor for character device.

Obtained from: NetBSD
MFC after: 1 week

15 years ago- Reduce scope of #ifdef's in uma_zcreate() call in init_turnstile0().
jhb [Mon, 8 Sep 2008 21:40:15 +0000 (21:40 +0000)]
- Reduce scope of #ifdef's in uma_zcreate() call in init_turnstile0().
- Set UMA_ZONE_NOFREE so that the per-turnstile spin locks are type stable
  to avoid a race where one thread might dereference a lock in a free'd
  turnstile that was previously used by another thread.

Theorized by: tegge (2)
MFC after: 1 week

15 years agoFor cheetah-class CPUs ensure that the dt512_0 is set to hold 8k pages
marius [Mon, 8 Sep 2008 21:24:25 +0000 (21:24 +0000)]
For cheetah-class CPUs ensure that the dt512_0 is set to hold 8k pages
for all three contexts and configure the dt512_1 to hold 4MB pages for
them (e.g. for direct mappings).
This might allow for additional optimization by using the faulting
page sizes provided by AA_DMMU_TAG_ACCESS_EXT for bypassing the page
size walker for the dt512 in the superpage support code.

Submitted by: nwhitehorn (initial patch)

15 years agoUSIII and beyond CPUs have stricter requirements when it comes
marius [Mon, 8 Sep 2008 20:38:48 +0000 (20:38 +0000)]
USIII and beyond CPUs have stricter requirements when it comes
to synchronization needed after stores to internal ASIs in order
to make side-effects visible. This mainly requires the MEMBAR #Sync
after such stores to be replaced with a FLUSH. We use KERNBASE as
the address to FLUSH as it is guaranteed to not trap. Actually,
the USII synchronization rules also already require a FLUSH in
pretty much all of the cases changed.
We're also hitting an additional USIII synchronization rule which
requires stores to AA_IMMU_SFSR to be immediately followed by a DONE,
FLUSH or RETRY. Doing so triggers a RED state exception though so
leave the MEMBAR #Sync. Linux apparently also has gotten away with
doing the same for quite some time now, apart from the fact that
it's not clear to me why we need to clear the valid bit from the
SFSR in the first place.

Reviewed by: nwhitehorn

15 years agoo Move the MODULE_DEPEND() for cam(4) from the esp_sbus.c front-end to
marius [Mon, 8 Sep 2008 20:20:44 +0000 (20:20 +0000)]
o Move the MODULE_DEPEND() for cam(4) from the esp_sbus.c front-end to
  the ncr53c9x.c core where it actually belongs so future front-ends
  don't need to add it.
o Use the correct OFW property when looking for the initiator ID of the
  SBus device.
o Don't specify an alignment when creating the parent DMA tag for
  SUNW,fas; their DMA engine doesn't require an alignment constraint
  and it's no inherited by the child DMA tags anyway (which probably
  is a bug though).
o Drop the superfluous sc_maxsync and use sc_minsync instead. The
  former apparently was added due to a confusion with the maximum
  frequency used in cam(4), which basically corresponds to the
  inverse of minimum sync period.
o Merge ncr53c9x.c from NetBSD:
  1.116: NCRDMA_SETUP() should be called before NCR_SET_COUNT() and
         NCRCMD_DMA command in ncr53c9x_select().
  1.125: free allocated resources on detach.
o Static'ize ncr53c9x_action(), ncr53c9x_init() and ncr53c9x_reset()
  as these are not required outside of ncr53c9x.c.
o In ncr53c9x_attach() don't leak the device mutex in case attaching
  fails.
o Register an asynchronous notification handler so in case cam(4)
  reports a lost device we can cancel outstanding commands and
  restore the default parameters for the target in question.
o For FAS366 correctly support 16-bit target IDs and let it know
  that we use 32-bit transfers.
o Overhaul the negotiation of transfer settings. This includes
  distinguishing between current and goal transfer settings of the
  target so we can renegotiate their goal settings when necessary
  and correcting the order in which tagged, wide and synchronous
  transfers are negotiated.
o If we are requesting sense, force a renegotiation if we are
  currently using anything different from asynchronous at 8 bit
  as the target might have lost our transfer negotiations.
o In case of an XPT_RESET_BUS just directly call ncr53c9x_init()
  instead of issuing a NCRCMD_RSTSCSI, which in turn will issue an
  interrupt that is treated as an unexpected SCSI bus reset by
  ncr53c9x_intr() and thus calls ncr53c9x_init(). Remove the now
  no longer used ncr53c9x_scsi_reset().
o Correct an off-by-one error when setting cpi->max_lun.
o In replace printf(9) with device_printf(9) calls where appropriate
  and in ncr53c9x_action() remove some unnecessarily verbose messages.
o In ncr53c9x_sched() use TAILQ_FOREACH() instead of reimplementing
  it and consolidate two tagging-related target info checks into one.
o In ncr53c9x_done() set the CAM status to CAM_SCSI_STATUS_ERROR when
  appropriate, respect CAM_DIS_AUTOSENSE and teach it to return SCSI
  status information.
o In ncr53c9x_dequeue() ensure the tags are cleared.
o Use ulmin() instead of min() where appropriate.
o In ncr53c9x_msgout() consistently use the reset label.
o When we're interrupted during a data phase and the DMA engine is
  still active, don't panic but reset the core and the DMA engine as
  this should be sufficient. Also, the typical problem for triggering
  this was the lack of renegotiation when requesting sense.
o Correctly handle DEVICE RESETs.
o Adapt the locking of esp(4) to MPSAFE cam(4). This includes moving
  the calls of lsi64854_attach() to the bus front-ends so it can pass
  the esp(4) mutex to bus_dma_tag_create(9).
o Change the LSI64854 driver to not create a DMA tag and map for the
  Ethernet channel as le(4) will handle these on its own as well as
  sync and unload the DMA maps for the SCSI and parallel port channel
  after a DMA transfer.
o Cam(4)'ify some NetBSD-centric comments.
o Use bus_{read,write}_*(9) instead of bus_space_{read,write}_*(9)
  and take advantage of rman_get_rid(9) in order to save some softc
  members.

Reviewed by: scottl
MFC after: 1 month

15 years agoClose a race in sleepq_broadcast() where the sleepq could be reused after
jhb [Mon, 8 Sep 2008 19:44:57 +0000 (19:44 +0000)]
Close a race in sleepq_broadcast() where the sleepq could be reused after
it had been assigned to the last sleeping thread.  That thread might have
started running on another CPU and have reused that sleep queue.  Fix it
by just walking the thread queue using TAILQ_FOREACH_SAFE() rather than
a while loop.

PR: amd64/124200
Discovered by: tegge
Tested by: benjsc
MFC after: 1 week

15 years agobge_tick(): do not touch PHY if link is up. This should solve problem with
oleg [Mon, 8 Sep 2008 18:10:15 +0000 (18:10 +0000)]
bge_tick(): do not touch PHY if link is up. This should solve problem with
extra input errors for some BCM57XX chips.

PR: kern/122295

15 years agoNote sendmail 8.14.3 upgrade
gshapiro [Mon, 8 Sep 2008 17:13:18 +0000 (17:13 +0000)]
Note sendmail 8.14.3 upgrade

15 years agoStreamline #include sections in ds133x and ds1672 drivers. This unbreaks the
raj [Mon, 8 Sep 2008 15:49:07 +0000 (15:49 +0000)]
Streamline #include sections in ds133x and ds1672 drivers. This unbreaks the
LINT build.

15 years agoPass 1 of mpsafetty-ifying si(4). It compiles and has basic functionality,
peter [Mon, 8 Sep 2008 11:41:20 +0000 (11:41 +0000)]
Pass 1 of mpsafetty-ifying si(4).  It compiles and has basic functionality,
but needs a lot more work.  In particular, it has no flow control and has
a tendency to race when giving commands.  It still uses Giant for the
tty and driver lock, but this is a keep-it-simple feature for now.
Some of the [temporary] proliferation of messages lines are way too long.

15 years agods133x: Introduce device_identify method; update NOTES.
raj [Mon, 8 Sep 2008 10:40:48 +0000 (10:40 +0000)]
ds133x: Introduce device_identify method; update NOTES.

Obtained from: Semihalf

15 years agoBump __FreeBSD_version for per-CPU GDT on amd64.
kib [Mon, 8 Sep 2008 10:27:11 +0000 (10:27 +0000)]
Bump __FreeBSD_version for per-CPU GDT on amd64.

Requested by: nox

15 years agoThe pcb_gs32p should be per-cpu, not per-thread pointer. This is
kib [Mon, 8 Sep 2008 09:59:05 +0000 (09:59 +0000)]
The pcb_gs32p should be per-cpu, not per-thread pointer. This is
location in GDT where the segment descriptor from pcb_gs32sd is
copied, and the location is in GDT local to CPU.

Noted and reviewed by: peter
MFC after: 1 week

15 years agoProvide private per-CPU GDTs on amd64. This is required at least for the
kib [Mon, 8 Sep 2008 09:55:51 +0000 (09:55 +0000)]
Provide private per-CPU GDTs on amd64. This is required at least for the
linux CB_GS32BIT to work.

Noted by: nox
Reviewed by: peter
MFC after: 1 week

15 years agoIn linux_set_thread_area(), mark pcb as PCB_GS32BIT. This was missed
kib [Mon, 8 Sep 2008 09:09:23 +0000 (09:09 +0000)]
In linux_set_thread_area(), mark pcb as PCB_GS32BIT. This was missed
when r180992 was committed.

Reviewed by: peter
MFC after: 1 week

15 years agoFix inconsistencies in the comments.
kib [Mon, 8 Sep 2008 08:58:29 +0000 (08:58 +0000)]
Fix inconsistencies in the comments.

MFC after: 1 week

15 years agoFix a typo in a comment in the ACPI Fujitsu driver.
ed [Mon, 8 Sep 2008 06:29:24 +0000 (06:29 +0000)]
Fix a typo in a comment in the ACPI Fujitsu driver.

The word "hotkys" should read "hotkeys".

Submitted by: Jille Timmermans <jille quis cx>

15 years ago- Update the libgeom manpage with a description of g_device_path and
lulf [Mon, 8 Sep 2008 06:27:00 +0000 (06:27 +0000)]
- Update the libgeom manpage with a description of g_device_path and
  g_providername utility functions.

Approved by: kib (mentor)

15 years agoPut the bridge mac inheritance behind a sysctl with the default off as this
thompsa [Mon, 8 Sep 2008 03:28:26 +0000 (03:28 +0000)]
Put the bridge mac inheritance behind a sysctl with the default off as this
still needs all the edge cases fixed.

Submitted by: Eygene Ryabinkin

15 years agoFix a type-aliasing problem in the libarchive test suite,
kientzle [Mon, 8 Sep 2008 00:58:12 +0000 (00:58 +0000)]
Fix a type-aliasing problem in the libarchive test suite,
restore WARNS=6.

15 years agoCommit the no-brainer parts of my space saving kernel experiments. We
imp [Mon, 8 Sep 2008 00:41:32 +0000 (00:41 +0000)]
Commit the no-brainer parts of my space saving kernel experiments.  We
don't inline the locking primitives, and only grab those parts of mii
that we really need.  Other space optimizations are too agressive for
the generic file (removing all of usb, and loading it as kernel
modules).

15 years agoCorrect a leaking archive_entry in the test suite.
kientzle [Sun, 7 Sep 2008 23:59:27 +0000 (23:59 +0000)]
Correct a leaking archive_entry in the test suite.

15 years agoMerge from vendor/ntp/dist: r182856:
roberto [Sun, 7 Sep 2008 22:15:41 +0000 (22:15 +0000)]
Merge from vendor/ntp/dist: r182856:

Apply updated patch from bin/92839 to avoid two possible buffer overflows.

PR: bin/92839
Submitted by: Helge Oldach <freebsdntpd@oldach.net>

15 years agoTo my reading there are no real consumers of ip6_plen (IPv6
bz [Sun, 7 Sep 2008 20:44:45 +0000 (20:44 +0000)]
To my reading there are no real consumers of ip6_plen (IPv6
Payload Length) as set in tcpip_fillheaders().
ip6_output() will calculate it based of the length from the
mbuf packet header itself.
So initialize the value in tcpip_fillheaders() in correct
(network) byte order.

With the above change, to my reading, all places calling tcp_trace()
pass in the ip6 header via ipgen as serialized in the mbuf and with
ip6_plen in network byte order.
Thus convert the IPv6 payload length to host byte order before printing.

MFC after: 2 months

15 years agoFix deactivation of speakers while plugging in headphones on Fujitsu
joel [Sun, 7 Sep 2008 20:25:19 +0000 (20:25 +0000)]
Fix deactivation of speakers while plugging in headphones on Fujitsu
U1010, Lenovo 3k N200 and Acer Aspire 4715Z.

Reviewed by: attilio
PR: 126216, 126244, 127034
Submitted by: Anton E. Kartashev <amokk@mirahost.ru>,
Ganael Laplanche <ganael.laplanche@martymac.com>,
Dennis Generaloff <giantlock@gmail.com>

15 years agoUse %d to print numfibs
matteo [Sun, 7 Sep 2008 19:10:06 +0000 (19:10 +0000)]
Use %d to print numfibs

MFC after: 1 day

15 years agoMinor cleanup of this config file:
imp [Sun, 7 Sep 2008 18:55:55 +0000 (18:55 +0000)]
Minor cleanup of this config file:
o It has been tested only on KB9202, KB9202A and KB9202B boards
o Better comments about hints
o option<space><tab>
o Add newer SX_NOINLINE option.
o Fix a few comments

15 years agoSplit tcp_mss() in tcp_mss() and tcp_mss_update() where the former
bz [Sun, 7 Sep 2008 18:50:25 +0000 (18:50 +0000)]
Split tcp_mss() in tcp_mss() and tcp_mss_update() where the former
calls the latter.

Merge tcp_mss_update() with code from tcp_mtudisc() basically
doing the same thing.

This gives us one central place where we calcuate and check mss values
to update t_maxopd (maximum mss + options length) instead of two slightly
different but almost equal implementations to maintain.

PR: kern/118455
Reviewed by: silby (back in March)
MFC after: 2 months

15 years agoAdd support for MacBook Air. (not tested)
rpaulo [Sun, 7 Sep 2008 18:15:34 +0000 (18:15 +0000)]
Add support for MacBook Air. (not tested)

Obtained from: mactel-linux

15 years agoSegment registers are stored in the uc_mcontext member of the struct
kib [Sun, 7 Sep 2008 16:39:21 +0000 (16:39 +0000)]
Segment registers are stored in the uc_mcontext member of the struct
l_ucontext. To restore the registers content, trampoline needs to
dereference uc_mcontext instead of taking some undefined values from
l_ucontext.

Submitted by: Dmitry Chagin <dchagin@>
MFC after: 1 week

15 years agoV_irtualize SVN r182846 tcp_mssdflt/tcp_v6mssdflt procedure based
bz [Sun, 7 Sep 2008 15:20:21 +0000 (15:20 +0000)]
V_irtualize SVN r182846 tcp_mssdflt/tcp_v6mssdflt procedure based
sysctl implementations for VIMAGE the same way we did elsewhere:
update the implementation but leave the globals and the SYSCTL
statement untouched.

15 years agoBring a paragraph in this manual page a bit closer to the present date.
trhodes [Sun, 7 Sep 2008 15:19:34 +0000 (15:19 +0000)]
Bring a paragraph in this manual page a bit closer to the present date.

Discussed with: des

15 years agoConvert SYSCTL_INTs for tcp_mssdflt and tcp_v6mssdflt to
bz [Sun, 7 Sep 2008 14:44:55 +0000 (14:44 +0000)]
Convert SYSCTL_INTs for tcp_mssdflt and tcp_v6mssdflt to
SYSCTL_PROCs and check that the default mss for neither v4 nor
v6 goes below the minimum MSS constant (216).

This prevents people from shooting themselves in the foot.

PR: kern/118455 (remotely related)
Reviewed by: silby (as part of a larger patch in March)
MFC after: 2 months

15 years agoChange space -> tab in printed usage output to make it look consistent.
simon [Sun, 7 Sep 2008 14:32:03 +0000 (14:32 +0000)]
Change space -> tab in printed usage output to make it look consistent.

15 years ago- Make use of the new and g_device_path utility function in libgeom to avoid
lulf [Sun, 7 Sep 2008 13:58:35 +0000 (13:58 +0000)]
- Make use of the new and g_device_path utility function in libgeom to avoid
  duplication of code in fdisk and boot0cfg. Also make use of g_providername to
  fix an issue with fdisk and boot0cfg not using the correct provider when
  writing the MBR.

Reviewed by: phk
Approved by: pjd (mentor)

15 years ago- Add a new ioctl for getting the provider name of a geom provider.
lulf [Sun, 7 Sep 2008 13:54:57 +0000 (13:54 +0000)]
- Add a new ioctl for getting the provider name of a geom provider.
- Add a routine for looking up a device and checking if it is a valid geom
  provider given a partial or full path to its device node.

Reviewed by: phk
Approved by: pjd (mentor)

15 years agoCatch a possible NULL pointer deref in case the offsets got mangled
bz [Sun, 7 Sep 2008 13:09:04 +0000 (13:09 +0000)]
Catch a possible NULL pointer deref in case the offsets got mangled
somehow.
As a consequence we may now get an unexpected result(*).
Catch that error cases with a well defined panic giving appropriate
pointers to ease debugging.

(*) While the concensus was that the case should never happen unless
    there was a bug, noone was definitively sure.

Discussed with: kmacy (about 8 months back)
Reviewed by: silby (as part of a larger patch in March)
MFC after: 2 months

15 years agoAdd a second KASSERT checking for len >= 0 in the tcp output path.
bz [Sun, 7 Sep 2008 11:38:30 +0000 (11:38 +0000)]
Add a second KASSERT checking for len >= 0 in the tcp output path.

This is different to the first one (as len gets updated between those
two) and would have caught various edge cases (read bugs) at a well
defined place I had been debugging the last months instead of
triggering (random) panics further down the call graph.

MFC after: 2 months

15 years agoInitialize vp, so we don't call VOP_UNLOCK() with NULL vnode pointer.
pjd [Sun, 7 Sep 2008 07:55:12 +0000 (07:55 +0000)]
Initialize vp, so we don't call VOP_UNLOCK() with NULL vnode pointer.

Confirmed by: marcus

15 years agoCorrect the comments here.
kientzle [Sun, 7 Sep 2008 06:15:45 +0000 (06:15 +0000)]
Correct the comments here.

PR: bin/126849
MFC after: 3 days

15 years agoWhen restoring a directory, allow symlinks to be followed. The full
kientzle [Sun, 7 Sep 2008 05:22:33 +0000 (05:22 +0000)]
When restoring a directory, allow symlinks to be followed.  The full
logic here gets a little complex, but the net effect is that the
SECURE_SYMLINKS flag will prevent us from ever following a symlink.
Without it, we'll only follow symlinks to dirs.  bsdtar specifies
SECURE_SYMLINKS by default, suppresses it for -P.

I've also beefed up the write_disk_secure test to verify this
behavior.

PR: bin/126849

15 years agoUse bus_space_compare() rather than i386_memio_compare() directly.
nyan [Sun, 7 Sep 2008 04:47:39 +0000 (04:47 +0000)]
Use bus_space_compare() rather than i386_memio_compare() directly.

15 years ago- Add the i386_memio_map_load() function to load I/O address table.
nyan [Sun, 7 Sep 2008 04:44:24 +0000 (04:44 +0000)]
- Add the i386_memio_map_load() function to load I/O address table.
- Add the bus_space_compare macro for bus_space consistency.
- Switch using the bus_space_map_load() in isa_load_resourcev().

15 years ago- Cleanup i8251 related defines.
nyan [Sun, 7 Sep 2008 04:35:04 +0000 (04:35 +0000)]
- Cleanup i8251 related defines.
- Move i8255 related defines into a separate file.

15 years agomake all checks if ni_chw consistent
sam [Sat, 6 Sep 2008 17:51:02 +0000 (17:51 +0000)]
make all checks if ni_chw consistent

15 years agouse c99 syntax for initializers; this silences
sam [Sat, 6 Sep 2008 17:48:25 +0000 (17:48 +0000)]
use c99 syntax for initializers; this silences
warnings with picky compiler settings

15 years agoonly return the negotiated ampdu density for sta mode
sam [Sat, 6 Sep 2008 17:43:47 +0000 (17:43 +0000)]
only return the negotiated ampdu density for sta mode

15 years agoo kill IEEE80211_NODE_PSUPDATE; it was never used
sam [Sat, 6 Sep 2008 17:42:51 +0000 (17:42 +0000)]
o kill IEEE80211_NODE_PSUPDATE; it was never used
o kill IEEE80211_NODE_CHWUPDATE; it's use was pointless and it was defined
  wrong (overlap w/ existing flags)

15 years agoput back placeholder comment
sam [Sat, 6 Sep 2008 17:39:31 +0000 (17:39 +0000)]
put back placeholder comment

15 years agoo validate the ba policy in addba response
sam [Sat, 6 Sep 2008 17:38:20 +0000 (17:38 +0000)]
o validate the ba policy in addba response
o leave a check for the max ba window disabled; we accept out of range
  values and just truncate them but may want to act differently in the future

15 years agoadd IEEE80211_NODE_HT_ALL to collect up all the HT-related node flags
sam [Sat, 6 Sep 2008 17:33:46 +0000 (17:33 +0000)]
add IEEE80211_NODE_HT_ALL to collect up all the HT-related node flags

15 years agodon't do ampdu reordering of fragments; they should never happen
sam [Sat, 6 Sep 2008 17:31:55 +0000 (17:31 +0000)]
don't do ampdu reordering of fragments; they should never happen

15 years agomoreve the aggregation q; it's not being used and
sam [Sat, 6 Sep 2008 17:29:11 +0000 (17:29 +0000)]
moreve the aggregation q; it's not being used and
there's a better way to do this

15 years agoCheck rule numbers against maximum value to avoid rules cleanup due
rik [Sat, 6 Sep 2008 17:26:52 +0000 (17:26 +0000)]
Check rule numbers against maximum value to avoid rules cleanup due
to overflow.

MFC after: 5 days.

15 years agoLock vnode exclusively around insmntque().
pjd [Sat, 6 Sep 2008 17:24:07 +0000 (17:24 +0000)]
Lock vnode exclusively around insmntque().

15 years agoUse IPFW_DEFAULT_RULE instead of hardcoded value since now it is
rik [Sat, 6 Sep 2008 17:23:37 +0000 (17:23 +0000)]
Use IPFW_DEFAULT_RULE instead of hardcoded value since now it is
available.

MFC after: 5 days.

15 years agoo show key indices w/o adjustment
sam [Sat, 6 Sep 2008 17:18:38 +0000 (17:18 +0000)]
o show key indices w/o adjustment
o display all key flags symbolically

15 years agopurge ni_reqcw; not used and never will be
sam [Sat, 6 Sep 2008 17:15:55 +0000 (17:15 +0000)]
purge ni_reqcw; not used and never will be

15 years agoo fix BAR definitions
sam [Sat, 6 Sep 2008 17:14:27 +0000 (17:14 +0000)]
o fix BAR definitions
o add 11e reason codes

15 years agofix age calculations (yet again); entries in the q have values
sam [Sat, 6 Sep 2008 17:04:44 +0000 (17:04 +0000)]
fix age calculations (yet again); entries in the q have values
relative to the head

MFC after: 3 days

15 years agoExport the IPFW_DEFAULT_RULE outside ip_fw2.c. This number in not only
rik [Sat, 6 Sep 2008 16:47:07 +0000 (16:47 +0000)]
Export the IPFW_DEFAULT_RULE outside ip_fw2.c.  This number in not only
the default rule number but also the maximum rule number.  User space
software such as ipfw and natd should be aware of its value.  The
software that already includes ip_fw.h should use the defined value.  All
other a expected to use sysctl (as discussed on net@).

MFC after: 5 days.
Discussed on: net@

15 years agoSmall style(9) nit in <sys/termios.h>.
ed [Sat, 6 Sep 2008 15:41:58 +0000 (15:41 +0000)]
Small style(9) nit in <sys/termios.h>.

There are a lot of places where we do "#define<space>" instead of
"#define<tab>". Clean this up a little.

15 years agoDocument BUS_DMA_NOCACHE.
kib [Sat, 6 Sep 2008 15:21:01 +0000 (15:21 +0000)]
Document BUS_DMA_NOCACHE.

MFC after: 3 days

15 years agoMake TIOCCONS use priv_check() instead of checking /dev/console permissions.
ed [Sat, 6 Sep 2008 14:43:32 +0000 (14:43 +0000)]
Make TIOCCONS use priv_check() instead of checking /dev/console permissions.

As discussed with Robert on IRC, checking the permissions on
/dev/console to see if we can call TIOCCONS could be unreliable. When we
run a chroot() without a devfs instance mounted inside, it won't
actually check the permissions on the device node inside the devfs
instance.

Using the already existing PRIV_TTY_CONSOLE for this seems like a better
idea.

Approved by: rwatson

15 years agoAdd myself to the list of ports committers.
jpaetzel [Sat, 6 Sep 2008 14:10:31 +0000 (14:10 +0000)]
Add myself to the list of ports committers.

Approved by: ade (mentor)

15 years agoFix double free in setfacl(1). Description from the author:
trasz [Sat, 6 Sep 2008 13:17:35 +0000 (13:17 +0000)]
Fix double free in setfacl(1).  Description from the author:

Initially, 'acl' (an 'acl_t *') is allocated, and its ACCESS_ACL and
DEFAULT_ACL fields are passed to the 'libc' ACL routines for subsequent
allocation. If the '-m' option (merge existing ACL with a new one) is
specified, then 'set_acl_mask()' will be called and passed one of the
two ACLs. This function, in turn, replaces this given ACL structure by
another, freshly allocated. However, the pointer in the 'acl' variable
in the caller is not updated. The caller then proceeds to free the ACL,
incurring in a double free condition.

Submitted by: Pedro Martelletto <pedro at ambientworks.net>
Approved by: rwatson (mentor)

15 years agoChase the ghostscript port changes.
jhay [Sat, 6 Sep 2008 10:12:52 +0000 (10:12 +0000)]
Chase the ghostscript port changes.

15 years agoUnbreak ia64: pges are 8KB.
marcel [Sat, 6 Sep 2008 05:26:31 +0000 (05:26 +0000)]
Unbreak ia64: pges are 8KB.

15 years agoRead ethernet address from ID registers for RTL8102E/RTL8102EL as
yongari [Sat, 6 Sep 2008 00:25:16 +0000 (00:25 +0000)]
Read ethernet address from ID registers for RTL8102E/RTL8102EL as
reading from EEPROM doesn't seem to work on these controllers.

Reported by: Milan Obuch ( freebsd-net at dino dot sk )
Tested by: Milan Obuch ( freebsd-net at dino dot sk )

15 years agoTurn some lame pseudo-code into a less lame comment.
imp [Fri, 5 Sep 2008 22:30:59 +0000 (22:30 +0000)]
Turn some lame pseudo-code into a less lame comment.

15 years agoKill bogus #if 0'd stuff for interrupts. They don't happen, and this
imp [Fri, 5 Sep 2008 22:29:50 +0000 (22:29 +0000)]
Kill bogus #if 0'd stuff for interrupts.  They don't happen, and this
driver will need more serious help to work with an interrupt driven
path.  There's many subtleties in driving the DMA engine with
interrupts in many configurations.  Best to not "guess" what the right
way would be and mislead people.

15 years agoKill vestiges of the special case code we once had in place for usb
imp [Fri, 5 Sep 2008 22:27:10 +0000 (22:27 +0000)]
Kill vestiges of the special case code we once had in place for usb
memory allocation.  It was change to include the range in the normal
memory area, so these ifdef'd out special cases are no longer useful
to keep around.

15 years agoMerge ath again (addition of wisoc files).
rpaulo [Fri, 5 Sep 2008 22:24:31 +0000 (22:24 +0000)]
Merge ath again (addition of wisoc files).

15 years agoKill bogus #if 1. There's no need for it since usb works these days.
imp [Fri, 5 Sep 2008 22:23:41 +0000 (22:23 +0000)]
Kill bogus #if 1.  There's no need for it since usb works these days.

15 years agoAdd missing files not committed with the latest vendor import.
rpaulo [Fri, 5 Sep 2008 22:17:21 +0000 (22:17 +0000)]
Add missing files not committed with the latest vendor import.

15 years agoBe consistent about whether these multi-lined macros are separated by
julian [Fri, 5 Sep 2008 21:03:19 +0000 (21:03 +0000)]
Be consistent about whether these multi-lined macros are separated by
a blank line. Some were, some weren't. Decide in favour of the line
as it matches what an inline would do, and it's easier to read.

15 years agoKeep track of the active buffer on output. For the moment, panic if
imp [Fri, 5 Sep 2008 20:49:45 +0000 (20:49 +0000)]
Keep track of the active buffer on output.  For the moment, panic if
the device indicates that it wasn't able to write all the data in the
buffer out.

Ed Schouten doesn't like the idea of a panic here.  I think for
production code, we need something better.  For right now, while we're
trying to assess the impact of this issue, a panic is OK.  So complain
to me, not him if this is hit.

15 years agoSort products numerically.
imp [Fri, 5 Sep 2008 20:45:31 +0000 (20:45 +0000)]
Sort products numerically.

15 years agoFix build.
rpaulo [Fri, 5 Sep 2008 18:11:18 +0000 (18:11 +0000)]
Fix build.

15 years agoKeep entries sorted.
rpaulo [Fri, 5 Sep 2008 18:09:49 +0000 (18:09 +0000)]
Keep entries sorted.

15 years agoAdd a couple more Apple GPT entries and NetBSD GPT entries.
rpaulo [Fri, 5 Sep 2008 17:45:24 +0000 (17:45 +0000)]
Add a couple more Apple GPT entries and NetBSD GPT entries.

15 years agoAdd two example regexps: (1) one for matching all the characters
keramida [Fri, 5 Sep 2008 17:41:20 +0000 (17:41 +0000)]
Add two example regexps: (1) one for matching all the characters
that belong in a character class, and (2) one for matching all
the characters *not* in a character class.

Submitted by: Mark B, mkbucc at gmail.com
MFC after: 3 days

15 years agoInclude the vendor in the partition name.
rpaulo [Fri, 5 Sep 2008 16:54:07 +0000 (16:54 +0000)]
Include the vendor in the partition name.

15 years agoFix a small typo in a comment in calcru1().
ed [Fri, 5 Sep 2008 15:55:06 +0000 (15:55 +0000)]
Fix a small typo in a comment in calcru1().

The word "happene" should read "happened".

Submitted by: Jille Timmermans <jille quis cx>

15 years agoAdd a note that CTASSERT() should not be used in header files.
emaste [Fri, 5 Sep 2008 15:24:54 +0000 (15:24 +0000)]
Add a note that CTASSERT() should not be used in header files.

15 years agoCorrect a copy-paste error---do not look for REX prefixes in i386 code.
jkoshy [Fri, 5 Sep 2008 14:45:56 +0000 (14:45 +0000)]
Correct a copy-paste error---do not look for REX prefixes in i386 code.

15 years agoMerge fix for P4 expansion from vendor branch.
rpaulo [Fri, 5 Sep 2008 13:18:06 +0000 (13:18 +0000)]
Merge fix for P4 expansion from vendor branch.

15 years agoFix P4 expansion.
rpaulo [Fri, 5 Sep 2008 13:14:45 +0000 (13:14 +0000)]
Fix P4 expansion.

Submitted by: sam

15 years agoDetect Apple HFS GPT slices.
rpaulo [Fri, 5 Sep 2008 12:49:14 +0000 (12:49 +0000)]
Detect Apple HFS GPT slices.

15 years agoAdd ZyXEL G-202
weongyo [Fri, 5 Sep 2008 11:27:33 +0000 (11:27 +0000)]
Add ZyXEL G-202

Obtained from: OpenBSD

15 years agoFix LOR between vnode lock and internal mqueue locks.
davidxu [Fri, 5 Sep 2008 07:32:57 +0000 (07:32 +0000)]
Fix LOR between vnode lock and internal mqueue locks.

15 years agoCatch up after last insmntque() changes:
pjd [Fri, 5 Sep 2008 07:00:40 +0000 (07:00 +0000)]
Catch up after last insmntque() changes:
- The vnode has to be locked exclusively before calling insmntque().
- Until I find a way to handle insmntque() failures use VV_FORCEINSMQ flag
  to force insmntque() to always succeed.

Reported by: kris, trasz, des, others
Suggested by: kib
Tested by: trasz

15 years agoThe link resolver now unsets the size to mark a hardlink
kientzle [Fri, 5 Sep 2008 06:15:25 +0000 (06:15 +0000)]
The link resolver now unsets the size to mark a hardlink
with no body instead of setting it to zero.

15 years agoMfP4: Handle entries with unset size properly: Regular files with
kientzle [Fri, 5 Sep 2008 06:13:11 +0000 (06:13 +0000)]
MfP4: Handle entries with unset size properly: Regular files with
unspecified size are "unlimited" (required by Zip reader, which
sometimes does not know the uncompressed size of an entry until it
gets to the end).  Also, hardlinks with unspecified (or zero) size do
not overwrite the data on disk nor do they set metadata.  This is
compatible with GNU tar and NetBSD pax behavior.

15 years agoMfP4: Use the set/unset tracking to determine when mtime or atime
kientzle [Fri, 5 Sep 2008 05:55:49 +0000 (05:55 +0000)]
MfP4: Use the set/unset tracking to determine when mtime or atime
is unavailable.  Use start_time as a substitute when one is missing;
if both are missing, skip the call to {f,l,}utime{s,}() entirely.