MFC revision 1.27:
> Clear TDF_SINTR in sleepq_resume_thread, also sleepq_catch_signal does
> not need to clear it now, this should fix panic when msleep is recursivly
> called. Patch is slightly adjusted after review.
> jhb 2006-04-06 17:17:45 UTC
>
> FreeBSD src repository
>
> Modified files:
> sys/i386/i386 machdep.c
> sys/i386/isa npx.c
> Log:
> - Don't set CR0_NE and CR0_MP in npx_probe() as they are already set
> earlier in cpu_setregs().
> - If we know this CPU has a FPU via cpuid, then just assume the INT16
> interface and make the npx device quiet to not clutter the dmesg. This
> is true for all Pentium and later CPUs and even some of the later 486dx
> CPUs.
>
> Reviewed by: bde
> Tested by: ps
> MFC after: 1 week
>
> Path Revision
> src/sys/i386/i386/machdep.c 1.625
> src/sys/i386/isa/npx.c 1.164
> - Lock giant when assigning ni_vp and keep vfslocked state valid.
> - Consistently track ni_dvp and ni_vp with dvfslocked and vfslocked rather
> than trying to optimize it into a single lock. This adds more calls to
> lock giant with non smpsafe filesystems but is the only way to reliably
> hold the correct lock.
> - Remove an invalid assert in the mountedhere case in lookup and fix the
> code to properly deal with the scenario. We can actually have a lookup
> that returns dp == dvp with mountedhere set with certain unmount races.
> Bump up the NFS server dupreq cache limit to 2K (from 64). With a small
> duplicate request cache, under heavy load a lot of non-idempotent requests
> were getting served again, resulting in errors.
- Don't hold the device sx lock when going to sleep.
- Prevent possible live-lock in case of memory problems by freeing
already completed requests first.
Reported and tested by: markus, Bradley W. Dutton <brad-fbsd-stable@duttonbros.com>
Approved by: re (hrs)
# [1.3]
# Add more details about enabling a custom ruleset for /dev in `rc.conf',
# and add ruleset labels/numbering to the custom ruleset example.
#
# PR: docs/90362
# Submitted by: Roland Smith <rsmith@xs4all.nl>
# MFC after: 3 days
Don't destroy device twice. This can lead to kernel panic on reboot/shutdown.
This is not an MFC, because the code in HEAD has other changes and there is
no such problem there.
Fix a one byte off error which causes "less" to crash if you view a
large file, jump to the end, scroll backwards with "b" and try to search
backwards afterwards.
Submitted by: Matthias Scheler
Approved by: re (hrs)
Fix storing offset of already synchronized data. Offset in entire array was
stored in metadata instead of an offset in single disk.
After reboot/crash synchronization process started from a wrong offset
skipping (not synchronizing) part of the component which can lead to data
corrutpion (when synchronization process was interrupted on initial
synchronization) or other strange situations like 'graid3 status' showing
value more than 100%.
Reported, reviewed and tested by: ru
Reported by: Dmitry Morozovsky <marck@rinet.ru>
Approved by: re (hrs)
- In intr_fast() fix a race which is fallout from critical sections no longer
raising the PIL and can cause corruption of the interrupt request lists.
- In intr_fast() assert that the ir_func to be called is non-zero.
- Increment interrupt stats after calling the handlers rather than before in
order to reduce the delay until direct and fast handlers are serviced.
Don't scan pages that are above the passed in high value. This is a partial
MFC of rev 1.48; the rest of that change is incomplete and not appropriate
for merging yet.
Add support for (latest) VIA VT8251 audio controller.
A slight difference of this chip from its previous siblings is that
it need a gentle "wake up" on every (full) DMA buffer completion to
avoid stalled interrupt handler.
Thanks to George Hartzell for permission on doing remote debugging.
PR: i386/95949
Tested by: [1] George Hartzel
myself (remotely)
Approved by: re (hrs)
MFC: Multicore detection.
- Print number of physical/logical cores and more CPUID info.
- Add newer CPUID definitions for future use.
- Correct few MSR addresses while I am here.
- Fix spelling mistake.
MFC revision 1.7
date: 2006/04/19 05:10:34; author: delphij; state: Exp; lines: +1 -1
Make ldconfig as SERVER dependency. This makes it possible
for some early starting services from the ports collection
to have their shared objects available before start.
Reviewed by: freebsd-rc (dougb, brooks)
Approved by: re (hrs)
MFC src/sys/nfsclient/nfs_bio.c,v 1.154
and src/sys/nfsclient/nfs_vnops.c,v 1.262 (by ps@):
- Always return success from NFS strategy. nfs_doio(), in the
event of an error, does the right thing, in terms of setting
the error flags in the buf header. That fixes a crash from
bstrategy().
- Treat ETIMEDOUT as a "recoverable" error, causing the buffer
to be re-dirtied. ETIMEDOUT can occur on soft mounts, when
the number of retries are exceeded, and we don't want data loss
in that case.
Submitted by: Mohan Srinivasan
Approved by: re (scottl)
MFC: pidfile.c v1.2
use pwrite to always write at the begining of the file.. If multiple calls
to pidfile_write happen, the pidfile will have nul characters prepended
due to the cached file descriptor offset...
MFC: When enabling A20 put upper limit on amount of time we wait for the
keyboard controller to get ready (65K x ISA access time, visually around
1 second). If we have wait more than that amount it's likely that the
hardware is a legacy-free one and simply doesn't have keyboard controller
and doesn't require enabling A20 at all.
This makes cdboot/pxeldr working for MacBook Pro with Boot Camp and
other legacy-free i386 hardware like IBM Netvista S40.
MFC 1.76: Implement the correct fix for the bug introduced in 1.73.
This time we avoid the seg-fault while still keeping the column
headers in uppercase. And the original bug wrt specifying a new
column header for an aliased `-o' option remains fixed.
MFC: Activate ithread_destroy() (but rename it to ithread_destroy2() for
ABI reasons) and call it from intr_event_destroy().
Only in 6: Add API and ABI compat shims for ithread_destroy() to call
intr_event_destroy().
Approved by: re (scottl)
Tested by: Artem Ignatiev <zazubrik@mail.ru>
Stopgap fix to avoid "mutex ipw0 recursed" panics in msleep for recursive
ioctl paths. Instead of using a recursive mutex we use conditional locking
and keep track of the recursion on the stack.
Reported and tested by: Ulrich Spoerlein
Approved by: re (scottl)
Drop the languages we'll build docs for as part of the release down to
just English due to a ISO size crisis for disc2. This is being done
after consultation with the doceng folks, who basically agreed that
of the two evils this is less evil than going with the -lite versions
of gnome/kde. We are only doing this on RELENG_5/RELENG_6. On HEAD
we plan to adjust sysinstall so there will be no packages at all on
disc1/disc2 and we can have an arbitrary number of dedicated package
discs but that seems like too much of a change for RELENG_5/RELENG_6
particularly at this stage in the release.
Discussed with: re@, doceng@
Approved by: re (scottl)
Back out the fan control changes that were merged in revision 1.2.2.5.
The necessary changes to the driver haven't been merged yet, which won't
happen before 6.1-RELEASE.
MFC 1.75: Fix a problem introduced by previous change, which causes
a seg-fault if the user specifies a keyword which is implemented as
an alias to some other keyword.
Submitted by: Kostik Belousov
Approved by: re (scottl)
Retire NETSMBCRYPTO as a kernel option and make its functionality
enabled by default in NETSMB and smbfs.ko.
With the most of modern SMB providers requiring encryption by
default, there is little sense left in keeping the crypto part
of NETSMB optional at the build time.
This will also return smbfs.ko to its former properties users
are rather accustomed to.