]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoDocument make_dev_credf(9), destroy_dev_sched(9) and destroy_dev_drain(9)
kib [Thu, 11 Sep 2008 11:38:48 +0000 (11:38 +0000)]
Document make_dev_credf(9), destroy_dev_sched(9) and destroy_dev_drain(9)
functions.

Reviewed by: brueffer

15 years agoUpdate insmntque(9) manpage, bringing it close to reality.
kib [Thu, 11 Sep 2008 11:36:21 +0000 (11:36 +0000)]
Update insmntque(9) manpage, bringing it close to reality.

Reviewed by: brueffer

15 years agoFix the device name spacing.
adrian [Thu, 11 Sep 2008 09:55:54 +0000 (09:55 +0000)]
Fix the device name spacing.

The old logic padded the device name out but assumed the unit number was one digit
long; this fails for things like SATA devices which (for me) begin at ad10.

Assemble the full device name in a temporary buffer and then calcluate padding
based on that string.

15 years agoRevert r177108 and restore r60506 for sparc64 as long as libstand
marius [Wed, 10 Sep 2008 20:53:22 +0000 (20:53 +0000)]
Revert r177108 and restore r60506 for sparc64 as long as libstand
isn't fixed to only open the network device once and not do a open
and close dance on every file access; the firmwares of newer sparc64
machines perform an auto-negotiation with every open which in turn
causes netbooting to take horribly long if we open and close the
device over and over again.

15 years agoAdd drivers for the power management devices found on Fireplane/
marius [Wed, 10 Sep 2008 20:22:27 +0000 (20:22 +0000)]
Add drivers for the power management devices found on Fireplane/
Safari- and JBus-based machines. Currently the main purpose of
these drivers is debugging of the resource allocation on nexus(4)
and the register content of these devices though.

15 years agoMake sure the TTY has not disappeared out from under us before calling
csjp [Wed, 10 Sep 2008 20:12:10 +0000 (20:12 +0000)]
Make sure the TTY has not disappeared out from under us before calling
ttydevsw_outwakeup().  This should fix panics which occur after remote
login sessions timeout during moderate TTY activity.  An example of
where this might occur is where a pending write to the terminal is
occurring while sshd(8) is shutting down the TTY after a TCP timeout.

Submitted by: ed

15 years agoWork around Cheetah+ erratum 34 (USIII+ erratum #10) by relocating
marius [Wed, 10 Sep 2008 20:07:08 +0000 (20:07 +0000)]
Work around Cheetah+ erratum 34 (USIII+ erratum #10) by relocating
the locked entry in it16 slot 0, which typically is occupied by the
PROM, and manually entering locked entries in slots != 0.

Thanks to Hubert Feyrer for donating the Blade 2000 this change was
developed on.

15 years agomld_timerresid() returns ms so instead of doing the maths in usec
bz [Wed, 10 Sep 2008 19:42:13 +0000 (19:42 +0000)]
mld_timerresid() returns ms so instead of doing the maths in usec
and then dividing down to ms, do the maths in ms.

Obtained from: NetBSD mld6.c rev. 1.47
MFC after: 2 months

15 years agoTeach WITNESS about the interlocks used with lockmgr. This removes a bunch
jhb [Wed, 10 Sep 2008 19:13:30 +0000 (19:13 +0000)]
Teach WITNESS about the interlocks used with lockmgr.  This removes a bunch
of spurious witness warnings since lockmgr grew witness support.  Before
this, every time you passed an interlock to a lockmgr lock WITNESS treated
it as a LOR.

Reviewed by: attilio

15 years agoDisable the inline assembly crc32 routine and use the C version instead.
jhb [Wed, 10 Sep 2008 18:42:19 +0000 (18:42 +0000)]
Disable the inline assembly crc32 routine and use the C version instead.
The assembly version is reported to be broken on 5.x+.

PR: kern/100425
Submitted by: Rashid N. Achilov  shelton www.granch.ru
MFC after: 1 week

15 years agoResurrect the sbni(4) driver. Someone finally tested the MPSAFE patches and
jhb [Wed, 10 Sep 2008 18:36:58 +0000 (18:36 +0000)]
Resurrect the sbni(4) driver.  Someone finally tested the MPSAFE patches and
the driver worked ok with them.

Tested by: friends of yar

15 years agoBeginning of overhaul of fwcontrol:
sbruno [Wed, 10 Sep 2008 18:09:52 +0000 (18:09 +0000)]
Beginning of overhaul of fwcontrol:
-  Documentation of send_phy_config()
-  cleanup of malloc's() and added error checking throughout
-  new capability to iterate over multiple firewire buses
-  update usage() display
-  cleanup command line parsing to allow out of order switches
-  cleanup command line parsing to allow multiple switches per invocation
-  cleanup grammar of man page a bit
-  add some ranges to the man page to indicate what values are valid

Since fwcontrol's code is the same across 6/7/head this can be
applied to all branches after the MFC period.

Reviewed by: Dieter freebsd@sopwith.solgatos.com
Approved by: mentor Scott scottl@samsco.org
MFC after: 60 days

15 years agoSome K8 chipsets don't expose all of the PCI devices on bus 0 via PCIe
jhb [Wed, 10 Sep 2008 18:06:08 +0000 (18:06 +0000)]
Some K8 chipsets don't expose all of the PCI devices on bus 0 via PCIe
memory-mapped config access.  Add a workaround for these systems by
checking the first function of each slot on bus 0 using both the
memory-mapped config access and the older type 1 I/O port config access.
If we find a slot that is only visible via the type 1 I/O port config
access, we flag that slot.  Future PCI config transactions to flagged
slots on bus 0 use type 1 I/O port config access rather than memory mapped
config access.

15 years agoVarious whitespace fixes.
jhb [Wed, 10 Sep 2008 17:59:21 +0000 (17:59 +0000)]
Various whitespace fixes.

15 years agoAdd a proper detach method to the est(4) driver using cpufreq_unregister().
jhb [Wed, 10 Sep 2008 17:41:41 +0000 (17:41 +0000)]
Add a proper detach method to the est(4) driver using cpufreq_unregister().

MFC after: 1 week

15 years agoIf arm.h is going to define WCHAR_TYPE, don't assume WCHAR_TYPE_SIZE
obrien [Wed, 10 Sep 2008 15:47:31 +0000 (15:47 +0000)]
If arm.h is going to define WCHAR_TYPE, don't assume WCHAR_TYPE_SIZE
doesn't already have a definition.

Reported by: imp

15 years agoUse PAGE_{SIZE,MASK,SHIFT} from machine/param.h rather than hard-coding
jasone [Wed, 10 Sep 2008 14:27:34 +0000 (14:27 +0000)]
Use PAGE_{SIZE,MASK,SHIFT} from machine/param.h rather than hard-coding
page size and using sysconf(3).

Suggested by: marcel

15 years agoRemove VSVTX, VSGID and VSUID. This should be a no-op,
trasz [Wed, 10 Sep 2008 13:16:41 +0000 (13:16 +0000)]
Remove VSVTX, VSGID and VSUID.  This should be a no-op,
as VSVTX == S_ISVTX, VSGID == S_ISGID and VSUID == S_ISUID.

Approved by: rwatson (mentor)

15 years agoAdd a missing break statement; IFDATA_LINKSPECIFIC would fall through
bms [Wed, 10 Sep 2008 13:08:37 +0000 (13:08 +0000)]
Add a missing break statement; IFDATA_LINKSPECIFIC would fall through
to IFDATA_DRIVERNAME otherwise.

Reviewed by: brooks
MFC after: 1 week

15 years agoo Correct a comment: a test file size is a four pages not three.
maxim [Wed, 10 Sep 2008 09:32:25 +0000 (09:32 +0000)]
o Correct a comment: a test file size is a four pages not three.

15 years agoGet initial bootstrap of APs working under xen.
kmacy [Wed, 10 Sep 2008 07:11:08 +0000 (07:11 +0000)]
Get initial bootstrap of APs working under xen.
Note that the APs still blow up in sched_throw().

MFC after: 1 month

15 years ago Fix path in all includes: remove /mips32 subdirectory
gonzo [Wed, 10 Sep 2008 03:49:08 +0000 (03:49 +0000)]
  Fix path in all includes: remove /mips32 subdirectory

15 years agorename flags and add a ZYD_FLAG_DETACHING flag to indicate we're
weongyo [Wed, 10 Sep 2008 03:40:51 +0000 (03:40 +0000)]
rename flags and add a ZYD_FLAG_DETACHING flag to indicate we're
detaching that when the USB is pulled out forcibly during the driver is
running background scan, a page fault can be occurred even if we called
usb_rem_task() when detaching.  It looks like a kind of races.

15 years ago- Fix regression with GETMEM
kmacy [Wed, 10 Sep 2008 01:10:17 +0000 (01:10 +0000)]
- Fix regression with GETMEM
- Remove gratuitous bswap macros
- check for rev 3 with t3b

Obtained from: Chelsio Inc.
MFC after: 3 days

15 years agoAllow building k8temp on i386.
rpaulo [Tue, 9 Sep 2008 22:37:29 +0000 (22:37 +0000)]
Allow building k8temp on i386.

MFC after: 1 week

15 years agoBuild k8temp on i386.
rpaulo [Tue, 9 Sep 2008 22:32:30 +0000 (22:32 +0000)]
Build k8temp on i386.

15 years agoAdd support for the CyberPower CP1500AVRLCD.
remko [Tue, 9 Sep 2008 19:59:51 +0000 (19:59 +0000)]
Add support for the CyberPower CP1500AVRLCD.

PR: 126845
Submitted by: gavin
Approved by: imp (mentor, implicit)
MFC after: 1 week

15 years agoAdd support to rc.initdiskless for /conf/T/M/remount_subdir.
bms [Tue, 9 Sep 2008 18:40:50 +0000 (18:40 +0000)]
Add support to rc.initdiskless for /conf/T/M/remount_subdir.
This allows the location of the configuration data to be relocated
within the filesystem containing it. A nullfs mount is used in order
to achieve this.

Obtained from: XORP, Inc.

15 years agoMove call to _malloc_thread_cleanup() so that if this is the last thread,
jasone [Tue, 9 Sep 2008 17:14:32 +0000 (17:14 +0000)]
Move call to _malloc_thread_cleanup() so that if this is the last thread,
the call never happens.  This is necessary because malloc may be used
during exit handler processing.

Submitted by: davidxu

15 years agoUpdate for new HAL.
rpaulo [Tue, 9 Sep 2008 16:21:25 +0000 (16:21 +0000)]
Update for new HAL.

Reviewed by: sam

15 years agoGetdents requires padding with 2 bytes instead of 1 byte
rdivacky [Tue, 9 Sep 2008 16:00:17 +0000 (16:00 +0000)]
Getdents requires padding with 2 bytes instead of 1 byte
as with getdents64. The last byte is used for storing
the d_type, add this to plain getdents case where it was
missing before. Also change the code to use strlcpy instead
of plain strcpy. This changes fix the getdents crash we
had reports about (hl2 server etc.)

PR: kern/117010
MFC after: 1 week
Submitted by: Dmitry Chagin (dchagin@)
Tested by: MITA Yoshio <mita ee.t.u-tokyo.ac jp>
Approved by: kib (mentor)

15 years agoInitialise the SVCAUTH field for new transport structures when they are
dfr [Tue, 9 Sep 2008 14:15:55 +0000 (14:15 +0000)]
Initialise the SVCAUTH field for new transport structures when they are
allocated instead of waiting for the first request. This fixes an issue with
rpcbind's support for PMAPPROC_CALLIT.

Reviewed by: markm

15 years agoRemove superfluous copyin() of args, structures are already in kernel space.
kib [Tue, 9 Sep 2008 13:01:14 +0000 (13:01 +0000)]
Remove superfluous copyin() of args, structures are already in kernel space.

Submitted by: dchagin
MFC after: 1 week

15 years agoRemove redundant close(2).
trasz [Tue, 9 Sep 2008 12:31:42 +0000 (12:31 +0000)]
Remove redundant close(2).

Submitted by: kensmith
Approved by: rwatson (mentor)

15 years agoAdd workaround for CRC errors seen at 100Mbps on JMC250 A2.
yongari [Tue, 9 Sep 2008 10:19:48 +0000 (10:19 +0000)]
Add workaround for CRC errors seen at 100Mbps on JMC250 A2.
While here update chip revision number of JMC250/JMC260 from the
latest datasheet.

15 years agoFix typo.
yongari [Tue, 9 Sep 2008 10:10:03 +0000 (10:10 +0000)]
Fix typo.

15 years agoReturn two fixes from previous backout which does not require
ache [Tue, 9 Sep 2008 09:46:36 +0000 (09:46 +0000)]
Return two fixes from previous backout which does not require
review by secteam@ for the reasons mentioned below.

1) Rename /dev/urandom to /dev/random since urandom marked as
XXX Deprecated
alias in /sys/dev/random/randomdev.c
(this is our naming convention and no review by secteam@ required)

2) Set rs_stired flag after forced initialization to prevent
double stearing.
(this is already in OpenBSD, i.e. they don't have double stearing.
It means that this change matches their code path and no additional
secteam@ review required)

Submitted by:   Thorsten Glaser <tg@mirbsd.de> (2)

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